LED series resistor calculator

R = (Vs − n·Vf) / I for LEDs in series. 5 V, 2 V, 20 mA → 150 Ω. Nearest E24 shown. Not a constant-current driver.


150 Ω

Series current limiter

A single LED on a voltage rail needs a resistor so the current is set by Ohm’s law, not by the LED’s steep I–V curve. The drop across the resistor is the leftover voltage after the LED (or the string) takes its forward voltage:

R = (Vs − n × Vf) / I

I is in amperes. If you type milliamps, the page divides by 1000. Dissipation in the resistor is P = (Vs − n·Vf) × I, shown next to the ohms.

How to use it

  1. Supply Vs — USB 5 V, a 3.3 V rail, a 12 V automotive node, whatever feeds the string.
  2. Vf from the LED datasheet (often ~2 V red, ~3 V blue/white). Guessing 2 V for a white LED will undersize R.
  3. Current in mA. 10–20 mA is a typical indicator; many modern LEDs are happy at 5 mA.
  4. n = how many LEDs in series on that one resistor. Parallel LEDs each need their own resistor; this page does not size that.

Worked example: 5 V, one LED, Vf = 2 V, 20 mA → (5 − 2) / 0.020 = 150 Ω, 60 mW. E24 already lists 150 Ω, so the “nearest E24” line matches. A ¼ W part is plenty.

If n × Vf is already above Vs, no series resistor will light the string. Raise the rail or reduce n. The page says so instead of inventing a negative resistance.

What this will not size

Constant-current LED drivers, PWM dimmers, RGB strips with their own ICs, and AC mains droppers. It also does not pick a colour code for you — send the ohms to ohms → colour when you need bands. Forward voltage depends on current and temperature; treat the result as a starting value and confirm with a meter if the LED is expensive or the rail is stiff.

Frequently asked questions

Can I put two LEDs on one resistor in parallel?

Not with this formula. Vf mismatch dumps current into the lower-Vf diode. Give each LED its own R, or put them in series on a high enough rail.

Why nearest E24, not E96?

Indicator LEDs are not 0.1% parts. E24 (or E12) is what you actually buy for a limiter. You can still open the E-series page if you need another grid.

12 V, three white LEDs, 20 mA?

Only if 3 × Vf is well under 12 V. At Vf ≈ 3 V, leftover is 3 V, R = 150 Ω again. If Vf is 3.2 V, leftover shrinks — type the datasheet number, do not reuse 150 Ω by habit.

Copied