LED current-limiting resistor.
LED current-limiting resistor: Calculate the current-limiting resistor for an LED given supply voltage, LED forward voltage, and desired current.
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
- Series LEDs share current. 3 red LEDs (Vf = 2.0 V each) in series = 6 V total drop. From a 12 V supply, R = (12 − 6) / 0.020 = 300 Ω. All LEDs see the same 20 mA.
- Parallel LEDs DON'T share current evenly. Manufacturing tolerance means one LED will hog more current than the others, get hotter, drop slightly in forward voltage, and hog even more current — leading to thermal runaway. Always use a separate resistor per LED branch, not one resistor for 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
- Vf varies with current and temperature. An LED at 2.0 V forward at 20 mA might be 1.9 V at 5 mA or 2.2 V at 30 mA. The datasheet typically shows Vf at the nominal current.
- Standard resistor values aren't always available. Calculated R of 145 Ω rounds to the nearest E12 (150 Ω) or E24 (147 Ω). Slightly higher R means slightly less current — usually fine.
- Power rating matters. A 1/4 W resistor at 0.3 W will fail. For high-current LEDs, you may need 1/2 W or 1 W resistors.
- Supply voltage isn't always what you think. A "5 V" USB port is actually 4.75-5.25 V. A "12 V" car battery is 12.6 V at rest, 13.8 V running, dropping to 11 V at low charge. Design for worst case.
- Don't trust the LED's "absolute maximum" rating. Run LEDs at 50-70% of their max current for long life. An LED rated for 30 mA max should typically be run at 15-20 mA.
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.
Disclaimer. This calculator covers single-LED current limiting. For arrays, lighting, or anything above ~50 mA, use a proper LED driver.