LM317 Calculator (Adjustable Voltage Regulator)

Quick answer

The LM317 calculator finds the output voltage of an LM317 adjustable regulator from its two resistors, or the R1 or R2 value needed for a target voltage, optionally including the adjust-pin current, and checks the input–output headroom and the power the regulator must dissipate.

V
R1
240
R2
1,200
Output voltage
7.5 V
Current through R1 and R2 (divider current)
5.208 mA
Headroom (input − output)
4.5 V
Power dissipated in the LM317
2.25 W
Check
OK – within the datasheet range
Heat sink
Heat sink required (more than about 1.5 W)

The LM317 is one of the most popular linear regulators ever made: a three-terminal chip that turns an unregulated DC input into a steady output adjustable from 1.25 V to 37 V at up to 1.5 A. Instead of a fixed output it keeps a constant 1.25 V reference between its OUT and ADJ pins. Two resistors set the voltage: R1 sits between OUT and ADJ, R2 between ADJ and ground.

Because 1.25 V always appears across R1, a current of 1.25 V ÷ R1 flows through it and on through R2. The output therefore sits at 1.25 V plus the drop across R2, giving V_out = 1.25 × (1 + R2/R1). A tiny current of about 50 µA also flows out of the ADJ pin into R2; it adds 50 µA × R2 to the output, which matters only when R2 is large. The classic choice of R1 = 240 Ω makes the divider current about 5 mA, which also satisfies the regulator’s minimum load current.

A linear regulator burns the difference between input and output as heat. The calculator shows that dissipation and checks that the input is at least about 3 V above the output, the headroom used in the datasheet’s test conditions.

How to use the LM317 Calculator

  1. Calculate
  2. R1 (between OUT and ADJ)
  3. R2 (between ADJ and ground)
  4. Target output voltage
  5. Include the adjust-pin current (about 50 µA)
  6. Input voltage
  7. Load current

Results update as you type, every field has its own unit menu, and everything is calculated in your browser.

How it works

Choose whether to find the output voltage or a resistor, enter the known values, and optionally the input voltage and load current. The calculator applies the regulator equation (with or without the adjust-pin current) and computes the headroom and dissipated power.

Worked example

With R1 = 240 Ω and R2 = 1,200 Ω the output is 1.25 × (1 + 1,200 ÷ 240) = 1.25 × 6 = 7.5 V; including 50 µA × 1,200 Ω adds 0.06 V for 7.56 V. Fed from 12 V at 0.5 A, the regulator drops 4.5 V and dissipates 2.25 W, so it needs a heat sink. For a 5 V output with R1 = 240 Ω, R2 = 240 × (5 ÷ 1.25 − 1) = 720 Ω.

Resistor pairs for common voltages (R1 = 240 Ω)

Output Ideal R2 Nearest E24 R2 Actual output
3.3 V 394 Ω 390 Ω 3.28 V
5 V 720 Ω 750 Ω 5.16 V
9 V 1,488 Ω 1.5 kΩ 9.06 V
12 V 2,064 Ω 2 kΩ 11.67 V

Inputs explained

Field What to enter
Calculate Choose one: Output voltage from R1 and R2, R2 for a target output voltage, R1 for a target output voltage
R1 (between OUT and ADJ) Units: Ω, kΩ, MΩ, mΩ
R2 (between ADJ and ground) Units: Ω, kΩ, MΩ, mΩ
Target output voltage Units: V, mV
Include the adjust-pin current (about 50 µA) Choose one: No: ideal formula, Yes: add I_ADJ × R2
Input voltage In V
Load current Units: A, mA

What each result means

  • Output voltage = 1.25×(1 + [R2]÷[R1]) + [Include the adjust-pin current (about 50 µA)]×0.00005×[R2]
  • Current through R1 and R2 (divider current) = 1.25÷[R1]×1000
  • Headroom (input − output) = [Input voltage] – [Output voltage]
  • Power dissipated in the LM317 = max(0, [Input voltage] – [Output voltage])×[Load current]

Formula

V_out = 1.25 V × (1 + R2 ÷ R1) + I_ADJ × R2 · R2 = (V_out − 1.25) ÷ (1.25 ÷ R1 + I_ADJ) · R1 = 1.25 × R2 ÷ (V_out − 1.25 − I_ADJ × R2) · P = (V_in − V_out) × I_load

Worked example

Inputs: Calculate: Output voltage from R1 and R2; R1 (between OUT and ADJ): 240 Ω; R2 (between ADJ and ground): 1,200 Ω; Include the adjust-pin current (about 50 µA): No – ideal formula; Input voltage: 12 V; Load current: 0.5 A.
Results: R1 = 240 Ω; R2 = 1,200 Ω; Output voltage = 7.5 V; Current through R1 and R2 (divider current) = 5.208 mA; Headroom (input − output) = 4.5 V; Power dissipated in the LM317 = 2.25 W; Check = OK – within the datasheet range; Heat sink = Heat sink required (more than about 1.5 W).

Key terms

Reference voltage
The fixed 1.25 V the LM317 holds between OUT and ADJ.
Adjust-pin current (I_ADJ)
About 50 µA flowing out of the ADJ pin.
Dropout / headroom
Minimum input–output difference needed to regulate.
Linear regulator
Regulator that drops excess voltage as heat.

Frequently asked questions

What is the LM317 output voltage formula?

V_out = 1.25 V × (1 + R2 ÷ R1), plus about 50 µA × R2 from the adjust pin.

What R2 do I need for 5 V with R1 = 240 Ω?

R2 = 240 × (5 ÷ 1.25 − 1) = 720 Ω; use 715 Ω or 750 Ω from the E-series.

Why is R1 usually 240 Ω?

It draws about 5 mA, which keeps the regulator in regulation without an external load.

What is the minimum input voltage?

Around 1.5–3 V above the output depending on load current. The datasheet characterises it with 3 V or more of headroom.

How much current can an LM317 supply?

Up to about 1.5 A in a TO-220 package, limited by heat: dissipation is (V_in − V_out) × I.

Can the LM317 be a constant-current source?

Yes. Put a resistor R = 1.25 V ÷ I between OUT and ADJ and take the current from ADJ.

Sources

  1. Texas Instruments: LM317 3-terminal adjustable regulator datasheet
  2. Linear regulator: Wikipedia

Cite this calculator

Speedy Calculator. (2026). LM317 Calculator (Adjustable Voltage Regulator). Speedy Calculator. https://speedycalculator.com/calculators/other/lm317/