Electronics

LED Resistor Calculator

Calculate the correct resistor value for your LED circuit. Enter your supply voltage, LED forward voltage, and current to get the resistance, power rating, and nearest standard value.

Quick Answer

R = (Vsupply − VLED) / ILED. For a 12V supply with a standard red LED (2V, 20mA): R = (12 − 2) / 0.020 = 500Ω. Use the nearest standard value: 510Ω at 1/4W.

Enter LED Circuit Values

Common LEDs:

Results

500.0 Ω

Calculated Resistance

510.0 Ω

Nearest Standard (E24)

200.0 mW

Power Dissipated

1/4W

Min. Power Rating

19.6 mA

Actual Current (w/ Std R)

About This Tool

The LED Resistor Calculator helps you find the correct current-limiting resistor for any LED circuit. Without a resistor, LEDs draw excessive current and burn out almost instantly. This calculator uses Ohm's law to determine the exact resistance needed, then finds the nearest standard E24 series value so you can buy an off-the-shelf component.

How the Formula Works

The basic formula is R = (Vsupply − Vforward) / Iforward. The resistor must drop the difference between the supply voltage and the LED forward voltage. The current through the resistor equals the LED forward current. For multiple LEDs in series, multiply the forward voltage by the number of LEDs. The supply voltage must be greater than the total forward voltage drop, or the LEDs simply won't light up.

Understanding Forward Voltage

Every LED has a characteristic forward voltage that depends on its color and semiconductor material. Red LEDs typically drop about 1.8 to 2.2 volts. Green LEDs run 2.0 to 2.4 volts. Blue and white LEDs need 3.0 to 3.4 volts because they use gallium nitride, which has a wider bandgap. You can find the exact forward voltage in the LED datasheet, usually listed as Vf at a specified test current.

Power Rating Matters

The resistor dissipates power as heat. If you use a resistor rated below the dissipated power, it will overheat and fail. Standard through-hole resistors come in 1/8W, 1/4W, 1/2W, and 1W ratings. As a rule of thumb, choose a resistor rated at least twice the calculated power dissipation. This gives you a safety margin and keeps the resistor running cool. A 1/4W resistor works for most single-LED circuits powered by 5V or 12V supplies.

Series vs Parallel LED Configurations

When wiring LEDs in series, all LEDs share the same current and you add the forward voltages together. One resistor handles the entire string. When wiring LEDs in parallel, each LED should have its own resistor. Never run parallel LEDs through a single shared resistor because manufacturing variations mean one LED will hog more current and burn out first, causing a cascade failure.

Standard Resistor Values

Resistors are manufactured in standard value series. The E24 series (5% tolerance) is the most common and includes 24 values per decade: 1.0, 1.1, 1.2, 1.3, 1.5, 1.6, 1.8, 2.0, 2.2, 2.4, 2.7, 3.0, 3.3, 3.6, 3.9, 4.3, 4.7, 5.1, 5.6, 6.2, 6.8, 7.5, 8.2, and 9.1, then multiplied by powers of 10. This calculator automatically finds the nearest E24 value to your calculated resistance and shows the actual current with that standard value.

Frequently Asked Questions

What happens if I don't use a resistor with my LED?
Without a current-limiting resistor, the LED will draw excessive current and burn out within seconds. LEDs have very low internal resistance, so even a small voltage above the forward voltage causes a huge current spike. The resistor limits the current to a safe level specified in the LED datasheet, typically 20mA for standard indicator LEDs.
Can I use a higher value resistor than calculated?
Yes. A higher resistance means less current flows through the LED, making it dimmer but extending its lifespan. This is perfectly safe. A lower resistance than calculated is riskier because it pushes more current through the LED than rated, which can reduce its lifespan or cause immediate failure.
How do I wire multiple LEDs?
For series wiring, connect LEDs end-to-end (anode to cathode) with one resistor for the whole string. Add up all forward voltages and make sure your supply voltage is higher. For parallel wiring, give each LED its own resistor. Never share one resistor among parallel LEDs because current won't split evenly.
What is the E24 resistor series?
The E24 series is the standard set of 24 resistor values per decade used in 5% tolerance resistors. Values are spaced so that adjacent values differ by about 10%. When your calculation gives an odd number like 487 ohms, you pick the nearest E24 value (470 or 510 ohms). The E12 series has fewer values and E96 has more, but E24 covers most hobby and prototyping needs.
Why does the power rating matter for resistors?
Resistors convert excess electrical energy into heat. If the heat exceeds the resistor's power rating, it overheats, changes value, and eventually fails — sometimes dramatically. Always use a resistor rated at twice the calculated power dissipation or more. For most LED circuits at 5V or 12V, a standard 1/4W resistor is sufficient.

Was this tool helpful?