LED Resistor Calculator

Every LED needs a resistor to keep it from burning out. Set the supply voltage, the LED's forward voltage and forward current, and how many LEDs in series or parallel, and this calculator gives the current-limiting resistor from R = (Vsupply − Vf) / If. It rounds to the nearest standard value, works out the power the resistor must shed and a safe wattage rating, and shows the total current — with a live circuit and a warning if the supply is too low. It all runs on your device.

You are in the Physics lab.

The resistor eats the leftover voltage so the LED runs at a safe, steady current.
Resistor value
Nearest standard
Resistor power
Suggested rating
Total current
Status
The resistor sets the current; the LED sets the voltage. An LED clamps the voltage across it near its forward voltage and would happily pass a destructive current if you let it. The series resistor takes up whatever voltage is left — Vsupply − Vf — and turns that into a safe, steady current by Ohm's law: I = (Vsupply − Vf) / R. Rearranged to find R, that is the whole calculation. Too small a resistor and the LED runs hot and dies; too large and it barely glows.

Reading the calculator

What the resistor value, the standard value and the power rating tell you.

1

The exact and the standard value

The tool first gives the exact resistance the maths demands, then the nearest standard value from the common E12 series — rounded up, so the real current lands at or a touch below your target rather than over it. Fit the standard value; a few percent below the target current is invisible to the eye and safe for the LED.

2

Power and a safe rating

The resistor turns the voltage it drops into heat: P = (Vsupply − Vf) · If. A quarter-watt resistor is fine for a single indicator LED, but a big voltage drop or a fat current can exceed it. The suggested rating picks the next standard wattage with headroom so the part runs cool — undersizing it is a common cause of scorched resistors.

3

Series, parallel and the low-supply warning

In series one resistor sets the current for the whole string, so long as the supply beats the sum of the forward voltages. In parallel each LED gets its own resistor and the total current multiplies. If you ask for more LED voltage than the supply can give, the circuit greys out and warns you — you need a higher supply or fewer LEDs in series.

How It Works

Ohm's law applied to the leftover voltage.

1

R = (Vsupply − Vf) / If

Subtract the LED's forward voltage from the supply to get the voltage the resistor must drop, then divide by the target forward current. A 12 V supply, a 2 V LED and 20 mA gives (12 − 2) / 0.02 = 500 Ω. That is Ohm's law solved for R — nothing more exotic.

2

LEDs in series share the current

Stack LEDs in series and their forward voltages add, so the resistor drops Vsupply − n·Vf. The same current threads all of them, which is why one resistor does for the whole string. You can only stack as many as the supply's spare voltage allows — three 3.2 V white LEDs already need 9.6 V before the resistor even starts.

3

Parallel LEDs each need their own

Put LEDs in parallel and each sees the full supply, so each needs its own resistor sized as if it were alone — sharing one resistor lets the LED with the lowest forward voltage steal the current and outshine (then outlive) the rest. The total current is then the sum of the branches. Our Ohm's law calculator explores that resistor on its own.

How do you calculate the resistor for an LED?
Use R = (Vsupply − Vf) / If. Subtract the LED's forward voltage from the supply, then divide by the forward current in amperes. For 12 V, a 2 V LED at 20 mA: R = (12 − 2) / 0.02 = 500 Ω — fit the nearest standard value at or above that. For LEDs in series, subtract every LED's forward voltage.
Why does an LED need a resistor?
Past its forward voltage an LED's current rises almost vertically, so a tiny voltage rise causes a huge current that destroys it. A series resistor fixes the current by taking up the leftover voltage — because current through a resistor is proportional to voltage, it holds the LED at a safe, steady brightness. Without it the LED runs away and burns out.
What power rating should the resistor have?
The resistor dissipates P = (Vsupply − Vf) · If as heat. A 500 Ω resistor dropping 10 V at 20 mA burns 0.2 W, so a ¼ W part would run hot — the tool suggests the next size up with headroom (here ½ W). Always pick a rating comfortably above the calculated power.
Can I put several LEDs on one resistor?
In series, yes — the same current flows through all of them, so one resistor sets the current for the string, as long as the supply exceeds the sum of their forward voltages. In parallel, no — small LED differences make them share current unevenly, so each parallel LED needs its own resistor. This tool models both.

Teaching electronics? You can embed this calculator on your own site free — one line of code, no sign-up.

Add This LED Resistor Calculator to Your Website

Put the LED Resistor Calculator on your own page — free, no sign-up, no watermark. It runs entirely in your visitors' browsers. Copy the snippet and paste it into your page's HTML.

The credit line under the widget links back to LK Forge — please keep it so others can find it too.