LED Resistor Calculator
Calculate the correct current-limiting resistor for your LED circuit
1LED Circuit Details
All LEDs share one resistor, same current flows through all
Check your LED datasheet (typically 1.8V-3.5V)
Standard LEDs: 20mA, High-power: 350mA+
All LEDs connected in a single chain
2Resistor Specifications
510Ω
Recommended Resistor
Calculated value: 500Ω
Min. Power Rating
500mW (1/2W)
Actual Current
19.6 mA
Power Dissipation
196.1 mW (0.196 W)
Circuit Diagram
Formula Reference
R = (Vs - Vf × n) / If
R = Resistance (Ohms)
Vs = Supply Voltage
Vf = LED Forward Voltage
n = Number of LEDs in series
If = LED Forward Current
Typical LED Forward Voltages
Why Do LEDs Need Current-Limiting Resistors?
LEDs are current-driven devices, not voltage-driven. Without a resistor to limit current, an LED will draw too much current from the power source, quickly overheating and burning out. The resistor ensures the LED receives the correct amount of current for safe, long-lasting operation.
How to Calculate LED Resistor Value
R = (Vs - Vf) / If
- • Vs = Your power supply voltage (e.g., 5V, 12V, 24V)
- • Vf = LED forward voltage from datasheet (varies by color)
- • If = Desired LED current (typically 20mA for standard LEDs)
The resistor drops the excess voltage that remains after the LED's forward voltage requirement is met. For multiple LEDs in series, multiply the forward voltage by the number of LEDs. Always choose a resistor with a power rating at least 2x the calculated dissipation.
Tips for LED Resistor Selection
- •Always use a resistor with higher power rating than calculated (2x recommended)
- •If exact resistor value isn't available, use the next higher standard value
- •For series LEDs, total forward voltage must be less than supply voltage
- •Consider using constant-current LED drivers for high-power applications
How this calculator works
- Add up the forward voltage of the LEDs in series (parallel branches use one LED's Vf).
- Exact resistance: R = (supply voltage − total Vf) ÷ current in amps.
- Round up to the next E24 standard value. Rounding down would push the current above what you entered.
- Recalculate the real current with that standard resistor, then the resistor's power: P = I² × R.
- Pick a resistor rated at least twice that power.
Worked example 1: one white LED on 5 V
Computed by this calculator's own code (method v1.1.0) when this page was built on 2026-11-20.
| Supply | 5 V |
|---|---|
| LED forward voltage | 3.3 V |
| Target current | 20 mA |
| LEDs | 1 (series) |
| Exact resistance | 85.0 Ω |
|---|---|
| Standard resistor (next E24 up) | 91 Ω |
| Actual current | 18.68 mA |
| Resistor power | 31.8 mW → 125mW (1/8W) |
The nearest E24 value would be 82 Ω, which lets about 20.7 mA flow, above the 20 mA target. That is why this calculator rounds up.
Worked example 2: three blue LEDs in series on 12 V
Computed by this calculator's own code (method v1.1.0) when this page was built on 2026-11-20.
| Supply | 12 V |
|---|---|
| LED forward voltage | 3.2 V each |
| Target current | 20 mA |
| LEDs | 3 (series) |
| Exact resistance | 120.0 Ω |
|---|---|
| Standard resistor | 120 Ω |
| Actual current | 20.00 mA |
| Resistor power | 48.0 mW → 125mW (1/8W) |
Resistor for one LED at 20 mA (this calculator's color presets)
| LED color | Vf | Supply | Exact R | E24 resistor | Actual current | Resistor power |
|---|---|---|---|---|---|---|
| Red | 2 V | 5 V | 150.0 Ω | 150 Ω | 20.0 mA | 60 mW |
| Red | 2 V | 12 V | 500.0 Ω | 510 Ω | 19.6 mA | 196 mW |
| Orange | 2.1 V | 5 V | 145.0 Ω | 150 Ω | 19.3 mA | 56 mW |
| Orange | 2.1 V | 12 V | 495.0 Ω | 510 Ω | 19.4 mA | 192 mW |
| Yellow | 2.1 V | 5 V | 145.0 Ω | 150 Ω | 19.3 mA | 56 mW |
| Yellow | 2.1 V | 12 V | 495.0 Ω | 510 Ω | 19.4 mA | 192 mW |
| Green | 2.2 V | 5 V | 140.0 Ω | 150 Ω | 18.7 mA | 52 mW |
| Green | 2.2 V | 12 V | 490.0 Ω | 510 Ω | 19.2 mA | 188 mW |
| Blue | 3.2 V | 5 V | 90.0 Ω | 91 Ω | 19.8 mA | 36 mW |
| Blue | 3.2 V | 12 V | 440.0 Ω | 470 Ω | 18.7 mA | 165 mW |
| White | 3.3 V | 5 V | 85.0 Ω | 91 Ω | 18.7 mA | 32 mW |
| White | 3.3 V | 12 V | 435.0 Ω | 470 Ω | 18.5 mA | 161 mW |
| UV | 3.4 V | 5 V | 80.0 Ω | 82 Ω | 19.5 mA | 31 mW |
| UV | 3.4 V | 12 V | 430.0 Ω | 430 Ω | 20.0 mA | 172 mW |
Forward voltages are typical preset values; your LED's datasheet value takes priority.
Assumptions and limits
- Forward voltage is treated as fixed. Real LEDs vary by part, temperature and current, so measure if the margin is tight.
- The supply is assumed to be regulated. An unregulated adapter can sit above its label voltage with a light load.
- High-power LEDs (350 mA and up) are usually better served by a constant-current driver than a resistor.
Sources
- IEC 60063: preferred number series for resistors (E24 values).
- Ohm's law (V = I × R) and Joule heating (P = I² × R).