Overview
LEDs need a resistor to limit current; without one they burn out almost instantly. This calculator finds the right value and power rating.
Enter the supply voltage, the LED’s forward voltage and current from its datasheet, and how many LEDs are in series.
Worked examples
| Inputs | Result |
|---|---|
| Supply voltage (V)5LED forward voltage (V)2LED current (mA)20LEDs in series1 | Exact resistor: 150 ΩNearest standard (E12, rounded up): 150 ΩResistor power: 60 mW → use a 1/8 W resistorActual current with 150 Ω: 20 mA |
Show 2 more examples
| Supply voltage (V)12LED forward voltage (V)3.2LED current (mA)20LEDs in series1 | Exact resistor: 440 ΩNearest standard (E12, rounded up): 470 ΩResistor power: 165 mW → use a 1/2 W resistorActual current with 470 Ω: 18.7 mA |
| Supply voltage (V)3.3LED forward voltage (V)2LED current (mA)10LEDs in series1 | Exact resistor: 130 ΩNearest standard (E12, rounded up): 150 ΩResistor power: 11.3 mW → use a 1/8 W resistorActual current with 150 Ω: 8.67 mA |
Exact resistor by supply voltage
With the calculator's starting values, the exact resistor is 150 Ω. The table shows how it changes with the supply voltage.
| Supply voltage (V) | Exact resistor (Ω) |
|---|---|
| 3 | 50 Ω |
| 4 | 100 Ω |
| 5starting value | 150 Ω |
| 6 | 200 Ω |
| 7 | 250 Ω |
Other inputs: LED forward voltage: 2 V · LED current: 20 mA · LEDs in series: 1. Change them in the calculator above for your own numbers.
How it works
The resistor drops the voltage the LEDs do not use: R = (Vsupply − n·Vf) ÷ I. The result is rounded up to the next standard E12 value, so the current stays at or slightly below the target.
The formula
| V_f | LED forward voltage |
| n | LEDs in series |
| I | Target current in amps |
Practical tips
- Each LED in parallel needs its own resistor; they do not share current evenly.
- Running LEDs below their rated current makes them last longer and still look bright.
Frequently asked questions
What resistor for a red LED on 5 V?
With 2 V forward voltage and 20 mA: 150 Ω.
What resistor for a white LED on 12 V?
About 3.2 V at 20 mA needs 440 Ω, so use 470 Ω.