LM317 Calculator With Standard Resistor Values

Choose resistor series and your target regulated output. Check nearest values, error, heat, and dropout. Download clear LM317 design results for project documentation today.

Calculator

Example data table

Target output R1 Series Nearest R2 Estimated output Use case
3.3 V 240 Ω E24 390 Ω 3.300 V Logic supply check
5 V 240 Ω E24 680 Ω 4.827 V Basic regulator setup
12 V 240 Ω E96 2.05 kΩ 12.030 V Bench supply rail

Formula used

LM317 output voltage:

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

Exact R2 for a target voltage:

R2 = (Vtarget - Vref) / ((Vref / R1) + Iadj)

Regulator power estimate:

Preg = (Vin - Vout) × Iload

Minimum input estimate:

Vin minimum = Vout + dropout allowance

How to use this calculator

Enter the target regulated voltage first. Add the available input voltage and expected load current. Keep R1 at 240 ohms for a normal starting point, or enter another value. Choose the resistor series available in your parts stock. Set tolerance, adjust current, and dropout allowance. Press calculate. Read the exact R2, nearest standard R2, best standard pair, tolerance range, and power notes.

Understanding LM317 resistor selection

The LM317 is an adjustable linear regulator. It uses two resistors to set its output voltage. A small reference voltage appears between the output and adjust pins. That reference is normally treated as 1.25 volts. The first resistor sets divider current. The second resistor raises the output above the reference level.

Why standard values matter

Real designs rarely use exact resistor numbers. They use standard values from common resistor series. This calculator compares the exact resistance with the nearest listed value. It also searches for the best pair inside your chosen limits. That helps when you want a clean bill of materials and less trimming.

Tolerance and accuracy

A resistor marked 1 percent can move above or below its nominal value. That change shifts the output. The adjust pin current also adds a small error. For low resistor values, the adjust current effect is often small. For high values, it becomes more important. The calculator estimates a worst case range by applying tolerance to both resistors.

Heat and dropout checks

The regulator must have enough input voltage. The input should be higher than the output by the dropout allowance. Extra voltage becomes heat inside the regulator. The power loss rises with load current. A large voltage drop at high current may need a heatsink. This tool estimates dissipation so the design is not judged by voltage alone.

Good practical choices

Many LM317 examples use 240 ohms for the top resistor. That value gives useful divider current. Some low current designs use higher values, but they should be checked carefully. Choose a resistor series that matches your parts drawer. E12 is common. E24 gives closer steps. E96 is useful when tight output accuracy is needed.

Using the results

Start with the target voltage and input voltage. Enter the load current expected by the circuit. Then choose the resistor series and tolerance. Review the exact R2, nearest R2, and best pair. Check the percent error before copying values. Finally, inspect dropout and heat warnings. A good result has acceptable voltage error, safe input margin, and manageable regulator power.

Documenting the selected pair is useful later. It makes later testing easier and keeps regulator choices clear for repairs.

FAQs

What does an LM317 calculator do?

It finds resistor values for an LM317 adjustable regulator. It can also estimate output error, tolerance range, input margin, and heat loss.

Why is R1 often set to 240 ohms?

Many common LM317 circuits use 240 ohms because it gives a useful divider current. That helps the regulator maintain stable operation under normal conditions.

What is the standard LM317 output formula?

The usual formula is Vout = Vref × (1 + R2 / R1) + Iadj × R2. Vref is commonly entered as 1.25 volts.

Why does the nearest standard resistor matter?

The exact calculated resistor may not exist in your stock. The nearest standard value shows the likely real output after using a common resistor.

What does the best pair search mean?

It checks standard R1 and R2 values inside your limits. Then it picks the pair that makes the output closest to your target.

How does tolerance affect output voltage?

Resistor tolerance changes the ratio between R1 and R2. This calculator estimates a low and high output by moving both resistors within tolerance.

Why is regulator power shown?

A linear regulator turns extra voltage into heat. The estimate helps you decide whether the regulator may need a heatsink or a lower input voltage.

Can this replace a datasheet design review?

No. Use it for quick planning and comparison. Always check the exact LM317 datasheet, current limits, thermal resistance, and layout needs before building.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.