LED resistor equation
The resistor absorbs the voltage difference between the supply and the LED forward voltage at the target current.
R = (Vs − Vf) / IP = I²Rwhere:
- 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.
- Select the LED color or enter its forward voltage.
- Enter supply and target current.
- 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) / IP = 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.