Select language

Choose the language for the tools.

Electrical Fundamentals & Circuit Analysis

LED Resistor Calculator

Calculate the exact LED series resistor, nearest E12 and E24 values, actual current, dissipation, and a practical resistor power rating.

IEC 60063

LED resistor equation

The resistor absorbs the voltage difference between the supply and the LED forward voltage at the target current.

Exact resistance
R = (Vs − Vf) / I
Resistor power
P = I²R

where:

Vs
Supply voltage[V]
Vf
LED forward voltage[V]
I
LED current[A]

How to size an LED resistor

Subtract the LED forward voltage from the supply voltage, then divide by the target current.

  1. Select the LED color or enter its forward voltage.
  2. Enter supply and target current.
  3. Choose the preferred resistor and verify power.

Worked LED resistor example

For 12 V, Vf = 2.0 V, and 20 mA, the exact resistor is (12−2)/0.020 = 500 Ω; dissipation is 0.20 W and the doubled design minimum is 0.4 W.

R = 500 Ω

P = 20 mA² × 500 Ω = 0.20 W

Method & Sources

Method

Formula used

  • R = (Vs − Vf) / I
  • P = I²R

Input basis

The resistor absorbs the voltage difference between the supply and the LED forward voltage at the target current.

  • Supply voltage [V]
  • LED color preset
  • Custom LED forward voltage [V]
  • LED target current [mA]
  • Vs — Supply voltage [V]
  • Vf — LED forward voltage [V]
  • I — LED current [A]

Units

V · mA · A

Display and rounding

No separate display or rounding rule is stated on this page.

Scope and limits

  • DC supply and steady forward current
  • LED forward voltage is treated as a constant at the selected current
  • Verify LED polarity, maximum current, thermal limits, reverse voltage, and supply tolerance.

Sources

  • IEC 60063, preferred number series for resistorsEdition not stated on this page; clause and table identifiers are preserved verbatim.
  • IEC 60063 preferred value seriesStandard series used for E12 and E24 resistor selection.

E12 and E24 selection

Preferred values rarely equal the exact calculation. Compare actual current for both series and select a standard resistor that remains within the LED rating.

Thermal and tolerance checks

Check supply tolerance, resistor tolerance, LED binning, ambient temperature, and enclosure heating. A resistor rated at twice the calculated dissipation gives practical margin.

Formulas and preferred values

The calculator uses the DC resistance equation and P = I²R. E12 and E24 preferred values follow IEC 60063; confirm the LED and resistor manufacturer limits before final selection.

Assumptions

  • DC supply and steady forward current
  • LED forward voltage is treated as a constant at the selected current

Important Warnings

  • Verify LED polarity, maximum current, thermal limits, reverse voltage, and supply tolerance.

FAQ

Why is the exact result 500 Ω for 12 V, 2 V, and 20 mA?

The voltage across the resistor is 12 − 2 = 10 V, and 10 V / 0.020 A = 500 Ω.

Should I use E12 or E24?

E24 offers finer steps. Choose the preferred value that keeps current and power within the LED and resistor limits.

Why does the calculator recommend at least twice the dissipation?

The two-times screen provides thermal margin for tolerance, ambient temperature, enclosure, and long-term drift.

Can I connect LEDs in series?

Yes when the supply exceeds the sum of forward voltages. Recalculate using the total forward voltage and verify one shared current.

Can I use this for mains LEDs?

Do not use a simple resistor as the only protection for a mains LED. Use a certified LED driver and insulation system.