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. A resistor running right at its rated power gets noticeably warm to the touch; one running well past it can discolor, smell faintly of hot plastic, or fail outright — a resistor that’s warm in normal operation isn’t automatically a problem, but checking the math ahead of time is far easier than diagnosing it after the fact.
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.
It’s also worth knowing that forward voltage isn’t perfectly fixed even for one specific LED — it shifts slightly with the current driving it (a higher current pushes forward voltage up a bit) and with temperature (a warmer LED tends to need slightly less voltage for the same current). None of this matters much for a hobby indicator circuit, where the resistor’s job is to keep current in a safe, roughly-right range rather than pin it to an exact number. It matters more in precision applications, which is one reason datasheet values, measured under specific stated conditions, are more trustworthy than any general table — including the typical ranges above — once accuracy actually counts.
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.
More worked examples across common supplies
The same formula, run for a few different real-world combinations, shows how much the resistor value moves around depending on supply, LED color, and target current:
- 6V supply, standard red LED (2V, 20mA): R = (6 − 2) ÷ 0.02 = 200Ω, rounds up to a standard 220Ω. Power at 220Ω: about 0.08W.
- 4.5V supply (three AA cells), yellow or green LED (2.1V, 15mA): R = (4.5 − 2.1) ÷ 0.015 ≈ 160Ω, rounds up to 180Ω. Power: about 0.04W.
- 9V supply, blue or white LED (3.2V, 20mA): R = (9 − 3.2) ÷ 0.02 = 290Ω, rounds up to 330Ω. Power: about 0.12W. Blue and white LEDs need a noticeably smaller resistor than red at the same supply, simply because their higher forward voltage leaves less for the resistor to drop.
- 3V supply (two AA or a coin cell), red LED at a gentler 10mA: R = (3 − 2) ÷ 0.01 = 100Ω — and 100Ω is already a standard E12 value, so no rounding is needed at all. Power: about 0.01W, comfortably tiny.
Every one of these combinations, plus more, is laid out side by side in the LED Resistor Reference — a table of common LED colors across common battery voltages, generated directly from this calculator’s own math rather than a separately maintained chart. It’s a useful shortcut when you already know your supply and LED color and just want the standard resistor value, without typing the numbers into the calculator yourself.
What no resistor actually does
It’s worth understanding the failure mode, not just avoiding it. Without a resistor, an LED’s current is limited only by whatever small internal resistance the LED and the battery happen to have — which is far too little to keep current anywhere near a safe level. Current surges, the LED heats up, its forward voltage drops slightly as it warms (a property called a negative temperature coefficient), which lets even more current flow, which heats it further still — a runaway loop that ends with the LED burning out, often within seconds. A resistor breaks that loop by design: as current tries to rise, the extra voltage it would need gets dropped across the resistor instead of the LED, capping the current at a safe, predictable level regardless of how the LED’s own resistance shifts with temperature. For a closer look at that mechanism, see What Actually Happens When You Skip the LED Resistor.
What an undersized resistor actually does
It’s easy to assume “any resistor is better than none,” but a resistor that’s too small barely helps. Take the 9V/2V/20mA red LED example from earlier, which called for 390Ω. Swap in a 100Ω resistor instead and Ohm’s law shows the actual current: with 7V across it (9V supply minus the LED’s 2V), I = 7 ÷ 100 = 0.07A, or 70mA — three and a half times the 20mA the LED was meant to run at. Go smaller still, to 47Ω, and the current jumps to 7 ÷ 47 ≈ 0.149A (about 149mA), more than seven times the target. Both of those currents are well past what a standard 5mm indicator LED is rated for, and the LED won’t survive them for long. “Some resistance” isn’t the goal — the right resistance, sized for the target current, is what actually protects the part.
Practice: size your own resistor
Try this one before checking the answer: a 6V supply driving a yellow LED with a 2.1V forward voltage at a target current of 20mA — what resistor value is needed, and what’s the nearest standard part? Answer: R = (6 − 2.1) ÷ 0.02 = 195Ω, which rounds up to the standard value 220Ω. Working through a few of these by hand, then checking against the LED Series-Resistor Calculator, is enough repetition for the formula to stop feeling like a lookup and start feeling like arithmetic.
A note on the power source
Every example on this page uses a battery — a coin cell, AA cells, or a 9V battery — which is the right and only source to reach for on an LED project like this. Batteries carry their own handling rules worth knowing, especially coin cells and lithium cells, covered in full in the site’s low-voltage safety guide.