🔬
🔬 Science & engineering

LED Series Resistor Calculator

Results update as you type.

Your numbers

Understanding the LED resistor calculator — concept and principle

An LED must not be connected straight to a voltage source: its current rises steeply with a small increase in voltage and it can burn out in an instant. This calculator finds the series resistor that sets the LED current, rounds it up to the next standard E12 value, and shows how much power the resistor dissipates. It covers one LED or a string of identical LEDs in series.

LED with series resistor on 5 VOf the 5 V supply, the LED uses 2.0 V and the resistor drops 3.0 V; at 20 mA that needs 150 Ω and 60 mW.The resistor takes the leftover voltage+5 V150 Ω2.0 V20 mA5 V total3.0 Vresistor2.0 VLEDR = 3.0 V ÷ 0.020 A = 150 Ω3.0 V × 20 mA = 60 mW; 1/8 W is enough
The LED keeps 2.0 V; the resistor drops the other 3.0 V at 20 mA, so 150 Ω.

How it is calculated

V_s is the supply voltage, V_f the forward voltage of one LED, n the number of LEDs in series. If the supply is not higher than n · V_f, no resistor can work and the calculator reports that the supply is too low.

The principle

An LED behaves roughly like a fixed voltage drop once it conducts. Kirchhoff's voltage law says the supply voltage is shared between the LEDs and the resistor, so the resistor takes whatever is left: V_s − n·V_f. Ohm's law then sets the current through that leftover voltage. Rounding up to the next standard value slightly lowers the current, which is the safe direction. A larger headroom voltage also makes the current less sensitive to V_f variation.

Worked example

  1. Voltage across the resistor: 5 − 1 × 2.0 = 3.0 V.
  2. Current: 20 mA = 0.020 A.
  3. R = 3.0 / 0.020 = 150 Ω.
  4. 150 Ω is itself an E12 value, so the nearest E12 above is 150 Ω.
  5. Power: 3.0 V × 20 mA = 60 mW; a 1/8 W (125 mW) or 1/4 W resistor is suitable.
How Resistor (Ω) changes with LED current (mA)How Resistor changes with LED current02004006005101520253040Example: 150LED current (mA)
Each point is the calculator re-run with only “LED current (mA)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
LED current (mA)Resistor (Ω)
5600
10300
15200
20150
25120
30100
4075

How to read the result

Typical forward voltages are about 1.8 to 2.2 V for red, yellow and orange LEDs and about 2.8 to 3.4 V for blue, white and true-green LEDs, but always check the datasheet. Many small indicator LEDs are rated for 20 mA, yet they are often bright enough at 2 to 10 mA. Choose a resistor rated for at least twice the calculated power so it runs cool.

Common mistakes

Keep in mind: The calculation uses a fixed forward voltage, while real LEDs vary between units and with temperature. For high-power LEDs, use a constant-current driver and proper heat sinking, and follow the manufacturer's ratings.

Frequently asked questions

What resistor do I need for an LED on 12 V?

For one 2 V LED at 20 mA: (12 − 2) / 0.02 = 500 Ω, so 560 Ω from the E12 series; the current becomes about 17.9 mA and the resistor dissipates about 0.18 W.

Can I connect an LED to 3.3 V without a resistor?

It is not recommended; even small supply differences above V_f cause large current changes.

Sources: Horowitz and Hill, The Art of Electronics, 3rd edition, Cambridge University Press · IEC 60063, Preferred number series for resistors and capacitors

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →