LM317 Voltage Regulator Calculator

Calculate R1 and R2 resistors for any LM317 output voltage, or find Vout from known resistor values.

Design: Set Target Output Voltage

Standard circuit: R1 = 240 Ω between ADJ and output, R2 between ADJ and GND.
V_out = 1.25 × (1 + R2/R1)
Range: 1.25V to 37V
TI recommends 240 Ω for low Iadj error
Must be ≥ Vout + 3V (dropout)

Analysis: Find V_out from R1 and R2

📊 Common LM317 Output Voltages (R1 = 240 Ω)

V_outR2 (exact)R2 (E24 nearest)Actual V_out
1.5V48 Ω47 Ω1.495V
1.8V105.6 Ω100 Ω1.771V
2.5V240 Ω240 Ω2.5V
3.3V393.6 Ω390 Ω3.281V
5.0V720 Ω720 Ω5.0V
6.0V960 Ω1kΩ6.042V
9.0V1.488 kΩ1.5 kΩ9.063V
12.0V2.064 kΩ2.0 kΩ11.667V
15.0V2.640 kΩ2.7 kΩ15.25V

📐 LM317 Design Guide

Output Voltage

Vout = 1.25×(1 + R2/R1)
Vref = 1.25V

Solve for R2

R2 = R1×(Vout/1.25 − 1)

Min Dropout

Vin ≥ Vout + 3V
(LM317 needs ~2–3V headroom)

Power Dissipation

Pd = (Vin − Vout) × I_load
Use heatsink if Pd > 1W

LM317 Standard Circuit: IN ──── LM317 ──── OUT ──── Vout │ ADJ │ R1 (240Ω) │ R2 (adjust) ──── GND Optional: 0.1µF ceramic on IN, 1µF electrolytic on OUT

❓ FAQ

Why is R1 = 240 Ω recommended?

TI's datasheet recommends R1 = 120–240 Ω. Using 240 Ω keeps the quiescent current through R1 low (about 5mA) while still dominating the small adjust pin current (Iadj ≈ 50–100µA), minimizing output voltage error. Lower R1 values slightly improve regulation but waste more power.

What is the LM317's output range?

The LM317 adjusts from 1.25V (minimum, R2=0) up to 37V. Maximum input voltage is 40V. For 5V output you need at least 8V input; for 12V output you need at least 15V. The output current is up to 1.5A with adequate heatsinking.

Do I need a heatsink?

Calculate power dissipation: Pd = (Vin − Vout) × Iload. Above about 1W, a heatsink is needed. For Pd > 5W, you need a substantial heatsink or consider a switching regulator. Without a heatsink, thermal shutdown occurs around 1–2W depending on the package.

What capacitors should I add?

Add a 0.1µF ceramic capacitor on the input (IN to GND) for stability, and a 1µF–10µF electrolytic on the output (OUT to GND) to improve transient response. If using a large input filter capacitor, also add a 10µF electrolytic across R2 to improve ripple rejection.