Skip to content
SolderingPracticeKit

LED Resistor Calculator

Every LED needs a current-limiting resistor. Enter your supply voltage and LED, and this calculator gives you the exact value, the nearest standard resistor to buy, and the wattage rating to use.

Written by · How we rank

Use a standard resistor of

150 Ω

Exact value: 150 Ω
Actual current: 20 mA
Resistor power: 0.06 W
Resistor rating: 1/4 W (standard)

Forward voltages are typical values; check your LED's datasheet. Standard values are rounded up to the E12 series, so the real current is slightly below your target.

The LED resistor formula

The resistor has to drop whatever voltage the LEDs do not use, at the current you want:

R = (Vsupply − n × Vf) ÷ I

where Vf is one LED's forward voltage, n is the number of LEDs in series and I is the current in amps (20mA = 0.02A). For a red LED on 5V at 20mA: (5 − 2.0) ÷ 0.02 = 150Ω. Always round up to the next standard value, which keeps the current at or below your target.

Quick answers for common supplies

One LED at 20mA, rounded up to a standard E12 value:

SupplyRed LED (~2.0V)White / blue LED (~3.1V)
3.3 V 68 Ω 10 Ω
5 V 150 Ω 100 Ω
9 V 390 Ω 330 Ω
12 V 560 Ω 470 Ω

On 3.3V a white or blue LED has very little headroom, so its brightness varies a lot with small changes in supply — a common surprise on microcontroller projects.

How much current should an LED get?

20mA is the familiar maximum for standard 5mm LEDs, but it is rarely needed. An indicator LED is clearly visible at 5–10mA, and running below the maximum makes it cooler and longer-lived. High-power LEDs are a different category: they need a constant-current driver rather than a simple resistor.

Series vs parallel

LEDs in series share one resistor: add their forward voltages, which is what the "LEDs in series" field does. LEDs in parallel should each get their own resistor, because tiny differences in forward voltage make one LED take most of the current. That is why kits like the 81-LED chaser are designed with the resistors they are.

Reading and checking the resistor

Found the value you need? Our resistor color code calculator shows which bands to look for, and a multimeter confirms it before you solder. If an LED stays dark after soldering, check its orientation first — the flat edge and shorter leg are the cathode — and see our common soldering mistakes.

Frequently asked questions

What resistor do I need for an LED?
Subtract the LED forward voltage from the supply voltage, then divide by the current you want in amps: R = (Vsupply − Vf) ÷ I. For a red LED (about 2V) on 5V at 20mA, that is 3V ÷ 0.02A = 150Ω. Round up to the next standard value so the current stays at or below your target.
What resistor do I need for an LED on 5V?
At 20mA, a red LED needs about 150Ω and a white or blue LED about 100Ω. For indicator LEDs that only need to be visible, 10–15mA is plenty, which means roughly 220Ω for red and 150Ω for white — cooler, longer-lived and still bright.
Why does an LED need a resistor?
An LED does not limit its own current. Once the supply exceeds its forward voltage, current rises very quickly and the LED overheats and fails. The resistor sets the current to a safe value.
Can several LEDs share one resistor?
LEDs in series can share one resistor — add their forward voltages together, as this calculator does. LEDs in parallel should each have their own resistor, because small differences in forward voltage make one LED hog the current.
What wattage resistor do I need?
Calculate the power the resistor dissipates (P = I² × R) and choose a rating at least double that. For single indicator LEDs this is almost always well under 1/8W, so a standard 1/4W resistor is fine.