LED Resistor Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Choose the current-limiting resistor for an LED or a string of LEDs in series.
Result
ResistorΩ
Power in the resistor (W)
- Power in the LEDs, total (W)
- Share of power reaching the LEDs (%)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
Affiliate link
This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.
Search Amazon for resistor assortment kits. Visit Amazon
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Supply voltage, in V: enter 0 or more.
- LED forward voltage, in V: enter 0 or more.
- LED current, in mA: enter 0 or more.
- Number of LEDs in series: enter 1 or more.
- Read the result: Resistor; the panel also shows Power in the resistor (W), Power in the LEDs, total (W) and Share of power reaching the LEDs (%).
How this calculator works
Ohm's law across the resistor: R = (V_s − n × V_f) ÷ I, where V_s is the supply voltage, V_f the forward voltage of each LED, n the number in series and I the current. The resistor dissipates P = I² × R.
Pick the next standard value above the result and a resistor rated well above its dissipation. A negative result means the supply is too low to light the string. Check V_f and the current on the LED's datasheet.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Supply voltage | V | |
| LED forward voltage | V | |
| LED current | mA | |
| Number of LEDs in series | ||
| Resistor | Ω |
Worked example
| Supply voltage | 5 V |
|---|---|
| LED forward voltage | 2 V |
| LED current | 20 mA |
| Number of LEDs in series | 1 |
| Power in the resistor (W) | 0.06 |
|---|---|
| Power in the LEDs, total (W) | 0.04 |
| Share of power reaching the LEDs (%) | 40% |
Resistor 150 Ω
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What resistor do I need for a 2 V, 20 mA LED on 5 V?
150 ohms, which dissipates 0.06 W.
Can I put LEDs in parallel on one resistor?
It is not recommended: small differences in forward voltage make the current split unevenly. Use one resistor per LED or per series string.