Skip to main content
⚡ Electronics & PCB

LM317 Calculator

Design an LM317 adjustable regulator: find R2 for your target output voltage, the actual voltage with standard resistors, and the power the regulator must dissipate.

R2 for Vout
Actual voltage
Power dissipation
Dropout check
100% Free
⚡ Open Full Electrical Calculator 📖 Read the Guide

LM317 — Quick answer

Two resistors set the output. R1 (usually 240 Ω) sits between OUT and ADJ; R2 from ADJ to ground sets the voltage.

Vout = 1.25 × (1 + R2/R1)  |  R2 = R1 × (Vout/1.25 − 1)  |  Pd = (Vin − Vout) × Iout

Worked example: For 5 V out with R1 = 240 Ω: R2 = 240 × (5/1.25 − 1) = 720 Ω. At 12 V in and 500 mA the regulator dissipates (12 − 5) × 0.5 = 3.5 W — needs a heatsink.

Common outputs with R1 = 240 Ω

VoutR2Min Vin
3.3 V394 Ω≈ 6.3 V
5 V720 Ω≈ 8 V
9 V1488 Ω≈ 12 V
12 V2064 Ω≈ 15 V

Used for: adjustable bench supplies, fixed rails, battery chargers, LED current sources (as a current regulator).

⚡ LM317 Calculator

Enter the target output voltage. Add input voltage and load current to check power dissipation and headroom.

R2 (computed)
Actual Vout (std R2)
Power dissipation
Min input voltage

⚠️ Adjust-pin current (~50 µA) neglected. LM317 needs ≈3 V dropout and ≥5 mA load; add a heatsink when Pd is more than ~1 W.

The LM317 is a three-terminal adjustable linear regulator that holds a constant 1.25 V between its output and adjust pins. Put a resistor R1 across that 1.25 V and a second resistor R2 from the adjust pin to ground, and the output becomes 1.25 × (1 + R2/R1). It is one of the most widely used regulators in hobby and industrial electronics — simple, robust and adjustable from 1.25 V up to near the input voltage. Like any linear regulator it dissipates the input-output difference as heat, so power and heatsinking matter.

Reviewed: June 19, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: Texas Instruments / onsemi LM317 datasheets.

The LM317 formulas

Output voltage
Vout = 1.25 × (1 + R2 / R1)
Resistor for a target voltage
R2 = R1 × (Vout / 1.25 − 1)
Power dissipation
Pd = (Vin − Vout) × Iout

R1 is normally 240 Ω so the adjust divider always draws about 5 mA — the LM317's minimum load to stay in regulation. The output can be set anywhere from 1.25 V (R2 = 0) upward, limited at the top by the input voltage minus the ~3 V dropout.

Worked example — a 9 V regulated rail

Scenario: 9 V output from a 15 V supply at 300 mA, R1 = 240 Ω.

R2
R2 = 240 × (9 / 1.25 − 1) = 240 × 6.2 = 1488 Ω (use 1.5 kΩ)
Actual output with 1.5 kΩ
Vout = 1.25 × (1 + 1500/240) = 1.25 × 7.25 = 9.06 V
Power dissipation
Pd = (15 − 9) × 0.3 = 1.8 W

1.8 W needs a small heatsink. Size it with the heatsink calculator. If the input were only 11 V, the 9 V output would still be fine (2 V is below the ~3 V dropout margin — raise the input), which is why headroom matters.

Frequently Asked Questions

What is the LM317 output voltage formula?

Vout = 1.25 × (1 + R2 ÷ R1). 1.25 V is the reference between OUT and ADJ; R1 (≈240 Ω) is the top resistor, R2 sets the voltage. The ~50 µA adjust current is usually neglected.

How do I choose R2 for a target voltage?

R2 = R1 × (Vout ÷ 1.25 − 1). With R1 = 240 Ω, 5 V needs R2 = 720 Ω. Use the nearest standard value or a trimmer and check the actual voltage.

Why is R1 usually 240 ohms?

The LM317 needs ≈5–10 mA minimum load. With 1.25 V across R1, 240 Ω draws ≈5.2 mA, guaranteeing that load even with nothing connected. 220 Ω is also common.

How much power does the LM317 dissipate?

Pd = (Vin − Vout) × Iout. 12 V→5 V at 500 mA dissipates 3.5 W and needs a heatsink. It also needs ≈3 V dropout, so Vin > Vout + 3 V.

What is the minimum input voltage for an LM317?

About 3 V more than the output (its dropout). For 5 V out, the input must be at least ≈8 V. Too little headroom drops it out of regulation; too much wastes power as heat.

Ready to perform complete calculations?

Use the full AI Calculator suite for electronics design with a professional PDF report.

⚡ Open Full Calculator — Free

No registration required · 350+ engineering calculators · PDF report export