LM317 Voltage Calculator

Calculate the output voltage of an LM317 adjustable voltage regulator.

Calculator by SuperCalX: formulas, worked examples and 250+ free calculators.

Your values

Result

Enter your values and the result appears here.

Analysis

Interpretation of the current calculator output

Enter values to see detailed analysis and insights.

How to Use

Step-by-step instructions
  1. 1Enter the value of R1 (Ohms).
  2. 2Enter the value of R2 (Ohms).
  3. 3The calculator will show the output voltage.

Output Voltage

Calculates the output voltage based on the ratio of the two setting resistors. 1.25V is the internal reference voltage.
Vout = 1.25 × (1 + R2/R1)

Variables:

R1Resistor 1 (typically 240Ω)
R2Resistor 2 (sets voltage)

Example

5V Supply

Inputs:

R1:240 Ω
R2:720 Ω

Steps:

  1. 1.Vout = 1.25 * (1 + 720/240)
  2. 2.Vout = 1.25 * (1 + 3)
  3. 3.Vout = 1.25 * 4 = 5V
Result:
5 V

LM317 Voltage Calculator: the short answer

The LM317 adjustable regulator sets its output with two resistors: Vout = 1.25 V × (1 + R2 ÷ R1). With R1 = 240 Ω and R2 = 720 Ω, the output is 5.0 V. To get 12 V with R1 = 240 Ω, R2 = 240 × (12 ÷ 1.25 − 1) = 2,064 Ω, so use a 2.0 kΩ or 2.2 kΩ standard value or a trimmer.

  • The reference voltage between OUT and ADJ is 1.25 V.
  • Input must be at least about 3 V above the output (dropout).
  • Power dissipated = (Vin − Vout) × current; use a heatsink above about 1 W.

By the SuperCalX team · Reviewed by Dr. Ahmed Mortuza Saleque, founder and editor · Last reviewed · How we check our calculators

R2 for common outputs (R1 = 240 Ω)

VoutR2 (calculated)Nearest standard
3.3 V394 Ω390 Ω
5.0 V720 Ω715 Ω (1%)
9.0 V1,488 Ω1.5 kΩ
12 V2,064 Ω2.0 kΩ or 2.2 kΩ

Design tips

For battery-powered designs, check runtime with the battery life calculator.

  • Add a 0.1 µF capacitor at the input and 1 µF at the output for stability.
  • A 10 µF capacitor from ADJ to ground improves ripple rejection.
  • The full equation adds Iadj × R2 (about 50 µA × R2), usually negligible.

Worked examples

R1 = 240 Ω, R2 = 720 Ω

  1. R2 ÷ R1 = 3.
  2. Vout = 1.25 × (1 + 3).

5.0 V.

Common mistakes

  • Running a large voltage drop at high current without a heatsink.

LM317 Voltage Calculator FAQ

What is the maximum current of an LM317?

About 1.5 A in the TO-220 package, limited further by heat.

Why use R1 = 240 Ω?

It keeps at least the minimum load current (about 5 mA) flowing through the divider.

What is the minimum R1?

R1 is typically 240Ω to ensure the minimum load current (5mA) required for regulation is met.

Add this calculator to your website

Teachers, bloggers and businesses can show the LM317 Voltage Calculator on their own pages for free. Copy this code and paste it into your page's HTML:

Please keep the credit link so readers can find the formula, worked examples and guide.