Skip to content

LED Resistor Calculator

The resistor that keeps an LED at a safe current: from your supply…

The resistor that keeps an LED at a safe current: from your supply, the LED’s forward voltage and current, rounded up to a value you can buy.

V
Common

LED colour

V
mA
Current

Forward voltage and current are on the LED’s datasheet; the colours fill in typical values. Modern LEDs are bright at 2 to 10 mA.

Resistor seriesE12 (10% values, the common kits)

ExampleResistor (E12)

390Ω

For a red LED at 2 V from 9 V, use 390 Ω (350 Ω worked out, rounded up to E12). It lets 17.95 mA flow.

Enter your own supply and LED to see your resistor.

9 V+2 V7 V in RWhere the supply voltage goes
Resistor power
125.6 mW: use 1/2 W (2× headroom)
LED current
17.95 mA (you asked for 20 mA)
Power in the LEDs
35.9 mW, 22% of the total
How this works: 8 sources,

How this works

Method

An LED needs a nearly fixed voltage to light, its forward voltage, and above that its current rises steeply, so something has to set the current. A series resistor does it: the supply voltage minus the LED’s forward voltage is left across the resistor, and Ohm’s law gives the resistance for the current you want. A red LED (2.0 V) at 20 mA from 9 V needs (9 − 2) ÷ 0.020 = 350 Ω. Full method

How it’s tested

2 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • First published: the colour code on a resistor you can tap, with series and parallel, capacitors, voltage divider, LED resistor, SMD code and standard value pages.

Every change on What’s new

How we make toolsReport a mistake

How to size an LED resistor

An LED needs a nearly fixed voltage to light, its forward voltage, and above that its current rises steeply, so something has to set the current. A series resistor does it: the supply voltage minus the LED’s forward voltage is left across the resistor, and Ohm’s law gives the resistance for the current you want. A red LED (2.0 V) at 20 mA from 9 V needs (9 − 2) ÷ 0.020 = 350 Ω.

Round up to a value you can buy, so the current ends up a little under the target, never over it: 350 Ω becomes 390 Ω in the E12 series, giving 17.9 mA. Several LEDs in series share one resistor and one current; add their forward voltages, and keep a volt or two across the resistor so the current stays steady as the supply and the LEDs vary.

The resistor turns its share into heat, I² × R: 126 mW here. Pick a resistor rated for about twice that, a 1/2 W part rather than a 1/4 W one, since derating guides keep resistors to 50 to 70% of their rating. For many LEDs or a high current, a constant-current driver wastes less.

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

LED resistors at 20 mA

One LED at 20 mA, the exact resistance, the next E12 value up and its power. Check your LED’s datasheet for its forward voltage.

One LED at 20 mA, the exact resistance, the next E12 value up and its power. Check your LED’s datasheet for its forward voltage.
SupplyLEDExactE12 valuePower
3.3 Vred (2 V)65 Ω68 Ω24.85 mW
5 Vred (2 V)150 Ω150 Ω60 mW
5 Vyellow (2.1 V)145 Ω150 Ω56.07 mW
5 Vwhite (3 V)100 Ω100 Ω40 mW
5 Vblue (3 V)100 Ω100 Ω40 mW
9 Vred (2 V)350 Ω390 Ω125.6 mW
9 Vwhite (3 V)300 Ω330 Ω109.1 mW
12 Vred (2 V)500 Ω560 Ω178.6 mW
12 Vgreen (3 V)450 Ω470 Ω172.3 mW
12 Vwhite (3 V)450 Ω470 Ω172.3 mW
Show all 12 rows
24 Vred (2 V)1.1 kΩ1.2 kΩ403.3 mW
24 Vwhite (3 V)1.05 kΩ1.2 kΩ367.5 mW

Common questions

What happens without a resistor?

The current is limited only by the supply and the LED’s own small resistance, so it can be many times the rating and the LED burns out, sometimes at once. Coin cells are the exception people notice: their internal resistance limits the current.

Can one resistor serve several LEDs in parallel?

It isn’t recommended. LEDs’ forward voltages differ slightly, so one takes most of the current, gets hotter, takes even more and fails. Give each parallel LED its own resistor, or put them in series.

What current should I use?

The datasheet’s recommended current, often 20 mA for classic 5 mm LEDs; modern ones are bright at 2 to 10 mA, which also saves power. Never exceed the absolute maximum rating.

Why round up and not to the nearest value?

A larger resistor gives a slightly lower current, which is safe; a smaller one pushes the current over the target. The difference in brightness is hard to see.