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.