LED Resistor Calculator

Pick the right resistor so your LED gets its rated current and doesn't burn out. Enter the supply voltage, the LED's forward voltage and current, and how many LEDs are in series, and the calculator gives a standard resistor value you can buy, the current it actually delivers, the power it dissipates and a safe wattage rating. Color presets fill in typical forward voltages. It runs in your browser.

Typical forward voltages

LED colorForward voltage
Infrared1.2–1.5 V
Red1.8–2.2 V
Yellow / orange2.0–2.2 V
Green2.0–3.2 V
Blue3.0–3.4 V
White3.0–3.4 V

When to use it

  1. Wire an indicator LED to a 5 V or 3.3 V pin.
  2. Run a string of LEDs from a 12 V supply.
  3. Choose a resistor wattage that will not overheat.
  4. Check whether a supply is high enough for several LEDs in series.

How to Use

  1. Enter the supply voltage.
  2. Enter the LED forward voltage, or pick a color preset.
  3. Enter the LED current and how many LEDs are in series.
  4. Use the standard resistor value and wattage shown.

Features

  1. Next E24 value up, never down
  2. Actual current with the standard resistor
  3. Resistor and LED power
  4. Wattage suggestion with 2× headroom
  5. Series LED strings
  6. Forward-voltage presets by color
  7. 100% client-side

FAQs

What current should I use?

Around 20 mA is the classic figure for a 5 mm indicator LED, and modern LEDs are often bright enough at 5–10 mA. High-power LEDs need far more and usually a constant-current driver rather than a resistor. Check the datasheet.

Why is the resistor rounded up?

Resistors come in standard values. Rounding up keeps the current at or just below your target; rounding down would push it over.

What wattage resistor do I need?

The tool suggests the smallest common rating that is at least twice the power the resistor dissipates, so it runs cool.

Can I drive several LEDs from one resistor?

In series, yes — enter the count. Do not put LEDs in parallel on one shared resistor: small differences in forward voltage make one hog the current. Give each parallel branch its own resistor.

What if the LEDs need more voltage than the supply?

Then no resistor can work, and the tool tells you. Use fewer LEDs per string or a higher supply voltage.

Is my data sent anywhere?

No. It is arithmetic in the page.

Technical Details

An LED drops a roughly fixed forward voltage, so whatever the supply provides above that has to be dropped across a series resistor, and the resistor sets the current. With n LEDs in series the resistor carries Vsupply − n × Vf, and its value is that voltage divided by the target current. The ideal figure is rarely a value you can buy, so the calculator rounds it up to the next E24 preferred value rather than to the nearest one: rounding down would push the current above the LED's rating, while rounding up lands it at or slightly below. Current, resistor dissipation and LED power are then recalculated with the standard resistor actually used. The suggested wattage rating is the smallest common size — 1/8 W, 1/4 W, 1/2 W and upwards — that is at least twice the dissipated power, because a resistor run at its full rating gets hot enough to matter. If the LEDs' combined forward voltage meets or exceeds the supply, no resistor value can work and the tool says so instead of returning a negative resistance. Forward voltage varies by color and by part; the presets are typical values and the datasheet figure is better. Everything is computed in the page.

Electronics Tools

Electronics Tools

  • Voltage Divider Calculator
  • Capacitor Code Calculator
  • Battery Life Calculator
  • UPS & Inverter Backup Time Calculator
  • Solar System Sizer
  • Voltage Drop & Wire Size Calculator
  • Cable Ampacity and Derating Calculator
  • Conduit Fill Calculator