KKwikfig.

LED Resistor Calculator

Size the series resistor for one LED from supply voltage, forward voltage and target current — exact ohms, the nearest E12 value, actual current and wattage. Runs entirely in your browser — your numbers never leave this device.

Use this resistor (E12)
330 Ω
Exact requirement 290 Ω — the E12 value above it keeps current at or below target
Exact R
290 Ω
E12 choice
330 Ω
Actual current
17.58 mA
Resistor power
0.1 W
Use rating ≥
0.25 W

The recommended wattage is at least twice the power the resistor actually dissipates, the standard derating habit for a part that runs warm in an enclosed project.

How it works

R = (supply V − forward V) ÷ current (A) | Chosen part = smallest E12 value ≥ R, E12 = 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2 × 10ⁿ | Recommended rating = smallest of 0.25/0.5/1/2/3/5 W that is ≥ 2 × dissipated power

An LED fixes its own forward voltage — about 2 V for a red part, about 3.2 V for a typical white or blue one — and will draw destructive current trying to hold it, so a series resistor must absorb the rest of the supply and set the current: R = (Vs − Vf) ÷ I. Enter the supply, the LED's forward voltage from its datasheet, and the target current in milliamps (20 mA is the standard rating for indicator LEDs), and the exact resistance comes back.

Exact values are rarely stocked values, so the calculator rounds up to the smallest E12 preferred value at or above the requirement — 290 Ω becomes a 330 Ω part. Rounding up, never down, guarantees the actual current lands at or below target: at 330 Ω the 9 V example runs at 17.58 mA, not over 20 mA. The result also shows the power the resistor dissipates and the rating to buy: the smallest standard rating, from 0.25 W to 5 W, that is at least twice the dissipation, the usual derating habit for a part that will run warm.

Worked examples

A red LED on 5 V at 20 mA — an exact E12 hit

Input
Supply = 5 V, Forward = 2 V, Current = 20 mA
Working
R = (5 − 2) ÷ 0.020 = 150 Ω, which is itself an E12 value, so the actual current stays exactly 20 mA. Power = 3 V × 0.020 A = 0.06 W, so a 0.25 W part gives the 2× headroom.
Result
Use 150 Ω, rated 0.25 W — actual 20 mA

A white LED on 9 V at 20 mA

Input
Supply = 9 V, Forward = 3.2 V, Current = 20 mA
Working
R = (9 − 3.2) ÷ 0.020 = 290 Ω. The smallest E12 value at or above 290 is 330 Ω, giving an actual current of 5.8 ÷ 330 = 17.58 mA and a dissipation of 0.10 W.
Result
Use 330 Ω, rated 0.25 W — actual 17.58 mA

A white LED on 12 V at 15 mA

Input
Supply = 12 V, Forward = 3.4 V, Current = 15 mA
Working
R = (12 − 3.4) ÷ 0.015 = 573.33 Ω. The E12 choice is 680 Ω, the actual current is 8.6 ÷ 680 = 12.65 mA, and the resistor dissipates 0.11 W.
Result
Use 680 Ω, rated 0.25 W — actual 12.65 mA

Frequently asked questions

Why round the resistor up to E12 instead of using the exact value?

Because resistors are manufactured in preferred-value series, and E12 (twelve values per decade) is the common one for general parts. Rounding up is also the safe direction: a larger resistance can only reduce the LED current below target, while rounding down to 270 Ω in the 9 V example would push the current above the 20 mA the LED was specified for.

What forward voltage should I enter?

The value from your LED's datasheet at your target current — typical figures are about 1.8–2.2 V for red, 2–2.4 V for green and yellow, and 3–3.4 V for blue and white. Forward voltage varies between parts and rises slightly with current, which is another reason the E12 round-up margin is welcome rather than wasted.

Can one resistor serve several LEDs?

For LEDs in series, yes: add their forward voltages together and enter the sum as the forward voltage — two white LEDs at 3.2 V each are a 6.4 V load, and the supply must exceed that total. LEDs in parallel should each get their own resistor, because no two share current exactly equally and one part will hog current and fail first.

Why a resistor rated at twice the dissipated power?

A resistor run at its full rating runs very hot — hot enough to discolour a board and to drift in value — and its rating assumes free-air conditions that a closed project box does not provide. Doubling the rating (0.06 W dissipated, 0.25 W part) keeps the part cool, stable and long-lived for a cost of essentially nothing.

What if the supply voltage is below the forward voltage?

The LED cannot light: there is no positive voltage left for a resistor to drop, and this calculator says so rather than inventing a negative resistance. Use a higher supply, a lower-forward-voltage LED, or a boost driver circuit designed for the job.

Related tools

More in Electrical Calculators · Browse all tools