# LM317 Calculator (Adjustable Voltage Regulator)

URL: https://speedycalculator.com/calculators/other/lm317/
Last updated: 2026-11-08

> 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.

## Inputs

- Calculate
- R1 (between OUT and ADJ) (Ω, kΩ, MΩ, mΩ)
- R2 (between ADJ and ground) (Ω, kΩ, MΩ, mΩ)
- Target output voltage (V, mV)
- Include the adjust-pin current (about 50 µA)
- Input voltage (V)
- Load current (A, mA)

## Results

- R1
- R2
- Output voltage
- Current through R1 and R2 (divider current)
- Headroom (input − output)
- Power dissipated in the LM317
- Check
- Heat sink

## 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
```

## Explanation

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

- **Calculate**
- **R1 (between OUT and ADJ)**
- **R2 (between ADJ and ground)**
- **Target output voltage**
- **Include the adjust-pin current (about 50 µA)**
- **Input voltage**
- **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 Ω)

OutputIdeal R2Nearest E24 R2Actual output3.3 V394 Ω390 Ω3.28 V5 V720 Ω750 Ω5.16 V9 V1,488 Ω1.5 kΩ9.06 V12 V2,064 Ω2 kΩ11.67 V

### Inputs explained

FieldWhat to enterCalculateChoose one: Output voltage from R1 and R2, R2 for a target output voltage, R1 for a target output voltageR1 (between OUT and ADJ)Units: Ω, kΩ, MΩ, mΩR2 (between ADJ and ground)Units: Ω, kΩ, MΩ, mΩTarget output voltageUnits: V, mVInclude the adjust-pin current (about 50 µA)Choose one: No: ideal formula, Yes: add I_ADJ × R2Input voltageIn VLoad currentUnits: 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]

## 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.

## FAQ

**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

- [Texas Instruments: LM317 3-terminal adjustable regulator datasheet](https://www.ti.com/lit/ds/symlink/lm317.pdf)
- [Linear regulator: Wikipedia](https://en.wikipedia.org/wiki/Linear_regulator)
