An LED circuit can look deceptively simple: a power supply, a light-emitting diode, and one resistor. Yet many first builds fail for predictable reasons. The designer uses the nominal forward voltage as if it were fixed, selects a resistor based on a maximum current rather than a sensible operating current, or calculates resistance but forgets resistor heating.
This guide walks through the arithmetic, shows how to select a real part rather than a theoretical value, and explains how to handle supply variation. You can reproduce every calculation on paper, in a spreadsheet, or with a calculator. The goal is a circuit that is understandable and repeatable, not simply one that lights up on a breadboard.
Why the resistor matters
Unlike a conventional resistor, an LED has a nonlinear current-versus-voltage characteristic. Its forward voltage changes with device type, manufacturing variation, current, and temperature. Once the device conducts, a small increase in applied voltage can cause a significant increase in current. Connecting an ordinary indicator LED directly to a stiff 5 V source is therefore not a reliable way to control current.
A resistor in series consumes the difference between the supply voltage and the LED's actual forward voltage. It also limits how rapidly the current changes when those voltages move. For one LED, the first-pass calculation is:
R = (VS - VF) / IF
Where VS is the supply voltage, VF the LED forward voltage at the intended operating current, and IF the selected forward current. For N similar LEDs in series:
R = (VS - N × VF) / IF
These expressions assume a DC supply and an LED string whose forward voltage is known approximately. They are not a substitute for an LED driver when the supply spans a wide range or the LED is high power.
Worked example 1: one red LED on 5 V
Suppose an indicator LED has an illustrative forward voltage of 2.0 V at 10 mA. We want a conservative 10 mA operating current rather than automatically using 20 mA.
VS = 5.0 V
VF = 2.0 V
IF = 0.010 A
R = (5.0 - 2.0) / 0.010
= 300 ohms
A 300 Ω resistor is available in the E24 series. If your parts drawer holds only E12 values, 330 Ω is the next standard value above 300 Ω. The estimated current becomes:
I = (5.0 - 2.0) / 330 = 0.00909 A = 9.09 mA
That is entirely reasonable for many modern high-efficiency indicator LEDs. The proper current depends on the LED datasheet, viewing distance, environment, and brightness requirement; 20 mA is not a universal target.
For the selected 330 Ω part, the power is:
P = I² × R
= (0.00909)² × 330
≈ 0.0273 W = 27.3 mW
A resistor rated for 0.125 W at the relevant ambient temperature would have comfortable nominal margin in this particular example. That does not mean any physically tiny resistor is automatically suitable: check its package rating and derating curve.
Worked example 2: a blue LED on 12 V
Now assume a blue LED with VF = 3.2 V at a design current of 20 mA:
R = (12.0 - 3.2) / 0.020
= 440 ohms
An E12 choice above the calculation is 470 Ω. The resulting nominal current is:
I = 8.8 / 470 = 18.72 mA
P = (8.8)² / 470 ≈ 0.165 W
A 0.25 W rated resistor can be adequate under suitable thermal and ambient conditions, but the nominal dissipation already uses about two-thirds of that rating. For a hot enclosure or continuous operation, a 0.5 W part may offer a more useful thermal margin. Check the manufacturer's derating curve rather than applying a universal multiplier blindly.
Important distinction: the resistor's power is not the same as the LED's power. The resistor burns the excess voltage as heat; the LED power is approximately VF × IF.
Three LEDs in series: count the voltage drops first
A 12 V supply can run three red LEDs in series if their combined forward drop leaves sufficient headroom. Using three 2.0 V LEDs at a target 20 mA:
VLED,total = 3 × 2.0 = 6.0 V
R = (12.0 - 6.0) / 0.020 = 300 ohms
Selecting 330 Ω again gives about 18.18 mA, with nominal resistor dissipation:
P = (6.0)² / 330 ≈ 0.109 W
A 0.25 W rated resistor is a sensible starting point if its actual ambient conditions permit. Three blue LEDs on the same nominal supply would consume about 9.6 V, leaving only 2.4 V of resistor headroom. That design would be more sensitive to a low supply voltage and to forward-voltage variation.
A series string shares one current; the individual LEDs do not need separate resistors when the string current is correctly limited. For parallel branches, however, each branch should normally have its own current-limiting element. Sharing one resistor between unmatched parallel LEDs can produce unequal branch currents.
Calculate with supply limits, not just a nominal voltage
Real supplies are not all perfectly regulated. Consider a nominal 12 V rail that may reach 13.8 V, and a blue LED whose forward voltage might be as low as 3.0 V at the relevant conditions. With a 470 Ω resistor:
Imax,estimate = (13.8 - 3.0) / 470
≈ 22.98 mA
Presistor,max ≈ (13.8 - 3.0)² / 470
≈ 0.248 W
The nominal 0.165 W resistor dissipation becomes almost 0.25 W in this illustrative upper-supply, lower-forward-voltage case. A 0.25 W resistor operating near its nameplate rating may be a poor choice in a warm enclosure. A higher power rating, greater resistance, or a constant-current driver may be appropriate.
Do not assume these numbers are your LED's guaranteed limits. Read the actual LED datasheet for forward-voltage ranges at the specified current and temperature, and read the supply specification for voltage tolerance and transients. Automotive systems in particular can experience conditions that a simple resistor calculation does not handle.
A compact calculation checklist
Before ordering parts, answer six questions:
- What is the minimum and maximum DC supply voltage under real operating conditions?
- What does the LED datasheet say about forward voltage at the intended current and temperature?
- What forward current provides the required brightness without approaching absolute maximum ratings?
- Which available resistor value keeps current acceptable at both voltage extremes?
- What is the worst-case resistor power, and how does its rated power change with ambient temperature?
- Is a resistor actually the right topology, or would a regulated LED driver be safer and more efficient?
For quick checks, the LED series resistor calculator lets you enter supply voltage, LED forward voltage, current, and LEDs in series. I still recommend recording the assumptions alongside the result: a calculator knows what you entered, not whether the value matches your hardware.
Why the next-higher standard resistance is often preferred
When the design current is a desired upper target rather than a strict lower brightness requirement, selecting a slightly higher resistor is a useful conservative habit. For example, 440 Ω theoretical resistance becomes 470 Ω in the E12 series, reducing current slightly. But this is a starting heuristic, not a universal law. Some applications require a minimum light output over a wide voltage and temperature range; those need a full min/max check.
Resistor tolerance also matters. A nominal 470 Ω, ±5% resistor might be approximately 446.5–493.5 Ω. Lower resistance produces more current, other factors equal. With a wide input-voltage window, combine the actual minimum resistance and minimum LED forward voltage to estimate maximum current. Use the high resistance, low supply, and high forward voltage corner to estimate minimum light output.
The logic is simple: design with ranges; do not confuse a typical value with a guaranteed limit.
Test the prototype safely
For a first prototype, use a current-limited bench supply at a low, appropriate voltage. Increase voltage gradually while measuring current, LED voltage, and resistor voltage. Compare the actual current with (VS - VF) / R. A resistor may feel warm, but touch is not a calibrated thermal test. If temperatures matter, measure them with suitable equipment after thermal equilibrium.
Measure across the resistor to calculate current (I = VR / R) without breaking the series connection. Confirm the supply polarity and LED orientation before applying power. If a current measurement appears higher than expected, stop and inspect wiring and resistor markings rather than allowing the LED to operate outside its rating.
FAQ
Is 20 mA the correct current for every small LED? No. Many modern indicators are visible at a few milliamps or less; use the datasheet and application requirements.
Can one resistor protect several LEDs? Yes, for LEDs wired in one series string with enough supply voltage. Separate parallel strings normally need independent current limiting.
Is 1/4 W always enough for 12 V LEDs? No. Power depends on voltage drop and current, and actual thermal conditions can require significantly more margin.
What if the resistor calculation gives a negative value? The supply is below the assumed LED forward-voltage requirement. A normal series resistor cannot solve that; reconsider the supply or topology.
Final thought
A reliable LED circuit comes from four checks, not one formula: choose an appropriate current, estimate realistic voltage limits, select an available resistor, and verify power at the worst operating corner. The calculation is fast; documenting the assumptions is what makes the result reusable.
Top comments (1)
This is interesting, thank you for the breakdown! I have been wanting to mess around with LEDs.