LM317 Adjustable Regulator Calculator
VOUT = 1.25 × (1 + R2/R1) + IADJ × R2. For 5 V, nearest R2 is 715 Ω.
Calculator
Formula
Adjustable output
VOUT = 1.25 V × (1 + R2/R1) + IADJ × R2 Variables
| Symbol | Meaning | Unit | Typical range | Precision | Default |
|---|---|---|---|---|---|
| VOUT | Target output | V | ≥ 0 V > 1.25 V when sizing R2; recommended up to 37 V | 4 sig | 5 V |
| R1 | OUT to ADJ | Ω | ≥ 0 mΩ TI programme example uses 240 Ω; 120 Ω draws the 10 mA min-load from the divider alone | 3 sig | 240 Ω |
| R2 | Nearest R2 | Ω | — | 3 sig | — |
| VO | Typical VOUT | V | — | 4 sig | — |
| Idiv | Divider current | A | — | 4 sig | — |
| Imin | Idiv + Iload | A | — | 4 sig | — |
| VIN−VOUT | Headroom | V | — | 3 sig | — |
Worked example
5 V, R1 = 240 Ω, no extra load
Ignoring IADJ gives R2 = 720 Ω. Divider is only 5.21 mA, below the 10 mA min-load maximum.
| Input | Value |
|---|---|
| VOUT · Target output | 5 V |
| R1 · OUT to ADJ | 240 Ω |
| Output | Value |
|---|---|
| R2 · Nearest R2 | 715 Ω |
| Idiv · Divider current | 5.208 mA |
| Imin · Idiv + Iload | 5.208 mA |
5 V, R1 = 120 Ω, R2 = 360 Ω
| Input | Value |
|---|---|
| VOUT · Target output | 5 V |
| R1 · OUT to ADJ | 120 Ω |
| Output | Value |
|---|---|
| VO · Typical VOUT | 5.018 V |
| Idiv · Divider current | 10.42 mA |
How it works
The LM317 holds 1.25 V typical between OUT and ADJ. That reference drives current through R1. The same current plus IADJ through R2 sets VOUT:
VOUT = 1.25 V × (1 + R2/R1) + IADJ × R2
TI’s programme example uses R1 = 240 Ω. That is a current-density choice for IADJ error, not a min-load solution: R1 = 240 Ω is only ~5.2 mA. This calculator fails the min-load check unless Idiv + Iload is at least 10 mA, the maximum of the 3.5 typ / 10 max mA spec. That is the thread that keeps showing up when two online calculators disagree with LTspice — they hid IADJ or they treated 3.5 mA typical as enough.
Pin order on TO-220 is 1 ADJ, 2 OUT (tab), 3 IN. For orderable suffixes and same-pinout differences, use the LM317 TO-220 notes and alternatives rather than a thin extra part-number URL.
Pitfalls
- R1 = 240 Ω is only ~5.2 mA. Copying the datasheet example without a load (or a smaller R1) is why an LM317 output drifts high at no load.
- Dropping IADJ. At R2 = 720 Ω the 50 µA typical term is 36 mV; the 100 µA maximum is 72 mV.
- Treating 3 V headroom as a guaranteed dropout. TI recommends about 3 V; the electrical table does not list a dropout spec.
- This is not a thermal pass certificate. Dissipation is (VIN − VOUT) × I; size a sink on the heat-sink calculator.
FAQ
What resistors give 5 V on an LM317?
R1 = 240 Ω and R2 = 715 Ω (E96) including typical IADJ. 720 Ω is the ratio-only textbook pair. Check the 10 mA min-load.
Why is 240 Ω not enough by itself?
1.25 V / 240 Ω is 5.21 mA. The min-load maximum is 10 mA, so you need extra load or a smaller R1 (120 Ω draws 10.4 mA).
Does this page pick an LM317 vendor?
No. It uses TI SLVS044 typicals and points at the TO-220 family notes. Same-pinout parts differ on guaranteed current and min-load — see the alternatives page.
What official PDF is this?
https://www.ti.com/lit/ds/symlink/lm317.pdf (SLVS044Z).
Related
Sources