🔬
🔬 Science & engineering

LM317 Calculator (output voltage from R1 and R2, R2 for a target voltage)

Results update as you type.

Your numbers

Understanding the LM317 calculator — concept and principle

This calculator works out the output voltage of an LM317 adjustable regulator from its two resistors, or the R2 needed for a target voltage. It also shows the current through R1, the input–output headroom and the power the regulator turns into heat. Electronics hobbyists and engineers use it to design simple adjustable power supplies.

LM317 output voltageSetting an LM317 to 5 VR1 · R2240 · 720 ΩI_ADJ50 µAIn · load12 V · 500 mA1.25 × (1 + 720/240) = 5 V+ 50 µA × 720 Ω = 0.036 VOutput voltage5.036 VDissipation3.48 WR2 for exactly 5 V713 Ω
The chip holds 1.25 V across R1; R2 multiplies it up, and the 7 V dropped inside turns into heat.

How it is calculated

V_out = 1.25 V × (1 + R2 ÷ R1) + I_ADJ × R2

R2 for a target = (V_out − 1.25) ÷ (1.25 ÷ R1 + I_ADJ)

Current through R1 = 1.25 ÷ R1

Dissipation P = (V_in − V_out) × I_load

The principle

The LM317 holds about 1.25 V between its output and adjustment pins. That fixed voltage across R1 sets a fixed current, which then flows down through R2 to ground. The voltage across R2 adds to the 1.25 V, so the ratio R2/R1 sets the output. A small current, I_ADJ, also leaves the adjustment pin and flows through R2, adding a few tens of millivolts. The regulator drops the difference between input and output across itself, so all that voltage times the load current becomes heat.

Worked example

Default inputs: R1 = 240 Ω, R2 = 720 Ω, I_ADJ = 50 µA, V_in = 12 V, load 500 mA, target 5 V.

  1. Without I_ADJ: 1.25 × (1 + 720/240) = 5 V.
  2. I_ADJ term: 50 × 10⁻⁶ × 720 = 0.036 V, so V_out = 5.036 V.
  3. Current through R1 = 1.25 ÷ 240 = 5.21 mA.
  4. Headroom = 12 − 5.036 = 6.96 V; dissipation = 6.96 × 0.5 = 3.48 W.
  5. R2 for exactly 5 V = 3.75 ÷ (0.0052083 + 0.00005) = 713 Ω; check: at least 3 V headroom.
How Output voltage (V) changes with R1 – resistor from OUT to ADJ (Ω)How Output voltage changes with R1 – res…0510152060120180240300360480Example: 5.036R1 – resistor from OUT to ADJ (Ω)
Each point is the calculator re-run with only “R1 – resistor from OUT to ADJ (Ω)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
R1 – resistor from OUT to ADJ (Ω)Output voltage (V)
6016.286
1208.786
1806.286
2405.036
3004.286
3603.786
4803.161

How to read the result

3.48 W is too much for a bare TO-220 package; a heatsink is needed. The TI datasheet specifies regulation with at least 3 V between input and output, so keep that headroom. The reference varies between parts, so measure the output and trim if precision matters.

Common mistakes

Keep in mind: Check the datasheet for your specific part, including heatsinking, minimum load and protection diodes. Mains-powered supplies must follow electrical safety rules.

Frequently asked questions

Why is R1 often 240 Ω?

It draws about 5 mA through R1, which helps meet the regulator's minimum load requirement.

Can I ignore I_ADJ?

Often yes for rough work; it adds only a few tens of millivolts with typical R2.

How hot will it get?

It dissipates (V_in − V_out) × I_load; use the package's thermal resistance to estimate the temperature rise.

What is the lowest output?

About 1.25 V, with R2 = 0.

Sources: Texas Instruments, LM317 3-Terminal Adjustable Regulator datasheet, SLVS044H

Checked 9 Nov 2026. Texas Instruments, LM317 3-Terminal Adjustable Regulator datasheet, SLVS044H (Sept 1997, rev. Dec 2001), p. 4, Figure 1: Vout = Vref(1 + R2/R1) + IAdjR2, Vref = 1.25 V, IAdj typically 50 µA. Reference tolerance 1.225–1.275 V and the 3 V test condition from the electrical-characteristics table of a second-source LM317 datasheet (Slkor).

🔬 All science & engineering tools →🌍 Calculators by country →