LED Series Resistor Calculator
Enter supply voltage, LED colour, number of LEDs and current to get the resistor, its standard value and power rating.
Step-by-step
- Enter valid values to begin.
Vf values are typical datasheet figures at about 20 mA and vary with colour chemistry, current, temperature and unit-to-unit spread (often ±0.2 V or more); use the datasheet maximum Vf for worst-case current. The resistor is assumed to be a plain linear component fed by a steady DC supply with at least about 1 V of headroom. Resistor ratings use a 2× power headroom as practice, not a standard. For parallel strings give every string its own resistor.
LED Series Resistor: Setting the Current, Not the Voltage
Core Engineering Principles
An LED is a diode, and a diode’s voltage barely moves while its current changes enormously. A red LED sits near 2.0 V at 20 mA, but push the supply up by half a volt and the current can double. So an LED is never connected to a voltage source directly. We put a resistor in series, let it absorb the difference between supply and LED drop, and Ohm’s law sets the current: R = (Vs − N·Vf) / If. The resistor is the only thing in the loop that behaves predictably, which is why we budget for it first.
Pick the resistor from a preferred series, because that’s what is on the shelf. E24 is the usual bench choice and E12 is fine for indicator work. Rounding up costs almost no visible brightness; rounding down raises the current, so check the datasheet maximum first. Watch the headroom too. If the resistor drops only a volt or so, a small change in Vf from temperature or unit-to-unit spread moves the current a lot, and the string will flicker with supply ripple.
Rating ≥ 2 × PR • Efficiency = N × Vf / Vs
NEC & Standard References
IEC 60063 defines the E3 to E192 preferred number series, so E12 and E24 values come from there. IEC 60062 gives the colour-band and letter-code marking you read off the part. IEC 60115-1 is the generic specification for fixed resistors and sets rated dissipation and the derating curve versus ambient temperature. JEDEC publications cover the semiconductor side, but forward voltage and absolute maximum current always come from the manufacturer’s datasheet. The 2× power headroom used here is common practice, not a standard clause.1. Resistor drop = 12 − 2.0 = 10 V.
2. R = 10 / 0.020 = 500 Ω exact. The nearest E24 value is 510 Ω.
3. Actual current = 10 / 510 = 19.61 mA, which is −1.96% from target.
4. PR = 0.01961² × 510 = 196 mW. Doubling gives 392 mW, so use a 1/2 W part.
5. LED power = 2.0 × 19.61 mA = 39.2 mW; supply power = 235.3 mW; efficiency = 16.7%.
6. Three red LEDs in series need only (12 − 6) / 0.020 = 300 Ω and reach 50% efficiency. Maximum on 12 V with 1 V headroom is 5.
- Datasheet Vf is typical, not guaranteed. Design with the maximum Vf to see the worst-case current, and the minimum to see the worst-case dimming.
- Never share one resistor between parallel LEDs. The lowest-Vf device takes the most current, heats up, drops further, and runs away. Give each string its own resistor.
- Watch the hot-plug transient. Automotive supplies surge well above 12 V, and a resistor tuned for 20 mA can push an LED past its limit during load dump.
- Don’t run a resistor at its full rating. A part dissipating its whole rating reaches high surface temperatures that discolour the board; derate by half.
Resistor Values for Common Supplies
Each cell shows the nearest E24 resistor and the real current it produces. Check the LED datasheet maximum before rounding down.
| LED | 5 V | 9 V | 12 V | 24 V |
|---|---|---|---|---|
| Red (2.0 V) | 150 Ω · 20.0 mA | 360 Ω · 19.4 mA | 510 Ω · 19.6 mA | 1.1 kΩ · 20.0 mA |
| Yellow (2.1 V) | 150 Ω · 19.3 mA | 360 Ω · 19.2 mA | 510 Ω · 19.4 mA | 1.1 kΩ · 19.9 mA |
| Green (2.2 V) | 150 Ω · 18.7 mA | 330 Ω · 20.6 mA | 510 Ω · 19.2 mA | 1.1 kΩ · 19.8 mA |
| White / blue (3.2 V) | 91 Ω · 19.8 mA | 300 Ω · 19.3 mA | 430 Ω · 20.5 mA | 1 kΩ · 20.8 mA |
How Many LEDs in Series?
Putting LEDs in series saves energy because one resistor handles one current. The count depends on supply and forward voltage.
| LED | 5 V | 9 V | 12 V | 24 V |
|---|---|---|---|---|
| Red 2.0 V | 2 | 4 | 5 | 11 |
| White 3.2 V | 1 | 2 | 3 | 7 |
Current, Resistor and Efficiency
A single LED on a high rail wastes most of the power in the resistor. Efficiency stays at Vf / Vs whatever the current, so the only way to improve it is to put more LEDs in series.
| Target | Resistor | Actual | Resistor power | Efficiency |
|---|---|---|---|---|
| 5 mA | 2 kΩ | 5.0 mA | 50 mW | 16.7% |
| 10 mA | 1 kΩ | 10.0 mA | 100 mW | 16.7% |
| 20 mA | 510 Ω | 19.6 mA | 196 mW | 16.7% |
| 30 mA | 330 Ω | 30.3 mA | 303 mW | 16.7% |
Worked Example: White LED on 5 V
Vf = 3.2 V and a 20 mA target. R = (5 − 3.2) / 0.020 = 90 Ω. The nearest E24 value is 91 Ω, giving 19.78 mA. The resistor dissipates 36 mW, so a 1/4 W part is fine. With only 1.8 V across the resistor a small change in Vf changes the current noticeably, so for stable brightness use a constant-current driver. On a 9 V battery a red LED at 10 mA needs (9 − 2) / 0.010 = 700 Ω and the E24 pick is 680 Ω (10.29 mA).
LED Resistor Questions
How do I calculate an LED resistor?
R = (Vs − N × Vf) / If. Round to a standard value and recheck the current.
Should I round up or down?
Up is safer for the LED. Rounding down raises current, so check the datasheet maximum first.
Can I use one resistor for several LEDs in parallel?
Not recommended. Differences in Vf make one LED take most of the current. Give each its own resistor.
What power rating do I need?
At least twice the calculated dissipation P = I² × R.
Why does the LED flicker with a small resistor?
If the resistor drops only a volt or so, ripple on the supply swings the current a lot. Use a larger drop or a current source.
Does the colour change the forward voltage?
Yes. Red is near 2 V, blue and white near 3 V. The datasheet gives the exact value at your current.