5 V, 20 mA → 150 Ω
LED resistor calculator
Enter your supply voltage, the LED’s forward voltage and the current you want, plus how many LEDs are in series. You get the exact resistance, the next standard E24 resistor up (so the current never exceeds your target), the current it actually gives, and the power rating the resistor needs.
Private: your files never leave your device.
- Exact resistance
- 150 Ω
- Standard resistor (E24, next value up)
- 150 Ω
- Current with that resistor
- 20 mA
- Power in the resistor
- 60 mW
- Use a resistor rated at least
- 1/8 W
R = (Vs − n × Vf) ÷ I = (5 − 1 × 2) ÷ 0.02 = 150 Ω
Forward voltage and maximum current vary by LED: use the values from your LED’s datasheet when you have them.
How was this tool?
How to use LED resistor calculator
Step 1: Enter the supply voltage and choose the LED color or type its forward voltage.
Step 2: Enter the LED current (often 5–20 mA) and the number of LEDs in series.
Step 3: Use the standard resistor value and at least the power rating shown.
Typical LED values
| LED | Forward voltage (typical) | Current (typical) |
|---|---|---|
| Red | 1.8–2.2 V | 10–20 mA |
| Yellow / amber | 2.0–2.2 V | 10–20 mA |
| Green (older types) | 2.0–2.4 V | 10–20 mA |
| Bright green, blue, white | 2.8–3.4 V | 10–20 mA |
| Infrared | 1.2–1.6 V | 20–50 mA |
These are rough ranges; the datasheet of your exact LED wins. Indicator LEDs are often bright enough at 2–5 mA, which also saves battery.
Power rating
The resistor turns the extra voltage into heat: P = I² × R. Choose a part rated for at least twice that, so it runs cool. A 12 V supply driving one red LED at 20 mA wastes (12 − 2) × 0.02 = 0.2 W in the resistor, so a ½ W resistor is the safe choice, and chaining several LEDs in series uses the voltage better.
Frequently asked questions
How do I calculate an LED resistor?
R = (supply voltage − LED forward voltage × number of LEDs) ÷ current. A red LED (2 V) at 20 mA from 5 V needs (5 − 2) ÷ 0.02 = 150 Ω.
Why round up to the next standard value?
A slightly larger resistor gives slightly less current, which is safe. Rounding down would push more current through the LED than you planned.
Can several LEDs share one resistor in parallel?
It isn’t recommended: LEDs’ forward voltages differ slightly, so one takes more of the current. Give each parallel string its own resistor.