Calculate the current limiting resistor for an LED from supply voltage, LED color and current, with the nearest standard value and its power rating.

One resistor for one LED or a series string.

Filled from the LED color as a typical value; enter the datasheet Vf if you have it.

20 mA is typical for standard 5 mm indicator LEDs; check the datasheet maximum.

Optional settings


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
LED single / seriesFinds the preferred resistor for one LED or a string of LEDs wired in seriesRequires the supply voltage, LED color or forward voltage, target current and number of LEDs in series
LED parallel branchesFinds the resistor for each branch when every branch has one LED, plus the total current of all branchesRequires the supply voltage, LED color or forward voltage, target current per branch and number of branches
LM317 / LM338 current regulatorFinds the sense resistor that sets the output current of an adjustable regulatorRequires the target current and the reference voltage, 1.25 V unless changed
Ohmโ€™s law: voltage + currentFinds resistance and powerRequires a voltage above zero and a current above zero
Ohmโ€™s law: voltage + resistanceFinds current and powerRequires voltage and resistance
Ohmโ€™s law: voltage + powerFinds current and resistanceRequires a voltage above zero and a power above zero
Ohmโ€™s law: current + resistanceFinds voltage and powerRequires current and resistance
Ohmโ€™s law: current + powerFinds voltage and resistanceRequires a current above zero and a power above zero
Ohmโ€™s law: resistance + powerFinds voltage and currentRequires resistance and power

The two LED functions and the regulator function also take a preferred resistor series, E24 or E12, and a power-rating multiplier of 1.5ร—, 2ร— or 3ร—. They report the exact resistance, the next preferred value at or above it, the current that value gives, the heat the resistor dissipates and a suggested power rating. Voltages can be entered in V or mV, currents in A or mA, resistance in ฮฉ, kฮฉ or Mฮฉ and power in W or mW.

Current Limiter Resistor Formulas

R = (V โˆ’ N ร— Vf) รท I [1]
RExact resistance of the current limiting resistor (ฮฉ)
VSupply voltage (V)
NNumber of LEDs in series on the resistor
VfForward voltage of one LED (V)
ITarget current through the LEDs (A)

The resistor carries the voltage the LEDs do not use, so its value is that leftover voltage divided by the current [1]. A resistor of exactly that value is rarely sold, so the calculator moves up to the next value in the E24 or E12 series, which keeps the current at or below the target. E24 has 24 values in each decade, such as 4.7, 5.1 and 5.6, and E12 has every second one of them [2].

P = (V โˆ’ N ร— Vf) ร— Iactual

Iactual is the current with the preferred resistor in place, and P is the heat the resistor gives off. The suggested rating is P times the chosen multiplier. Rating a resistor at twice its real dissipation is the rule one LED maker gives in its design steps [1].

LED single / series

The main formula applies with N as the number of LEDs in the string. A 12 V supply, one red LED at 2 V and a 20 mA target give (12 โˆ’ 2) รท 0.02 = 500 ฮฉ. The next E24 value is 510 ฮฉ, which passes 10 รท 510 = 19.6 mA and dissipates 0.196 W, so the 2ร— rating is 0.392 W. The supply must be higher than N ร— Vf, and the calculation details show the largest number of LEDs the supply can drive in one string.

Choosing a color fills in a typical forward voltage: 1.9 V for infrared, 2.0 V for red, 2.1 V for orange and yellow, 2.2 V for green and 3.2 V for blue and white. A real datasheet figure is better. One 5 mm red LED, for example, is listed at 1.9 V typical and 2.3 V maximum at 10 mA [3].

LED parallel branches

R = (V โˆ’ Vf) รท I
Itotal = Iactual ร— branches

Each branch has one LED and its own resistor, sized with N = 1. Three white LEDs at 3.2 V on a 5 V supply at 20 mA each need (5 โˆ’ 3.2) รท 0.02 = 90 ฮฉ, so 91 ฮฉ from E24. Each branch then carries 19.78 mA and the supply delivers 59.34 mA. One shared resistor for all the LEDs is not modeled, because LEDs with slightly different forward voltages would not share the current evenly.

LM317 / LM338 current regulator

R = Vref รท I [4]

An adjustable regulator holds its reference voltage across a resistor placed between the output and adjust pins, so that resistor sets the current [4]. The calculator uses 1.25 V, the typical reference of the LM317, which can be anywhere from 1.2 V to 1.3 V from part to part [5]. A 350 mA target gives 1.25 รท 0.35 = 3.571 ฮฉ, so 3.6 ฮฉ from E24, 347.2 mA and 0.434 W in the resistor. The small adjust-pin current, about 50 ยตA, is left out [5]. The power figure covers the sense resistor only, not the heat in the regulator.

Ohmโ€™s law: voltage + current

R = V รท I
P = V ร— I [6]

The six Ohmโ€™s law functions all rest on these two relations: one ohm is one volt per ampere, and one watt is one volt times one ampere [6]. With 12 V and 0.5 A the resistance is 24 ฮฉ and the power is 6 W. These functions report the exact resistance and do not round to a preferred value.

Ohmโ€™s law: voltage + resistance

I = V รท R
P = V ร— I

12 V across 24 ฮฉ drives 0.5 A and dissipates 6 W. This is the check to run on a resistor already in hand.

Ohmโ€™s law: voltage + power

I = P รท V
R = V รท I

A 6 W load on 12 V draws 0.5 A, which corresponds to 24 ฮฉ.

Ohmโ€™s law: current + resistance

V = I ร— R
P = V ร— I

0.5 A through 24 ฮฉ drops 12 V and dissipates 6 W.

Ohmโ€™s law: current + power

V = P รท I
R = V รท I

6 W at 0.5 A means 12 V across the load, and 12 รท 0.5 = 24 ฮฉ.

Ohmโ€™s law: resistance + power

I = โˆš(P รท R)
V = I ร— R

A 24 ฮฉ resistor dissipating 6 W carries โˆš(6 รท 24) = 0.5 A at 12 V.

Limits of This Estimate

  • The forward voltages filled in by color are typical figures, and a real LEDโ€™s forward voltage changes with current, temperature and the individual part. These estimates are based on the best available data and estimations.
  • The result is a nominal value. Resistor tolerance and supply voltage swings move the real current, and a resistor alone does not guarantee that a component is safe.
  • The power rating is a starting point. Pick an available rating at or above it and apply the resistor makerโ€™s derating for hot surroundings.
  • The Ohmโ€™s law functions cover DC and purely resistive loads. Motors, coils and other reactive AC loads are outside this model.

Sources

  1. Hewlett-Packard, Application Note 1005, Operational Considerations for LED Lamps and Display Devices: series resistor equation and the 2ร— power rating rule
  2. Vishay, E-Series Values, Standard Series Values in a Decade According to IEC 60063: E24 and E12 preferred values
  3. Kingbright, WP7113ID T-1 3/4 (5 mm) Solid State Lamp datasheet: forward voltage of a red LED
  4. ON Semiconductor, AND8109/D, LED Constant Current Source Scheme: output current of about 1.25 V divided by the sense resistor
  5. Texas Instruments, LM317 3-Pin Adjustable Regulator datasheet, SLVS044Z: reference voltage range, adjust-pin current and current-limiter circuit
  6. NIST, Guide to the SI (Special Publication 811), Chapter 4, Table 3: the ohm as volt per ampere and the watt as volt times ampere