Calculators

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 resistor14.9 mA
Power in the resistor104 mW
Resistor rating1/4 W
The circuit, running liveOpen in the playground →

The simulator's red LED drops about 1.8 V, a little less than the 2 V typed here, so it reads slightly more current.

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

Want a whole circuit rather than one value? Describe it and the AI designs and simulates it.