lm317 calculator

LM317 Adjustable Regulator Calculator

Calculate output voltage, resistor values, dropout margin, power dissipation, efficiency, and estimated junction temperature.

Enter your values and click Calculate.

Formula used: Vout = 1.25 × (1 + R2/R1) + Iadj × R2

What This LM317 Calculator Does

The LM317 is a classic adjustable linear voltage regulator used in power supplies, battery chargers, lab tools, and electronics projects. This calculator helps you quickly design an LM317 circuit by solving the resistor network and checking practical limits such as dropout and heat.

Instead of stopping at the basic voltage equation, this tool also estimates:

  • Output voltage from your current resistor pair
  • R2 value required for a desired output voltage
  • Dropout headroom (whether your input is high enough)
  • Regulator power dissipation
  • Approximate junction temperature rise
  • Estimated efficiency of the linear conversion

LM317 Formula and Design Equations

The output of an LM317 is primarily set by resistors R1 and R2:

Vout = 1.25 × (1 + R2/R1) + Iadj × R2

Where:

  • 1.25V is the internal reference voltage.
  • R1 is typically 240Ω.
  • R2 sets the output voltage.
  • Iadj is usually small (around 50µA typical), but included here for better accuracy.

To solve for R2 at a target output voltage:

R2 = (Vout - 1.25) / (1.25/R1 + Iadj)

How to Use This Calculator

1) If you already chose resistor values

Enter R1, R2, and other operating values, then click Calculate From R1/R2. You’ll get the predicted output voltage and thermal behavior.

2) If you know the output you want

Enter your desired Target Output Voltage and click Set R2 For Target Vout. The calculator will compute a new R2 value and update the field automatically.

3) Check regulator safety margin

Set realistic values for Vin, Iload, dropout, and θJA. If thermal estimates are high, add a heatsink, improve airflow, or reduce voltage drop across the regulator.

Practical Design Notes

  • Dropout matters: LM317 needs input voltage above output by around 2V to 3V depending on load and temperature.
  • Heat scales with current and voltage drop: P ≈ (Vin − Vout) × Iload.
  • Linear regulators are simple but not highly efficient: big Vin-to-Vout drops waste power as heat.
  • Use proper capacitors: follow your LM317 datasheet recommendations for input/output stability.
  • Protective diodes may be needed: especially with large output capacitors or adjustable pin capacitors.

Example: 12V to 5V Regulated Supply

Using a typical R1 of 240Ω, an R2 near 720Ω gives approximately 5V output. At 0.2A load current, the regulator dissipates around 1.4W:

P ≈ (12 − 5) × 0.2 = 1.4W

Without a heatsink, that can produce a significant temperature rise. In many real builds, thermal management is the limiting factor—not the equation itself.

When to Use LM317 vs Switching Regulators

Use LM317 when you want:

  • Low noise and simple analog-friendly behavior
  • Easy prototyping with few external parts
  • Moderate currents and manageable heat

Use a switching regulator when you need:

  • High efficiency and long battery life
  • Larger current output
  • Low heat with large Vin-to-Vout difference

Final Tip

This calculator gives strong first-pass design values. Before final hardware, always verify with the specific LM317 datasheet for your manufacturer, expected operating temperature, and package style (TO-220, SOT-223, etc.).

🔗 Related Calculators