pipefittercalc

LED resistor calculator

The resistor an LED needs, the nearest standard value, and the wattage, for one LED or several in series.

LED resistor

The series resistor for one LED or a string, the nearest standard value and the wattage it needs.

How it is worked out

R = (supply voltage − LEDs in series × forward voltage) ÷ current. The standard value is the next E12 resistor up, so the LED runs at or a little under the current you set; the actual current is shown. The resistor dissipates I² × R, and a part rated at least twice that runs cool. Use the forward voltage from the LED's datasheet where you have it; the colour list gives typical figures.

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

SupplyRed (2.0 V)Yellow (2.1 V)Blue or white (3.2 V)
3.3 V68 Ω, 0.125 W68 Ω, 0.125 W5.6 Ω, 0.125 W
5 V150 Ω, 0.125 W150 Ω, 0.125 W100 Ω, 0.125 W
9 V390 Ω, 0.5 W390 Ω, 0.25 W330 Ω, 0.25 W
12 V560 Ω, 0.5 W560 Ω, 0.5 W470 Ω, 0.5 W
24 V1200 Ω, 1 W1200 Ω, 1 W1200 Ω, 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.