Home / Tools / LED resistor calculator

LED resistor calculator

Work out the resistor an LED needs, rounded up to a value you can actually buy, plus the power rating to choose.

  • Electronics tool
  • Runs in your browser
  • Tested 19 November 2026
  • Sources
Check the datasheet for the exact figure.
10 to 20 mA suits most 3 mm and 5 mm LEDs.
Nearest standard value, rounded up
Exact value
Actual current
Resistor power
Choose a rating of

How it works

The resistor takes up whatever voltage the LED doesn't, and sets the current. Using Ohm's law:

R = (supply voltage − LED voltage × number of LEDs) ÷ current

Worked example. One red LED (2.0 V) on 5 V at 15 mA: (5 − 2) ÷ 0.015 = 200 Ω. The next standard value up is 220 Ω, which gives 13.6 mA. The resistor dissipates 3 V × 13.6 mA = 41 mW, so a common 1/4 W resistor is plenty.

The calculator always rounds up to a standard value, so the current ends up slightly lower than you asked for, never higher. It suggests a power rating at least twice what the resistor actually dissipates, so it runs cool.

Typical LED forward voltages

ColourTypical forward voltage
Infrared1.2 to 1.5 V
Red1.8 to 2.2 V
Orange, yellow, yellow-green2.0 to 2.2 V
Bright (true) green3.0 to 3.4 V
Blue and white3.0 to 3.4 V

These are typical figures for small indicator LEDs at around 20 mA. Your LED's datasheet is the final word.

Several LEDs

  • In series: one resistor is enough, as long as the supply is comfortably above the total LED voltage. Three red LEDs need about 6 V, so a 9 V or 12 V supply works well.
  • In parallel: give each LED its own resistor. LEDs never match exactly, so if they share one resistor, one LED can hog the current and burn out.

Want the full story? Read how resistors work.

Sources

Where the formulas and figures on this page come from. We test every tool against worked examples from these before publishing.