EN

LED resistor

Current-limiting resistor, power and series and parallel arrangements

Calculator

Supply and LED
V
V
mA
Arrangement

Why a resistor is needed

An LED is a diode: below its forward voltage it barely conducts and, above it, the current grows exponentially. A few tenths of a volt more can multiply the current by ten. Moreover, the forward voltage varies between units of the same batch and falls with temperature (about 2 mV/°C): connected straight to a voltage source, the LED heats up, conducts more, heats up even more and destroys itself. The series resistor turns the voltage source into an approximate current source.

\[ R = \frac{V_S - n\,V_F}{I_F} \qquad P_R = I_F^2\,R \qquad I_{\text{actual}} = \frac{V_S - n\,V_F}{R_{\text{std}}} \]

The calculator picks the next higher standard value, which gives a current slightly lower than requested and never higher. For power, use a resistor rated for at least twice what it dissipates. If the supply varies (in a car, a nominal 12 V reaches 14.4 V with the engine running), calculate with the maximum voltage.

Forward voltage by colour

ColourWavelengthMaterialTypical VF
Infrared850–940 nmGaAs, AlGaAs1.2 to 1.6 V
Red620–635 nmAlGaInP1.8 to 2.2 V
Orange600–610 nmAlGaInP1.9 to 2.2 V
Yellow585–595 nmAlGaInP2.0 to 2.2 V
Yellow-green565–575 nmGaP, AlGaInP2.0 to 2.4 V
True green520–530 nmInGaN2.8 to 3.4 V
Blue460–470 nmInGaN2.8 to 3.4 V
Whiteblue + phosphorInGaN2.8 to 3.4 V
Ultraviolet365–405 nmInGaN, AlGaN3.1 to 4.0 V

Indicative values at rated current; the datasheet of each LED gives the typical and maximum value.

What current to use

Series or parallel

In series, all the LEDs carry the same current and one resistor per string is enough; it is the most efficient option if the supply allows it. Always leave at least 1 to 2 V for the resistor: if almost all the voltage drops across the LEDs, a small variation in VF or in the supply changes the current a lot.

In parallel, each string needs its own resistor. If several LEDs share a single one, the one with the lowest VF takes almost all the current, heats up, its VF drops further and it ends up failing; then the next one gets all the current and the same happens to it.

LEDs driven by a microcontroller

Reverse voltage and alternating current

LEDs withstand very little reverse voltage, normally 5 V. In AC circuits, or where the polarity may be reversed, a diode is placed in antiparallel with the LED (or a second LED) so that the reverse voltage never exceeds the drop of that diode.

Related: Ohm's law and power, transistor as a switch, optocouplers and pull-up resistors.