Which resistor does your LED need?
The series resistor for one or more LEDs, rounded to a standard value, with its current and power rating.
What you enter stays on your device while you use this tool. Opening a shared link sends the settings in its address to HowToolbox to prepare the page.
Resistor (E12)
150 Ω
Use 150 Ω: it takes the 3 V the LED leaves of 5 V and lets 20 mA flow. The exact value would be 150 Ω.
Key values as a table
| Resistor | LED current |
|---|---|
| 39 Ω | 76.9 mA |
| 47 Ω | 63.8 mA |
| 56 Ω | 53.6 mA |
| 68 Ω | 44.1 mA |
| 82 Ω | 36.6 mA |
| 100 Ω | 30 mA |
| 120 Ω | 25 mA |
| 150 Ω | 20 mA |
| 180 Ω | 16.7 mA |
| 220 Ω | 13.6 mA |
| 270 Ω | 11.1 mA |
| 330 Ω | 9.09 mA |
| 390 Ω | 7.69 mA |
| 470 Ω | 6.38 mA |
| 560 Ω | 5.36 mA |
- Exact value
- 150 Ω
- Current with it
- 20 mA
- Resistor power
- 60 mW (use 1/8 W)
- Power into the LEDs
- 40%
The series resistor for one or more LEDs, rounded to a standard value, with its current and power rating.
How to use
- Enter the supply voltage and the forward voltage of your LED from its datasheet: about 2 V for red, yellow and orange, about 3 V for blue, white and bright green.
- Enter the current you want (20 mA suits a standard 5 mm LED; check the datasheet's maximum) and how many LEDs share the resistor in series.
- Use the standard value shown and a resistor rated for at least the power given. Drag the point on the curve to see how the current changes with the resistor.
How it works
An LED holds a nearly fixed voltage across itself and lets through as much current as the circuit allows, so connected straight to a supply it burns out. A resistor in series sets the current: it takes up the voltage the LED leaves over, and Ohm's law turns that voltage and the wanted current into a resistance.
The resistor is R = (Vs − n × Vf) ÷ I, where Vs is the supply voltage, Vf the forward voltage of one LED, n the number of LEDs in series and I the current. A red LED (2 V) at 20 mA from 5 V needs (5 − 2) ÷ 0.020 = 150 Ω. Three white LEDs (3.2 V) in series on 12 V need (12 − 9.6) ÷ 0.020 = 120 Ω. The resistor turns P = I² × R into heat, here 60 mW and 48 mW, so a 1/8 W or 1/4 W resistor is plenty.
Standard resistors come in fixed series, so the calculator picks the next value up, which keeps the current at or below your target. Forward voltage varies between LEDs and with temperature, so the real current can differ a little; with a supply only slightly above the LED voltage, it varies a lot. Sources: OpenStax University Physics, volume 2, section 9.4, and the IEC 60063 E series.
Worked example
Which resistor does a 2 V LED drawing 20 mA need on a 5 V supply?
- Voltage across the resistor: 5 − 2 = 3 V.
- Ohm's law: R = 3 V ÷ 20 mA = 150 Ω.
- Next standard value up: 150 Ω, which dissipates 0.06 W.
Use a 150 Ω resistor; a ¼ W part is plenty.
Sources
- OpenStax University Physics, vol. 2, §9.4 Ohm's LawUsed for: formula
- OpenStax University Physics, vol. 2, §9.5 Electrical Energy and PowerUsed for: formula
Frequently asked questions
Can several LEDs share one resistor?
A series string can share one resistor because the same current passes through every LED. Parallel branches should each have their own current-limiting resistor.
Where should I place the resistor?
It can go before or after the LED in the same series path. The current is the same in either position.
Must I run every LED at 20 mA?
No. Use the datasheet’s operating current for your LED and the brightness you need; many indicator LEDs are useful at much lower currents.
Can I use a higher wattage resistor?
Yes, if the resistance is correct. A higher power rating increases the heat the resistor can tolerate; it does not force more current through the LED.
Does this handle a flashing LED driven by PWM?
It calculates the current while the supply is on. It does not model PWM duty cycle, switching behaviour or pulse-current limits.





