What resistor sets the current in an LM317 current source?
R = 1.25 V ÷ I, between the OUTPUT and ADJUST pins, with the load from ADJUST to ground. 100 mA needs 12.5 Ω, and 500 mA needs 2.5 Ω.
Get the set resistor for a current source or LED driver from this LM317 constant current calculator, with the current spread the data sheet allows. It also shows the resistor power, the minimum supply voltage and how hot the regulator will run.
For LEDs, the sum of the forward voltages.
E24 set resistor (current at or below target)
13 Ω
Enter the load voltage at the operating current (for an LED string, the sum of the forward voltages). The LM317 holds the current whatever the load voltage does, as long as the headroom is there.
Nearby E24 values
| Resistor | Current (typ.) | vs target | Resistor power |
|---|---|---|---|
| 11 Ω | 114 mA | +13.7 % | 142 mW |
| 12 Ω | 104 mA | +4.2 % | 130 mW |
| 13 Ω | 96.2 mA | -3.8 % | 120 mW |
| 15 Ω | 83.4 mA | -16.6 % | 104 mW |
| 16 Ω | 78.2 mA | -21.8 % | 97.7 mW |
Use R = 1.25 V ÷ I, with the resistor between OUTPUT and ADJUST and the load from ADJUST to ground. For 100 mA that is 12.5 Ω, which rounds up to 13 Ω in E24 and gives 96.2 mA. The supply must be at least the load voltage plus 4.25 V.
The LM317 holds VREF between OUTPUT and ADJUST. Put one resistor there and connect the load to the ADJUST pin: the resistor current is fixed, and it flows on into the load.
The resistor always drops VREF, so its power does not depend on the supply:
The input must cover the load, the resistor and the regulator headroom:
The rest of the supply is lost as heat in the regulator:
R = 1.25 V ÷ (100 mA − 50 µA) = 12.5 Ω. Rounding up to E24 gives 13 Ω and 96.2 mA. The resistor dissipates 120 mW. The supply must be at least 10.25 V, so 12 V is enough. The regulator dissipates 457 mW; in a SOT-223 at 25 °C the junction reaches about 52 °C.
TI uses 24 Ω for its 50 mA constant-current charger: 1.25 V ÷ 24 Ω is 52.1 mA. With the data-sheet limits and a 1 % resistor, the current can be anywhere from 49.5 mA to 54.8 mA. A 6 V battery needs a supply above 10.25 V, matching TI’s VI greater than VBAT + 4.25 V.
1.25 V ÷ 350 mA rounds up to 3.6 Ω in E24, giving 347 mA and 434 mW in the resistor. The regulator dissipates 1.44 W. In a TO-263 (RθJA 41 °C/W) at 25 °C ambient the junction reaches about 84 °C, which is within the 125 °C limit on the data sheet’s figure.
E24 values, rounded up so that the current is at or below the target. Current is typical, including 50 µA of ADJUST current. The resistor power uses the 1.25 V typical reference.
| Target | Exact R | E24 R | Current | Resistor power |
|---|---|---|---|---|
| 20 mA | 62.7 Ω | 68 Ω | 18.4 mA | 23 mW |
| 50 mA | 25 Ω | 27 Ω | 46.3 mA | 57.9 mW |
| 100 mA | 12.5 Ω | 13 Ω | 96.2 mA | 120 mW |
| 200 mA | 6.25 Ω | 6.8 Ω | 184 mA | 230 mW |
| 350 mA | 3.57 Ω | 3.6 Ω | 347 mA | 434 mW |
| 500 mA | 2.5 Ω | 2.7 Ω | 463 mA | 579 mW |
| 700 mA | 1.79 Ω | 1.8 Ω | 694 mA | 868 mW |
| 1 A | 1.25 Ω | 1.3 Ω | 962 mA | 1.2 W |
| 1.5 A | 833 mΩ | 910 mΩ | 1.37 A | 1.72 W |
The highest current that keeps the junction at or below 125 °C at 25 °C ambient, for a given voltage across the regulator. RθJA values are the data sheet’s figures: new chip for SOT-223 and TO-263 (the legacy chip is 66.8 and 38.0 °C/W) and legacy chip for the TO-220. A real board can be better or worse, and the regulator is rated to 1.5 A at most.
| Across regulator | SOT-223 (59.6 °C/W) | TO-263 (41 °C/W) | TO-220 (23.5 °C/W) |
|---|---|---|---|
| 3 V | 559 mA | 813 mA | 1.42 A |
| 5 V | 336 mA | 488 mA | 851 mA |
| 10 V | 168 mA | 244 mA | 426 mA |
| 15 V | 112 mA | 163 mA | 284 mA |
| 20 V | 83.9 mA | 122 mA | 213 mA |
Headroom is the usual failure. If the supply sags or the LED voltage is higher than you assumed, the regulator drops out and the current falls, so check the worst case: lowest supply and highest load voltage. Heat is the second: the regulator dissipates everything the load does not use, and it has thermal overload protection, so an overheated driver will shut down and restart rather than hold its current. Check the shorted-load case too: the LM317 keeps regulating the same current, but nearly the whole supply now sits across it, so the dissipation can be several times the normal figure, and above 15 V across the regulator the guaranteed current limit falls below 1.5 A. Very small currents are the third problem: below 10 mA the result is not guaranteed. Finally, the 1.2 V to 1.3 V reference spread gives up to ±4 % on its own, so if you need better than that, use a dedicated current-regulator part.
R = 1.25 V ÷ I, between the OUTPUT and ADJUST pins, with the load from ADJUST to ground. 100 mA needs 12.5 Ω, and 500 mA needs 2.5 Ω.
P = (1.25 V)² ÷ R, which is the same as 1.25 V × I, whatever the supply voltage. A 13 Ω resistor dissipates 120 mW. TI asks for a power rating greater than this figure; twice the figure is a sensible margin.
At least the load voltage plus 4.25 V: 1.25 V across the resistor and up to 3 V of headroom across the regulator. TI states the same thing for its charger circuit, VI greater than VBAT + 4.25 V. A 6 V load therefore needs 10.25 V.
The data sheet gives a minimum load current of 3.5 mA typical and 10 mA maximum at 40 V across the regulator, and specifies VREF only from 10 mA. Design for 10 mA or more; below that, the calculated current is not guaranteed.
The ADJUST pin current (50 µA typical, 100 µA maximum) adds to the load current, and VREF can be anywhere from 1.2 V to 1.3 V. A 24 Ω resistor with 1 % tolerance gives 49.5 mA to 54.8 mA across those limits, not exactly 52.1 mA; this LM317 current source calculator reports that range.
Regulator power is about (VIN − VLOAD − 1.25 V) × I, and the junction reaches TA + P × RθJA. For 457 mW in a SOT-223 (RθJA 59.6 °C/W, the data sheet’s new-chip figure) at 25 °C ambient that is 52 °C, against a 125 °C limit.
For small currents and a supply close to the LED voltage, yes: it is cheap and simple. Every extra volt is lost as heat, though, and the 4.25 V overhead is large at low LED voltages, so a switching constant-current driver is a better choice above a few hundred milliamps.
Put the set resistor between OUTPUT and ADJUST and connect the LED string from ADJUST to ground, so R = 1.25 V ÷ I sets the LED current. The supply goes to the regulator input and must be at least the LED string voltage plus 4.25 V.
The LM317 holds VREF (1.25 V typical) between OUTPUT and ADJUST. With one resistor there and the load connected to the ADJUST pin, the resistor current is fixed and flows on into the load, along with the small ADJUST current.
Yes: the same circuit keeps regulating the same current even into a shorted load, so the load current stays near 1.25 V ÷ R. With a short, nearly the whole supply sits across the regulator, so check the dissipation for that case too.
See all free electronics tools →
ProtoFlow is free AI PCB design software: describe a circuit and get a schematic with real parts, PCB layout with an autorouter, SPICE simulation and Gerber files. Native KiCad, Altium and EAGLE import and export. Free on macOS, Windows and Linux.
Free to start. No card required.