LED Resistor Calculator -- Find the Right Ohms

Calculate the correct resistor value for driving LEDs

LED Resistor Calculator

Calculate the correct current-limiting resistor for your LED circuit

Supply Voltage 5.0 V
LED Forward Voltage 2.0 V
Red
Orange
Yellow
Green
Blue
White
UV
IR
LED Current 20 mA
Number of LEDs 1
Required Resistor Value
150 Ω
Exact Resistance
150 Ω
Nearest E12 Value
150 Ω
Nearest E24 Value
150 Ω
Power Dissipation
0.060 W
Recommended Power Rating
1/4 W

Resistor Color Code

1st Digit
2nd Digit
Multiplier
Tolerance

LED Circuit Configurations

Series Connection

Vs R LED1 LED2 Same current through all LEDs

Parallel Connection

Vs R1 R2 Each LED needs its own resistor

Standard Resistor Values (E12 Series)

Value Multipliers
10, 12, 15, 18, 22, 27 x1, x10, x100, x1K, x10K, x100K, x1M
33, 39, 47, 56, 68, 82 x1, x10, x100, x1K, x10K, x100K, x1M

E12 series provides 12 values per decade with 10% tolerance. Examples: 10Ω, 100Ω, 1kΩ, 10kΩ, 100kΩ, 1MΩ

Understanding LED Current-Limiting Resistors

LEDs (Light Emitting Diodes) are semiconductor devices that emit light when current flows through them. Unlike incandescent bulbs, LEDs have very low internal resistance and are current-controlled devices. This means they need a specific amount of current to operate properly - too little and they won't light up, too much and they'll burn out.

Without a current-limiting resistor, an LED connected directly to a voltage source will draw excessive current and destroy itself almost instantly. The resistor's job is to "drop" the excess voltage and limit the current to a safe level specified in the LED's datasheet.

The Resistor Calculation Formula

The resistor value is calculated using Ohm's law:

R = (Vs - Vf) / If

Where:

  • R is the resistor value in ohms
  • Vs is the supply voltage (battery or power source voltage)
  • Vf is the LED forward voltage (voltage drop across the LED)
  • If is the desired LED current (typically 20mA for standard LEDs)

The forward voltage (Vf) varies by LED color because different semiconductor materials are used. Red LEDs have the lowest Vf around 1.8-2.2V, while blue and white LEDs have higher Vf around 3.0-3.5V. This value is always listed in the LED's datasheet.

Power Dissipation and Resistor Wattage

The resistor converts excess electrical energy into heat. The power dissipated by the resistor is calculated as:

P = (Vs - Vf) x If

Always choose a resistor with a power rating at least 2x the calculated power for safety and reliability. Standard resistor power ratings are 1/8W, 1/4W, 1/2W, 1W, 2W, and 5W. For most single-LED hobby projects at 20mA, a 1/4W resistor is sufficient.

Series vs Parallel LED Connections

Series: When LEDs are connected in series, the same current flows through all of them. You only need one resistor for the entire chain. Add up all the LED forward voltages and subtract from the supply voltage: R = (Vs - Vf1 - Vf2 - Vf3...) / If. Make sure your supply voltage is higher than the sum of all LED voltages.

Parallel: When LEDs are connected in parallel, each LED should have its own resistor. This ensures equal current distribution even if the LEDs have slightly different forward voltages. Each branch is calculated independently using the same formula: R = (Vs - Vf) / If.

Standard Resistor Values

Resistors are manufactured in standard value series. The most common is the E12 series with 12 values per decade (10% tolerance): 10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82. The E24 series (5% tolerance) provides 24 values for finer selection.

When your calculated value doesn't match a standard value, always round UP to the nearest standard value. A slightly higher resistance means slightly less current, which is safer for the LED than too much current.

Reading Resistor Color Codes

Most through-hole resistors use color bands to indicate their value. A 4-band resistor has:

  • Band 1: First digit (0-9)
  • Band 2: Second digit (0-9)
  • Band 3: Multiplier (number of zeros or power of 10)
  • Band 4: Tolerance (gold = 5%, silver = 10%, brown = 1%)

For example, a 150Ω resistor is coded as Brown (1), Green (5), Brown (x10), Gold (5%) = 15 x 10 = 150Ω.

Practical Examples

Example 1: Red LED (Vf = 2.0V) powered by 5V USB at 20mA
R = (5 - 2) / 0.02 = 150Ω
P = (5 - 2) x 0.02 = 0.06W
Use a 150Ω, 1/4W resistor.

Example 2: Three blue LEDs (Vf = 3.2V each) in series, powered by 12V at 20mA
Total Vf = 3.2 + 3.2 + 3.2 = 9.6V
R = (12 - 9.6) / 0.02 = 120Ω (use 120Ω standard value)
P = (12 - 9.6) x 0.02 = 0.048W
Use a 120Ω, 1/4W resistor.

Important Safety Notes: Never connect an LED directly to a power source without a resistor. Always check your LED's datasheet for maximum current ratings. When in doubt, use a higher resistance value - a dim LED is better than a burned-out one. For high-power LEDs (1W+), use constant-current drivers instead of resistors for better efficiency.

Frequently Asked Questions

How do I calculate the resistor for an LED?

Use Ohm's law: R = (Vs - Vf) / If, where Vs is the supply voltage, Vf is the LED forward voltage, and If is the desired LED current (typically 20mA for standard LEDs). For example, with a 5V supply and a red LED (Vf = 2V) at 20mA: R = (5 - 2) / 0.02 = 150 ohms. Always round up to the nearest standard resistor value.

Why do LEDs need a resistor?

LEDs are current-controlled devices with very low internal resistance. Without a current-limiting resistor, excessive current flows through the LED, causing it to overheat and burn out almost instantly. The resistor limits the current to a safe level specified by the LED's datasheet. Think of the resistor as a "brake" that controls how much current flows through the LED.

What wattage resistor should I use?

Calculate power dissipation: P = (Vs - Vf) x If. Choose a resistor rated at least 2x the calculated power for safety and longevity. For most single-LED circuits at 20mA, a 1/4 watt (0.25W) resistor is sufficient. For higher currents, multiple LEDs, or higher voltages, you may need 1/2 watt (0.5W) or 1 watt resistors. Using a higher wattage than needed is always safe.

Can I connect LEDs in series without individual resistors?

Yes, LEDs in series can share a single resistor because the same current flows through all of them. Add up the forward voltages of all LEDs and use: R = (Vs - total Vf) / If. Make sure the supply voltage is higher than the sum of all LED forward voltages, or the LEDs won't light up. For example, three 2V LEDs in series need at least 6V supply voltage.

What are standard resistor values?

Resistors come in standard value series. The E12 series has 12 values per decade (10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82) and is most common with 10% tolerance. The E24 series has 24 values for finer selection with 5% tolerance. Always round up to the nearest standard value for safety, as a slightly higher resistance means slightly less current, which is safer for the LED.

Why do different color LEDs need different resistors?

Different color LEDs use different semiconductor materials, which have different forward voltages (Vf). Red LEDs have Vf around 1.8-2.2V, while blue and white LEDs have Vf around 3.0-3.5V. Since R = (Vs - Vf) / If, a higher Vf means a lower resistor value is needed. Always check your LED's datasheet for the exact forward voltage.

Can I use one resistor for multiple LEDs in parallel?

It's not recommended. LEDs in parallel should each have their own resistor because even small differences in forward voltage between LEDs cause unequal current sharing. One LED might get too much current and burn out, while others get too little. Always use one resistor per LED in parallel configurations for reliable operation.

What happens if I use the wrong resistor value?

Too low (or no resistor): Excessive current flows, LED overheats and burns out quickly or instantly. Too high: LED receives insufficient current, appears dim or doesn't light at all. If unsure, err on the side of higher resistance - a dim LED is better than a destroyed one. You can always experiment with lower values if needed.

Privacy & Limitations

  • All calculations run entirely in your browser -- nothing is sent to any server.
  • Results are computed using standard formulas and should be verified for critical applications.

Related Tools

Related Tools

View all tools

LED Resistor Calculator FAQ

How do I calculate the resistor for an LED?

Use Ohm's law: R = (Vs - Vf) / If, where Vs is the supply voltage, Vf is the LED forward voltage, and If is the desired LED current (typically 20mA for standard LEDs). For example, with a 5V supply and a red LED (Vf = 2V) at 20mA: R = (5 - 2) / 0.02 = 150 ohms.

Why do LEDs need a resistor?

LEDs are current-controlled devices with very low internal resistance. Without a current-limiting resistor, excessive current flows through the LED, causing it to overheat and burn out almost instantly. The resistor limits the current to a safe level specified by the LED's datasheet.

What wattage resistor should I use?

Calculate power dissipation: P = (Vs - Vf) x If. Choose a resistor rated at least 2x the calculated power for safety. For most single-LED circuits at 20mA, a 1/4 watt resistor is sufficient. For higher currents or multiple LEDs, you may need 1/2 watt or 1 watt resistors.

Can I connect LEDs in series without individual resistors?

Yes, LEDs in series can share a single resistor because the same current flows through all of them. Add up the forward voltages of all LEDs and use: R = (Vs - total Vf) / If. Make sure the supply voltage is higher than the sum of all LED forward voltages.

What are standard resistor values?

Resistors come in standard value series. The E12 series has 12 values per decade (10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82) and is most common. The E24 series has 24 values for finer selection. Always round up to the nearest standard value for safety, as a slightly higher resistance means slightly less current.

Request a New Tool
Improve This Tool