LED resistor calculator
The LED series resistor is the voltage left over after the LED, divided by the current you want: R = (Vsupply − Vled) ÷ I. Round up to the next standard value.
R = (Vsupply − Vled) ÷ IP = I² × R| Resistor (exact) | 467 Ω |
|---|---|
| Standard value (E12, rounded up) | 470 Ω |
| Current with that resistor | 14.9 mA |
| Power in the resistor | 104 mW |
| Resistor rating | 1/4 W |
Worked example
A red LED (about 2 V) on a 9 V battery at 15 mA: R = (9 − 2) ÷ 0.015 = 467 Ω. The next standard value up is 470 Ω, which gives 14.9 mA and dissipates 0.10 W, so a 1/4 W resistor is plenty.
Questions
What forward voltage should I use?
About 2 V for red, yellow and orange LEDs, and about 3 V for blue, white and green. The exact value is on the LED's datasheet.
What current should an LED run at?
Most 5 mm indicator LEDs are rated 20 mA maximum and are bright at 5 to 15 mA. Running below the maximum makes them last longer.
Why round the resistor up?
A higher resistance means slightly less current, which is safe. Rounding down could push the LED past its rating.
Can several LEDs share one resistor?
Not in parallel: give each LED its own resistor, because LEDs never share current evenly. In series, subtract all their forward voltages from the supply.
More calculators
- Resistor color code calculator
- Voltage divider calculator
- RC time constant calculator
- Ohm's law calculator
- Series and parallel resistor calculator
- Transistor base resistor calculator
- 555 timer calculator (astable)
- PCB trace width calculator
- Battery life calculator
- RC filter calculator (low-pass)
- Capacitor code calculator
Want a whole circuit rather than one value? Describe it and the AI designs and simulates it.