Basic circuits

LED Series Resistor

Size the current-limiting resistor for an LED on a DC supply.

Inputs

Result

Resistor150.0Ω
Resistor power0.0600W

Formula

R = (Vsupply − Vf) / I P = (Vsupply − Vf) × I

Assumptions

Single LED in series with one resistor on a DC supply.

Worked example

5 V, Vf = 2.0 V, 20 mA -> R = 150 Ω, P = 0.06 W. Choose the next standard resistor >= 150 Ω and rate power with margin.

Limitations

Vf varies with color, current, and temperature. For supplies near Vf the current becomes very sensitive; consider a constant-current driver.

Educational tool. Independently verify against the datasheet before relying on the result.

All calculators →