NewAI Part GeneratorFree to get started
FREE TOOL

LM317 calculator

This LM317 calculator works in both directions: enter R1 and R2 to get the output voltage, or enter a target voltage to get the resistors in standard values. It also gives the worst-case output, the input headroom, the power the regulator burns and its junction temperature in each package.

Solve for
Examples
Ω

240 Ω is TI’s typical value; 120 Ω guarantees the minimum load.

Ω
%

Used for the worst-case output range.

V
A
°C

Output voltage

5.01 V

typical

Worst-case output
4.704 V to 5.323 V VREF 1.2 to 1.3 V, ±1.0% resistors
Minimum input
8.01 V output + 3 V headroom
Input-output differential
6.99 V
Current through R1
5.21 mA
Regulator dissipation
3.53 W
Junction temperature
108 °C RθJA 23.5 °C/W
Maximum load at 25 °C
603 mA thermal, TJ = 125 °C

Typical figures use VREF = 1.25 V and IADJ = 50 µA. The ADJUST current adds 35.8 mV through R2.

⚠ 23.5 °C/W is TI’s figure for a JEDEC test board. A TO-220 with no heat sink or board copper can be as high as 58 °C/W (TI SLVA118A), which would put TJ at 230 °C here.

Junction temperature against load current
0501001502002503000200m400m600m800m11.21.4Load current (A)Junction temperature (°C)125 °C limitLoad 500 mALimit 603 mA

How do you calculate the output voltage of an LM317?

Use Vout = 1.25 V × (1 + R2 / R1) + IADJ × R2, with IADJ about 50 µA. R1 = 240 Ω and R2 = 715 Ω give 5.01 V. Keep the input at least 3 V above the output, and check the heat: the regulator burns (Vin − Vout) × Iload, and at 25 °C a TO-220 with no heat sink can shed only about 1.72 W to 4.26 W, depending on the copper around it.

LM317 output voltage formula

The LM317 holds 1.25 V between its OUTPUT and ADJUST pins. R1 sits across that reference, so it sets a constant current; the same current, plus the small ADJUST current, flows through R2 and lifts the ADJUST pin above ground.

Vout = VREF × (1 + R2 ÷ R1) + IADJ × R2
Vout
output voltage in V
VREF
1.25 V typical (1.2 V to 1.3 V over line, load and temperature)
R1
resistor from OUTPUT to ADJUST, in Ω
R2
resistor from ADJUST to ground, in Ω
IADJ
ADJUST pin current, 50 µA typical and 100 µA maximum

The LM317 equation rearranged for R2 with a chosen R1:

R2 = (Vout − VREF) ÷ (VREF ÷ R1 + IADJ)

The regulator passes the load and the R1 current, so its dissipation (equation 9 of the data sheet) and junction temperature are:

PD = (Vin − Vout) × (Iload + VREF ÷ R1) + Vin × IADJ     TJ = TA + PD × RθJA
PD
power dissipated in the regulator, in W
TA
ambient temperature in °C
RθJA
junction-to-ambient thermal resistance in °C/W

Worked examples

Example 1: 5 V from a 12 V supply at 500 mA

With R1 = 240 Ω, R2 = (5 − 1.25) ÷ (1.25 ÷ 240 + 50 µA) = 713 Ω. The nearest E96 value is 715 Ω, which gives 5.01 V. The input is 6.99 V above the output, so the 3 V headroom is met. The regulator burns 3.53 W, and on TI’s JEDEC-board figure for a TO-220 KCS (23.5 °C/W) at 25 °C the junction reaches 108 °C. With no heat sink or board copper (58 °C/W) the same power would need 230 °C, so give this design a heat sink.

Example 2: the best E24 pair for 12 V

Searching R1 from 100 Ω to 330 Ω, the closest E24 pair for 12 V is R1 = 130 Ω and R2 = 1.1 kΩ, giving 11.88 V (-0.98%). With 1 % resistors and the data sheet’s reference limits, the output can sit anywhere from 11.15 V to 12.63 V.

Example 3: how much current from 24 V in a SOT-223?

With a 5.01 V output, the differential is 18.99 V. A new-chip SOT-223 (59.6 °C/W) at 40 °C ambient can shed (125 − 40) ÷ 59.6 = 1.43 W, so the maximum load is 69.8 mA. For more current, lower the input voltage or use a switching regulator.

LM317 resistor table: R2 for common output voltages with R1 = 240 Ω

LM317 resistor values with the typical 50 µA ADJUST current counted in the exact R2. The output columns show what each standard resistor actually gives.

OutputExact R2Nearest E24Output (E24)Nearest E96Output (E96)Minimum input
1.8 V105 Ω100 Ω1.776 V105 Ω1.802 V4.8 V
2.5 V238 Ω240 Ω2.512 V237 Ω2.496 V5.5 V
3.3 V390 Ω390 Ω3.301 V392 Ω3.311 V6.3 V
5 V713 Ω680 Ω4.826 V715 Ω5.01 V8 V
6 V903 Ω910 Ω6.035 V909 Ω6.03 V9 V
9 V1.47 kΩ1.5 kΩ9.137 V1.47 kΩ8.98 V12 V
12 V2.04 kΩ2 kΩ11.77 V2.05 kΩ12.03 V15 V
15 V2.61 kΩ2.7 kΩ15.45 V2.61 kΩ14.97 V18 V
24 V4.33 kΩ4.3 kΩ23.86 V4.32 kΩ23.97 V27 V

LM317 power dissipation limit by package

PD(max) = (125 °C − TA) ÷ RθJA. The RθJA values are from TI’s LM317 data sheet, on a JEDEC test board, so a sparse PCB does worse. The no-heat-sink row is the top of the 22 to 58 °C/W that TI’s SLVA118A gives for a TO-220 with no airflow. The legacy and new chips have different dies, so check which one your part is.

PackageRθJAPD(max) at 25 °CPD(max) at 50 °CPD(max) at 70 °C
TO-220 KCS on a JEDEC board, legacy chip23.5 °C/W4.26 W3.19 W2.34 W
TO-220 KCT on a JEDEC board, legacy chip37.9 °C/W2.64 W1.98 W1.45 W
TO-220, no heat sink or board copper58 °C/W1.72 W1.29 W948 mW
TO-263 KTT, legacy chip38 °C/W2.63 W1.97 W1.45 W
TO-263 KTT, new chip41 °C/W2.44 W1.83 W1.34 W
SOT-223 DCY, new chip59.6 °C/W1.68 W1.26 W923 mW
SOT-223 DCY, legacy chip66.8 °C/W1.5 W1.12 W823 mW

What goes wrong in practice

Heat is the usual limit. Dropping 7 V at 500 mA is 3.5 W. On TI’s JEDEC-board figure a TO-220 KCS runs near 107 °C at 25 °C ambient, but with no heat sink or board copper that power is a rise of up to 203 °C, far past the limit, so it needs a heat sink. Surface-mount packages rely on copper: TI’s LM317-N data sheet quotes 74 °C/W for a SOT-223 on 1 oz copper and 59.6 °C/W on 2 oz, and says a TO-263 does not improve much beyond 1 square inch. A large drop at high current belongs on a switching regulator, or a switcher followed by an LM317 for low noise.

Connect R1 directly at the OUTPUT pin, not at the far end of a long trace, so trace resistance is not multiplied by the divider ratio. A 10 µF capacitor from ADJUST to ground improves ripple rejection, and TI recommends protection diodes when CADJ or a large output capacitor is used. This LM317 output voltage calculator is DC and steady state: it does not cover start-up, load transients or the safe-area current fold-back at high differential.

Glossary

Reference voltage (VREF)
The 1.25 V the LM317 holds between OUTPUT and ADJUST.
ADJUST current (IADJ)
About 50 µA that flows out of the ADJUST pin and through R2, adding a small error to the output.
Headroom
The input-to-output voltage difference. The LM317 data sheet recommends at least 3 V.
Dropout
When the input is too close to the output for the regulator to hold regulation; the output then follows the input.
Minimum load
The current the regulator must pass to stay in regulation, 3.5 mA typical and 10 mA maximum.
RθJA
Thermal resistance from junction to ambient, in °C per watt, measured on a specified test board.

Related guides

Frequently asked questions

What is the LM317 output voltage formula?

The LM317 formula is Vout = 1.25 V × (1 + R2 / R1) + IADJ × R2, where R1 runs from OUTPUT to ADJUST and R2 from ADJUST to ground. IADJ is about 50 µA, so the last term is small but not zero: with R1 = 240 Ω and R2 = 715 Ω it adds 35.8 mV and the output is 5.01 V.

What resistors do I need for 5 V from an LM317?

With R1 = 240 Ω the exact R2 is 713 Ω once the ADJUST current is counted. The nearest E96 value is 715 Ω, giving 5.01 V; the nearest E24 value is 680 Ω, giving 4.826 V. The LM317 resistor calculator above does this for any output above 1.25 V and up to 37 V.

What is the R2 value for 12 V with R1 = 240 Ω?

The exact value is 2.04 kΩ. The nearest E96 resistor, 2.05 kΩ, gives 12.03 V.

Why is R1 usually 240 Ω?

The 1.25 V reference across 240 Ω drives 5.21 mA, which is above the 3.5 mA typical minimum load, so the regulator stays in regulation with nothing else connected. The guaranteed minimum load is 10 mA at 40 V differential; R1 = 120 Ω (10.4 mA) covers that case.

What is the LM317 dropout voltage, and what input voltage does it need?

TI specifies an input-to-output differential of 3 V to 40 V, so the input should be at least the output plus 3 V. A 5 V output needs about 8 V at full current. With less headroom the output can drop out and follow the input.

Can an LM317 really deliver 1.5 A?

Only in a narrow range. The 1.5 A minimum current limit applies up to 15 V of differential, and the limit falls to a minimum of 0.15 A at 40 V. Heat usually sets a lower number first: at 25 °C a TO-220 on TI’s JEDEC test board (23.5 °C/W) can shed about 4.26 W, which is 1.5 A at only 2.84 V of differential, and with no heat sink or board copper it can be as little as 1.72 W.

Why is my LM317 output not exactly what I calculated?

The reference is 1.25 V typical but can be 1.2 V to 1.3 V, the resistors add their tolerance, and the ADJUST current adds up to 100 µA through R2. With R1 = 240 Ω, R2 = 715 Ω and 1 % resistors the worst-case range is 4.704 V to 5.323 V.

How do you calculate LM317 power dissipation?

PD = (Vin − Vout) × (Iload + VREF ÷ R1) + Vin × IADJ, and the junction then reaches TJ = TA + PD × RθJA. In example 1 (5 V from a 12 V supply at 500 mA), the regulator burns 3.53 W.

Does this work as an LM317T calculator?

Yes. The LM317T is the LM317 in a TO-220 package, so the same formula applies. Choose one of the TO-220 options in the package list.

More free PCB tools

See all free electronics tools →

Sources

Design the whole board, not one number

ProtoFlow is free AI PCB design software: describe a circuit and get a schematic with real parts, PCB layout with an autorouter, SPICE simulation and Gerber files. Native KiCad, Altium and EAGLE import and export. Free on macOS, Windows and Linux.

Get for Mac

Free to start. No card required.