Electronics · free · works offline
LED Resistor Calculator
Find the series resistor for one LED or several in series. Choose the LED colour, supply voltage and current, then get the standard resistor value, its power rating and the real LED current.
How it works
How to use the LED Resistor calculator
- 1
Pick the LED
Choose a colour to fill in a typical forward voltage, or type the value from your LED’s datasheet.
- 2
Set the supply and current
20 mA suits most standard 5 mm LEDs; 5–10 mA is often bright enough for indicators. Add LEDs in series if they share one resistor.
- 3
Use the result
Fit the standard resistor shown, rounded up so the LED is never over-driven, with at least the power rating given.
Reference
LED forward voltage by colour
Typical values for standard 5 mm LEDs at 20 mA, with the resistor for a 5 V and a 12 V supply. Your LED’s datasheet is the final word.
| LED | Forward voltage | Resistor on 5 V | Resistor on 12 V |
|---|---|---|---|
| Red | 2 V | 150 Ω (⅛ W) | 560 Ω (½ W) |
| Orange | 2.1 V | 150 Ω (⅛ W) | 560 Ω (½ W) |
| Yellow | 2.1 V | 150 Ω (⅛ W) | 560 Ω (½ W) |
| Green | 2.2 V | 150 Ω (⅛ W) | 560 Ω (½ W) |
| Blue | 3.2 V | 100 Ω (⅛ W) | 470 Ω (½ W) |
| White | 3.2 V | 100 Ω (⅛ W) | 470 Ω (½ W) |
| UV | 3.4 V | 82 Ω (⅛ W) | 470 Ω (½ W) |
| Infrared | 1.3 V | 220 Ω (⅛ W) | 560 Ω (½ W) |
More calculators
Other electronics calculators
Questions
LED Resistor Calculator FAQ
Free, instant and private: everything is worked out in your browser.
How do I calculate an LED resistor?
R = (supply voltage − LED forward voltage) ÷ current. For a red LED (about 2 V) on 5 V at 20 mA: (5 − 2) ÷ 0.02 = 150 Ω.
What resistor do I need for an LED on 5 V?
About 150 Ω for red, yellow or green LEDs at 20 mA, and about 100 Ω for blue and white LEDs (forward voltage near 3.2 V). For indicators, 330 Ω to 1 kΩ gives a dimmer, longer-lasting light.
What resistor do I need for an LED on 12 V?
For one red LED at 20 mA, about 560 Ω (½ W). Three white LEDs in series share one 120 Ω resistor, which wastes much less power.
Why round the resistor up?
The exact value is rarely sold. Taking the next standard value up keeps the current at or below what you chose. On 9 V with a 2.1 V LED the exact 345 Ω becomes 390 Ω, giving 17.69 mA.
Can several LEDs share one resistor?
In series, yes: one resistor for the whole string, as long as the supply is higher than all the forward voltages added up. In parallel, give each LED its own resistor; LEDs share current unevenly and one can burn out.
What resistor wattage do I need?
Power in the resistor is I² × R. The calculator picks a rating at least twice that, which keeps it cool. Most single indicator LEDs need only a ⅛ W or ¼ W resistor.
Do I need a resistor for a 3 V coin cell or a high-power LED?
Small coin cells limit the current themselves, which is why they are used without one. High-power LEDs (350 mA and up) should use a constant-current driver rather than a resistor.