What this LM317T calculator does
The LM317T is a classic adjustable linear voltage regulator. With two resistors, you can set a stable output voltage for bench supplies, embedded prototypes, analog circuits, and battery-powered designs that need a clean rail. This calculator helps you quickly answer the practical questions:
- What output voltage do I get from my chosen resistor pair?
- What resistor value should I use to hit a target voltage?
- Will my input voltage provide enough headroom over dropout?
- How much heat will the regulator dissipate at my load current?
LM317T formula used
The calculator uses the standard LM317 equation:
Vout = 1.25 × (1 + R2 / R1) + Iadj × R2
Where:
- 1.25V is the reference voltage.
- R1 is typically 240Ω (from OUT to ADJ).
- R2 is the programming resistor (from ADJ to GND).
- Iadj is the adjust pin current, often around 50µA.
In many practical builds, the Iadj term is small enough to ignore for rough estimates. However, this calculator includes it for improved precision.
How to use the calculator
Mode 1: You know R1 and R2
Enter R1 and R2, leave target voltage blank, and press calculate. You’ll get the predicted output voltage and power numbers.
Mode 2: You know desired output voltage
Enter R1 and target Vout. The calculator will solve for R2 and also suggest the nearest E24 resistor value for easier sourcing.
Mode 3: Full design sanity check
Add Vin and load current. The calculator estimates regulator power dissipation using:
Pd = (Vin − Vout) × Iload
It also checks dropout margin and reports estimated junction temperature rise from θJA.
Practical design guidelines
1) Respect dropout voltage
The LM317T needs headroom between input and output. A conservative design often uses around 2V to 3V margin depending on load and temperature. If headroom is too low, regulation will sag.
2) Plan for heat early
Linear regulators burn off extra voltage as heat. For higher Vin-to-Vout differences and moderate current, a heatsink is frequently required. Always verify package temperature in your real enclosure and airflow conditions.
3) Use decoupling capacitors
- Input capacitor close to Vin pin (commonly 0.1µF + bulk).
- Output capacitor for transient response and stability.
- Optional ADJ bypass capacitor for improved ripple rejection.
4) Add protection diodes when needed
If you use large output capacitors or the ADJ bypass capacitor, diode protection paths can prevent reverse current damage during shutdown or short-circuit events.
Example: 12V to 5V at 200mA
Suppose Vin = 12V, target Vout = 5V, load = 0.2A, and R1 = 240Ω. The solved R2 value is near 720Ω (with slight adjustment from Iadj). Dissipation is roughly:
Pd = (12 − 5) × 0.2 = 1.4W
At 1.4W, a bare TO-220 package can run hot depending on board copper and ambient temperature. A heatsink is usually a good idea.
When LM317T is the right choice
- Need a low-noise analog rail.
- Current level is modest.
- Simplicity and part availability matter more than efficiency.
For battery life optimization or larger power drops, a switching buck regulator may be a better fit.
Quick troubleshooting checklist
- Output too low? Check dropout headroom and wiring.
- Output drifting? Verify resistor tolerances and grounding.
- Regulator overheating? Recalculate dissipation and add heatsinking.
- Oscillation/noise? Improve capacitor placement and layout.