Home · Everyday · Tech, Text & Media · LM317 Calculator
LM317 Calculator
Works out an LM317 regulator's output voltage from its resistor pair, or the R2 needed for a target voltage.
What this calculator does
Works out an LM317 regulator's output voltage from its resistor pair, or the R2 needed for a target voltage. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
The LM317 holds 1.25 V between its output and adjust pins, so Vout = 1.25 × (1 + R2/R1) + Iadj × R2, with the adjust-pin current Iadj ≈ 50 µA (0.00005 A) as the small second term. R1 = 240 Ω is the conventional choice because it keeps the divider current well above Iadj while wasting little power; the reverse mode solves the same equation for R2 given a target voltage.
The Iadj term is why the exact formula includes 0.00005 × R2 — with large R2 values it can add a noticeable fraction of a volt. The regulator also needs the input to stay about 3 V above the output (dropout) and a minimum load current, typically 5–10 mA, to regulate properly.
Worked example
With the example inputs this page opens with (r1 (ω) 240, r2 (ω) 720, target output voltage (v) 5), the result is 5.036 V — output voltage. Computed from the inputs on this page with the formula below — change any figure and every result updates.
Quick reference
| R2 (Ω) |
|---|
| 100 |
| 240 |
| 470 |
| 720 |
| 1000 |
| 2200 |
| 4700 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Why is R1 usually 240 Ω?
It draws about 5 mA through the divider, comfortably above the adjust-pin current and the regulator's minimum load, while keeping dissipation low — a long-standing datasheet recommendation.
How does the LM317 Calculator work?
Works out an LM317 regulator's output voltage from its resistor pair, or the R2 needed for a target voltage. Mode · R1 · R2 · Target voltage → Output voltage / required R2. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the LM317 Calculator need?
Mode · R1 · R2 · Target voltage → Output voltage / required R2. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the LM317 Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.