Free

LED Resistor Calculator

Calculate the correct current-limiting resistor for your LED circuit

1LED Circuit Details

All LEDs share one resistor, same current flows through all

Check your LED datasheet (typically 1.8V-3.5V)

Standard LEDs: 20mA, High-power: 350mA+

All LEDs connected in a single chain

2Resistor Specifications

510Ω

Recommended Resistor

Calculated value: 500Ω

Min. Power Rating

500mW (1/2W)

Actual Current

19.6 mA

Power Dissipation

196.1 mW (0.196 W)

Circuit Diagram

12V510Ω

Formula Reference

R = (Vs - Vf × n) / If

R = Resistance (Ohms)

Vs = Supply Voltage

Vf = LED Forward Voltage

n = Number of LEDs in series

If = LED Forward Current

Typical LED Forward Voltages

Red2V
Orange2.1V
Yellow2.1V
Green2.2V
Blue3.2V
White3.3V
UV3.4V
Infrared1.5V

Why Do LEDs Need Current-Limiting Resistors?

LEDs are current-driven devices, not voltage-driven. Without a resistor to limit current, an LED will draw too much current from the power source, quickly overheating and burning out. The resistor ensures the LED receives the correct amount of current for safe, long-lasting operation.

How to Calculate LED Resistor Value

R = (Vs - Vf) / If

  • • Vs = Your power supply voltage (e.g., 5V, 12V, 24V)
  • • Vf = LED forward voltage from datasheet (varies by color)
  • • If = Desired LED current (typically 20mA for standard LEDs)

The resistor drops the excess voltage that remains after the LED's forward voltage requirement is met. For multiple LEDs in series, multiply the forward voltage by the number of LEDs. Always choose a resistor with a power rating at least 2x the calculated dissipation.

Tips for LED Resistor Selection

  • •Always use a resistor with higher power rating than calculated (2x recommended)
  • •If exact resistor value isn't available, use the next higher standard value
  • •For series LEDs, total forward voltage must be less than supply voltage
  • •Consider using constant-current LED drivers for high-power applications

How this calculator works

  1. Add up the forward voltage of the LEDs in series (parallel branches use one LED's Vf).
  2. Exact resistance: R = (supply voltage − total Vf) ÷ current in amps.
  3. Round up to the next E24 standard value. Rounding down would push the current above what you entered.
  4. Recalculate the real current with that standard resistor, then the resistor's power: P = I² × R.
  5. Pick a resistor rated at least twice that power.

Worked example 1: one white LED on 5 V

Computed by this calculator's own code (method v1.1.0) when this page was built on 2026-11-20.

Inputs
Supply5 V
LED forward voltage3.3 V
Target current20 mA
LEDs1 (series)
Results
Exact resistance85.0 Ω
Standard resistor (next E24 up)91 Ω
Actual current18.68 mA
Resistor power31.8 mW → 125mW (1/8W)

The nearest E24 value would be 82 Ω, which lets about 20.7 mA flow, above the 20 mA target. That is why this calculator rounds up.

Worked example 2: three blue LEDs in series on 12 V

Computed by this calculator's own code (method v1.1.0) when this page was built on 2026-11-20.

Inputs
Supply12 V
LED forward voltage3.2 V each
Target current20 mA
LEDs3 (series)
Results
Exact resistance120.0 Ω
Standard resistor120 Ω
Actual current20.00 mA
Resistor power48.0 mW → 125mW (1/8W)

Resistor for one LED at 20 mA (this calculator's color presets)

LED colorVfSupplyExact RE24 resistorActual currentResistor power
Red2 V5 V150.0 Ω150 Ω20.0 mA60 mW
Red2 V12 V500.0 Ω510 Ω19.6 mA196 mW
Orange2.1 V5 V145.0 Ω150 Ω19.3 mA56 mW
Orange2.1 V12 V495.0 Ω510 Ω19.4 mA192 mW
Yellow2.1 V5 V145.0 Ω150 Ω19.3 mA56 mW
Yellow2.1 V12 V495.0 Ω510 Ω19.4 mA192 mW
Green2.2 V5 V140.0 Ω150 Ω18.7 mA52 mW
Green2.2 V12 V490.0 Ω510 Ω19.2 mA188 mW
Blue3.2 V5 V90.0 Ω91 Ω19.8 mA36 mW
Blue3.2 V12 V440.0 Ω470 Ω18.7 mA165 mW
White3.3 V5 V85.0 Ω91 Ω18.7 mA32 mW
White3.3 V12 V435.0 Ω470 Ω18.5 mA161 mW
UV3.4 V5 V80.0 Ω82 Ω19.5 mA31 mW
UV3.4 V12 V430.0 Ω430 Ω20.0 mA172 mW

Forward voltages are typical preset values; your LED's datasheet value takes priority.

Assumptions and limits

  • Forward voltage is treated as fixed. Real LEDs vary by part, temperature and current, so measure if the margin is tight.
  • The supply is assumed to be regulated. An unregulated adapter can sit above its label voltage with a light load.
  • High-power LEDs (350 mA and up) are usually better served by a constant-current driver than a resistor.

Sources

  • IEC 60063: preferred number series for resistors (E24 values).
  • Ohm's law (V = I × R) and Joule heating (P = I² × R).