Saved

Press the star next to a tool's name to save it.

All my tools

LM317 Calculator

Use this LM317 calculator to find the output voltage from R1 and R2, or R2 for a wanted voltage, and to check the differential, the load and the heat.

Restored your last values ·

Ω
Ω
V
V
mA
µA
°C

Enter R1 and R2 to see the output voltage of the LM317 regulator. Or enter R1 and the voltage that you want, to find R2. Add the input voltage, and the load current, to check the limits and the heat in the regulator.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Enter R1, and R2 or the wanted voltage, then press Calculate.

See full result

An LM317 calculator works out the output voltage of the adjustable regulator from the two resistors that you connect to it, or the resistor that you need for a wanted voltage. Enter R1 and R2 for the voltage, or R1 and the voltage for R2. Add the input voltage and the load current to check that you are inside the limits, and to see how much heat the regulator has to lose. It runs in your browser.

How to use the LM317 calculator

  1. Choose output voltage or R2 for a wanted voltage.
  2. Enter R1, the resistor from the output to the adjust pin, and R2 or the wanted voltage.
  3. Add the input voltage, the load current and the ambient temperature to check the limits.
  4. Press Calculate.

The output voltage formula

The Wikipedia article on the LM317 gives the output voltage as Vout = Vref (1 + RL ÷ RH), and with the small error term of the adjust pin as Vout = Vref (1 + RL ÷ RH) + IQ × RL. The page calls RL the low-side resistor, on the ground side, and RH the resistor across the reference voltage, which is typically 1.25 volts.[1] In the usual schematic these are R2 and R1. With R1 of 240 ohms and R2 of 720 ohms, the output is 1.25 × (1 + 720 ÷ 240) = 5 volts. The calculator uses R1 for RH and R2 for RL.

Solving for R2

To design a regulator, you pick R1 and find R2. Rearranging the formula, R2 = R1 × (Vout ÷ 1.25 − 1) when the adjust-pin term is left out. For 12 volts with R1 = 240 ohms, R2 is 240 × (9.6 − 1) = 2,064 ohms, which the calculator shows as 2.064 kΩ. If you enter an adjust-pin current, the calculator includes it: R2 = (Vout − 1.25) ÷ (1.25 ÷ R1 + I). The page says that the device is designed to keep its quiescent current at or below 100 microamps, and it gives no typical figure for the adjust-pin current, so leave this box empty unless the datasheet of your part gives one.[1] A value of 240 ohms is often used for R1, but that is a common choice and not a rule from the page.

The limits

The page's table of specifications gives an output range of 1.25 to 37 volts, a voltage differential between input and output of 3 to 40 volts, and a maximum output current of 1.5 amps. It gives a minimum load current of 3.5 milliamps, typically, and 12 milliamps at most, and a junction temperature of 0 to 125 °C.[1] The calculator checks your design against the range of the output voltage and against the differential if you enter an input voltage, and tells you in words if either limit is broken. It also shows the current through R1, which is 1.25 volts divided by R1, or 5.2 milliamps for 240 ohms. That current counts as part of the load that the regulator needs to stay in regulation.

Heat

A linear regulator turns the difference between the input and the output voltage into heat. The article notes that the power wasted is the current times the difference between the input and the output voltages, and that an LM317 commonly requires a heat sink.[1] With 12 volts in, 5 volts out and 100 milliamps of load, the regulator dissipates 7 × 0.1 = 0.7 watts. The page gives a thermal resistance from junction to ambient of 80 °C per watt, and its example is that, without a heat sink at an ambient temperature of 50 °C, the most that the part can lose is (125 − 50) ÷ 80, which is 0.98 watts. At 34 volts in and 5 volts out, that limits the output current to 0.98 ÷ 29 = 32 milliamps.[1] The calculator gives this largest current for your input and output voltages and the ambient temperature that you enter.

Practical notes

The metal tab of a TO-220 package is connected to the output of the regulator, so it may need to be insulated from a metal chassis or a shared heat sink.[1] Keep R1 close to the regulator, and use resistors with a tight tolerance and a low temperature drift, since the output follows their ratio directly. If you need a fixed current instead of a voltage, the same part can be used as a current source with a single resistor, and the page works through an example of that. The calculator on this page covers the voltage regulator.

An example design

Suppose that you want 9 volts from a 12 volt supply, for a load of up to 200 milliamps. With R1 of 240 ohms, R2 = 240 × (9 ÷ 1.25 − 1) = 1,488 ohms, and the nearest standard value is 1.5 kilohms, which gives 9.06 volts. The differential is 3 volts, right at the minimum, so a slightly higher supply is wise. The heat is 3 × 0.2 = 0.6 watts, which is under the 0.98 watts of the part without a heat sink at 50 °C. The calculator checks each of these steps.

Common mistakes

  • Swapping R1 and R2. R1 is from the output to the adjust pin, and R2 goes to ground.
  • Too small a differential. The input must be at least 3 volts above the output.
  • No minimum load. The regulator needs a small load current, which R1 can supply.
  • Ignoring heat. A large differential at a high current needs a heat sink.

What next

Use this often? Add LM317 to your Home screen.

Frequently asked questions

What is an LM317 calculator?

A tool that finds the output voltage of the LM317 adjustable regulator from R1 and R2, or the R2 needed for a wanted voltage.

What is the LM317 formula?

Vout = 1.25 × (1 + R2 ÷ R1), with a small extra term for the adjust-pin current. R1 is across the 1.25 V reference.

What are the LM317 limits?

Output 1.25 to 37 V, input minus output of 3 to 40 V, and up to 1.5 A, with a minimum load of 3.5 mA typical.

How much heat does an LM317 make?

The input minus output voltage times the current. Without a heat sink at 50 °C it can lose about 0.98 W.

Which resistor goes to ground?

R2, the low-side resistor. R1 runs from the output to the adjust pin.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools