Home · Science · Electrical Engineering · LED Resistor Calculator
LED Resistor Calculator
Works out the series resistor needed to run an LED safely from a supply voltage.
What this calculator does
Works out the series resistor needed to run an LED safely from a supply voltage. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
The resistor drops the difference between the supply and the LED's forward voltage at the chosen current. Enter the current in milliamps, the way LED datasheets state it.
Round the result up to the nearest standard resistor value you have. The resistor's power dissipation is shown so a suitably rated part can be picked.
Worked example
With the example inputs this page opens with (supply voltage (v) 5, led forward voltage (v) 2, led current (ma) 20), the result is 150 — series resistor. Change any figure and the result updates with the same formula.
Quick reference
| Supply voltage (V) | Series resistor |
|---|---|
| 2.5 | 25 |
| 4 | 100 |
| 5 | 150 |
| 6.25 | 213 |
| 7.5 | 275 |
| 10 | 400 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the LED Resistor Calculator work?
Works out the series resistor needed to run an LED safely from a supply voltage. Supply voltage · LED forward voltage · LED current → Resistor. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the LED Resistor Calculator need?
Supply voltage · LED forward voltage · LED current → Resistor. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the LED Resistor Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.