Free calculatorLive resultsSteps and sourcesEmbed on your site, free

LED Resistor Calculator

LED Resistor Calculator works out Resistance needed and Power in the resistor from Supply voltage, LED forward voltage (per LED) and Forward current. The default figures on this page give resistance needed of 150.000 ohm; change any entry and the result, the working and the sources update together.

Resistance needed
150.000 ohm
LED Resistor Calculator
Power in the resistor
0.0600 W
Voltage across the resistor
3.0000 V
Nearest preferred value (rounded up)
150.00 ohm
Current with that preferred value
0.020000 A
Power in the LEDs
0.0400 W
Total power drawn
0.1000 W
Suggested resistor rating
0.125 W
Worked out from Ohm's law applied to the series resistor: R = (Vs - Vf) / I, P = (Vs - Vf) x I and 2 other sources.

Your figures

Updates as you type
From the LED datasheet at the current you intend to run - typically 1.8-2.2 V for red, 3.0-3.4 V for blue and white.
0.02 A is 20 mA, the usual rating for a 5 mm indicator LED. Check the datasheet.

How this is worked out

5 steps
  1. 1 LED(s) at 2 V each drop 2 V.
  2. Voltage left for the resistor = 5 - 2 = 3 V.
  3. R = 3 / 0.02 = 150 ohm.
  4. P = 3 x 0.02 = 0.06 W.
  5. Nearest E24 value at or above that: 150 ohm, giving 0.02 A.

Its 4 worked examples are re-run on every release, last on 15 September 2026. What changed

Sources and references

3 sources
Ohm's law applied to the series resistor: R = (Vs - Vf) / I, P = (Vs - Vf) x I
The LED itself is modelled by its datasheet forward voltage at the chosen forward current.
IEC 60063, Preferred number series for resistors and capacitors
E12 and E24 preferred values used to name the nearest stock resistor.
Researched engineering contract R947 (LED-R)
R = (Vs - Vf)/I; P = (Vs - Vf) x I; ground-truth cases R947-GT-1..5.

What the LED Resistor Calculator calculates

Sizes the series current-limiting resistor for one or more LEDs from the supply voltage, the LED forward voltage and the wanted forward current, and reports the power the resistor must dissipate.

How to use this LED Resistor Calculator

Enter Supply voltage, LED forward voltage (per LED), Forward current and LEDs in series on this resistor. Resistance needed updates as you type, and “Use a worked example” loads checked figures you can adjust. Change one figure at a time to see what drives the result.

How the result is worked out

Open “How this is worked out” beside the result for the step-by-step calculation behind Resistance needed, Power in the resistor and Voltage across the resistor.

The method follows Ohm's law applied to the series resistor: R = (Vs - Vf) / I, P = (Vs - Vf) x I, IEC 60063, Preferred number series for resistors and capacitors and Researched engineering contract R947 (LED-R).

5 V supply, 2 V red LED at 20 mA example

With Supply voltage: 5, LED forward voltage (per LED): 2, Forward current: 0.02, the calculator returns Resistance needed: 150, Power in the resistor: 0.06, Nearest preferred value (rounded up): 150. This example is checked against an independent source in the test suite.

What you can compare

Change one input at a time to see how it affects Resistance needed, Power in the resistor and Voltage across the resistor. The inputs you can vary are Supply voltage, LED forward voltage (per LED), Forward current, LEDs in series on this resistor and Preferred value series to round to.

Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.

Embed this calculator on your website

Copy this code into any page. The calculator appears with the figures currently entered, sizes itself to fit, and a small credit line links back here. Free, no account, no ads inside it, no tracking of your readers. Set your own figures and fixed fields; Personal removes the credit line, sets your colour and shows you which sites use it.

Preview

See something wrong? Report a problem with this calculator

Frequently asked questions

How do I calculate the resistor needed for an LED?

Sizes the series current-limiting resistor for one or more LEDs from the supply voltage, the LED forward voltage and the wanted forward current, and reports the power the resistor must dissipate. Open “How this is worked out” beside the result to see each step for your own figures.

What size resistor should I use with an LED?

Sizes the series current-limiting resistor for one or more LEDs from the supply voltage, the LED forward voltage and the wanted forward current, and reports the power the resistor must dissipate. On this page it is computed from Supply voltage, LED forward voltage (per LED) and Forward current and shown as Resistance needed, Power in the resistor and Voltage across the resistor.

How to match a resistor to an LED?

It needs Supply voltage, LED forward voltage (per LED), Forward current, LEDs in series on this resistor and Preferred value series to round to. Nothing else is required, and the figures stay in your browser.

Can I use a 100k resistor for LED?

Sizes the series current-limiting resistor for one or more LEDs from the supply voltage, the LED forward voltage and the wanted forward current, and reports the power the resistor must dissipate. On the figures this page opens with — supply voltage 5 V, LED forward voltage (per LED) 2 V and forward current 0.02 A — the resistance needed is 150 ohm. Put your own figures in their place and the working updates beside the result.

What information do I need for the LED Resistor Calculator?

You need Supply voltage, LED forward voltage (per LED), Forward current, LEDs in series on this resistor and Preferred value series to round to. The page opens with default figures that give resistance needed of 150.000 ohm, so you can see the scale before entering your own.

What does this LED Resistor Calculator show?

It shows Resistance needed, Power in the resistor, Voltage across the resistor, Nearest preferred value (rounded up), Current with that preferred value, Power in the LEDs, Total power drawn and Suggested resistor rating, with the working and any warnings for your entries.

Related calculators

View all related calculators5 more