LED Resistor Calculator

Size the perfect current-limiting resistor for any LED. Enter your supply voltage, the LED’s forward voltage and target current, and get the exact resistance, nearest E12 value, color bands, power and wattage with a circuit diagram that redraws as you type.

LED Resistor Calculator

Circuit values

All fields are required.

V

V

mA

Live circuit diagram

Redraws automatically from your inputs.

Supply Resistor LED Ground

Results

Recommended resistor and full breakdown.

Enter your values to see the recommended resistor — results update as you type.

Session history

VsVf×nIE12Watt
No calculations yet this session.

Formula & worked example

The math the calculator runs, explained step by step.

Resistance
R = (VS − (Vf × N)) ÷ I
Power
P = I² × R

What each variable means

SymbolMeaningUnit
VSSupply voltage from your power sourceVolts (V)
VfForward voltage of a single LED (from its datasheet)Volts (V)
NNumber of LEDs wired in seriescount
ITarget LED current (converted from mA to A in the math)Amps (A)
RRequired series resistanceOhms (Ω)
PPower the resistor dissipates as heatWatts (W)

Worked example

Goal: drive one red LED (Vf = 2 V, 20 mA) from a 12 V supply.

  1. Total LED voltage = 2 V × 1 = 2 V
  2. Voltage across resistor = 12 − 2 = 10 V
  3. Current in amps = 20 mA ÷ 1000 = 0.02 A
  4. R = 10 ÷ 0.02 = 500 Ω
  5. Nearest E12 value (rounded up) = 560 Ω
  6. P = 0.02² × 560 = 0.224 W → with 2× margin, use a 1/2 W resistor

Standard LED forward voltages

Typical datasheet values. Click a row to load it into the calculator.

LED colorTypical forward voltageTypical current
Red1.8–2.2 V20 mA
Yellow2.0–2.2 V20 mA
Green2.0–3.2 V20 mA
Blue3.0–3.4 V20 mA
White3.0–3.4 V20 mA
Infrared1.2–1.5 V20 mA

Standard resistor wattages

Pick a rating above your calculated dissipation, with a 2× safety margin.

Power dissipationRecommended resistor
≤ 0.125 W1/4 W
≤ 0.25 W1/2 W
≤ 0.5 W1 W
≤ 1 W2 W
> 1 WNext higher standard rating

Common supply voltages

Click a row to load it into the calculator.

DeviceVoltage
USB5 V
Arduino5 V
9V Battery9 V
12V Adapter12 V
24V Supply24 V