How to Pick the Right Series Resistor for an LED
Why an LED needs a resistor, the Ohm's-law formula that sizes it, how to read forward voltage and current from a datasheet, and how to choose a standard value and power rating that won't cook.
Wire an LED straight across a battery and one of two things happens: it glows far too dimly because the supply is too low, or it flares bright for a moment and then dies. The second outcome is the common one, and it surprises people because an LED looks like such a simple part. The catch is that an LED is not a resistor — it is a diode, and a diode does almost nothing to limit the current flowing through it. Left unchecked, that current climbs until the junction overheats. The series resistor is the small, cheap part that keeps the whole thing alive.
Why an LED can’t run bare
A resistor obeys Ohm’s law smoothly: double the voltage across it and the current doubles. A diode does not. Below its forward voltage (Vf) almost no current flows; above it, current rises almost vertically for a tiny change in voltage. That steep curve is why you control an LED by setting its current, not its voltage. You can’t reliably pick a voltage that lands on the right spot of that curve — a few hundredths of a volt is the difference between dim and destroyed, and Vf drifts with temperature anyway. So you feed the LED from a higher supply voltage and put a resistor in series to absorb the difference. The resistor sets the current, and the LED simply takes whatever voltage it needs to pass that current.
The formula
A series resistor sizes from one line of arithmetic:
R = (Vsupply − Vforward) / I
The numerator is the voltage the resistor has to drop — your supply minus what the LED already eats. The denominator is the current you want, in amps. If you’re driving several LEDs in a single series chain, they share one current but each adds its own forward-voltage drop, so the formula becomes:
R = (Vsupply − n × Vforward) / I
A worked example: a 9 V supply, one red LED with Vf ≈ 2.0 V, target current 20 mA (0.020 A). That’s R = (9 − 2) / 0.020 = 350 Ω. You won’t find a 350 Ω resistor in a standard kit, which is where the next step comes in.
Round up, not down
Real resistors come in fixed series — E12 has twelve values per decade (the 10 %-tolerance set: 10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82 and their decade multiples), while E24 packs twenty-four (the 5 % set). Your 350 Ω calculation lands between the E12 values 330 Ω and 390 Ω.
Always round up to the next standard value. A larger resistor means slightly less current, which means a slightly dimmer LED and a longer-lived one. Rounding down pushes more current than you designed for and eats into the part’s safety margin. Picking 390 Ω here gives an actual current of (9 − 2) / 390 ≈ 17.9 mA — comfortably under 20 mA and visually indistinguishable. The LED Series Resistor Calculator does this rounding for you and reports the real current you’ll get at the standard value, so you can see exactly how far you’ve backed off.
Don’t forget the power rating
A resistor that’s the right resistance can still fail if it can’t shed the heat it produces. The power it dissipates is:
P = (Vsupply − n × Vforward) × I
In the example, P = 7 V × 0.018 A ≈ 0.13 W. That’s right at the edge of a common 1/8 W part and well within a 1/4 W one. The sensible rule, and the one the calculator applies, is to choose a rating at least twice the calculated dissipation. Headroom keeps the resistor running cool, which keeps its value stable and its lifespan long. Skimp here and a correctly-sized resistor will still char and drift over time.
Reading the two numbers that matter
Everything above depends on two figures from the LED’s datasheet: forward voltage and forward current. Typical forward voltages cluster by color because they track the semiconductor chemistry — red and infrared sit lowest (around 1.5–2.0 V), green and yellow in the middle (≈ 2.1–2.2 V), and blue, white, and UV highest (≈ 3.2–3.5 V). Forward current for standard indicator LEDs is usually 20 mA, though many modern parts are comfortable and plenty bright at 10 mA or even 5 mA — running below the maximum is a free reliability win. The calculator ships with color presets for exactly these forward-voltage values so you can sanity-check a part you don’t have a datasheet for.
When the math says “no”
If the total LED forward voltage meets or exceeds your supply — for instance, three blue LEDs at 3.2 V each (9.6 V) on a 9 V supply — there is no resistor that will make them light. The voltage is simply gone before any is left to push current. The fix is to shorten the chain or raise the supply voltage; no clever resistor value rescues it. The calculator flags this case directly rather than returning a meaningless number.
Put it together
The whole job is four inputs — supply voltage, forward voltage, forward current, and how many LEDs are in series — and two outputs you actually solder in: a resistor value and a power rating. Get into the habit of rounding the resistance up and doubling the wattage, and your LEDs will outlast the rest of the circuit. Drop your numbers into the LED Series Resistor Calculator to get the exact resistance, the nearest E12 or E24 standard value, the real current at that value, and a recommended power rating in one shot — then check how long that current will last on a given cell with the Battery Runtime Calculator.
Try the tools from this guide
-
LED Series Resistor Calculator (Ohm's Law)
Calculate the right series resistor for an LED given supply voltage, forward voltage and current.
-
Battery Life Runtime Calculator (mAh)
Calculate how long a battery lasts at a given current draw — mAh to hours, Wh, and screen-on time.
-
Custom Unit Converter (Build Your Own)
Define your own units of measurement and save them — perfect for niche workflows.