Skip to content
Documentation sections

LM317 Resistor Calculator

POSThttps://rftools.io/api/py/v1/calculate

Slug lm317-resistors. Calculate R2 resistor value for LM317/LM338 adjustable voltage regulator output voltage, with actual Vout and resistor power dissipation.

Inputs

Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.

Inputs of lm317-resistors
NameUnitRangeDefaultDescription
voutnumberV1.25 … 375Desired output voltage (minimum 1.25V = Vref)
r1numberΩ1 … 10000240R1 from output pin to ADJ pin — typically 240Ω per LM317 datasheet
iadjnumberμA0 … 50050ADJ pin current — typically 50μA for LM317, 65μA for LM317A
eSeriesnumbernone0 … 960Rounds every part to the nearest value in the series; the response and the export are the rounded design's.One of: 0 Ideal values · 12 E12 (10%) · 24 E24 (5%) · 48 E48 (2%) · 96 E96 (1%)

Outputs

Returned in values, by key. A value that is unbounded or undefined is null.

Outputs of lm317-resistors
FieldUnitDescription
r2headlineΩR2 from the ADJ pin to ground: the exact value for R1, or with a part series the nearest value of the series
voutActualVThe output voltage R1 and R2 set, including the ADJ pin current; with a part series, the rounded resistors' voltage
powerR1mWPower dissipated in R1
powerR2mWPower dissipated in R2

Calling it

  • Calculate: one call, the request and response in full, and its errors.
  • Batch: this calculator with others, or a sweep, in one request.
  • Solve for a target: the value of one input that brings an output to a target.