LED Resistor Calculator

Calculate the current-limiting resistor value for an LED circuit from supply voltage, forward voltage (Vf), and desired current in milliamps. Works for single LEDs or series strings on Arduino, 5V USB, 9V, or 12V supplies, and runs entirely client-side with no sign-up.

Resistor value

150 Ω

Next E12 standard value up: 150 Ω

Resistor power dissipation: 0.06 W

Suggested resistor wattage: 0.125W

Usage examples

Wiring an LED to a microcontroller like Arduino

Instantly find the current-limiting resistor needed to connect a single LED to a 5V or 3.3V board.

Wiring several LEDs in series

Calculate the resistor needed to safely drive multiple LEDs in series from a given supply, such as a battery.

Checking a resistor's heat margin

See the calculated resistor's power dissipation so you can pick a wattage rating that won't overheat.

Driving three red LEDs in series from a 12V supply

With three 2.0V red LEDs in series on a 12V rail at 15mA, find the roughly 400Ω series resistor needed and its low power dissipation of under 0.1W.

Powering a single blue LED from 5V USB

Find the resistor needed to run a 3.2V blue LED at 10mA off a 5V USB power bank, along with the nearest standard E12 value to use.

Driving a UV LED indicator from a 9V battery

Calculate the resistor needed to safely run a 3.4V UV LED at 20mA from a 9V battery, and check the resulting power dissipation before choosing a resistor wattage.

Quick reference

Single LED at 20 mA: next E12 resistor up (exact value in parentheses)

LED color3.3 V5 V9 V12 V24 V
Red (Vf 2 V)68 Ω (65 Ω)150 Ω (150 Ω)390 Ω (350 Ω)560 Ω (500 Ω)1.2 kΩ (1,100 Ω)
Orange (Vf 2 V)68 Ω (65 Ω)150 Ω (150 Ω)390 Ω (350 Ω)560 Ω (500 Ω)1.2 kΩ (1,100 Ω)
Yellow (Vf 2.1 V)68 Ω (60 Ω)150 Ω (145 Ω)390 Ω (345 Ω)560 Ω (495 Ω)1.2 kΩ (1,095 Ω)
Green (standard) (Vf 2.2 V)56 Ω (55 Ω)150 Ω (140 Ω)390 Ω (340 Ω)560 Ω (490 Ω)1.2 kΩ (1,090 Ω)
Green (high-brightness) (Vf 3.2 V)5.6 Ω (5 Ω)100 Ω (90 Ω)330 Ω (290 Ω)470 Ω (440 Ω)1.2 kΩ (1,040 Ω)
Blue (Vf 3.2 V)5.6 Ω (5 Ω)100 Ω (90 Ω)330 Ω (290 Ω)470 Ω (440 Ω)1.2 kΩ (1,040 Ω)
White (Vf 3.2 V)5.6 Ω (5 Ω)100 Ω (90 Ω)330 Ω (290 Ω)470 Ω (440 Ω)1.2 kΩ (1,040 Ω)
UV (Vf 3.4 V)—82 Ω (80 Ω)330 Ω (280 Ω)470 Ω (430 Ω)1.2 kΩ (1,030 Ω)

Single LED at 10 mA: next E12 resistor up (exact value in parentheses)

LED color3.3 V5 V9 V12 V24 V
Red (Vf 2 V)150 Ω (130 Ω)330 Ω (300 Ω)820 Ω (700 Ω)1 kΩ (1,000 Ω)2.2 kΩ (2,200 Ω)
Orange (Vf 2 V)150 Ω (130 Ω)330 Ω (300 Ω)820 Ω (700 Ω)1 kΩ (1,000 Ω)2.2 kΩ (2,200 Ω)
Yellow (Vf 2.1 V)120 Ω (120 Ω)330 Ω (290 Ω)820 Ω (690 Ω)1 kΩ (990 Ω)2.2 kΩ (2,190 Ω)
Green (standard) (Vf 2.2 V)120 Ω (110 Ω)330 Ω (280 Ω)680 Ω (680 Ω)1 kΩ (980 Ω)2.2 kΩ (2,180 Ω)
Green (high-brightness) (Vf 3.2 V)10 Ω (10 Ω)180 Ω (180 Ω)680 Ω (580 Ω)1 kΩ (880 Ω)2.2 kΩ (2,080 Ω)
Blue (Vf 3.2 V)10 Ω (10 Ω)180 Ω (180 Ω)680 Ω (580 Ω)1 kΩ (880 Ω)2.2 kΩ (2,080 Ω)
White (Vf 3.2 V)10 Ω (10 Ω)180 Ω (180 Ω)680 Ω (580 Ω)1 kΩ (880 Ω)2.2 kΩ (2,080 Ω)
UV (Vf 3.4 V)—180 Ω (160 Ω)560 Ω (560 Ω)1 kΩ (860 Ω)2.2 kΩ (2,060 Ω)

Frequently asked questions

Is what I enter sent to a server?

No. All calculations happen entirely in your browser and are never sent to a server.

What exactly is an LED's forward voltage (Vf)?

It varies a bit by LED color, manufacturer, and chip. The color presets here are typical datasheet values; check your specific LED's datasheet if you need precision.

What if there's no resistor exactly matching the calculated value?

The smallest standard E12 resistor value at or above the exact calculation is shown alongside it. A lower resistance would push the current above your target, so the tool always rounds up — protecting the LED at the cost of being a bit dimmer.

Can I wire LEDs in parallel instead?

This calculator assumes a series connection. If wiring LEDs in parallel, it's safer to give each LED its own resistor, since individual LED variation can cause current to split unevenly across a shared one.

Why is 20mA the typical target current?

20mA is a common safe operating current for standard 5mm LEDs and gives good brightness without excessive heat. High-brightness and low-current LEDs may call for different targets, so check your LED's datasheet for its rated forward current.

What happens if I use a resistor smaller than calculated?

A smaller resistor lets more current flow than intended, which can overdrive the LED, shorten its lifespan, or destroy it outright. Always round up to the nearest standard value rather than down.

Why does the wattage suggestion jump straight to the next standard size?

The suggested wattage leaves roughly double the calculated power dissipation as a safety margin, then rounds up to the next common resistor wattage (such as 1/8W, 1/4W, or 1/2W), since running a resistor near its maximum rating shortens its life.

Does ambient temperature affect the result?

The calculation itself doesn't account for ambient temperature, but both LED forward voltage and resistor power handling do shift with heat in real circuits. In enclosed or high-temperature environments, leave extra wattage margin.