LED resistor calculator
A resistor in series with an LED sets its current. Enter the supply voltage, the LED forward voltage and the current you want.
Resistor
Fill in the circuit, then press the button.
Formula
R = (Vsupply − n × Vf) ÷ I
The resistor drops whatever the LEDs don't. Pick the next higher standard value so the current stays at or below the target.
Typical forward voltages
| Color | Forward voltage | Resistor at 12 V, 20 mA, one LED |
|---|---|---|
| Red | 2.0 V | 500 Ω |
| Amber | 2.1 V | 495 Ω |
| Green | 3.0 V | 450 Ω |
| Blue | 3.2 V | 440 Ω |
| White | 3.2 V | 440 Ω |
Common questions
Can I run LEDs in parallel off one resistor?
Avoid it. LEDs differ slightly in forward voltage, so one hogs the current. Give each parallel branch its own resistor.