Skip to content

LED Resistor Calculator

Find the series resistor for an LED or a string of LEDs: resistance, nearest E12/E24/E96 value, actual current, resistor wattage and efficiency.

Calculator Details

Series resistor:150 ΩSee results ↓

The voltage of the battery or power supply, e.g. 5 V USB, 9 V battery or 12 V

Sets a typical forward voltage; choose Custom to type the value from your datasheet

Typical Vf 2 V (datasheets: 1.8–2.2 V). Choose Custom to type your part's value.

Forward current per LED, in mA (20 mA is typical for 3 mm and 5 mm indicator LEDs)

LEDs wired one after another in each string, sharing one resistor

Identical strings, each with its own resistor, across the same supply

E12 (10% steps), E24 (5%) or E96 (1%) preferred values

Your Results

Series resistor: 150 Ω

Series resistor

150 Ω

E24 value; exactly 150 Ω for 20 mA

Actual LED current

20 mA

With the 150 Ω part

Resistor power

60 mW

Use 1/8 W or larger (2× margin)

Power in each LED

40 mW

2 V × 20 mA

Supply current

20 mA

100 mW from the supply

Efficiency

40%

Share of the power reaching the LEDs

Use a 150 Ω resistor (E24; exactly 150 Ω): 20 mA through 1 LED at 2 V from 5 V, dissipating 0.06 W, so a 0.125 W resistor or larger.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Where the supply power goes

Where the supply power goes

Detailed Breakdown

Nearby E24 values and the current each gives
ResistorLED currentResistor power
120 Ω25 mA75 mW
130 Ω23.08 mA69.23 mW
150 Ω (chosen)20 mA60 mW
160 Ω18.75 mA56.25 mW
180 Ω16.67 mA50 mW

Values below the chosen one push more than your set current through the LED; values above give a little less current and less light.

How This Calculator Works

How it's calculated

The resistor takes whatever voltage the LEDs don't: R = (Vs − n × Vf) ÷ I. Its heat is P = I² × R, and the part should be rated at least 2 times that. The exact value is rounded up to the next preferred value so the LED never gets more than the current you chose.

R = (5 − 1 × 2) ÷ 0.02 A = 3 ÷ 0.02 = 150 Ω
next E24 value up: 150 Ω → I = 3 ÷ 150 = 20 mA
P = I² × R = 60 mW → 1/8 W rating

Frequently Asked Questions

Why does an LED need a resistor?

An LED behaves like a diode: above its forward voltage, a tiny rise in voltage makes the current shoot up. Without something to limit it, the LED draws as much current as the supply can give and burns out, often in a fraction of a second. The series resistor drops the extra voltage and sets the current.

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

For one red LED (about 2 V) at 20 mA: (12 − 2) ÷ 0.020 = 500 Ω, and the next 5% (E24) value up is 510 Ω. For a white or blue LED (about 3.2 V) it is (12 − 3.2) ÷ 0.020 = 440 Ω. Put three white LEDs in series and the resistor only has to drop 12 − 9.6 = 2.4 V, which wastes far less power.

Should I round the resistor up or down?

Up. A larger resistor gives slightly less current and slightly less light, which the eye barely notices; a smaller one pushes the LED past the current you chose. This calculator always picks the next preferred value above the exact answer and shows the actual current with it.

What forward voltage should I use?

Use the typical Vf from your LED's datasheet at the current you plan to run. As a guide, red, orange and yellow indicator LEDs are about 2–2.1 V, and green (InGaN), blue and white about 3.2 V, but parts vary: datasheets give ranges such as 2.9–3.6 V for white.

What wattage resistor do I need?

Work out P = I² × R (or the resistor voltage × the current) and choose a part rated at least twice that. A 5 V red LED at 20 mA dissipates 0.06 W in its resistor, so a 1/8 W part is enough. Long strings on 24 V or high currents can need 1/2 W or more.

Can several LEDs share one resistor?

Yes, if they are in series: the same current flows through every LED, so one resistor sets it for the whole string. LEDs in parallel should each have their own resistor; on a shared resistor the LED with the lowest forward voltage takes most of the current and fails first.

How many LEDs can I put in series?

Add up the forward voltages and leave some voltage for the resistor: on 12 V, three white LEDs (about 9.6 V) leave 2.4 V, which works; four (12.8 V) is more than the supply and will not light properly. Leaving at least 10–20% of the supply across the resistor keeps the current steady when the supply or Vf changes.

When should I use a constant-current driver instead?

For high-power LEDs (350 mA and up), long strings or battery supplies whose voltage drops as they discharge. A resistor wastes the dropped voltage as heat and the current changes with the supply; a constant-current driver holds the current steady and is much more efficient.

Uses Ohm's law with the LED at a fixed forward voltage, the IEC 60063 E12, E24 and E96 preferred values (rounded up so the current never exceeds your setting) and a 2× power-rating margin. Typical forward voltages by colour are starting points from manufacturer datasheets; your part's datasheet value at your current always wins. Not included: the change of Vf with current and temperature, resistor tolerance, supply ripple, high-power LEDs that need a constant-current driver, PWM dimming and LEDs wired in parallel on one shared resistor (which share current unevenly and is not recommended).

LED Resistor Calculator: Series Resistor Value, Wattage and Current for LEDs

By FindMySum · Last reviewed

A light-emitting diode is one of the simplest parts to wire up, and one of the easiest to destroy. Connect it directly to a battery and it can draw enough current to burn out almost instantly. The fix is a single resistor in series with the LED, and choosing it is a short exercise in Ohm's law. This calculator works out the exact resistance, rounds it to a resistor you can buy, and tells you the current you will really get, how much heat the resistor makes and how efficient the circuit is. The opening example is a red LED on a 5 V USB supply at 20 mA.

Why the resistor is needed

An ordinary resistor follows Ohm's law: double the voltage and the current doubles. An LED doesn't. Below its forward voltage (about 2 V for a red LED, about 3 V for blue and white) almost no current flows. Just above it, the current rises steeply, so a change of a few tenths of a volt can be the difference between a dim glow and a dead part. A small change in temperature shifts the curve too.

That makes it impractical to set an LED's current by choosing the supply voltage. Instead, you give the LED a little more voltage than it needs and let a resistor take up the difference. The resistor's voltage, and therefore the current, is set by Ohm's law, and it changes only gently if the LED's forward voltage wanders.

The formula

For n LEDs in series, each with forward voltage Vf, on a supply Vs, at the current I you want:

R = (Vs − n × Vf) ÷ I

The top of the fraction is the voltage left for the resistor. For the default example, one red LED at about 2.0 V on 5 V at 20 mA:

R = (5 − 2.0) ÷ 0.020 = 3.0 ÷ 0.020 = 150 Ω

Use amps in the formula (20 mA = 0.020 A) and the answer comes out in ohms.

The resistor turns its share of the power into heat:

P = I² × R = (Vs − n × Vf) × I

Here that is 0.020² × 150 = 0.06 W. Resistors are sold by power rating, and a common rule is to choose one rated for at least twice the power it will dissipate so it runs cool and lasts. Twice 0.06 W is 0.12 W, so a 1/8 W (0.125 W) part is enough, and the ubiquitous 1/4 W resistor has plenty of margin.

Rounding to a real resistor

Resistors come in preferred values defined by IEC 60063. The E12 series has twelve values per decade (10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68 and 82, then 100, 120 and so on); E24 has twenty-four, adding values such as 11, 13, 16, 20, 24, 30, 36, 43, 51, 62, 75 and 91; E96 has ninety-six for 1% parts. The exact answer rarely lands on one of them.

Round up. A larger resistor gives a little less current and a little less light, which is hard to see; a smaller one pushes the LED beyond the current you chose. For a blue LED (about 3.2 V) on a 9 V battery, the exact value is (9 − 3.2) ÷ 0.020 = 290 Ω. The next E24 value up is 300 Ω, giving 5.8 ÷ 300 = 19.3 mA; the next E12 value is 330 Ω, giving 17.6 mA. Both are fine. The calculator shows the chosen value and its neighbours with the current each would give.

Strings of LEDs

When LEDs are wired one after another, the same current flows through each, so their forward voltages add and a single resistor sets the current for the whole string. Three white LEDs at 3.2 V each need 9.6 V; on a 12 V supply the resistor drops the remaining 2.4 V, and at 20 mA that is 2.4 ÷ 0.020 = 120 Ω. That resistor dissipates only 0.048 W, compared with 0.18 W if each LED had its own resistor on 12 V.

Don't push a string too close to the supply voltage. If the LEDs need 11.5 V of a 12 V supply, the resistor has only 0.5 V to work with, and a small change in the supply or in Vf makes a large change in the current. Leaving 10 to 20 percent of the supply across the resistor keeps things predictable. If the LEDs need more than the supply, they won't light properly at all, and the calculator says so.

For more LEDs than one string can take, wire several identical strings in parallel, each with its own resistor. Enter the number of strings and the calculator adds up the supply current and power. Avoid putting LEDs in parallel on one shared resistor: their forward voltages are never exactly equal, so the LED with the lowest Vf takes most of the current.

Efficiency

The resistor's power is wasted as heat. The fraction of the supply power that reaches the LEDs is:

efficiency = n × Vf ÷ Vs

One red LED on 5 V is only 40 percent efficient; three white LEDs on 12 V reach 80 percent. That is why designers group LEDs into strings close to the supply voltage, and why battery-powered lights and high-power LEDs use switching constant-current drivers instead of resistors.

Choosing the forward voltage and current

Datasheets give the forward voltage at a test current, usually as a typical value and a maximum. As a starting point:

LEDTypical Vf at 20 mA
Red, orangeabout 2.0 V
Yellowabout 2.1 V
Green (InGaN), blue, whiteabout 3.2 V
Infrared (940 nm)about 1.3 V

Older "traditional" green LEDs made from gallium phosphide run at about 2.2 V, so check which kind you have. For the current, 20 mA is the classic rating of 3 mm and 5 mm indicator LEDs, but modern high-efficiency parts are bright at 5 to 10 mA, and running below the maximum extends their life. Never exceed the absolute maximum current on the datasheet.

If you don't know your LED's forward voltage, light it with a generous resistor (1 kΩ on 5 V), measure the voltage across it with a multimeter and use that as a custom value.

Limits of the calculation

The calculation treats the forward voltage as fixed. In reality Vf rises a little with current and falls as the LED warms (by roughly 2 mV per °C), and it varies from part to part, so the actual current can differ by a few percent from the figure shown. Resistor tolerance (5 percent for E24 parts) adds a similar uncertainty. For indicator LEDs this doesn't matter. For power LEDs rated at hundreds of milliamps or more, use a constant-current driver and treat the result here as a rough guide only.

More questions

Can I run an LED straight from a 3 V coin cell without a resistor?

Often it works, because a CR2032 coin cell has a high internal resistance (tens of ohms) that limits the current, and its 3 V is close to a white LED's forward voltage. That internal resistance is doing the job of the series resistor. On any stiff supply, such as a bench supply, USB or a lithium-ion pack, always add the resistor.

Why does my LED look dim with the calculated resistor?

Check the forward voltage. If your LED's real Vf is higher than the value you entered, less voltage is left for the resistor and the current is lower than planned. Measure the voltage across the LED while it is lit and enter that as a custom Vf. Some LEDs are also simply rated for less light at 20 mA than others.

Does it matter which side of the LED the resistor goes on?

No. In a series circuit the same current flows through every part, so the resistor can go on the anode side or the cathode side. Putting it on the positive side is a common habit, and in a matrix or multiplexed display the layout decides, but the current is the same.

What is the difference between E12 and E24 resistors?

They are sets of preferred values defined by IEC 60063. E12 has 12 values per decade (10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82) for 10% parts; E24 adds the in-between values such as 11, 13, 16 and 20 for 5% parts, and E96 has 96 values for 1% parts. Hobby kits usually stock E12 or E24.

Can I use a resistor on an LED strip?

Most 12 V and 24 V LED strips already have resistors built in, one for each group of three or six LEDs, and run straight from the rated supply. Adding another resistor only dims them. This calculator is for bare LEDs and for designing your own strings.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy