Calculate the current limiting resistor for an LED from supply voltage, LED color and current, with the nearest standard value and its power rating.
Related Calculators
- Bridge Rectifier Output Voltage Calculator
- Capacitive Current Calculator
- Line To Neutral Voltage Calculator
- Battery Voltage Calculator
- All Physics Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| LED single / series | Finds the preferred resistor for one LED or a string of LEDs wired in series | Requires the supply voltage, LED color or forward voltage, target current and number of LEDs in series |
| LED parallel branches | Finds the resistor for each branch when every branch has one LED, plus the total current of all branches | Requires the supply voltage, LED color or forward voltage, target current per branch and number of branches |
| LM317 / LM338 current regulator | Finds the sense resistor that sets the output current of an adjustable regulator | Requires the target current and the reference voltage, 1.25 V unless changed |
| Ohmโs law: voltage + current | Finds resistance and power | Requires a voltage above zero and a current above zero |
| Ohmโs law: voltage + resistance | Finds current and power | Requires voltage and resistance |
| Ohmโs law: voltage + power | Finds current and resistance | Requires a voltage above zero and a power above zero |
| Ohmโs law: current + resistance | Finds voltage and power | Requires current and resistance |
| Ohmโs law: current + power | Finds voltage and resistance | Requires a current above zero and a power above zero |
| Ohmโs law: resistance + power | Finds voltage and current | Requires 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 | Exact resistance of the current limiting resistor (ฮฉ) |
| V | Supply voltage (V) |
| N | Number of LEDs in series on the resistor |
| Vf | Forward voltage of one LED (V) |
| I | Target 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].
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
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
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
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
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
R = V รท I
A 6 W load on 12 V draws 0.5 A, which corresponds to 24 ฮฉ.
Ohmโs law: current + resistance
P = V ร I
0.5 A through 24 ฮฉ drops 12 V and dissipates 6 W.
Ohmโs law: current + power
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
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
- Hewlett-Packard, Application Note 1005, Operational Considerations for LED Lamps and Display Devices: series resistor equation and the 2ร power rating rule
- Vishay, E-Series Values, Standard Series Values in a Decade According to IEC 60063: E24 and E12 preferred values
- Kingbright, WP7113ID T-1 3/4 (5 mm) Solid State Lamp datasheet: forward voltage of a red LED
- ON Semiconductor, AND8109/D, LED Constant Current Source Scheme: output current of about 1.25 V divided by the sense resistor
- Texas Instruments, LM317 3-Pin Adjustable Regulator datasheet, SLVS044Z: reference voltage range, adjust-pin current and current-limiter circuit
- 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
