LED resistor calculator
Formulas, limitations and content checked according to our Editorial method.
Calculate the series resistor for driving an LED from supply voltage, forward voltage (Vf) and target current. Shows the ideal value and the nearest E12 value.
Parameters
FAQ
Internal links
Practical LED examples
Red LED 2 V at 10 mA: ideal value approximately 300 Ω. In E12 330 Ω is better, less current and less crying.
The lower E12 value increases the current. For prototypes and indicator LEDs, the higher value is almost always the most prudent choice.
Always check the power dissipated. If the calculator reports more than 0.25 W, avoid the classic tiny resistor thrown out there on faith.
Typical Vfs to use as a starting point
| LEDs | Vf indicative | Notes |
|---|---|---|
| Red | 1.8-2.2V | Good for low current indicators. |
| Green | 2.0-3.2V | It depends a lot on technology. |
| Blue | 3.0-3.4V | With 5 V there is little margin left on the resistance. |
| White | 3.0-3.4V | Similar to blue, often with phosphors. |
See also
Frequently asked questions
What resistor for a 5V LED?
With Vf=2V, If=20mA: R = (5−2)/0.02 = 150Ω. Nearest E12 value: 150Ω.
What resistor for a 12V LED?
With Vf=2V, If=20mA: R = (12−2)/0.02 = 500Ω. Nearest E12: 470Ω or 560Ω.
How do I calculate resistor power for an LED?
P = (Vcc − Vf) × If. For 5V, Vf=2V, 20mA: P = 60mW. Use a 0.25W resistor.
Can I put LEDs in series?
Yes: R = (Vcc − N×Vf) / If. Three red LEDs (2V each) at 12V: R = (12−6)/0.02 = 300Ω.