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

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.