Skip to content
FiftyCalc Free calculators for all 50 states

LED Resistor Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Choose the current-limiting resistor for an LED or a string of LEDs in series.

Result

Sample figures

Resistor—Ω

Power in the resistor (W) —

  • Power in the LEDs, total (W)—
  • Share of power reaching the LEDs (%)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

LED Resistor Calculator

Supply voltage, in V: enter 0 or more. Prefilled example: 5.

LED forward voltage, in V: enter 0 or more. Prefilled example: 2.

LED current, in mA: enter 0 or more. Prefilled example: 20.

Number of LEDs in series: enter 1 or more. Prefilled example: 1.

Affiliate link

This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.

Search Amazon for resistor assortment kits. Visit Amazon

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Supply voltage, in V: enter 0 or more.
  2. LED forward voltage, in V: enter 0 or more.
  3. LED current, in mA: enter 0 or more.
  4. Number of LEDs in series: enter 1 or more.
  5. Read the result: Resistor; the panel also shows Power in the resistor (W), Power in the LEDs, total (W) and Share of power reaching the LEDs (%).

How this calculator works

Ohm's law across the resistor: R = (V_s − n × V_f) ÷ I, where V_s is the supply voltage, V_f the forward voltage of each LED, n the number in series and I the current. The resistor dissipates P = I² × R.

Pick the next standard value above the result and a resistor rated well above its dissipation. A negative result means the supply is too low to light the string. Check V_f and the current on the LED's datasheet.

The formula

  1. R=vs−n×vfi÷1,000
Symbols used in the formula
SymbolMeaningUnit
vsSupply voltageV
vfLED forward voltageV
iLED currentmA
nNumber of LEDs in series
RResistorΩ

Worked example

Supply voltage5 V
LED forward voltage2 V
LED current20 mA
Number of LEDs in series1
Power in the resistor (W)0.06
Power in the LEDs, total (W)0.04
Share of power reaching the LEDs (%)40%
  1. R=5−1×220÷1,000=150

Resistor 150 Ω

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What resistor do I need for a 2 V, 20 mA LED on 5 V?

150 ohms, which dissipates 0.06 W.

Can I put LEDs in parallel on one resistor?

It is not recommended: small differences in forward voltage make the current split unevenly. Use one resistor per LED or per series string.

Related calculators