NodeLoop

LED Resistor Calculator

Quickly calculate the required series resistor for your LED. Find the nearest standard resistor value and power dissipation to safely light up your project.

Erratum
Updated
  • Before this date the calculator picked the nearest E24 value, which could be below the ideal resistance and push the LED current above the target (for example 130 Ω for an ideal 133 Ω). It now picks the next E24 value at or above the ideal resistance and shows the resulting current and power.

Sources: E series of preferred numbers (IEC 60063 E24 values).

Parameters

This is the voltage drop across the LED.

Check the LED datasheet. Older 5 mm indicator LEDs are rated around 20 mA; modern high-efficiency LEDs are often bright enough at 2–10 mA.

Results

Required Resistor:

Standard Resistor (next E24 value up):

Power Dissipation:

Circuit Diagram

Share & Export

Save Your Calculation

Copy a link to your calculation or export the results.

Theory & Formulas

To prevent an LED from burning out, a series resistor is needed to limit the current flowing through it. The calculation is a direct application of Ohm's Law.

Ohm's Law for LEDs

The resistor's value is determined by the source voltage (VS), the LED's forward voltage (VF), and the desired forward current (IF).

R = (VS - VF) / IF

Where IF is in Amperes (so we divide the milliamp value by 1000).

Power Dissipation

It's also crucial to use a resistor with an adequate power rating. The power dissipated by the resistor is calculated using the formula:

P = IF² * R

If the power is over 0.25W, you should consider a resistor with a higher power rating (e.g., 1/2W or 1W).

Frequently Asked Questions

Why do I need a resistor for an LED?

An LED's current rises exponentially with the voltage across it: a few tenths of a volt above its forward voltage can multiply the current many times, and the forward voltage also drops as the LED warms up. A fixed supply connected directly would therefore drive an uncontrolled, destructive current. The series resistor turns the excess voltage (VS − VF) into a defined current.

How do I choose the resistor's power rating (wattage)?

The power rating depends on how much energy the resistor needs to dissipate as heat. Our calculator shows this as "Power Dissipation". Always choose a resistor with a power rating higher than the calculated value. For most small LEDs, a standard 1/4W resistor is sufficient, but it's always critical to check.

What happens if my source voltage is lower than the LED's forward voltage?

If the source voltage (VS) is below the LED's forward voltage (VF), almost no current flows and the LED stays dark (or very dim near the threshold). Use a higher supply, a boost converter, or a lower-VF LED.