Electrical · Calculator

LED current-limiting resistor.

Size the resistor for an LED given supply voltage, forward voltage, and desired current. Plus power dissipation and the closest E12 / E24 standard resistor values.

How this works

R = (Vs − Vf) / If

Power dissipated in R:  P = (Vs − Vf) × If = (Vs − Vf)² / R

The resistor absorbs the voltage difference between supply and LED forward drop, while limiting current. The LED itself isn't ohmic — once it's above its forward voltage, current rises very rapidly with small voltage changes. The resistor's job is to convert this exponential current curve into a controlled, predictable current.

Why you can't drive an LED without a resistor (usually)

If you connect a 2 V LED directly to a 5 V supply, the LED will draw whatever current the supply can deliver — typically destroying the LED in milliseconds. The exception is when supply voltage equals LED forward voltage exactly (e.g., a 2 V LED on a 2 V battery), but this is fragile: battery voltage drifts down as it discharges, and small voltage changes cause large current swings.

Series and parallel LEDs

When to use a constant-current driver instead

For LEDs above ~100 mA (high-brightness lighting, power LEDs, automotive applications), a series resistor wastes too much power as heat. A switching constant-current driver (LM3404, MAX16832, or any LED driver chip) is much more efficient and gives better thermal performance. For room lighting and most signal-indicator LEDs, a resistor is fine.

Common pitfalls

Sources

Disclaimer. This calculator covers single-LED current limiting. For arrays, lighting, or anything above ~50 mA, use a proper LED driver.

See also