The LM317T is a 3-terminal adjustable positive linear voltage regulator capable of supplying up to 1.5A over a 1.25V to 37V output range. Unlike fixed regulators like the 7805, the LM317T requires an external resistor divider to set the output voltage. While switching buck converters dominate high-efficiency power delivery, the LM317T remains the benchmark for low-noise, low-cost, and fast-transient-response point-of-load regulation in audio, RF, and precision analog circuits. To use it successfully, you must calculate dropout headroom, manage thermal dissipation, and provide proper protection diodes.
Topology Showdown: LM317T Linear vs. Switching Buck
Choosing between a linear regulator like the LM317T and a switching buck converter (like the ubiquitous LM2596) depends entirely on your load's sensitivity to noise versus your system's thermal and efficiency constraints. Linear regulators operate by burning excess voltage as heat across a pass transistor. Switchers use high-frequency PWM and inductors to step down voltage efficiently.
| Parameter | LM317T (Linear) | LM2596 (Switching Buck) |
|---|---|---|
| Efficiency | 41.6% (5V / 12V) | ~82% |
| Heat Dissipation | 7.0 W | ~1.1 W |
| Output Noise / Ripple | < 100 µV (with Adj cap) | ~30 mV (switching noise) |
| Transient Response | < 1 µs | ~50 µs (loop bandwidth limited) |
| BOM Component Count | 6 (Reg, 2 R, 3 C) | 10+ (IC, L, Schottky, 2 C, 2 R, boot cap) |
| Approximate BOM Cost (2026) | $0.65 | $1.85 |
Headroom, Dropout Math, and Input Protection
The LM317T is not a Low Dropout (LDO) regulator. According to the Texas Instruments LM317 datasheet, the dropout voltage—the minimum required difference between input and output to maintain regulation—is typically 2.0V at 1.5A, and can stretch to 3.0V across the full military temperature range.
If your target output is 5.0V, your input must be at least 7.0V. However, if your input comes from an unregulated transformer-bridge-rectifier supply, you must account for AC ripple. If the 120Hz ripple dips the input bus to 6.5V, the LM317T will drop out of regulation, and your 5V output will sag to 4.5V. Always design for a minimum 3V headroom under worst-case ripple conditions. For a 5V output, a 9V to 12V DC input bus is the practical sweet spot.
Maximum Differential Limit: The absolute maximum input-to-output differential is 40V. If your input is 45V and your output is set to 5V, the chip sees 40V and will suffer catastrophic junction breakdown. Always keep the input below 35V for reliable operation.
Mandatory Protection Diodes
Hobbyists frequently omit protection diodes, leading to blown chips when a bench supply is shorted or powered down. You need two 1N4007 (or faster 1N5819 Schottky) diodes:
- D1 (Input to Output): Protects the IC if the input is shorted to ground. Without it, the output capacitor discharges backward through the regulator's internal junction.
- D2 (Output to Adjust Pin): Required if you use a large capacitor (≥10µF) on the Adjust pin for ripple rejection. If the output is shorted, the Adj cap discharges backward through the internal 50Ω resistor, frying the silicon.
Thermal Derating and Heatsink Sizing
Thermal management is where 90% of LM317T builds fail. The TO-220 package has a junction-to-ambient thermal resistance ($R_{\theta JA}$) of roughly 50°C/W when floating in free air, and a junction-to-case resistance ($R_{\theta JC}$) of 2.5°C/W. The maximum allowable junction temperature ($T_J$) is 125°C, though internal thermal shutdown triggers around 165°C.
Let's run the math on a 12V-to-5V conversion at 1A:
- Power Dissipated ($P_D$): $(12V - 5V) \times 1A = 7.0W$
- Temp Rise (No Heatsink): $7.0W \times 50°C/W = 350°C$ rise above ambient.
At a 25°C room temperature, the junction would theoretically hit 375°C. In reality, the chip will hit 165°C in milliseconds, trigger thermal shutdown, cool down, turn back on, and oscillate—resulting in a heavily rippled, unstable output voltage.
Complete 5V/1A Design Example and Ripple Expectations
Designing the feedback network requires understanding the internal 1.25V bandgap reference. The output voltage formula is:
V_out = 1.25V * (1 + R2/R1) + (I_adj * R2)
The adjustment pin current ($I_{adj}$) is typically 50µA and varies by ±5µA. If we keep R2 below 1kΩ, the $I_{adj} * R2$ error term is less than 5mV, which is negligible for most DIY applications. Furthermore, the LM317T requires a minimum load current of 3.5mA (10mA max across temperature) to maintain regulation. If your load disconnects, the regulator needs the resistor divider to act as a dummy load.
Selecting R1 and R2
- Set R1 = 240Ω: This draws $1.25V / 240Ω = 5.2mA$ from the output, safely satisfying the 3.5mA minimum load requirement.
- Calculate R2 for 5.0V: $5.0 = 1.25 * (1 + R2/240) \rightarrow 4 = 1 + R2/240 \rightarrow 3 = R2/240 \rightarrow R2 = 720Ω$.
- Standard Value: 720Ω is not a standard 1% E96 value. Use a 715Ω 1% resistor (yields 4.97V) or a 1kΩ multi-turn cermet trimmer potentiometer to dial in exactly 5.00V.
Capacitor Selection and Ripple Rejection
As detailed in All About Circuits' voltage regulator guide, bypass capacitors are non-negotiable for stability and noise rejection.
- Input Cap: 10µF electrolytic in parallel with a 0.1µF X7R ceramic capacitor placed within 5mm of the input pin to suppress high-frequency trace inductance.
- Output Cap: 10µF low-ESR electrolytic or tantalum. Do not use high-ESR cheap electrolytics, as they degrade transient response.
- Adjust Pin Cap: Adding a 10µF electrolytic capacitor from the Adjust pin to ground bypasses the R2 resistor at AC frequencies. This boosts the ripple rejection from a baseline of 65dB up to 80dB at 120Hz.
Ripple Expectations: If your unregulated 12V input has 1.0V peak-to-peak of 120Hz ripple from the rectifier, an 80dB rejection ratio means the output ripple is attenuated by a factor of 10,000. Your 5V output will exhibit roughly 100µV of ripple—clean enough to power a 24-bit audio DAC without introducing audible mains hum.






