Choosing the Right Resistor for an LED: A Beginner's Guide
Connecting an LED straight to a battery is one of the fastest ways to destroy one, and understanding why is the key to sizing the resistor that prevents it. Unlike a plain resistor, an LED does not obey Ohm’s straight-line relationship between voltage and current — and that difference is exactly why a series resistor is standard practice.
Why LEDs need help limiting current
Below its forward voltage, an LED conducts almost no current at all. Right around that forward voltage, current rises extremely steeply for only a tiny further increase in voltage — a curve, not a straight line. That steepness means even a small, ordinary variation in supply voltage (or in the LED itself, since forward voltage varies part to part) can push current far beyond what the LED is rated for, destroying it in seconds. A series resistor, which does obey Ohm’s law, absorbs the excess voltage and keeps current pinned to a safe, predictable level regardless of small swings in supply.
The calculation
The resistor needs to drop exactly the voltage the LED doesn’t use. Subtract the LED’s forward voltage from the supply voltage to find that drop, then apply Ohm’s law to convert it into a resistance for your target current:
R = (Vsupply − Vforward) ÷ Iforward
For a 9V battery driving a standard red LED (forward voltage around 2V) at a typical 20mA (0.02A): R = (9 − 2) ÷ 0.02 = 350Ω. That resistor, wired in series with the LED, keeps the current at roughly 20mA no matter how the exact forward voltage of that particular LED wobbles a little from the textbook value.
Checking the resistor's power rating
It’s worth double-checking the power the resistor itself will dissipate, using P = I² × R (or equivalently, the voltage drop times the current). In the example above: P = 0.02² × 350 = 0.14W — comfortably inside the 0.25W (quarter-watt) rating of a standard resistor, which covers the overwhelming majority of single-LED indicator circuits. Higher-current LEDs or bigger voltage drops can push past that rating, at which point a larger resistor package becomes necessary.
Rounding to a real part
Resistors aren’t manufactured in every possible value — they come in standard series (E12 is common for general use: 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2, and their ×10 multiples). A calculated value of 350Ω doesn’t exist as a stock part, so round up to the next standard value — 390Ω — rather than down. Rounding up slightly reduces the current below the target, which is the safe direction; rounding down would push more current through the LED than intended.
Typical forward voltages by color
Forward voltage depends mainly on the semiconductor material, which is also what determines an LED’s color:
- Red and amber: roughly 1.8–2.2V
- Yellow and green: roughly 2.0–2.2V
- Blue and white: roughly 3.0–3.4V
These are typical ranges, not guarantees — always check the specific LED’s datasheet where one is available, since forward voltage varies by manufacturer and by the exact current you’re driving it at.
Driving more than one LED
When a project needs several LEDs, the simplest and most forgiving approach is to give each LED its own series resistor, sized the same way, rather than trying to share one resistor across LEDs wired in parallel. LEDs in parallel don’t naturally share current evenly — the slightly lower-forward-voltage LED in the group will tend to hog more current than the others, which can overdrive it while starving its neighbors. Separate resistors sidestep that problem entirely and make each LED’s brightness predictable and independent of the others.