How it works
The resistor takes up whatever voltage the LED doesn't, and sets the current. Using Ohm's law:
R = (supply voltage − LED voltage × number of LEDs) ÷ current
The calculator always rounds up to a standard value, so the current ends up slightly lower than you asked for, never higher. It suggests a power rating at least twice what the resistor actually dissipates, so it runs cool.
Typical LED forward voltages
| Colour | Typical forward voltage |
|---|---|
| Infrared | 1.2 to 1.5 V |
| Red | 1.8 to 2.2 V |
| Orange, yellow, yellow-green | 2.0 to 2.2 V |
| Bright (true) green | 3.0 to 3.4 V |
| Blue and white | 3.0 to 3.4 V |
These are typical figures for small indicator LEDs at around 20 mA. Your LED's datasheet is the final word.
Several LEDs
- In series: one resistor is enough, as long as the supply is comfortably above the total LED voltage. Three red LEDs need about 6 V, so a 9 V or 12 V supply works well.
- In parallel: give each LED its own resistor. LEDs never match exactly, so if they share one resistor, one LED can hog the current and burn out.
Want the full story? Read how resistors work.