Electrical · Calculator

LED current-limiting resistor.

Formula: R = (Vsupply − Vforward) ÷ I. Example: a red LED (2.0 V) on 5 V at 20 mA needs (5 − 2.0) ÷ 0.020 = 150 Ω. The resistor uses 0.06 W, so a 1/4 W resistor is enough. If the result is not a standard value, use the next larger standard value.

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.

Next step Ohm's law calculator — Volts, amps, ohms, watts

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

Common questions

How do you calculate an LED current-limiting resistor?

Use R = (Vsupply − Vforward) ÷ I, where Vforward is the LED's forward voltage and I is the target current. Then round to the next standard resistor value and check its power rating.

Why does an LED need a resistor?

An LED's current rises very steeply once it reaches its forward voltage, so without something to limit it the LED draws too much current and burns out. The resistor sets a stable, safe operating current.

What resistor wattage do I need?

Compute P = (Vsupply − Vforward) × I and choose a resistor rated well above it — roughly 2× headroom. A typical 20 mA indicator LED is fine on a 1/4 W resistor, but higher currents or supply voltages need more.

Can I run multiple LEDs on one resistor?

LEDs in series share one resistor — add their forward voltages and keep the same current. LEDs in parallel on a single resistor is discouraged, because small forward-voltage differences make them hog current unevenly; give parallel LEDs their own resistors.

What forward voltage should I use for my LED?

It depends on color and chemistry: red about 1.8–2.2 V, yellow/green about 2.0–2.4 V, blue/white about 3.0–3.4 V. For accuracy use the datasheet value at your target current.

When should I use a constant-current driver instead of a resistor?

Use a driver for high-power LEDs, long runs, a varying supply voltage, or where efficiency and consistent brightness matter. A resistor wastes the voltage difference as heat and lets current drift with supply voltage; a driver regulates current directly.

Sources

  • Standard resistor values: IEC 60063 (E12, E24 series).
  • LED forward voltage data: LED manufacturer datasheets (Cree, Lumileds, Nichia for high-end; generic 5 mm LED datasheets for hobbyist parts).
  • Ohm's law: Foundational electronics — any introductory textbook.

Last content change: 6 November 2026 · Changelog

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

See also