Skip to main content

LED resistor calculator

An LED needs its current to be limited. This calculator sizes the resistor for one branch containing one or more identical LEDs in series. It distinguishes the theoretical resistance from an available preferred value, then recalculates current and dissipation for that value. Use it to prepare an indicator, check a teaching circuit or compare two DC supplies.

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Enter the available DC supply, forward voltage from the data sheet at the intended current, and number of identical series LEDs. Choose the desired current and its unit, then E12 or E24. The proposed resistor is rounded upwards. Compare both power figures and the actual current. Check tolerances and temperature before choosing a component.

The model assumes identical LEDs, a stable DC supply and constant forward voltage; it does not simulate the current–voltage curve.

Calculation results

Theoretical resistance
—
Next preferred resistance
—
Theoretical power
—
Current with preferred value
—
Power with preferred value
—

Was this tool useful?

On this page

How does this tool work?

An LED needs its current to be limited. This calculator sizes the resistor for one branch containing one or more identical LEDs in series. It distinguishes the theoretical resistance from an available preferred value, then recalculates current and dissipation for that value. Use it to prepare an indicator, check a teaching circuit or compare two DC supplies.

The resistor drops the supply voltage minus the sum of the LED forward voltages. The same current flows through every component in the series branch. Volts divided by amperes give ohms; the mA selector avoids a thousandfold conversion error. If the supply does not exceed N × Vf, a positive resistor cannot provide the requested operating point and previous results are cleared.

E12 and E24 select the first nominal resistance at or above the theoretical result. Choosing upwards avoids deliberately increasing the nominal current. It does not guarantee a maximum real current: a resistor below nominal tolerance, a higher supply or a lower forward voltage can still increase it. A preferred-value series does not by itself specify the tolerance of the component you buy.

The theoretical power belongs to the requested current; the preferred-value power belongs to the proposed resistor. Choose a rated power with allowance for temperature and the manufacturer’s derating instructions. Calculated dissipation is neither a commercial part rating nor a thermal guarantee. High-power LEDs or variable supplies may call for a constant-current driver.

How to use this tool

  1. Choose inputs

    Enter the available DC supply, forward voltage from the data sheet at the intended current, and number of identical series LEDs.

  2. Configure the calculation

    Choose the desired current and its unit, then E12 or E24. The proposed resistor is rounded upwards.

  3. Interpret the result

    Compare both power figures and the actual current. Check tolerances and temperature before choosing a component.

Model and formulas

The model assumes identical LEDs, a stable DC supply and constant forward voltage; it does not simulate the current–voltage curve.

R = (Us − N × Vf) / I

P = (Us − N × Vf) × I

Istandard = (Us − N × Vf) / Rstandard

Us
Supply voltage (V)
Vf
Forward voltage per LED (V)
N
LEDs in series
I
Desired current (A)

Use cases

Plan an indicator

Choose a DC indicator resistor and check dissipation before assembly.

Compare series

Compare currents obtained with available E12 and E24 resistors.

Check an LED chain

Check voltage headroom for several identical LEDs in series.

Examples

Red LED on a 5 V supply

The resistor drops 3 V. Three 2 V LEDs on 12 V at 20 mA require 300 Ω and dissipate 0.12 W. E12 instead gives 330 Ω, about 18.18 mA and 0.1091 W.

Input

Us = 5 V; Vf = 2 V; I = 20 mA; N = 1; E24

Result

R = 150 Ω; P = 0.06 W; Istandard = 20 mA

Tips and best practices

  • Independent parallel LED branches need their own current limitation; one shared resistor does not reliably balance them.
  • Forward voltage varies with current and temperature. A typical value for an LED colour is not an operating guarantee.
  • The model assumes identical LEDs, a stable DC supply and constant forward voltage; it does not simulate the current–voltage curve.

Sources and references

Frequently asked questions

Why choose the next higher value?

A lower resistance would increase current above the target in the nominal model. The recalculated current shows the trade-off between brightness and available components.

Can I connect several LEDs in series?

Yes, provided the supply exceeds their combined forward voltages. They share one current; a parallel branch is a different circuit.

What resistor power rating should I buy?

Start from the preferred-value dissipation and apply the manufacturer’s derating and suitable margin. A rating equal to nominal dissipation leaves no allowance.

Related tools

Tools similar or complementary to this one.

Works well with