The LM317 is an adjustable positive linear regulator in a TO-220 package. Two resistors set its output voltage anywhere from about 1.2 V to 37 V, at up to 1.5 A. Inside, it keeps a fixed 1.25 V between its OUT and ADJ pins.
LM317 Adjustable Regulator
The LM317 is a three-pin regulator whose output voltage you set with two resistors, from 1.25 V up to 37 V at 1.5 A.

At a glance
Pins and properties exactly as the circuit editor and simulator define this part. The text below explains how to use them.
Pinout
Properties
What you can change in the Property Inspector.
| Property | Range or choices | Default |
|---|---|---|
| Internal Reference (Vref) | 1.2 to 1.3 V | 1.25 V |
| Dropout Voltage | 1.5 to 3 V | 2 V |
| Cooling / Thermal Rating | Bare TO-220 (Pmax ≈ 1.5 W), With Heatsink (Pmax ≈ 15.0 W) | With Heatsink (Pmax ≈ 15.0 W) |
| Max Rated Current | 0.2 to 2.2 A | 1.5 A |
| Pin | Label | Type | Notes |
|---|---|---|---|
ADJ | ADJ | Signal in | Adjust: connects to the resistor divider |
OUT | OUT | Signal out | Regulated output |
IN | IN | Signal in | Input voltage |
Setting the output voltage
Put a resistor R1 (often 240 Ω) between OUT and ADJ, and a resistor R2 from ADJ to GND:
Vout = 1.25 V x (1 + R2 / R1)
For about 5 V with R1 = 240 Ω, R2 is about 720 Ω. A potentiometer in place of R2 gives an adjustable supply.
Things to know
- Dropout: the input must be at least about 2 V above the output.
- Heat: (VIN - VOUT) x current is lost as heat. Without a heatsink only a small amount can be dissipated; the part has a cooling property (heatsink by default) and shows an overload when it is pushed too far.
- Maximum current: 1.5 A by default.
Properties
Reference voltage, dropout voltage, cooling rating and maximum current are set in the Properties panel.
Related parts
- AMS1117-3.3 V Regulator ModuleA small linear regulator module that turns a higher input voltage into a steady 3.3 V, up to 800 mA.
- AMS1117-5.0 V Regulator ModuleA small linear regulator module that turns a higher input voltage into a steady 5.0 V, up to 800 mA.
- LM7805 5 V RegulatorThe LM7805 is the classic three-pin regulator: any input from about 7 V up gives a steady 5 V at up to 1.5 A.
- LM7812 12 V RegulatorThe LM7812 is a three-pin regulator that gives a steady 12 V at up to 1.5 A from an input of about 14 V or more.
- MT3608 Boost Converter ModuleThe MT3608 module raises a low voltage to a higher one (3 V to 28 V out from 2 V to 24 V in) with an adjustable output.
