LM317 Voltage Regulator Calculator

Calculate LM317 resistor values, regulator power dissipation, and ideal efficiency for an adjustable DC supply.

Design an LM317 regulator
Enter the supply, target output, load current, and programming resistor.

About the LM317 calculator

The LM317 is a three-terminal adjustable linear voltage regulator commonly used in bench supplies, battery chargers, prototypes, and low-noise analog circuits. It maintains about 1.25 volts between its output and adjustment terminals. Two external resistors set the output: R1 connects output to adjustment, and R2 connects adjustment to ground. This calculator solves the standard design equation for R2 after you enter the target voltage and chosen R1. Ignoring the small adjustment-pin current, output voltage equals 1.25 multiplied by one plus R2 divided by R1. Rearranging gives R2 equal to R1 multiplied by output voltage divided by 1.25 minus one. A 240-ohm R1 is a traditional choice because it draws enough current to help satisfy the regulator's minimum-load requirement. Other values may be suitable, but the data sheet for the exact device and manufacturer should guide the final design. A linear regulator turns excess voltage into heat. Its approximate dissipation is input voltage minus output voltage, multiplied by load current. Converting 12 volts to 5 volts at half an amp therefore produces about 3.5 watts inside the regulator. That is substantial heat for a small package and generally requires a heat sink selected from ambient temperature, thermal resistance, airflow, and the maximum permitted junction temperature. The displayed ideal efficiency is output voltage divided by input voltage; quiescent and resistor currents make real efficiency slightly lower. The input must stay above the requested output by the regulator's dropout allowance, commonly around 2 to 3 volts depending on current and operating conditions. Ripple troughs also matter: an unregulated rectifier supply that averages high enough can still fall below regulation between charging peaks. Add input and output bypass capacitors according to the data sheet, use short wiring, and include protection diodes when large capacitors or external voltages could discharge backward through the device. Calculated resistance is an exact target, not necessarily a stocked component. Choose the nearest preferred resistor or combine values, then recompute the actual output and account for resistor tolerance, reference tolerance, and adjustment-pin current. Confirm that input voltage, output current, power dissipation, and safe-operating-area limits all remain within the specific LM317 variant's ratings. This tool supports preliminary circuit design, but physical power-supply work should always be checked against manufacturer documentation and measured safely.

LM317 design examples

Design inputsCalculated resultDesign note
12 V in, 5 V out, 0.5 A, R1 240 ΩR2 720 Ω; heat 3.5 WThe regulator likely needs a suitable heat sink.
15 V in, 9 V out, 0.25 A, R1 220 ΩR2 1,364 Ω; heat 1.5 WA nearby preferred resistor changes output slightly.
9 V in, 3.3 V out, 0.1 A, R1 240 ΩR2 393.6 Ω; heat 0.57 WCheck dropout at the lowest input voltage.
18 V in, 12 V out, 0.75 A, R1 240 ΩR2 2,064 Ω; heat 4.5 WThermal design is essential at this load.

How to design an LM317 circuit

  1. Enter the minimum DC voltage available at the regulator input.
  2. Enter the required regulated output voltage and maximum load current.
  3. Keep the common 240-ohm R1 value or enter another data-sheet-approved value.
  4. Select Calculate LM317 circuit and review R2, heat dissipation, and ideal efficiency.
  5. Choose practical resistor and heat-sink parts, then verify the finished circuit under load.

LM317 calculator FAQ

Why is R1 often 240 ohms?

A 240-ohm resistor draws about 5.2 mA from the 1.25 V reference. That helps meet the classic LM317's minimum load while keeping wasted current modest.

Does the formula include adjustment-pin current?

This calculator uses the common simplified equation and neglects the small adjustment current. Precision designs should include the data-sheet maximum and component tolerances.

How much input headroom does an LM317 need?

A traditional LM317 typically needs roughly 2 to 3 volts above the output to regulate. Check the exact device's dropout specification at your load current and temperature.

When does the regulator need a heat sink?

A heat sink is needed when package thermal resistance would let junction temperature exceed its safe limit. Calculate junction rise from dissipated watts and total thermal resistance, then retain design margin.

Can an LM317 deliver 1.5 amps continuously?

Some versions are rated up to 1.5 A under suitable conditions. Available current is limited by input-output differential, cooling, package, current limiting, and safe operating area.