LED Resistor Calculator
Calculators · Added
An LED does not limit its own current. Once the voltage across it passes its forward threshold it will conduct as hard as the supply allows, which for most supplies means until something fails. A resistor in series fixes that by soaking up the difference between the supply and the LED's forward voltage. This works out how big that resistor has to be, which stocked value to buy instead of the exact figure, what current you actually end up with, and how much heat the resistor will be making.
How to use the led resistor calculator
- 1Enter the supply voltage, or pick one of the common rails.
- 2Enter the LED's forward voltage from its datasheet, or use one of the typical figures for its colour.
- 3Enter the forward current you want — 20 mA is the usual figure for a standard indicator, and less is often plenty.
- 4If several LEDs share one resistor in a series chain, set the count.
- 5Read the resistor to fit, and check the wattage line before choosing a part.
Examples
A red indicator on 5 V
- Input
- 5 V supply, 2 V forward, 20 mA
- Result
- 150 Ω exactly; fit 150 Ω, giving 20 mA and 60 mW
One of the rare cases where the arithmetic lands directly on a stocked value.
A white LED on 12 V
- Input
- 12 V supply, 3.2 V forward, 20 mA
- Result
- 440 Ω exactly; nearest E24 is 430 Ω, giving 20.5 mA
The resistor burns 180 mW against the LED's 64 mW — nearly three quarters of the energy becomes heat, which is why 12 V strips use drivers rather than resistors.
Three LEDs in series
- Input
- 12 V supply, 3.2 V forward, 20 mA, 3 LEDs
- Result
- 120 Ω, and only 48 mW wasted in the resistor
Stacking the LEDs uses up the supply voltage productively instead of dropping it across a resistor.
About the led resistor calculator
Why a diode needs help and a resistor does not
A resistor obeys a straight line: double the voltage across it and you double the current through it. That self-limiting behaviour is what makes it safe to connect one directly across a supply, as long as the wattage is right. A diode obeys an exponential instead. Below its forward voltage almost nothing flows; above it, the current rises so steeply that the device effectively pins the voltage across itself and lets the rest of the circuit decide the current.
That is the whole problem in one sentence. If the LED sets the voltage and nothing sets the current, the current is determined by whatever accidental resistance exists in the wires and the supply — which is neither predictable nor small enough to save the part. Putting a resistor in series makes the current predictable again, because now the resistor takes the leftover voltage and the leftover voltage divided by its resistance is the current.
This also explains why the calculation subtracts the forward voltage before dividing. The resistor does not see the whole supply; it sees what is left after the LED has taken its share. On a 5 V rail with a 3.2 V white LED, the resistor is only working with 1.8 V, which is why the required resistance is so much lower than a first guess suggests.
When a resistor is the wrong answer
The efficiency figure this page reports is the thing to watch. Every watt the resistor drops is heat, contributing nothing to light. On a 5 V supply with a red LED that is a reasonable trade. On a 12 V supply with a single LED, three quarters of the energy is wasted, and on a 24 V rail it is closer to seven eighths. For one indicator lamp nobody cares. For a hundred of them, or for anything battery powered, it is the dominant cost.
Two fixes exist and both appear in this calculator's output. The first is to stack LEDs in series so the supply voltage is used by the diodes rather than the resistor — the count field does exactly this, and the wasted fraction falls sharply with each one added. The second is a constant-current driver, an active circuit that regulates the current directly instead of relying on a fixed resistance. Every commercial LED lamp, torch and strip controller uses one.
There is one more reason drivers win outside the hobby bench: a resistor sets the current only for the supply voltage you designed around. A vehicle's nominal 12 V is anywhere from 11 V to 14.5 V depending on whether the engine is running, and a resistor sized for the middle of that range gives noticeably different brightness at the ends of it. A current source does not care.
Frequently asked questions
What happens if I leave the resistor out?
Where do I find the forward voltage?
Can I wire several LEDs to one resistor?
Why does the calculator suggest a different resistor from the exact answer?
Is 20 mA always the right target?
Related tools
Ohm's Law Calculator
Calculators
Enter any two of voltage, current, resistance and power to get the other two.
Resistor Color Code Calculator
Calculators
Read a resistor's value from its bands, or find the bands for a value you need.
Voltage Divider Calculator
Calculators
Find the output of a two-resistor divider, or the resistor that hits a target voltage.