LED Resistor Calculator

Enter your supply voltage, LED forward voltage, and target current to find the right resistor. Shows the exact value, the nearest standard (E24) size, power dissipation, colour bands, and a circuit diagram. Nothing uploaded.

E24 standard value ? Power dissipation ? Colour bands ? Circuit schematic LEDs in series Over-current warning
[!] Calculated current exceeds 30 mA - most standard LEDs will be damaged. Use a higher resistance or reduce supply voltage.
[!] Supply voltage is too low for the LED(s). Total Vf exceeds Vcc - increase supply voltage or reduce LEDs in series.
[!] Under 0.5 V is left for the resistor. The current will swing a lot with small changes in the LED or supply. Use a higher supply voltage or fewer LEDs in series.

Resistor Values

Exact resistance
-
ohms
Standard E24 value ?
-
ohms, - or higher
Full power details
Actual current (with E24)
-
Resistor power
-
rating chosen at 2x this
LED power
-
Total circuit power
-

Resistor Colour Bands (4-band) ?

Circuit Schematic

Learn more: sizing an LED resistor

The formula and why color matters

The resistor takes whatever voltage is left after the LED. As Adafruit's guide to LED forward voltage shows, you subtract the LED's forward voltage from the supply and divide by the current you want. Its example is a 9V battery and a 2.2V LED, where (9 - 2.2) / 1000 gives 6.8 mA.

The same guide gives about 2.2V for red, yellow, orange and light-green LEDs. The tool's presets are about 2V for red and about 3.2V for blue and white. Forward voltage varies by part, so use the data sheet value when you have it.

On a 9V supply at 20 mA, a red LED at 2.0V needs (9 - 2.0) / 0.02 = 350 ohms, which the tool rounds to the standard E24 value of 360 ohms. A blue LED at 3.2V needs (9 - 3.2) / 0.02 = 290 ohms, which rounds to 300 ohms.

Swapping resistors between the two shows the effect. The 360 ohm resistor on the blue LED gives 5.8 / 360 = 16 mA, so it is dimmer. The 300 ohm resistor on the red LED gives 7 / 300 = 23 mA, which is above the 20 mA target but under the tool's 30 mA warning.

E24 rounding and the 30 mA warning

Exact values are seldom for sale, so the tool picks the nearest E24 value and recalculates the real current. Nearest can be either side of the exact value. For 5V, a 3.3V LED and 20 mA, the exact figure is 85 ohms and the nearest E24 value is 82 ohms, which gives 20.7 mA. The tool warns if the real current goes above 30 mA.

Adafruit says the optimal current for 99% of LEDs is 20 mA and that 30 mA may be acceptable for extra brightness. SparkFun's LED tutorial describes an example LED that shines brightest at 20 mA, with a peak rating of 30 mA for short bursts that you should not sustain. Check your LED's data sheet for its own limits.

Quick lookup: 20 mA resistor by LED colour and supply

These are the standard E24 values the tool returns for one LED at 20 mA. A dash means less than 0.5 V is left for the resistor.

E24 resistor in ohms, one LED at 20 mA
LEDVf3.3 V5 V9 V12 V
Red2.0 V62150360510
Yellow2.1 V62150360510
Blue3.2 V-91300430
IR1.2 V100180390560

Blue on 3.3 V is blank because 3.3 - 3.2 leaves 0.1 V. At 20 mA that is 5 ohms, and a 0.1 V shift in the LED's real forward voltage then moves the current by 20 mA, which is the whole target.

For a 10 mA target, double the exact resistance. Red on 5 V needs 300 ohms instead of 150.

Nearest or next size up

Nearest is the default. Next size up always lands at or below your target current. For 5 V, a 3.3 V LED and 20 mA, the exact figure is 85 ohms. Nearest gives 82 ohms and 20.7 mA, next size up gives 91 ohms and 18.7 mA.

Pick next size up for a battery-powered build or an LED that is already near its limit. The brightness difference is hard to see.

Resistor wattage

The tool takes the resistor's heat, voltage drop times current, and picks the smallest standard rating that is at least twice that. On 9 V with a red LED the resistor dissipates about 136 mW, so it suggests 1/2 W. On 24 V it is 440 mW, so it suggests 1 W.

Reading the colour bands

A 4-band resistor shows two digits, a multiplier and a 5% gold tolerance band. 360 ohms is orange, blue, brown, gold: 3, 6, times 10. 1 kilohm is brown, black, red, because the multiplier is the power of ten left after the first two digits.

FAQ

What happens if the resistor is too small?

The current rises above the LED's rating. Adafruit warns that too much current makes an LED fail, and it also drains a battery faster.

Can one resistor drive LEDs in series?

Yes, if the supply is higher than the forward voltages added together. The tool multiplies the forward voltage by the number of LEDs. Three red LEDs at 2.0V need 6V, so a 9V supply leaves 3V for the resistor, and at 20 mA that is 150 ohms.

Does the resistor's wattage matter?

Yes. The resistor dissipates its voltage drop times the current, shown in milliwatts. On 9V with a red LED that is 7V x 19.4 mA, about 136 mW. On a 24V supply, 22V at 20 mA is 440 mW, more than a 1/4 W resistor should carry.

Last reviewed: October 5, 2026

Link to this tool

Sharing or citing this calculator? Copy a link in the format you need. You're free to quote and cite anything on this page.

Share card: a red LED on 5 volts at 20 milliamps needs a 150 ohm resistor
Plain URL
https://bentoutils.com/apps/led-resistor-calculator/
HTML link
<a href="https://bentoutils.com/apps/led-resistor-calculator/">LED Resistor Calculator</a>
Markdown link
[LED Resistor Calculator](https://bentoutils.com/apps/led-resistor-calculator/)
Image link
<a href="https://bentoutils.com/apps/led-resistor-calculator/"><img src="https://bentoutils.com/public/og/led-resistor-calculator-v1.png" alt="LED Resistor Calculator" width="600" height="315"></a>
Citation
LED Resistor Calculator. BentoUtils. October 5, 2026. https://bentoutils.com/apps/led-resistor-calculator/