Electrical · Engineering calculator

LED Resistor Calculator

Enter supply voltage, LED forward voltage and current to get the resistor value, its power rating requirement and the nearest standard values to buy.

Open calculator
Engineering calculatorLED Resistor Calculator
LED Resistor Calculator inputs

Red ≈ 2.0 V, green/yellow ≈ 2.1 V, blue/white ≈ 3.2 V.

Last updated: 2026-09-15

How the calculation works

  • The resistor drops the voltage the LEDs don't use: supply minus total forward voltage.
  • Ohm's law sets the resistance for the target current; P = V_drop × I sets the resistor's minimum power rating.
  • The nearest E12 standard values are suggested since resistors come in fixed series.

Worked example

A 12 V supply driving one red LED (2.0 V, 20 mA): R = (12 − 2)/0.02 = 500 Ω → nearest standard 510 Ω. Power = 10 × 0.02 = 200 mW → use a 1/2 W resistor, not 1/4 W.

Interpreting the result

The resistor converts excess voltage into heat to hold the current steady — that's why power LEDs need switching drivers instead (efficiency). If the calculated power exceeds ~100 mW, step up to a larger package or reconsider the design. Never connect parallel LEDs to one shared resistor: Vf mismatch sends most current through one LED.

Assumptions

  • Constant Vf — it actually varies with current and temperature.
  • Indicator-class currents (5–25 mA).

Limitations

  • Not for power LEDs above ~100 mA — use a constant-current driver.
  • Does not handle mixed colors in series (different Vf per color).

Series resistor for one LED at 20 mA

Typical forward voltages are used; check your LED's datasheet for the real figure.

SupplyLEDCalculated resistorNext standard E12 valueResistor power
5 Vred (≈ 2.0 V)150 Ω150 Ω60 mW
5 Vwhite or blue (≈ 3.2 V)90 Ω100 Ω36 mW
9 Vred (≈ 2.0 V)350 Ω390 Ω140 mW
12 Vred (≈ 2.0 V)500 Ω560 Ω200 mW
12 Vwhite or blue (≈ 3.2 V)440 Ω470 Ω176 mW
24 Vwhite or blue (≈ 3.2 V)1.04 kΩ1.2 kΩ416 mW

R = (supply voltage − LED forward voltage) ÷ LED current.

Worked scenario: a red LED on a 12 V supply

With 12 V, a 2 V LED and 20 mA, the resistor must drop 10 V and works out to 500 Ω. It dissipates 200 mW, so a ¼ W resistor is comfortable.

Why you round up to a standard value

Resistors come in preferred values, so the exact number is rarely available. Choose the next value up: it lowers the current slightly and the LED simply glows a little less, whereas a lower value would push the LED above its rated current.

Mistakes to avoid

  • Using a typical forward voltage that does not match the actual LED. Blue and white LEDs differ from red and yellow ones.
  • Forgetting the resistor's power rating when the supply is high.
  • Wiring several LEDs in parallel on one resistor. Small differences between LEDs then make the current share unevenly; give each its own resistor or wire them in series.

Frequently asked questions

What resistor for a 12V LED?

Depends on the LED: a 12 V 'LED with built-in resistor' needs none; a bare 2 V red LED on 12 V needs (12−2)/0.02 = 500 Ω.

Why not connect LEDs directly in parallel?

Forward voltage varies part-to-part; the lowest-Vf LED hogs current and burns out, then the next one follows. One resistor per LED, or proper series strings.

Related tools

Technical references