LED Series Resistor Calculator

Advanced LED calculator with array designer, efficiency analysis, thermal calculations, and lifetime estimation.
Standard Resistors
Basic Calculator
Advanced Analysis
Array Designer

Basic LED Resistor Calculator

LED Series Resistor Formula:
R = (Vs - Vf × N) / If Presistor = (Vs - Vf × N) × If
5V Supply
9V Supply
12V Supply
20mA Current
V
Red
2.0V
Green
2.1V
Blue
3.6V
White
3.6V
Yellow
2.1V
Orange
2.2V
Amber
2.1V
IR
1.7V
V
Enter supply voltage, LED specifications, and current to calculate resistor value.

Efficiency Analysis

Enter values to see power efficiency calculations.

Circuit Diagram

Enter values to see the circuit diagram.

Auto-calculate as you type

LED Array Designer

Array Configuration:
Series: Total Vf = Vf × N, Same current Parallel: Same Vf, Total current = If × N

Array Configuration

Array Preview

Configure your LED array above to see the design.

Configure your LED array and click Design Array.

Advanced LED Analysis

LED Specifications

V
V
mA
°C
°C/W
hours

Thermal Analysis

Enter LED specifications to see thermal calculations.

Lifetime Estimation

Thermal analysis will provide lifetime estimates.

PWM Dimming Analysis

50%

Standard Resistor Finder

V
V
mA
Enter LED specifications to find suitable standard resistors.

LED Applications & Examples

Status Indicator LEDs

Application: Power and status indicators in electronic devices

  • Supply: 5V, LED: Red (2.0V), Current: 10mA
  • Resistor: 300Ω, Power: 30mW
  • Efficiency: 40% (LED power / Total power)

LED Strip Lighting

Application: Under-cabinet and accent lighting

  • Supply: 12V, LEDs: 3× White (3.6V), Current: 20mA
  • Resistor: 60Ω, Power: 120mW
  • Series configuration for even brightness

Automotive Applications

Application: Turn signals and brake lights

  • Supply: 12V, LED: Amber (2.1V), Current: 25mA
  • Resistor: 396Ω (use 390Ω), Power: 247mW
  • Use 0.5W resistor for safety margin

How to size an LED series resistor

An LED is a current-driven device, not a voltage-driven one: past its turn-on voltage its current rises almost vertically, so connecting it straight across a supply will let the current run away and destroy it. A series resistor is the simplest way to set a safe, steady current. Its value comes straight from Ohm's law: R = (Vsupply − Vf) / ILED, where Vf is the LED's forward voltage and ILED is the desired current.

Worked reasoning

The resistor's job is to "absorb" whatever supply voltage the LED doesn't. For a red LED (Vf ≈ 2 V) at 20 mA on a 5 V supply, the resistor drops 5 − 2 = 3 V, so R = 3 V / 0.02 A = 150 Ω. Always round up to the next standard value (e.g. 150 Ω → 150 or 160 Ω) so the current stays at or below target.

Don't forget the power rating

The resistor also dissipates power: P = (Vsupply − Vf) × ILED. In the example that is 3 V × 0.02 A = 60 mW, comfortably within a ¼ W part. At higher currents or bigger voltage drops the dissipation grows quickly, so always check it and choose a resistor rated at least twice the calculated power.

Typical forward voltages & tips

Forward voltage depends on LED colour: red/amber ≈ 1.8–2.2 V, green ≈ 2.0–3.0 V, blue/white ≈ 3.0–3.4 V. For several LEDs, wiring them in series and using one resistor is more efficient than one resistor each, as long as the supply exceeds the sum of the forward voltages. For many LEDs or for maximum efficiency, a constant-current driver beats a resistor.

Common questions

Why not connect an LED directly to a battery? With no current limit the LED's current spikes and it burns out (or the battery does). Always limit the current.

Can one resistor drive LEDs in parallel? It's discouraged — small Vf differences make one LED hog the current. Give each parallel LED its own resistor, or wire them in series with a single resistor.

Why an LED Needs a Resistor at All

An LED is a diode, and its current rises exponentially with voltage. Past its forward knee, a few tens of millivolts more produces a very large increase in current — so connecting an LED directly across a voltage source means the current is set by nothing but the source impedance and the diode’s own tolerances. Either it barely lights or it destroys itself; there is no stable middle ground.

The series resistor converts a voltage source into an approximate current source:

R = (Vsupply − Vf) / If

A 5 V supply driving a red LED with Vf ≈ 2.0 V at 20 mA needs (5 − 2)/0.02 = 150 Ω, dissipating 3 V × 20 mA = 60 mW.

Forward voltage depends on colour

ColourTypical Vf
Red1.8–2.2 V
Yellow / amber2.0–2.4 V
Green2.0–3.0 V
Blue / white2.8–3.6 V

Higher-energy photons require a larger band gap and therefore a higher forward voltage, which is why blue and white LEDs will not light at all from a supply that runs a red one comfortably.

Why you should not parallel LEDs on one resistor

Forward voltage varies between parts even from the same reel, and the LED with the lowest Vf takes a disproportionate share of the current. It then runs hotter, which lowers its forward voltage further and draws still more current. Each LED needs its own resistor; a shared one guarantees uneven brightness and shortens the life of whichever device happens to be the greediest.

Where a resistor stops being the right answer

The resistor wastes (Vsupply − Vf) × If as heat, which is acceptable for an indicator but not for illumination. High-power LEDs use a constant-current driver instead, which both wastes far less and holds brightness steady as the supply voltage and the LED’s temperature change.

Frequently Asked Questions

What is the formula for an LED series resistor?

R = (Vsupply − Vf)/If. For a 5 V supply, a 2 V red LED and 20 mA, that gives 150 Ω.

Why does an LED need a resistor?

Because its current rises exponentially with voltage past the forward knee, so a small voltage change produces a large current change. The resistor turns a voltage source into an approximate current source.

What forward voltage should I assume?

Roughly 1.8–2.2 V for red, 2.0–2.4 V for yellow, 2.0–3.0 V for green and 2.8–3.6 V for blue or white. Higher-energy colours need a larger band gap and therefore a higher forward voltage.

Can I use one resistor for several parallel LEDs?

No. Forward voltage varies between parts, so the lowest-Vf LED takes most of the current, heats up, and takes even more. Each LED needs its own resistor.

How much power does the resistor dissipate?

(Vsupply − Vf) × If. In the 5 V red LED example that is 3 V × 20 mA = 60 mW, comfortably within a standard quarter-watt part.

When should I use a constant-current driver instead?

For high-power or lighting LEDs, where resistor losses become significant and brightness must stay constant despite supply and temperature variation. For small indicators a resistor remains the simplest answer.

LED Project Parts