Skip to content

What resistor for a white LED on 5 V?

The resistor a white LED needs on a 5 V supply at 20 mA, the power rating, and values for other LED colors.

Quick answer

A white LED (about 3.2 V) on 5 V at 20 mA needs a 100 Ω resistor. The exact value is (5 − 3.2) ÷ 0.02 A = 90 Ω, rounded up to the next standard value. It dissipates 32 mW, so a ⅛ W resistor is fine.

Open the LED Resistor Calculator

Working it out

R = (Vsupply − Vf) ÷ I = (5 − 3.2) ÷ 0.02 = 90 Ω

  • Next standard value up (E12): 100 Ω (E24: 91 Ω)
  • Actual current with 100 Ω: (5 − 3.2) ÷ 100 = 18 mA
  • Resistor power: 0.018² × 100 ≈ 32 mW, so use a ⅛ W (0.125 W) resistor or larger

Rounding up keeps the current at or below 20 mA, which is the safe direction. The brightness difference is too small to see.

Other LED colors on 5 V at 20 mA

LEDForward voltageExact resistorStandard (E12)
Red2 V150 Ω150 Ω
Yellow2.1 V145 Ω150 Ω
Green2.2 V140 Ω150 Ω
Blue3.2 V90 Ω100 Ω
White3.2 V90 Ω100 Ω

Forward voltages are typical values. Check your LED's datasheet, especially for high-brightness or SMD LEDs, and enter the exact figure in the calculator.

Terms on this page: Forward voltage (LED), E-series (standard resistor values)

Frequently asked questions

Can I use a 150 Ω resistor for a white LED on 5 V instead?

Yes. A higher value only makes the LED dimmer and safer: about 12 mA instead of 18 mA. Never go much lower than 100 Ω.

How many white LEDs can I put in series on 5 V?

Up to 1 if each LED needs about 3.2 V and you leave some voltage for the resistor. Enter the number of LEDs in the calculator to get the resistor for the string.

Do I need a resistor for every LED?

For LEDs in parallel, yes: each one needs its own resistor. LEDs in series can share a single resistor.

Sources

Esc