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.

Your figures

Example result — edit the figures to make it yours

150

Series resistor

Resistor dissipation60.0 mW

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

R = (V supply − V forward) ÷ I forward

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

Quick reference — varying supply voltage (v)
Supply voltage (V)Series resistor
2.525
4100
5150
6.25213
7.5275
10400

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.