← All calculators

LED resistor calculator

Resistor value, current range and power for an LED string

This LED resistor calculator chooses the series resistor for a string of LEDs from a supply voltage, using real E24 or E96 values, and then shows how far the current can drift and how much power the resistor must withstand. Enter the supply and its tolerance, the number of LEDs in series, the target current and the datasheet forward voltages. The resistor is rounded up to the next standard value, so the typical current never exceeds the target.

How the LED series resistor is calculated

R = (Vs − n × Vf,typ) / If,target Ityp = (Vs − n × Vf,typ) / R

Vs is the supply, n the number of LEDs in series and Vf the forward voltage from the LED datasheet at your operating current. Forward voltage varies between parts and moves with current and temperature, so brightness follows the supply; the next section shows by how much.

Current range and resistor power rating

Imax = (Vs × (1 + tolS) − n × Vf,min) / (R × (1 − tolR)) Imin = (Vs × (1 − tolS) − n × Vf,max) / (R × (1 + tolR))

PR,worst = Imax² × R × (1 − tolR)

Every tolerance is taken in its worst direction. The resistor power rating must exceed the worst-case dissipation multiplied by a derating factor, which is 2 by default. If the supply is not above the voltage of the whole string, no resistor can work and every number is shown as not physical, with the reason.

Worked example

With a 5 V supply, ±5 %, 1 LED, 10 mA and forward voltages of 1.8 V minimum, 2 V typical and 2.4 V maximum, the ideal resistor of 300 Ω is itself an E24 value, so the tool selects it. The typical current is 10 mA. Over the supply tolerance, the Vf spread and ±1 % resistors it ranges from 7.756 mA to 11.62 mA. The resistor dissipates up to 40.08 mW, so with the derating factor it needs a rating of at least 80.2 mW, which a 0603 resistor (100 mW) meets.

Checks

The checks are headroom (the lowest possible current must stay above zero, otherwise the LEDs may not light at low supply or high Vf), the LED maximum current when you enter it, the resistor power rating and assumed data. Headroom cannot be fixed by the resistor value; the fixes are fewer LEDs in series, a separate resistor for each string, a higher supply or a constant-current driver. A constant-current driver is also the better choice when the current spread is large, and parallel LEDs need one resistor each.

Limits

Package power ratings are typical thick-film values and are marked as assumed until you enter your own, so verify them in the resistor datasheet. Results are estimates for prototyping: confirm them against the datasheets and on the bench.

Other calculators