LED Resistor Calculator

Work out the current-limiting resistor an LED needs, then pick the nearest standard value and a resistor with enough power rating.

Exact resistor
Nearest E12 (rounded up)
Actual current
Resistor power
Suggested rating

Runs entirely in your browser. Nothing you enter is sent anywhere.

How it works

An LED drops a roughly fixed forward voltage (Vf). The resistor has to drop the rest of the supply voltage at the current you want, so its value is the leftover voltage divided by the current.

Standard resistors come in fixed series. The calculator rounds up to the next E12 value so the current ends up slightly below your target rather than above it, then shows the real current and the power the resistor will dissipate.

R = (Vsupply − n × Vf) / I
P = I² × R

Worked example

A red LED (Vf ≈ 2.0 V) on a 5 V supply at 20 mA needs (5 − 2.0) / 0.020 = 150 Ω. 150 Ω is an E12 value, so the current stays at 20 mA and the resistor dissipates 0.06 W; a standard 1/4 W resistor is fine.

Frequently asked questions

What forward voltage should I use?

Check the LED's datasheet. As a rough guide, red, orange and yellow LEDs are about 1.8–2.2 V, and blue, white and true green LEDs are about 2.8–3.4 V.

Can I drive several LEDs with one resistor?

Yes, if they are in series and the supply voltage is higher than their combined forward voltage. Don't put LEDs in parallel on one resistor: small differences in Vf make them share current unevenly.

Why does my LED current come out lower than I asked for?

The calculator rounds up to the next standard resistor value, which slightly reduces the current. That keeps the LED within its rating.

Related tools