LED Resistor Calculator

Calculate the current-limiting resistor for an LED circuit. Enter supply voltage, forward voltage, and target current to find the required resistor value, power rating, and nearest standard value.

Calculator Electronics Updated Apr 18, 2026
How to Use
  1. Enter your supply voltage (Vs) — battery or power rail feeding the circuit.
  2. Enter the LED forward voltage (Vf) from the datasheet — typical red is 2.0V, blue/white is 3.2V.
  3. Set the number of LEDs in series (N). Parallel LEDs need separate resistors.
  4. Enter the target LED current (If) in mA — 20mA is standard for indicator LEDs.
  5. Read the required resistance, nearest E24 standard value, and power rating.
  6. Check the warning if supply voltage is too low to drive the LED string.
Input
Vs (Volts)
Vf (Volts)
N
If (mA)
Presets
Circuit Visualization
Required R
Ω
Nearest E24
Ω
Power in R
mW
Resistor Rating
W

Show Work

Enter values and calculate to see the step-by-step breakdown.

Formulas

Resistance
R = (Vs − N·Vf) / If
Drop the excess voltage across the resistor at the target current.
Voltage Across R
Vr = Vs − N·Vf
Remaining voltage after the LED string drops its forward voltage.
Power in Resistor
P = If² · R
Heat dissipated by the resistor. Pick a wattage rating above this.
LED String Voltage
Vled = N · Vf
Total forward drop for LEDs wired in series.
Efficiency
η = Vled / Vs
Fraction of power going to light vs. wasted as heat.
Current Check
I = (Vs − N·Vf) / R
Verify actual current with the chosen (rounded) resistor.

History of the LED and its Current Limiter

The light-emitting diode was discovered in 1907 by Henry Round at Marconi Labs, who noticed that silicon carbide crystals glowed yellow when a current passed through them. Oleg Losev published a fuller account in 1927 but couldn't explain the physics; quantum band theory wouldn't be worked out until decades later. The first practical LED — infrared, gallium arsenide — arrived in 1962 from Nick Holonyak's team at General Electric, who also produced the first visible (red) LED later the same year. Blue LEDs waited another 30 years for Isamu Akasaki, Hiroshi Amano, and Shuji Nakamura to crack gallium nitride — work recognized with the 2014 Nobel Prize in Physics.

Because an LED is a diode, its current rises exponentially with voltage once past Vf. A tiny overvoltage is enough to destroy the junction in milliseconds. Early LED indicators in 1960s and 70s instrument panels used a series ballast resistor because it was the simplest solution then available — and the circuit remains unchanged in billions of devices today despite decades of semiconductor advances. For high-power LEDs (1 W+), constant-current switching drivers largely replaced the resistor in the 2000s; the resistor persists because it's cheap, small, and perfectly adequate for indicators.

The E24 standard resistor values (10, 11, 12, 13, 15, 16, 18, 20, 22, 24, 27, 30, 33, 36, 39, 43, 47, 51, 56, 62, 68, 75, 82, 91 — 24 values per decade) date to the Radio Manufacturers Association standards of the 1930s, designed so neighboring values cover each other's ±5% tolerance bands. When this tool rounds your theoretical resistance up to the nearest E24, it's respecting a 90-year-old industrial convention still in active use.

About This Calculator

Enter your supply voltage, LED forward voltage (from the datasheet — typical values: red 2.0 V, green 2.2 V, blue/white 3.2 V), number of LEDs in series, and target current (20 mA is safe for most standard indicators). The calculator returns the exact resistance needed, the nearest E24 standard value rounded up, the power dissipated by the resistor, and a recommended wattage rating with 2× safety margin.

Two built-in sanity checks: (1) if Vs ≤ N·Vf the tool flags that the string cannot light from this supply — either drop LEDs from the string, raise Vs, or switch to a boost driver; (2) if R rounds to a value whose actual current would exceed the LED's datasheet max, the tool warns you. Everything runs client-side; no values leave your browser.

Frequently Asked Questions

Why do LEDs need a resistor?

LEDs are current-driven devices with a narrow operating voltage range. Connecting an LED directly to a supply above its forward voltage would cause runaway current and destroy the LED. A series resistor drops the excess voltage and sets the current to a safe value.

How do I pick the resistor wattage?

Calculate the power dissipated by the resistor: P = I² × R. Then choose a resistor rated at least 2x that power (100% headroom) for safety margin against heat. Common sizes are 1/8W, 1/4W, 1/2W, 1W, and 2W.

What's an E24 value?

E24 is the standard resistor value series used in manufacturing. It has 24 values per decade: 10, 11, 12, 13, 15, 16, 18, 20, 22, 24, 27, 30, 33, 36, 39, 43, 47, 51, 56, 62, 68, 75, 82, 91. Your calculated value gets rounded up to the nearest E24 for real-world use.

Can I put LEDs in series to share one resistor?

Yes, if your supply voltage is high enough. Total forward voltage becomes N × Vf. Current through the string is the same for every LED. This is more efficient than parallel LEDs (which each need their own resistor due to Vf mismatch).

What if my supply voltage is too low?

If Vs ≤ N × Vf, a simple resistor can't regulate current — the LED won't light up properly. Options: use fewer LEDs in series, increase supply voltage, or use a dedicated LED boost driver.

Does LED color affect the calculation?

Indirectly — different colors have different forward voltages. Red/yellow: ~2.0V. Green: ~2.2V. Blue/white/UV: ~3.2V. Always check the LED's datasheet for the exact Vf at your target current.

Common Use Cases

Indicator LED on a 5V Rail

Most common use — a single red LED as a power-on indicator on Arduino, Raspberry Pi, or USB-powered circuits. Typical values: Vs=5V, Vf=2V, If=10mA → R=300Ω.

LED Strips from 12V

Automotive and landscape lighting. Three white LEDs (Vf=3.2V each) in series from 12V with 20mA target gives R=120Ω per strip segment.

GPIO Pin LED

Running a low-current LED directly from a microcontroller pin (3.3V or 5V). Keep current ≤10mA to avoid stressing the GPIO driver.

Flashlight & Panel Lighting

High-power LEDs (1W, 3W, 10W) need proper resistor wattage and usually benefit from a constant-current driver instead, but a resistor works for prototyping.

RGB Common-Anode/Cathode

Each color channel has its own Vf (R: 2V, G: 3.2V, B: 3.2V) and needs its own current-limiting resistor to balance brightness.

Prototyping & Breadboarding

Quick component selection without datasheet deep-dives. Default values (Vf=2V, If=20mA) get you a safe starting point for most common LEDs.

Last updated: