LM317 Resistor Calculator

Work out the resistor R2 needed to set the output voltage of an LM317 adjustable regulator. It also shows the nearest standard E12 value and the output voltage that value would give.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the LM317 Resistor Calculator

  1. Enter the output voltage you want, from 1.25 V up to the LM317 limit of about 37 V.
  2. Set R1, usually 240 ohms, and the adjust pin current, usually 50 µA.
  3. Use the exact R2 value, or the nearest E12 value, as the resistor from the ADJ pin to ground.

Frequently asked questions

What is the formula for the LM317 output voltage?

Vout = 1.25 V × (1 + R2 / R1) + Iadj × R2, where 1.25 V is the reference between OUT and ADJ and Iadj is the adjust pin current, about 50 µA. If Iadj is ignored, R2 = R1 × (Vout / 1.25 − 1).

What value should R1 be?

The datasheet typically uses R1 around 120 to 240 ohms, and 240 ohms is the most common choice. A lower R1 makes the adjust pin current error smaller but draws more current through the divider.

What is the lowest output voltage an LM317 can give?

The reference is 1.25 V, so the output cannot be set below about 1.25 V with the standard circuit. The input must also stay a few volts above the output, since the dropout voltage is typically 2 to 3 V.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.