Series LED resistor
The formula and why it works
An LED is a current-driven device. Once its forward voltage is reached, a small increase in voltage produces a large increase in current. A resistor in series converts the excess supply voltage into a predictable current: the voltage across the resistor is the supply minus the total LED forward drop, and Ohm's law gives the resistance for the desired current.
For a 12 V supply, three red LEDs at 2 V each and a target of 20 mA, the resistor drops 12 − 6 = 6 V. R = 6 ÷ 0.02 = 300 Ω. Power is 0.02² × 300 = 0.12 W, so a 1/4 W resistor is the minimum and 1/2 W gives comfortable margin.
Do not parallel LEDs on one resistor
Forward voltage varies from part to part and falls as the LED warms up. Two LEDs in parallel with a shared resistor do not share current evenly; the one with the lower Vf hogs current, heats up, and can enter thermal runaway. Give each LED its own resistor, or use a constant-current driver for anything above a few LEDs.
Forward voltage is not a constant
The Vf in a datasheet is specified at a particular current and temperature. A white LED might be 3.2 V at 20 mA but 3.0 V at 5 mA, and it drops further as junction temperature rises. When the supply voltage is only slightly above the total LED drop, this variation makes the current very sensitive. Leave at least 1 V of headroom across the resistor, or use a current regulator.
Choosing the resistor
Calculate the exact value, then pick the nearest standard E12 value and check the resulting current. A 300 Ω requirement becomes 330 Ω, reducing current from 20 mA to about 18 mA — usually invisible to the eye but meaningful for brightness-critical designs. For tight current control use E24 or E96 resistors and a constant-current source.
Always rate the resistor for at least twice the calculated dissipation. A resistor running near its maximum rating will drift and eventually fail, especially in a sealed enclosure. Geefook supplies resistors, LED drivers and indicator LEDs; send your BOM if you need an exact part number or a second source.
Frequently asked questions
How do I calculate a resistor for an LED?
Subtract the total LED forward voltage from the supply, then divide by the desired current in amps: R = (Vs − N×Vf) ÷ I.
Can I put LEDs in parallel with one resistor?
No. Each LED needs its own ballast resistor. Use a constant-current driver for multiple parallel strings.
What power rating should the resistor have?
At least twice the calculated dissipation. A 0.12 W calculation calls for a 1/4 W part, with 1/2 W preferred for high ambient temperatures.