Skip to content

LM317 Voltage and Resistor Calculator

This calculator helps you determine the output voltage or required resistor values for the LM317 adjustable voltage regulator. Ideal for electronics engineers and DIY hobbyists working with power supply design, battery chargers, or custom voltage outputs.

Adjustable Voltage Regulator Output Tool

Input Fields
R1
Ω
Resistor connected between output and adjust pin
R2
Ω
Resistor between adjust pin and ground
If enabled, the result will update automatically when you change any value.

LM317 Output Voltage Formula

Formula
$$V_{out} = V_{ref} \cdot \left(1 + \frac{R2}{R1}\right) + I_{adj} \cdot R2$$

Where:

  • $$V_{out}$$ = output voltage (V)
  • $$V_{ref}$$ = reference voltage ≈ 1.25 V
  • $$R1$$ = resistor between output and adjust pin (Ω)
  • $$R2$$ = resistor between adjust pin and ground (Ω)
  • $$I_{adj}$$ = adjustment pin current (typically ≈ 50 µA)

If $$I_{adj}$$ is negligible (which is often the case), the formula simplifies to:
$$V_{out} ≈ 1.25 \cdot \left(1 + \frac{R2}{R1}\right)$$


Calculation Example

Given:

  • R1 = 240 Ω
  • R2 = 1.2 kΩ

Calculation:

  1. $$V_{out} ≈ 1.25 \cdot \left(1 + \frac{1200}{240} \right)$$
  2. $$= 1.25 \cdot (1 + 5) = 1.25 \cdot 6 = 7.5~V$$


The LM317 is a widely used voltage regulator that allows for precise control of output voltage using two resistors. By setting appropriate R1 and R2 values, users can generate custom voltages from a higher input. This tool simplifies the calculation process and is helpful in designing power supplies, battery chargers, and LED drivers. It can also be used in reverse to calculate R2 for a desired output voltage.

Previous
KVA to Amps

Leave a Reply

Your email address will not be published. Required fields are marked *