Why LEDs need a resistor
An LED drops a nearly fixed forward voltage and will draw as much current as the supply allows, quickly burning out. A resistor in series sets the current: it takes up the difference between the supply and the LED voltage. By Ohm's law, R = (Vsupply − Vf) ÷ I.
Worked examples
- A red LED (2 V) on 5 V at 20 mA: (5 − 2) ÷ 0.020 = 150 Ω, a standard value. The resistor dissipates 60 mW, so a 1/8 W part is fine.
- Three white LEDs (3.2 V each) in series on 12 V: (12 − 9.6) ÷ 0.020 = 120 Ω.
- A red LED on 9 V: 350 Ω is not a standard value, so use 360 Ω, giving 19.4 mA. It dissipates 136 mW: use a 1/2 W resistor, or at least 1/4 W.
Typical forward voltages
| Color | Forward voltage |
|---|---|
| Red | 1.8–2.2 V |
| Yellow, orange | 2.0–2.2 V |
| Green | 2.0–3.4 V |
| Blue, white | 2.8–3.4 V |
Check your LED's datasheet. 20 mA is a common maximum for small 3 mm and 5 mm LEDs; 5–10 mA is often bright enough for indicators.
How this works
The page subtracts the forward voltage of all LEDs in series from the supply and divides by the current to get the exact resistance. It rounds up to the next value in the E24 series, the standard resistor values, so the current never exceeds your target, then recalculates the actual current and the power in the resistor. The rating suggestion doubles the power for a safety margin.
Frequently asked
What resistor do I need for an LED on 5 V?
For a red LED at 20 mA, 150 Ω. For a white or blue LED (3.2 V), about 91 Ω, using 100 Ω for a little less current.
Why round up instead of to the nearest value?
Rounding up keeps the current at or below your target, which protects the LED.
Can I use one resistor for several LEDs in parallel?
It is not recommended: small differences in forward voltage make one LED take more current. Use one resistor per LED.
What power rating do I need?
At least twice the power the resistor dissipates; the page suggests one.
Sources
- IEC 60063:2015 — Preferred number series for resistors and capacitors (E series)
- Wikipedia — LED circuit
Reviewed Oct 17, 2026 · test vectors fixtures/calculators/electronics/led-resistor-calculator/