🔌 Basic Electrical Calculators

LED Resistor Calculator

Calculate the current-limiting resistor for a single LED or a series LED string. See the nearest standard resistor with color bands, the power dissipation, and a live circuit diagram.

Set your supply voltage, choose your LED (or enter its datasheet values), set how many LEDs are wired in series, and click Calculate.

🔗 Need total resistance for a network of resistors instead? Try the Series & Parallel Resistor Calculator.
Supply:
1 (1–10, one string)
R = (Vsupply − n × Vf) ÷ I

Nearest Standard Resistor — Color Bands

E24 series, 5% tolerance (gold band) — the standard resistor range most widely stocked and sold in hobbyist kits.

Circuit Diagram — Live Current Flow

Dot speed shows relative current. Diagram uses the nearest standard resistor value and its actual resulting current.

Results assume ideal components. Real LED forward voltage varies by manufacturer, batch, and temperature — always verify against your LED's datasheet.

How to Use the LED Resistor Calculator

1
Set Your Supply Voltage
Pick a common supply voltage (USB, Arduino, 9V, 12V, 24V) or enter a custom value.
2
Choose Your LED
Select an LED color to auto-fill typical forward voltage and current, or enter your LED's datasheet values directly — both fields stay editable.
3
Set LEDs in Series
Use the stepper to set how many LEDs are wired in series in a single string. Only wire same-color, same-current LEDs together.
4
Calculate and Print
Press Calculate to see the resistor value, nearest standard resistor with color bands, and a live circuit diagram. Use Print to capture the results exactly as shown.

Why the series resistor exists

An LED is a diode. Once the supply reaches its forward voltage, a small extra voltage produces a large extra current. Heat then lowers the forward voltage, which lets still more current flow. That loop is thermal runaway, and a fixed voltage source will not stop it. The series resistor is the part that sets the current.

A worked value

Take a red LED with a 2.0 volt forward drop, run at 20 milliamps, on a 12 volt supply. The resistor must drop the other 10 volts. Resistance is that voltage divided by the current: 10 / 0.020 = 500 ohms. Five hundred ohms is not an E24 value. The nearest E24 value is 510 ohms. With 510 ohms the current is about 19.6 milliamps, and the resistor dissipates about 0.20 watt. A quarter-watt part is above that number and has little margin. A half-watt part is the one that sits comfortably above it. The calculator on this page does that nearest-value step and reports the dissipation. Check the LED datasheet before treating 2.0 volts and 20 milliamps as the part in your hand.

More than one LED

LEDs in series can share one resistor when they are the same type and the same current, and when the supply is still higher than the sum of their forward voltages. Two 2.0 volt LEDs on 12 volts leave 8 volts for the resistor, not 10. LEDs in parallel do not share current evenly from one resistor. Give each parallel string its own resistor. The resistor color code decoder is the page that turns the chosen value into bands. This page does not repeat that chart.

Frequently Asked Questions

Why do LEDs need a resistor?

An LED does not regulate its own current. Without a resistor to limit current flow, an LED drawing power from a fixed voltage source will draw more and more current as it warms up, leading to thermal runaway and permanent damage. A series resistor sets a safe, stable operating current.

How do I calculate the LED resistor value?

Subtract the total LED forward voltage from the supply voltage, then divide by the desired LED current: R = (Vsupply − n × Vf) ÷ I. This applies Ohm's Law to the voltage the resistor must drop.

What happens if the resistor is too small or too large?

Too small, and excess current flows through the LED, overheating and damaging it — sometimes immediately. Too large, and too little current flows, making the LED dim or preventing it from lighting at all. The calculated value balances safe current against full brightness.

Can I run multiple LEDs in series with one resistor?

Yes, as long as the combined forward voltage of every LED in the string stays below the supply voltage, with enough headroom left for the resistor to drop the remainder. Only wire same-color, same-current LEDs together in a series string.

What resistor wattage rating should I use?

Choose a resistor power rating at least twice the calculated power dissipation, rounded up to the next standard rating: 1/8W, 1/4W, 1/2W, 1W, or 2W. This safety margin keeps the resistor running cool and reliable.

Disclaimer: Results produced by this calculator are for reference and educational purposes only and are not a substitute for verifying LED forward voltage and current against the manufacturer's datasheet, or measuring actual circuit values with a properly rated meter. Calculated values assume ideal components and do not account for resistor tolerance, LED batch variation, temperature effects, wire or contact resistance, or other real-world circuit conditions. All values must be independently verified before use in any circuit design, repair, or component substitution, and any electrical work must comply with the National Electrical Code (NFPA 70) and the authority having jurisdiction and be performed or reviewed by a licensed electrician where required. KiloWattCalculator.com and EnterPlanet LLC accept no liability for decisions made on the basis of these calculations.