The LM317T adjustable voltage regulator is a classic three-terminal linear IC capable of delivering up to 1.5A of load current with an output range of 1.25V to 37V. While switching converters dominate high-efficiency applications, the LM317T remains the benchmark for low-noise, low-ripple analog, audio, and RF circuits. To use it reliably on the bench or in a final product, you must calculate the exact dropout voltage (typically 2V to 3V) and manage thermal dissipation, as it burns excess input voltage directly as heat. This guide breaks down the topology trade-offs, input protection requirements, and exact thermal math needed to keep the silicon alive.
LM317T vs Switching Regulators: Topology and Trade-offs
Choosing between a linear regulator like the LM317T and a buck switching regulator (like the LM2596 or MP2307) depends entirely on your load's sensitivity to noise and your system's thermal budget. Linear regulators operate by dropping excess voltage across a pass transistor acting as a variable resistor. Switching regulators use high-frequency PWM and inductors to transfer energy in discrete packets.
For precision ADCs, audio DACs, or RF VCOs, the LM317T's lack of switching noise makes it the superior choice. However, this comes at a severe efficiency penalty when the input-to-output differential is large.
| Parameter | LM317T (Linear) | LM2596 (Buck Switcher) |
|---|---|---|
| Efficiency (12V in, 5V out @ 1A) | ~41.6% | ~82% - 88% |
| Heat Dissipation (12V in, 5V out @ 1A) | 7.0W (Requires large heatsink) | ~0.7W (Bare IC or tiny clip) |
| Output Ripple / Noise | < 50 µV RMS (Extremely clean) | 15 mV - 30 mV p-p (Switching noise) |
| Component Count & Cost | Low (IC + 2 resistors + caps) | High (IC + inductor + Schottky + caps) |
| Transient Response | Excellent (kHz to MHz range) | Moderate (Limited by control loop) |
Note: Efficiency for the linear regulator is calculated simply as VOUT / VIN. If you need 5V from a 12V rail at 1A, a linear regulator wastes 7W as heat. If your application cannot tolerate a 40°C+ rise on a TO-220 package, you must switch to a buck topology or use a pre-regulator.
Input Range, Dropout Math, and Protection
The most common failure mode in LM317T designs is ignoring the dropout voltage (VDO) and the absolute maximum input-to-output differential. The LM317T is not a low-dropout regulator (LDO). According to the Texas Instruments LM317 datasheet, the typical dropout voltage is 2V at light loads, but it increases to 2.5V or even 3V at the full 1.5A load.
To guarantee regulation, your input voltage must satisfy this equation:
VIN(min) = VOUT + VDO(max) + VRIPPLE(pk)
If you are designing a 9V output supply, you need at least 9V + 2.5V = 11.5V DC at the input. If your input comes from an unregulated transformer-rectifier-capacitor supply with 2V of peak-to-peak ripple, your minimum DC input must be 13.5V. If the input sags below this threshold during the ripple trough, the LM317T will drop out of regulation, and the 120Hz AC ripple will pass directly to your load.
Ripple Rejection and Capacitor Selection
The LM317T offers excellent ripple rejection—typically 80dB at 120Hz. This means a 1V ripple on the input is attenuated to roughly 0.1mV on the output. However, this high rejection ratio relies on proper bypassing. You must place a 0.1µF to 1µF ceramic capacitor directly at the input pin, and a 10µF tantalum or low-ESR aluminum electrolytic capacitor at the output. High-ESR capacitors will degrade the regulator's transient response and can induce high-frequency oscillation.
Mandatory Protection Diodes
Thermal Derating and Heatsink Sizing
Because linear regulators dissipate excess power as heat, thermal management is not optional; it is the core of the design. The LM317T in a TO-220 package has built-in thermal shutdown (typically triggering at 150°C), but relying on this to limit current is a poor design practice that leads to erratic output behavior.
To calculate the required heatsink, we use the thermal resistance model outlined in resources like CUI Devices' thermal management guides. The formula for the maximum allowable heatsink-to-ambient thermal resistance ($\theta_{SA}$) is:
$\theta_{SA} \le \frac{T_{J(max)} - T_A}{P_D} - \theta_{JC} - \theta_{CS}$
Where:
- $T_{J(max)}$: Maximum junction temperature (125°C absolute max, but derate to 100°C for long-term reliability).
- $T_A$: Maximum ambient temperature inside your enclosure (e.g., 40°C).
- $P_D$: Power dissipation = $(V_{IN} - V_{OUT}) \times I_{LOAD}$.
- $\theta_{JC}$: Junction-to-case thermal resistance (typically 3°C/W for TO-220).
- $\theta_{CS}$: Case-to-sink thermal resistance (depends on thermal interface material; ~0.5°C/W for silicone pads, ~1.5°C/W for mica insulators).
Worked Thermal Example
Suppose you are stepping 18V down to 5V at 1A.
$P_D = (18V - 5V) \times 1A = 13W$.
Using $T_{J(max)} = 100°C$, $T_A = 35°C$, $\theta_{JC} = 3°C/W$, and $\theta_{CS} = 0.5°C/W$ (silicone pad):
$\theta_{SA} \le \frac{100 - 35}{13} - 3 - 0.5 = 5.0 - 3.5 = 1.5°C/W$.
A bare TO-220 has a $\theta_{JA}$ of roughly 65°C/W, meaning it would hit thermal shutdown in seconds. You need a substantial extruded aluminum heatsink rated for 1.5°C/W or less, which typically measures at least 40mm x 40mm x 20mm with forced air, or much larger for passive cooling. For context, All About Circuits notes that pushing a linear regulator past 2W-3W of dissipation without active cooling is generally impractical in sealed enclosures.
Practical Design Example: 12V to 5V @ 1A
Let's synthesize this into a complete, buildable design for a 5V, 1A supply powered from a 12V DC wall adapter. We will calculate the exact resistor values, address the minimum load requirement, and specify the protection network.
Setting the Output Voltage
The LM317T maintains a precise 1.25V reference ($V_{REF}$) between the OUTPUT and ADJUST pins. The output voltage is set by a resistor divider:
VOUT = 1.25V × (1 + R2/R1) + (IADJ × R2)
The IC requires a minimum load current of roughly 5mA to maintain regulation. We satisfy this by choosing $R_1 = 240\Omega$, which draws $1.25V / 240\Omega = 5.2mA$.
To get exactly 5V, we solve for $R_2$ (ignoring the tiny $I_{ADJ}$ error term of ~50µA for the initial calculation):
$5 = 1.25 \times (1 + R_2 / 240) \rightarrow 4 = R_2 / 240 \rightarrow R_2 = 960\Omega$.
Since 960Ω is not a standard E24 resistor value, you can use a 910Ω fixed resistor in series with a 100Ω cermet trimpot to dial in exactly 5.00V, or use a standard 1kΩ resistor which will yield roughly 5.2V (perfect for charging USB devices via a downstream protection IC).
Final Bill of Materials and Pinout
When looking at the LM317T TO-220 package from the front (text facing you, pins pointing down), the pinout is ADJUST (1), OUTPUT (2), INPUT (3). Note that the metal tab is internally connected to the OUTPUT pin, not ground. If you mount it to a grounded chassis heatsink, you must use an insulating mica or silicone pad.
| Component | Value / Rating | Purpose |
|---|---|---|
| U1 | LM317T (TO-220) | Primary regulator |
| R1 | 240Ω, 1/4W, 1% | Sets minimum load & divider base |
| R2 | 910Ω + 100Ω Trimpot | Sets exact 5.0V output |
| C1 | 0.1µF Ceramic, 50V | High-frequency input bypass |
| C2 | 10µF Tantalum, 16V | Output stability & transient response |
| C3 | 1µF Ceramic, 10V | Low-impedance high-freq output bypass |
| D1 | 1N4001 Diode | Reverse current protection (Out to In) |
| D2 | 1N4148 Diode | Protects ADJ pin if output is shorted |
By respecting the 2.5V dropout margin, calculating the heatsink for worst-case ambient temperatures, and including the reverse-bias protection diodes, the LM317T remains an incredibly robust and low-noise solution for precision bench and embedded power rails.






