LED Resistor Calculator

LED Resistor Calculator

Calculate the correct current-limiting resistor value for LEDs. Determine resistor requirements, power dissipation, and select standard component values.

Last updated: April 2026 | Electronics & LED Design Tool

Calculate Resistor Value

Voltage from power supply (5V, 12V, etc.)

Red: 2.0V, Green: 3.0V, Blue: 3.5V, White: 3.5V

Standard: 10-20 mA (check datasheet)

Resistor Value (Calculated)
500.00 Ω
Exact calculated value
Standard E12 Value
560 Ω
Next standard value up (for safe current limiting)
Power Dissipation
0.200 W
Use 0.40W rated resistor

What is Current Limiting?

LEDs are current-driven devices, not voltage-driven. Each LED requires a specific forward current (typically 10–20 mA) to operate safely and produce light efficiently. Without current limiting, an LED will draw excessive current and burn out almost instantly when connected to a voltage source. A series resistor limits current flow to safe levels by dropping the excess voltage across itself.

Ohm's Law Application: The resistor value is calculated using Ohm's Law: R = (Vsupply − Vf) / Iforward. The voltage drop across the resistor equals the supply voltage minus the LED's forward voltage drop. This difference is divided by the desired current to find the required resistance. For example, with a 12V supply, 2V LED forward voltage, and 20 mA desired current: R = (12−2) / 0.02 = 500 Ω.

Power Dissipation: The resistor also dissipates power as heat: P = I² × R or P = V × I. Always select a resistor with a power rating at least 2× the calculated dissipation to ensure reliability and longevity. Using standard resistor values (E12 or E24 series) from the nearest value above calculated ensures safe current limiting.

How to Select an LED Resistor

1

Identify LED Specifications

Look up your LED's forward voltage (Vf) and maximum forward current (If) from the datasheet. Typical red LEDs: 2.0V @ 20mA. Green/Yellow: 2.1V @ 20mA. Blue/White: 3.3-3.5V @ 20mA.

2

Determine Supply Voltage

Know your power source voltage: battery (1.5V to 24V), logic circuit (3.3V or 5V), or external supply (12V, 24V). Verify the supply can safely handle the current drawn by the LED(s).

3

Calculate Resistor Value

Use this calculator or the formula R = (Vsupply − Vf) / ILED. The result is the minimum resistance needed. Always round UP to the next standard resistor value to ensure current doesn't exceed the LED's rating.

4

Select Resistor Power Rating

Calculate power dissipation: P = (Vsupply − Vf) × ILED. Choose a resistor rated for at least 2× the calculated power dissipation (typical: 1/2 W or higher for standard LEDs). This 2× safety margin ensures thermal reliability and component longevity.

5

Install and Test

Connect the resistor in series with the LED before the positive supply. Verify the LED illuminates at expected brightness. If too dim, the resistor value might be too high. If very bright (unsafe), value is too low—replace with a higher value.

Example: Red LED on 12V Supply

Connect a red LED (2.0V @ 20mA) to a 12V power supply:

Supply Voltage:
12V (typical automotive or power supply)
LED Forward V:
2.0V (typical red LED)
LED Current:
20 mA (standard brightness)
Formula:
R = (12V − 2V) / 0.020A = 500 Ω
Standard Value:
Use 560 Ω (nearest E12 value above 500 Ω) for safe margin
Power Diss.:
P = 10V × 0.020A = 0.2W (use 0.5W or 1/4W resistor minimum)

Frequently Asked Questions

What happens if I don't use a resistor?

The LED will draw excessive current limited only by its internal resistance and the supply source resistance. Most LEDs will burn out almost instantly—the semiconductor junction overheats and fails permanently. Always use a current-limiting resistor.

Can I use a smaller resistor for brighter light?

While smaller resistors allow more current and slightly brighter light initially, they also shorten the LED's lifespan dramatically. Most LEDs are rated for 10–20 mA optimal brightness. Exceeding 30 mA typically damages the LED within hours or minutes.

What if my resistor value isn't available?

Use the next higher standard E12 or E24 value. For example, if calculated is 500 Ω, use 560 Ω or 680 Ω (both safe). Never use a lower value. The E12 series (10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82) covers most common applications.

How do I connect multiple LEDs?

Series: one resistor for all LEDs. Parallel: one resistor per LED branch (critical to prevent one bright LED stealing current from others). Series-parallel: multiple strings in parallel, each with its own resistor. Calculate based on total voltage drop and desired current.

Why does my resistor get hot?

Power dissipation creates heat. A 1/4W resistor rated for typical LED circuits (0.05–0.3W) should stay cool. If hot, the resistor value is too low or the supply voltage too high. Replace with a higher resistance value or a resistor with higher power rating (1/2W).

What's the difference between 1/4W and 1/2W resistors?

1/4W resistors handle up to 0.25W continuously; 1/2W handle 0.5W. For safety, always choose a resistor with power rating 2× your calculated dissipation. Use 1/2W for high-power LEDs or when operating near rated limits.

Can I use a potentiometer to dim an LED?

Yes! A potentiometer (variable resistor) allows adjustment of current and brightness. Connect it in series like a fixed resistor. However, setting it too low will burn out the LED, so understand the safe current range before adjusting.

Why aren't I using the exact calculated value?

Exact values often don't exist as standard components. Standard resistor series (E12, E24, E96) provide practical values. Rounding up to the next standard value adds safety margin and ensures the LED operates within safe limits with slight brightness reduction.

Related Tools