LED Resistor Calculator
The series resistor, rounded up to a standard value.
The series resistor, rounded up to a standard value. R = (supply − forward voltage) ÷ current.
About 2 V for red, 3.2 V for blue and white.
Series resistor (Ω)
150
Use 150 Ω — the next standard value up
R = (supply − forward voltage) ÷ current. The standard value chosen is always the next one *up*, never the nearest: rounding down raises the current above the LED's rating, so the safe direction is unambiguous. At 60 mW a common 250 mW resistor is comfortable, but the recommended rating leaves headroom — a resistor run at its limit gets hot enough to matter.
How the LED Resistor Calculator works
R = (supply − forward voltage) ÷ current. The standard value suggested is always the next one *up*, never the nearest: rounding down raises the current above the LED's rating, so the safe direction here is unambiguous.
Also known as: resistor for an led · led series resistor calculator · current limiting resistor calculator · led resistor formula
The calculation itself
R = (supply voltage − LED forward voltage) ÷ current. A 5 V supply, a 2 V red LED and 20 mA needs (5 − 2) ÷ 0.02 = 150 Ω.
The LED's forward voltage is roughly fixed by its chemistry (about 2 V for red, 3.2 for blue and white) which is why an LED cannot simply be connected to a supply. Without the resistor, current is limited only by the LED's own tiny resistance, and it destroys itself.
Why round up, never to nearest
Standard resistors come in fixed steps, so the calculated value rarely exists as a part. The obvious move is to pick the nearest one, and it is the wrong move.
Rounding down lowers the resistance and raises the current above the LED's rating, shortening its life or destroying it. Rounding up costs a little brightness, which is almost always invisible.
The asymmetry is total: one direction costs nothing you will notice, the other costs the component. So this page always suggests the next value up.
Where to go next
The LED Resistor question rarely arrives on its own. These are the ones that usually come with it:
- Voltage Divider Calculator — Output voltage, current and the power each resistor dissipates.
- Resistor Calculator — Series and parallel totals for up to four resistors.
- Battery Life Calculator — Runtime with a derating factor, because the ideal figure never happens.
- Speed Distance Time Calculator — Any one of the three from the other two, in four units.
Frequently asked questions
What resistor does my LED need?
Subtract the LED's forward voltage from the supply, then divide by the desired current. A 5 V supply, a 2 V red LED and 20 mA needs 150 Ω.
What is an LED's forward voltage?
Roughly 2 V for red, 2.1 for yellow, 3.2 for blue, white and green. It varies by part, so the datasheet is worth checking when precision matters.
Why round up rather than to the nearest value?
Because rounding down increases the current beyond the LED's rating. Rounding up costs a little brightness; rounding down costs LED lifetime.
What power rating do I need?
Multiply the voltage across the resistor by the current. At 60 mW an ordinary 250 mW resistor is comfortable — running one near its rating makes it hot enough to matter.
Put this calculator on your own site
Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.
<iframe src="https://www.thecalclibrary.com/embed/led-resistor-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="LED Resistor Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/led-resistor-calculator" style="color:#64748b">LED Resistor Calculator</a> from The Calc Library</p>The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.
Related calculators
Voltage Divider Calculator
Output voltage, current and the power each resistor dissipates.
OpenResistor Calculator
Series and parallel totals for up to four resistors.
OpenBattery Life Calculator
Runtime with a derating factor, because the ideal figure never happens.
OpenSpeed Distance Time Calculator
Any one of the three from the other two, in four units.
Open