Skip to content

Which resistor does your LED need?

The series resistor for one or more LEDs, rounded to a standard value, with its current and power rating.

V

V

mA

Resistor (E12)

150 Ω

Use 150 Ω: it takes the 3 V the LED leaves of 5 V and lets 20 mA flow. The exact value would be 150 Ω.

Key values as a table
ResistorLED current
39 Ω76.9 mA
47 Ω63.8 mA
56 Ω53.6 mA
68 Ω44.1 mA
82 Ω36.6 mA
100 Ω30 mA
120 Ω25 mA
150 Ω20 mA
180 Ω16.7 mA
220 Ω13.6 mA
270 Ω11.1 mA
330 Ω9.09 mA
390 Ω7.69 mA
470 Ω6.38 mA
560 Ω5.36 mA
Exact value
150 Ω
Current with it
20 mA
Resistor power
60 mW (use 1/8 W)
Power into the LEDs
40%

The series resistor for one or more LEDs, rounded to a standard value, with its current and power rating.

How to use

  1. Enter the supply voltage and the forward voltage of your LED from its datasheet: about 2 V for red, yellow and orange, about 3 V for blue, white and bright green.
  2. Enter the current you want (20 mA suits a standard 5 mm LED; check the datasheet's maximum) and how many LEDs share the resistor in series.
  3. Use the standard value shown and a resistor rated for at least the power given. Drag the point on the curve to see how the current changes with the resistor.

How it works

An LED holds a nearly fixed voltage across itself and lets through as much current as the circuit allows, so connected straight to a supply it burns out. A resistor in series sets the current: it takes up the voltage the LED leaves over, and Ohm's law turns that voltage and the wanted current into a resistance.

The resistor is R = (Vs − n × Vf) ÷ I, where Vs is the supply voltage, Vf the forward voltage of one LED, n the number of LEDs in series and I the current. A red LED (2 V) at 20 mA from 5 V needs (5 − 2) ÷ 0.020 = 150 Ω. Three white LEDs (3.2 V) in series on 12 V need (12 − 9.6) ÷ 0.020 = 120 Ω. The resistor turns P = I² × R into heat, here 60 mW and 48 mW, so a 1/8 W or 1/4 W resistor is plenty.

Standard resistors come in fixed series, so the calculator picks the next value up, which keeps the current at or below your target. Forward voltage varies between LEDs and with temperature, so the real current can differ a little; with a supply only slightly above the LED voltage, it varies a lot. Sources: OpenStax University Physics, volume 2, section 9.4, and the IEC 60063 E series.

Worked example

Which resistor does a 2 V LED drawing 20 mA need on a 5 V supply?

  1. Voltage across the resistor: 5 − 2 = 3 V.
  2. Ohm's law: R = 3 V ÷ 20 mA = 150 Ω.
  3. Next standard value up: 150 Ω, which dissipates 0.06 W.

Use a 150 Ω resistor; a ¼ W part is plenty.

Frequently asked questions

Can several LEDs share one resistor?

A series string can share one resistor because the same current passes through every LED. Parallel branches should each have their own current-limiting resistor.

Where should I place the resistor?

It can go before or after the LED in the same series path. The current is the same in either position.

Must I run every LED at 20 mA?

No. Use the datasheet’s operating current for your LED and the brightness you need; many indicator LEDs are useful at much lower currents.

Can I use a higher wattage resistor?

Yes, if the resistance is correct. A higher power rating increases the heat the resistor can tolerate; it does not force more current through the LED.

Does this handle a flashing LED driven by PWM?

It calculates the current while the supply is on. It does not model PWM duty cycle, switching behaviour or pulse-current limits.

Send feedback