Set R1 and your target output voltage to get R2, then check input voltage headroom and how much heat the LM317 must dissipate.
LM317 formula
Vout = 1.25 V × (1 + R2 / R1). The tiny adjust-pin current (about 50 µA) adds a small error that you can usually ignore. R1 = 240 Ω is the classic choice; 120 Ω gives a bit more minimum load current.
Design checks
- Keep the input at least about 3 V above the output so the regulator stays in regulation (see the dropout curve in your datasheet).
- Power lost as heat = (Vin − Vout) × I. Above about 1 W add a heatsink; for big drops a buck converter is far more efficient.
More calculators
- PCB Trace Width Calculator (IPC-2221)
- Voltage Divider and ADC Scaling Calculator
- LED Series Resistor Calculator
- Battery Backup Time Calculator for Inverters and UPS
- CT Burden Resistor Calculator for Microcontroller ADC
- Ohm’s Law and Power Calculator
- Resistor Colour Code Calculator (4 and 5 Band)
- 555 Timer Astable Calculator
- RC Time Constant and Cut-off Frequency Calculator
- IPS / Inverter Size and Battery Calculator for Home
- Electricity Unit (kWh) and Bill Calculator
- Solar Home System Size Calculator (Panels, Battery, Controller)
- SMD Resistor Code Calculator (3-Digit, 4-Digit and EIA-96)
- Capacitor Code Calculator (104, 103, 222 to nF and µF)
- Series and Parallel Resistor and Capacitor Calculator
- Wire Size and Voltage Drop Calculator (mm² Cable)
- Buck Converter Calculator (Duty Cycle, Inductor and Capacitor)
- Battery Charging Time Calculator (Lead-Acid, Li-ion, LiFePO4)
- Li-ion / LiFePO4 Battery Pack Calculator (Series and Parallel Cells)
- Op-Amp Gain Calculator (Inverting and Non-Inverting)
- kVA, kW and Amps Calculator (Single-Phase and Three-Phase)
Need this designed for your product? We design power electronics, embedded firmware and industrial IoT hardware. Message us on WhatsApp or use the contact form.