Free tool · Math and study
LED resistor calculator
Enter your supply voltage, the LED voltage and the current you want. You get the resistor to buy, the actual current with it, and the watt rating it needs.
- Free
- No sign-up
- Runs in your browser
390 ΩE12 value, rounded up from 350 Ω · at least 1/2 W
- 17.949 mA with this resistor
- 89.744% of your target
- 1 LED in series
- Exact value
- 350 Ω
- Voltage across it
- 7 V
- Heat in the resistor
- 125.6 mW
- Safe rating (2×)
- 1/2 W
- Power in the LEDs
- 35.9 mW
- Drawn from the supply
- 161.5 mW
Your working: voltage left for the resistor = 9 V − 1 × 2 V = 7 V. Resistance = 7 V ÷ 0.02 A = 350 Ω. Next E12 value up: 390 Ω. Heat = (0.0179 A)² × 390 Ω = 0.1256 W.
A value rounded up lowers the current a little, which keeps the LED at or under its limit.
How to use the LED Resistor Calculator
- Type the Supply voltage of your battery or power supply.
- Type the LED voltage and the LED current from the LED data sheet. The numbers in the boxes are only examples.
- If you wire several LEDs one after another, set LEDs in series.
- Pick E12 or E24 to match the resistors you can buy, then read the resistor and its watt rating.
How do I pick a resistor for an LED?
An LED needs a resistor in line with it to limit the current. Subtract the LED voltage from the supply voltage, then divide by the current you want: R = (supply − LED voltage) ÷ current. With a 9 V supply, a 2 V LED and 20 mA, the resistor must drop 7 V. That is 7 ÷ 0.02 = 350 Ω.
Without the resistor, the LED would try to pull far more current than it can take, and it would burn out in moments. The resistor soaks up the extra voltage and sets the current. The LED voltage and the safe current come from the data sheet of your LED, so check there before you build.
Which standard resistor value should I use?
Shops sell resistors only in set sizes, called the E series. The E12 series has 12 values in each factor of ten: 10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82. Pick the next size up from your exact answer. Here 350 Ω becomes 390 Ω in E12, and 360 Ω in E24, the finer list with 24 values per factor of ten.
Going up is the safe direction, because a larger resistor means less current. With 390 Ω the LED runs at 17.9 mA, which is 89.7% of the 20 mA you asked for. That small drop is hardly visible to the eye. The standard value lists are set out in IEC 60063.
| Supply | Exact | E12 value | Real current | Rating |
|---|---|---|---|---|
| 3.3 V | 65 Ω | 68 Ω | 19.1 mA | 1/8 W |
| 5 V | 150 Ω | 150 Ω | 20.0 mA | 1/8 W |
| 9 V | 350 Ω | 390 Ω | 17.9 mA | 1/2 W |
| 12 V | 500 Ω | 560 Ω | 17.9 mA | 1/2 W |
| 24 V | 1.1 kΩ | 1.2 kΩ | 18.3 mA | 1 W |
How many watts does the resistor need?
The resistor turns the spare voltage into heat. Power is current squared times resistance. At 17.9 mA through 390 Ω, that is 126 mW. A common rule is to choose a resistor rated for at least double the heat it makes, so the part runs cool. The page rounds that up to the next common size, which here is 1/2 W.
Small LED circuits rarely need more than a quarter or half watt part. Higher supply voltages and bigger currents make the heat grow quickly, so the rating matters more as you scale up.
Can I run the LED at a lower current?
Yes. Type a smaller number in the current box. At 10 mA on the same 9 V supply, the resistor grows to 820 Ω and the LED glows more softly. Many indicator LEDs look bright enough at a fraction of their top current, and they last longer when run gently. The data sheet gives the maximum, and the calculator never needs you to reach it.
Battery projects gain the most from this. Half the current means roughly half the drain from the supply, so a small cell lasts about twice as long. The page shows the draw in milliwatts under Drawn from the supply.
What if I have several LEDs in a row?
Wire LEDs one after another and their voltages add up, while the same current flows through all of them. Three LEDs of 2 V each need 6 V. On a 12 V supply, the resistor only drops 6 V, so it comes to 300 Ω exact and 330 Ω in E12. Set LEDs in series to 3 and the page does this for you.
The supply must be higher than the total LED voltage. If it is not, the page says so, since no resistor can fix a supply that is too low. For a bank of LEDs side by side, give each LED its own resistor and add up the currents.
Use it with
- Ohm's Law Calculator: voltage, current, resistance and power from any two.
- Resistor Color Code Calculator: read 4, 5 and 6 band resistor values and tolerance.
- Battery Life Calculator: how long a battery runs a load.
Questions
What is the formula for an LED resistor?
R = (supply voltage − LED voltage) ÷ current. For 9 V, 2 V and 20 mA, that is 350 Ω.
Why round the resistor up?
A bigger resistor passes slightly less current, so the LED stays at or below its limit. A smaller one would push it over.
What is the difference between E12 and E24?
E12 has 12 sizes per factor of ten and E24 has 24. E24 gets closer to the exact value, but E12 parts are easier to find.
What LED voltage should I type?
Use the figure on your LED data sheet. The 2 V in the box is only an example.
What watt rating do I need?
Pick at least twice the heat shown. In the main example the heat is 126 mW, so a 1/2 W resistor is the choice.
Do I need one resistor per LED?
LEDs in a series string share one resistor. LEDs in parallel branches each need their own.
Sources
The tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations are checked against the tool's own output.