How to use it
Enter the supply voltage, pick the LED colour or type its forward voltage from the datasheet, and enter the current: 20 mA suits most 5 mm indicator LEDs, and 5 to 10 mA is often bright enough. For LEDs in series, enter how many; their forward voltages add.
The formula
R = (Vs − n × Vf) ÷ I. A red LED (2.0 V) at 20 mA from 5 V needs (5 − 2) ÷ 0.020 = 150 Ω. The resistor dissipates I² × R = 60 mW, so a 1/8 W part is fine.
Resistors for one LED at 20 mA
| Supply | Red (2.0 V) | Yellow (2.1 V) | Blue or white (3.2 V) |
|---|---|---|---|
| 3.3 V | 68 Ω, 0.125 W | 68 Ω, 0.125 W | 5.6 Ω, 0.125 W |
| 5 V | 150 Ω, 0.125 W | 150 Ω, 0.125 W | 100 Ω, 0.125 W |
| 9 V | 390 Ω, 0.5 W | 390 Ω, 0.25 W | 330 Ω, 0.25 W |
| 12 V | 560 Ω, 0.5 W | 560 Ω, 0.5 W | 470 Ω, 0.5 W |
| 24 V | 1200 Ω, 1 W | 1200 Ω, 1 W | 1200 Ω, 1 W |
Tips
Put LEDs in series rather than in parallel on one resistor: parallel LEDs do not share current evenly and the brightest one fails first. Leave at least a volt or two across the resistor so a small change in supply does not swing the current. For power LEDs above about 100 mA, a constant-current driver wastes less than a resistor.
These calculators do the arithmetic only. Check every measurement and cut before you make it, and follow the drawings, the code and the engineer of record for anything that carries pressure or load.