LED Resistor Calculator

The current-limiting resistor for one or more LEDs in series: standard value, actual current and resistor wattage.

From the datasheet
20 typical, 5–10 for indicators
Resistor
150 Ω
calculated 150 Ω, rounded up to E12
Resistor power
1/4 W
dissipates 60 mW
Actual current
20.0 mA
Color bands
brown · green · brown · gold

High-power LEDs (350 mA and up) need a constant-current driver, not a resistor.

The LED resistor formula

The resistor drops whatever voltage the LEDs don’t use, at the current you want:

R = (supply voltage − LED voltage × number of LEDs) ÷ current
P = current² × R

A 5 V supply and a red LED at 20 mA: (5 − 2) ÷ 0.020 = 150 Ω, dissipating 60 mW, so a 1/4 W resistor is plenty.

Forward voltage by color

Red, orange and yellow LEDs drop about 1.8–2.2 V; blue, white and bright green about 3.0–3.4 V. The datasheet value at your current is best — it changes with current and temperature.

Resistor wattage

The calculator picks a rating at least twice the power the resistor dissipates, so it runs cool. If the answer is more than about half a watt, consider more LEDs in series, a lower supply voltage or a constant-current driver — the resistor is wasting most of the energy as heat.

Common questions

What resistor do I need for an LED on 5V?

For a red LED (about 2 V) at 20 mA: (5 − 2) ÷ 0.02 = 150 Ω. For a blue or white LED (about 3.2 V): (5 − 3.2) ÷ 0.02 = 90 Ω, so use 100 Ω.

What resistor for an LED on 12V?

A single red LED at 20 mA needs (12 − 2) ÷ 0.02 = 500 Ω, so 560 Ω. That wastes most of the power in the resistor — put three or four LEDs in series instead.

Can I use one resistor for LEDs in parallel?

It’s not a good idea. LEDs’ forward voltages differ slightly, so one hogs the current and burns out, then the next. Give each LED (or each series string) its own resistor.

Why round the resistor up?

A slightly larger resistor gives slightly less current, which is safe. Rounding down pushes the LED past its rated current.

Can I run an LED without a resistor?

Only from a constant-current source. On a voltage source, current rises steeply above the forward voltage and the LED overheats.

MathApps is free and ad-free for now. If it helped, buy us some art supplies — supporters never see ads, even if we add them.