Free online formula calculators

LED Resistor Calculator

Calculate the series resistor needed to run one or more LEDs at a safe current, then pick the next standard E12 value and a suitable power rating.

LED Resistor Calculator
V
V
mA
Result
Exact resistance200.0 Ω
Next standard E12 value220 Ω
Current with E12 resistor13.64 mA
Resistor power (E12 value)0.041 W
Suggested resistor rating1/8 W or higher

Link to this calculation

Formula

R = (Vs − n × Vf) ÷ If
P = If2 × R
SymbolMeaning
VsSupply voltage
VfLED forward voltage (from the datasheet)
nNumber of LEDs connected in series
IfDesired LED current, in amperes
PPower dissipated in the resistor

How to Use This Calculator

  1. Enter the Supply voltage (V).
  2. Enter the LED forward voltage (V). Red ≈ 1.8–2.2 V, green/blue/white ≈ 2.8–3.4 V.
  3. Enter the LED current (mA). Standard 5 mm LEDs are usually rated for 20 mA maximum.
  4. Enter the LEDs in series.
  5. Press Calculate. Results also update automatically as you type.

Worked Example

Using the values pre-filled in the calculator above:

Inputs
Supply voltage5 V
LED forward voltage2 V
LED current15 mA
LEDs in series1
Results
Exact resistance200.0 Ω
Next standard E12 value220 Ω
Current with E12 resistor13.64 mA
Resistor power (E12 value)0.041 W
Suggested resistor rating1/8 W or higher

About This Calculation

An LED is a diode, not a resistor: once the voltage across it reaches its forward voltage, current rises very steeply with only a small further increase in voltage. Connected straight to a battery, it would draw far more than its rating and burn out. A series resistor absorbs the difference between the supply voltage and the LED's forward voltage and so sets the current according to Ohm's law.

Take the forward voltage and recommended current from the LED's datasheet. Typical values are about 2 V for red, yellow and orange LEDs and about 3 V for blue, white and most green ones. Many indicator LEDs are bright enough at 5–10 mA, well below the usual 20 mA maximum, which also extends their life and saves battery.

Resistors are sold in standard series. This calculator rounds up to the next value in the E12 series (1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2 and their multiples of ten), so the actual current is slightly below your target, which is the safe direction. Choose a resistor rated for at least twice the dissipated power so it runs cool. When chaining several LEDs in series, leave a volt or more across the resistor; if the supply is only just above the total forward voltage, small variations make the current unpredictable.

Frequently Asked Questions

What resistor do I need for an LED on 5 V?
For a red LED (about 2 V) at 15 mA: (5 − 2) ÷ 0.015 = 200 Ω, so use the next standard value, 220 Ω. For a white LED (about 3.2 V) at 15 mA you need 120 Ω.
Can several LEDs in parallel share one resistor?
It is not recommended. Small differences in forward voltage make one LED hog the current. Give each parallel LED its own resistor, or wire them in series.
Why round up rather than to the nearest value?
A higher resistance gives slightly less current, which keeps the LED within its rating. The brightness difference is usually unnoticeable. You can explore values with the Ohm's law calculator.

Category: Electrical & Engineering. Found a problem with this calculator? Let us know.