LED Resistor Calculator

Find the right resistor for any LED in seconds. Enter your supply voltage, pick the LED color, and set the current you want. The calculator gives you the exact resistor value, the nearest standard E12 resistor you can actually buy, the real current your LED will draw, and the resistor wattage you need so nothing overheats.

An LED without a resistor will pull too much current and burn out in seconds, so the resistor is not optional. The rule is simple: the resistor drops the voltage left over after the LED, and its value is that leftover voltage divided by the current. A red LED on a 12 V supply at 20 mA needs a 500 ohm resistor in theory, and the nearest standard value you can buy is 560 ohms, which gives a real current of 17.9 mA and needs a 1/2 W resistor. This calculator does that whole job for you, including series LEDs, parallel strings, and the power rating.

100% FreeNo sign-upInstant results

Most small indicator LEDs run at 20 mA. Use 5 to 10 mA for a dimmer indicator and 30 mA only if the LED datasheet allows it.

Advanced options

Changing the LED color above sets this value. Type your own value here if your datasheet gives a different forward voltage.

Defaults are already included in the result: one LED in series, one string, and the recommended power rating with a 2x safety margin. Open Advanced options to change them. Series LEDs share one resistor and their forward voltages add up. Parallel strings each need their own resistor, never share one resistor across parallel LEDs.

Your information is not stored. Calculations are done in your browser.

Use this resistor
560 Ω
For a 12 V supply and one red LED at 20 mA, use a 560 Ω resistor. The LED will actually draw 17.9 mA, slightly dimmer than the 20 mA target.
Actual current17.9 mA
Power dissipated0.18 W
Resistor voltage drop10.0 V

Supply 12 V, red LED 2.0 V, target 20 mA. Exact resistor 500 Ω; nearest E12 up 560 Ω (down 470 Ω gives 21.3 mA). With 560 Ω the real current is 17.9 mA, power 0.18 W, so use at least a 1/2 W resistor (2x safety margin 0.36 W). Total draw for 1 string: 17.9 mA.

Key takeaways

  • The default circuit, a red LED on 12 V at 20 mA, needs a 560 Ω resistor. The exact value is 500 Ω, but 560 Ω is the nearest standard E12 value above it, giving a real current of 17.9 mA and 0.18 W of heat, so a 1/2 W resistor is the right choice.
  • Always round the resistor up to the next E12 value, not down. The E12 value below the default, 470 Ω, would push 21.3 mA through the LED, more than the 20 mA target, while 560 Ω keeps it safely under.
  • A white LED on 5 V at 20 mA needs only a 100 Ω resistor, with a real current of 18 mA and just 0.03 W of heat, so a small 1/8 W resistor is enough.
  • Two blue LEDs in series on 9 V at 15 mA need a 180 Ω resistor, with a real current of 14.4 mA and 0.04 W of heat.
  • High voltage with low current still needs a big resistor: a white LED on 24 V at 5 mA needs a 4.7 kΩ resistor, with a real current of 4.4 mA and 0.09 W of heat, so a 1/4 W resistor is right.
  • Low headroom is efficient: a red LED on 3.3 V at 20 mA needs only a 68 Ω resistor, with a real current of 19.1 mA and 0.02 W of heat.
  • Three red LEDs in series on 12 V at 20 mA need a 330 Ω resistor, with a real current of 18.2 mA, because the three forward voltages add up to 6.0 V before the resistor sees anything.

Contents

Formula and forward voltages

R equals supply minus LED voltage, divided by current, plus the typical Vf of every LED color.

Worked examples

12 V red, 5 V white, 9 V two blue, 24 V white, 3.3 V red, and three in series, worked out step by step.

E12 standard values and power ratings

The resistor values you can actually buy, and how to pick a wattage with a 2x safety margin.

Related tools

Formula and forward voltages

An LED is not like a light bulb: it has a nearly fixed voltage drop, called the forward voltage Vf, and it will take as much current as the supply can give it unless a resistor limits it. The resistor drops whatever voltage is left over, so its value comes from Ohms law:

R = (Vs − Vf) / If

Vs is the supply voltage, Vf is the LED forward voltage, and If is the current you want through the LED, in amps. For the default circuit, that is (12 − 2.0) / 0.020 = 500 Ω. If you use several LEDs in series, their forward voltages add up first: R = (Vs − n × Vf) / If, where n is the number of LEDs in series.

Forward voltage depends on the LED color, because different semiconductor materials drop different voltages. These are the typical values this calculator uses; always check your LED datasheet when you have it, because real LEDs vary a little by batch and brightness grade.

LED colorTypical VfUsual range
Red2.0 V1.8 to 2.2 V
Amber / Yellow2.1 V2.0 to 2.2 V
Green2.2 V2.0 to 2.4 V
Blue3.2 V3.0 to 3.4 V
White3.2 V3.0 to 3.4 V

Current is the other choice you make. Most small 3 mm and 5 mm indicator LEDs are rated for 20 mA maximum, and they are already bright at 10 mA. Running an LED at 5 to 10 mA makes it dimmer but much cooler and longer-lived, which is ideal for a power indicator that stays on all day. High-brightness and power LEDs can take 30 mA, 350 mA, or more, but only their datasheet can tell you the limit, and at those currents the resistor wattage matters a lot more.

One hard limit: the supply voltage must be higher than the total LED voltage. If Vs is equal to or lower than n × Vf, there is no voltage left for the resistor, the formula gives zero or a negative resistance, and the circuit cannot work. The calculator flags this and tells you to use a higher supply or fewer LEDs in series.

Worked examples

Example 1: default, red LED on 12 V at 20 mA

R = (12 − 2.0) / 0.020 = 10 / 0.020 = 500 Ω exactly. The nearest E12 value above 500 Ω is 560 Ω. Real current = 10 / 560 = 0.01786 A = 17.9 mA. Power = 0.01786² × 560 = 0.18 W. Twice the power is 0.36 W, so the smallest standard rating above that is 1/2 W. The E12 value below, 470 Ω, would give 21.3 mA, more than the 20 mA target, so 560 Ω is the safe pick.

Example 2: white LED on 5 V (USB) at 20 mA

R = (5 − 3.2) / 0.020 = 1.8 / 0.020 = 90 Ω. The nearest E12 value above 90 Ω is 100 Ω. Real current = 1.8 / 100 = 18 mA. Power = 0.018² × 100 = 0.03 W. Twice the power is 0.06 W, so a 1/8 W resistor is plenty.

Example 3: two blue LEDs in series on 9 V at 15 mA

Two blue LEDs drop 2 × 3.2 = 6.4 V, leaving 9 − 6.4 = 2.6 V for the resistor. R = 2.6 / 0.015 = 173 Ω. The nearest E12 value above 173 Ω is 180 Ω. Real current = 2.6 / 180 = 14.4 mA. Power = 0.0144² × 180 = 0.04 W, so a 1/8 W resistor is enough.

Example 4: white LED on 24 V at 5 mA

R = (24 − 3.2) / 0.005 = 20.8 / 0.005 = 4,160 Ω. The nearest E12 value above 4,160 Ω is 4.7 kΩ. Real current = 20.8 / 4,700 = 4.4 mA. Power = 0.0044² × 4,700 = 0.09 W. Twice the power is 0.18 W, so a 1/4 W resistor is right.

Example 5: red LED on 3.3 V (microcontroller pin) at 20 mA

R = (3.3 − 2.0) / 0.020 = 1.3 / 0.020 = 65 Ω. The nearest E12 value above 65 Ω is 68 Ω. Real current = 1.3 / 68 = 19.1 mA. Power = 0.0191² × 68 = 0.02 W, so a 1/8 W resistor is fine. Note that many microcontroller pins cannot safely supply 20 mA, so check the pin limit before wiring this up.

Example 6: three red LEDs in series on 12 V at 20 mA

Three red LEDs drop 3 × 2.0 = 6.0 V, leaving 12 − 6.0 = 6.0 V for the resistor. R = 6.0 / 0.020 = 300 Ω. The nearest E12 value above 300 Ω is 330 Ω. Real current = 6.0 / 330 = 18.2 mA. Power = 0.0182² × 330 = 0.11 W, so a 1/4 W resistor is right. One resistor serves all three LEDs because they are in series and share the same current.

E12 standard values and power ratings

Resistors are not sold in every value. The E12 series is the standard set, with 12 values per decade, each about 20 percent above the last: 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2, then the same steps times 10, 100, and 1,000. So between 100 Ω and 1 kΩ you can buy 120, 150, 180, 220, 270, 330, 390, 470, 560, 680, and 820 Ω. When your exact value falls between two E12 values, pick the one above it: the current then stays at or below your target, and the LED runs a touch dimmer instead of a touch hotter. Picking the value below pushes the current above your target, which is only safe if the LED datasheet allows the extra current.

The resistor also has to survive the heat it makes. Power in the resistor is P = I² × R, or equivalently the resistor voltage times the current. The rule is to use a resistor rated for at least twice the power it will actually dissipate, so it stays cool and lasts. This calculator applies that 2x margin and recommends the smallest standard rating that clears it.

Power dissipatedUse at least
Up to 0.06 W1/8 W resistor
Up to 0.13 W1/4 W resistor
Up to 0.25 W1/2 W resistor
Up to 0.50 W1 W resistor
Up to 1.00 W2 W resistor

For the default circuit, 0.18 W dissipated means a 1/2 W resistor. A 1/4 W resistor would technically survive 0.18 W, but with almost no margin it would run hot, so the 2x rule picks 1/2 W. If the calculator ever recommends a rating above 2 W, you are pushing a lot of power through one resistor: consider a lower supply voltage, fewer LEDs per string, or a lower current instead.

Series versus parallel LEDs

LEDs in series share one resistor and one current, and their forward voltages add up. That is efficient: three red LEDs on 12 V waste only 6 V in the resistor instead of 10 V for a single LED. The limit is headroom: the supply must stay above the total forward voltage, with at least a volt or two to spare, or the current becomes unstable.

LEDs in parallel are different. Each parallel string must have its own resistor. Two LEDs in parallel sharing one resistor will not share the current evenly: the LED with the slightly lower forward voltage hogs the current, gets hotter, drops its voltage further, and hogs even more current until it fails. This is called thermal runaway, and it is the most common beginner wiring mistake. Use the calculator once per string, then multiply the total current draw by the number of strings to size your power supply.

Common mistakes

  • No resistor at all: an LED connected straight across a supply will draw far more than its rated current and burn out in seconds. Always use a resistor, or a proper constant-current LED driver for power LEDs.
  • Rounding the resistor down: the E12 value below the exact value pushes the current above your target. Round up unless the datasheet allows the extra current.
  • Sharing one resistor across parallel LEDs: the current splits unevenly and one LED fails first. Give every parallel string its own resistor.
  • Ignoring the wattage: a 1/8 W resistor dissipating 0.18 W will overheat and fail. Check the power rating with the 2x margin, not just the ohms.
  • Using the wrong forward voltage: a white LED at 3.2 V needs a very different resistor than a red LED at 2.0 V on the same supply. Pick the right color, or type the datasheet Vf in Advanced options.
  • Forgetting the supply cannot be too low: a white LED needs more than 3.2 V before the resistor sees anything, so a 3.3 V supply leaves almost no headroom and a 3 V coin cell cannot light it properly at all.

How it works

  1. Enter your supply voltage, LED color, and current. Defaults are 12 V, a red LED at 2.0 V, and 20 mA. Pick a common supply from the list or type your own.
  2. Open Advanced options if you need more. Type an exact forward voltage from your datasheet, add LEDs in series, add parallel strings, or pick a resistor power rating. The defaults already cover one LED, one string, and the recommended rating.
  3. Press Calculate My Resistor. The calculator works out the exact resistor, the nearest E12 value above it, the real current and power with that resistor, and the wattage you need, then scrolls you to the result.

Frequently asked questions

What resistor do I need for an LED on 12V?

For a red LED at 20 mA on 12 V, the exact resistor is 500 ohms and the nearest standard E12 value is 560 ohms, which gives a real current of 17.9 mA and needs a 1/2 W resistor. A white LED on the same 12 V supply at 20 mA needs a 440 ohm exact value, so a 470 ohm E12 resistor, because its forward voltage is higher at 3.2 V.

What is the forward voltage of a red, green, blue, or white LED?

Typical forward voltages are red 2.0 V, amber or yellow 2.1 V, green 2.2 V, and blue or white 3.2 V. Real LEDs vary by a few tenths of a volt, so check the datasheet for exact values and type the datasheet value into Advanced options when you have it.

Should I use the E12 resistor value above or below the exact value?

Use the value above. Rounding up keeps the current at or below your target, so the LED runs slightly dimmer and cooler. Rounding down pushes the current above your target: for the default circuit, 470 ohms instead of 560 ohms would give 21.3 mA instead of 17.9 mA, more than the 20 mA target.

How do I calculate the resistor wattage for an LED?

Work out the power with P equals I squared times R, then pick a resistor rated for at least twice that power. For the default circuit, 17.9 mA through 560 ohms dissipates 0.18 W, so twice the power is 0.36 W and the right choice is a 1/2 W resistor.

Can I run several LEDs on one resistor?

Yes, if they are in series: one resistor serves the whole string and the forward voltages add up, so three red LEDs on 12 V at 20 mA need a 330 ohm resistor. LEDs in parallel are different: each parallel string needs its own resistor, because sharing one resistor makes the current split unevenly and can destroy one LED.

What happens if I use no resistor with an LED?

The LED will draw far more current than it is rated for and usually burns out within seconds, sometimes with a pop and a puff of smoke. Always use a resistor for a small LED on a voltage supply, or a constant-current driver for a power LED.

Disclaimer: This calculator is for general information only and is not professional electrical advice. It covers low-voltage DC LED circuits only, never mains AC voltage. Forward voltages are typical values and vary by LED, so check your LED datasheet before building, and double-check the resistor value and wattage with a multimeter on your finished circuit.