Component guide · Beginner · 3 min read
LM317 and LM350 Adjustable Linear Regulators

Formula, Wiring and Heat
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The LM317 is a classic adjustable linear regulator: two resistors set the output from 1.25 V to about 37 V, up to 1.5 A. The LM350 is the 3 A version. They are simple and quiet, with no switching noise, but waste the voltage difference as heat. They also make an easy constant current source for LEDs and battery charging.
Key specs at a glance
- Output
- 1.25 to 37 V
- Current
- LM317 1.5 A; LM350 3 A
- Dropout
- About 2 to 3 V
- Formula
- Vout = 1.25 x (1 + R2/R1)
- Package
- TO-220 or ready module with trimmer
- Protection
- Thermal and current limit
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1LM317 Adjustable Regulator Module₹51
Option 2Adjustable Voltage Regulator (LM317 / LM350)₹45
What the LM317 adjustable regulator is
The LM317 is a three-pin linear voltage regulator whose output is set by two resistors. It holds 1.25 V between its OUT and ADJ pins, and the resistor divider scales that up to the output you want.
Heat is (Vin - Vout) x current. Dropping 12 V to 5 V at 1 A wastes 7 W, which needs a large heatsink. For bigger drops, use a buck converter.
Use R1 = 240 ohm (or 120 ohm) and pick R2 for the voltage you need. A 0.1 uF input and 1 uF output capacitor keep it stable.
LM317 adjustable regulator pinout
The pins on the LM317 adjustable regulator and what each one does.
| Pin | Function |
|---|---|
| ADJ | Adjust (to R1/R2 junction) |
| OUT | Output (centre pin and tab) |
| IN | Input |
- ADJ
- Adjust (to R1/R2 junction)
- OUT
- Output (centre pin and tab)
- IN
- Input
Wiring the LM317 adjustable regulator
Connect the LM317 adjustable regulator like this.
| LM317 adjustable regulator pin | Voltage regulator | Constant current (I = 1.25/R) |
|---|---|---|
| IN | Supply + | Supply + |
| OUT | Load +, and R1 to ADJ | Through R to LED |
| ADJ | R2 to ground | Connected to LED side of R |
- IN
- Voltage regulator:
- Supply +
- Constant current (I = 1.25/R):
- Supply +
- OUT
- Voltage regulator:
- Load +, and R1 to ADJ
- Constant current (I = 1.25/R):
- Through R to LED
- ADJ
- Voltage regulator:
- R2 to ground
- Constant current (I = 1.25/R):
- Connected to LED side of R
Example code
A minimal sketch to check the part works.
Vout = 1.25 * (1 + R2 / R1)
Example: R1 = 240 ohm, want 5 V -> R2 = 720 ohm (use 680 + 39)
Constant current: R = 1.25 / I (350 mA LED -> 3.6 ohm, 0.5 W)Setup and tuning
use R1 = 240 Ω between OUT and ADJ, then pick R2 from Vout = 1.25 × (1 + R2/R1).
fit one whenever it drops several volts at hundreds of milliamps (power = voltage drop × current).
the tab is connected to OUT, so insulate it from a grounded heatsink or case.
add 0.1 µF at the input and 1 to 10 µF at the output for stability.
for an LED driver, put one resistor R = 1.25 / I between OUT and ADJ and take the current from ADJ.
What you need
Shop this list4 of 4 found in our store · ₹461
LM317 Adjustable Regulator Module: the part this guide coversLM317 Adjustable Regulator Module₹51
Adjustable Voltage Regulator (LM317 / LM350): another version this guide coversAdjustable Voltage Regulator (LM317 / LM350)₹45
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
DC power adapter (5.5 x 2.1 mm): a wall adapter inputDC Power Adapter (5.5x2.1mm)₹188
Alternatives and when to choose them
- AMS1117: fixed low-dropout.
- 78xx regulators: fixed voltages.
- LM2596 buck: efficient for big drops.
Common mistakes to avoid
- Running it without a heatsink at high power.
- Bolting the tab to a grounded case, which shorts the output.
- Leaving too little input-output difference.
- Using the LM317 pinout for an LM337.
Frequently asked questions
What is the maximum current of the LM317?
1.5 A with a good heatsink. The LM350 is the 3 A version with the same pinout.
How much headroom does the LM317 need?
The input must be about 2 to 3 V above the output for it to regulate.
Can I use the LM317 as an LED driver?
Yes. A single resistor of 1.25 V divided by the LED current between OUT and ADJ makes a constant current source.
Why does the LM317 get hot?
It turns the extra voltage into heat: dropping 7 V at 0.5 A is 3.5 W, which needs a heatsink.
Is there a negative version?
Yes. The LM337 is the negative adjustable regulator, with a different pinout.
Parts for this guide
Projects that use it
Put this into practice: 2 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
