FigureDesk

LED Resistor Calculator

Enter your supply voltage, the LED's forward voltage, and the current you want to drive it at. FigureDesk computes the current-limiting resistor value and the power it needs to dissipate.

Your numbers

V
V

From the LED's datasheet — typically 1.8–2.2 V for red, 3–3.4 V for blue/white.

mA

Identical LEDs wired in a single series chain on this branch.

Result

Resistor value

350 Ω

Power dissipation
0.14 W
Total LED forward voltage
2 V

Given Vs = 9 V, Vf = 2 V, If = 20 mA → R = (Vs − Vf) / If = 350 Ω, P = I² × R = 0.14 W

Choose a resistor rated for at least the power dissipation above, with margin — a common available wattage (1/8 W, 1/4 W, 1/2 W, 1 W...) at least double the computed value runs cooler and lasts longer.

How it works

An LED needs a series resistor to limit current to a safe level, because an LED's own forward-voltage curve is far too steep to self-limit current the way a plain resistor does. Ohm's law gives the resistor value directly once you know the voltage it has to drop (supply minus the LED's own forward voltage) and the current you want flowing through it.

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

Worked example

A red LED (Vf = 2 V) run at 20 mA from a 9 V supply:

  • Resistor value: R = (9 − 2) / 0.02 = 350 Ω
  • Power dissipation: P = I² × R = 0.14 W

Important assumptions

  • You supply the LED's own forward voltage (Vf) from its datasheet — this calculator does not assume or look up a value for you, since Vf varies by LED color and manufacturer.
  • Assumes a single resistor in series with one string of identical LEDs, all carrying the same current.
  • DC or steady-state drive current only — does not model PWM dimming duty cycle or LED thermal derating.

FAQ

Why does an LED need a resistor at all?

An LED's current rises extremely steeply for a small change in voltage across it — without something to limit current, it draws more and more until it fails. A series resistor sets the current to a safe, predictable value by dropping the voltage the LED itself doesn't need.

Where do I find my LED's forward voltage?

On its datasheet, listed as Vf or "forward voltage" at a specific test current. As a rough starting point, red and amber LEDs are commonly around 1.8–2.2 V, green around 2–3.2 V, and blue or white around 3–3.4 V — but always confirm against your specific LED's datasheet, since it varies by manufacturer and die.

What resistor wattage should I actually buy?

Choose a standard wattage rating (1/8 W, 1/4 W, 1/2 W, 1 W...) that is comfortably above the computed power dissipation — commonly at least double — so the resistor runs cool rather than right at its rated limit.

How do I size a resistor for multiple LEDs?

For LEDs wired in series (same current through all of them), enter the number in series — their forward voltages add together. For LEDs wired in parallel, each branch needs its own resistor sized independently at that branch's current, since parallel LEDs do not share current evenly on their own.

FigureDesk results are advisory and do not replace a licensed electrician, a qualified engineer, or the applicable local electrical code. Verify any electrical work against your local code and with a qualified professional before relying on it.