LED Resistor Calculator – Series Resistor & Nearest E12 Value

Use this free LED Resistor Calculator to find the series resistor that protects an LED from burning out. Enter the supply voltage, the LED's forward voltage and the current you want — you get the exact resistor, its power, and the nearest standard E12 value to buy.

R = ? LED (Vf) Vs

Formula

R = (Vs − Vf) ÷ If  •  Resistor power: P = (Vs − Vf) × If
If is in amps inside the formula (20 mA = 0.02 A) — the calculator converts for you.

How to use

Worked example

A red LED (Vf = 2 V) runs from a 9 V battery at 20 mA = 0.02 A.
R = (9 − 2) ÷ 0.02 = 350 Ω.
Resistor power = 7 × 0.02 = 0.14 W, so a standard 0.25 W resistor is safe.
350 Ω is not an E12 value — the nearest E12 value above it is 390 Ω, which gives (9 − 2) ÷ 390 = 17.949 mA, slightly dimmer but safer.

FAQ

Why does an LED need a resistor at all?
An LED's current rises extremely fast once the voltage passes Vf. Connected straight to a battery it would draw far too much current and burn out in seconds. The resistor limits the current to a safe value.

Why pick the E12 value above, not below, the exact answer?
A smaller resistor lets more current flow than planned. Rounding up to the next standard value keeps the current at or below your target, so the LED stays safe — just a touch dimmer.

What resistor wattage should I buy?
Choose a rating at least twice the calculated power for safety. Here 0.14 W × 2 = 0.28 W, so use a common 0.5 W part — or at minimum a 0.25 W one run within its limit.