NewAI Part GeneratorFree to get started
FREE TOOL

Regulator feedback resistor calculator

Two resistors set the output of an adjustable regulator, and this feedback resistor calculator finds the pair in standard values, along with the error they give. Choose a common regulator or enter your own reference voltage, and see the worst-case output range.

Solve for
Examples
V
Start from

Which resistor you pick first; the other is calculated.

Resistor series
%

Used for the worst-case output range.

Feedback resistors (E96)

Rtop 3.09 kΩ, Rbottom 1 kΩ

+0.61%

Output with this pair
5.031 V +0.61%
Exact Rtop
3.065 kΩ with 1 kΩ fixed
Reference
1.23 V LM2596-ADJ
Worst-case output
4.754 V to 5.315 V reference limits, ±1.0% resistors
Divider current
1.23 mA
Divider power
6.19 mW
Bias current shift
30.9 µV

Starting point: R1 of 1 kΩ, as in the data sheet’s design example.

In the LM2596-ADJ data sheet the top resistor is R2 and the bottom is R1. The reference is 1.23 V typical (1.18 to 1.28 V, −40 °C to 125 °C).

Other E96 pairs for 5 V, closest first

RtopRbottomOutput (typical)Error
1.69 kΩ549 Ω5.016 V+0.33%
1.65 kΩ536 Ω5.016 V+0.33%
3.48 kΩ1.13 kΩ5.018 V+0.36%
2.15 kΩ698 Ω5.019 V+0.37%
4.22 kΩ1.37 kΩ5.019 V+0.38%
2.8 kΩ909 Ω5.019 V+0.38%

What is the feedback resistor formula for a regulator?

Vout = Vref × (1 + Rtop ÷ Rbottom), so Rtop = Rbottom × (Vout ÷ Vref − 1). For 3.3 V from a 0.8 V reference with Rbottom = 10 kΩ, Rtop = 31.25 kΩ, and the nearest E96 resistor, 31.6 kΩ, gives 3.328 V. LM317-style regulators have the reference between OUT and ADJ, so there the ratio is R2 ÷ R1, with R1 on top.

Feedback resistor divider formulas

The regulator servos its output until the feedback pin matches its internal reference. Two circuits are in common use, and which resistor sets the current depends on where the reference sits.

Most buck and boost converters and many LDOs have the reference between FB and ground:

Vout = Vref × (1 + Rtop ÷ Rbottom) + Ifb × Rtop
Vout
output voltage in V
Vref
reference (feedback) voltage in V
Rtop
resistor from the output to FB, in Ω
Rbottom
resistor from FB to ground, in Ω
Ifb
bias current into the FB pin, in A
Rtop = (Vout − Vref) ÷ (Vref ÷ Rbottom + Ifb)

The LM317, LM1117 and AMS1117-ADJ hold the reference between OUT and ADJ instead:

Vout = Vref × (1 + R2 ÷ R1) + Iadj × R2
R1
resistor from OUT to ADJ (the top resistor), in Ω
R2
resistor from ADJ to ground (the bottom resistor), in Ω
Iadj
current out of the ADJ pin, in A
R2 = (Vout − Vref) ÷ (Vref ÷ R1 + Iadj)

How to calculate feedback resistor values: worked examples

Example 1: LM2596-ADJ at 20 V

The LM2596 data sheet uses R1 = 1 kΩ as the bottom resistor and Vref = 1.23 V. Rtop = 1 kΩ × (20 ÷ 1.23 − 1) = 15.26 kΩ, and the closest 1 % value is 15.4 kΩ, which matches the data sheet’s example. It gives 20.17 V.

Example 2: TPS54331 at 3.3 V

The data sheet says to start with the top resistor near 10 kΩ. Rbottom = 10 kΩ × 0.8 ÷ (3.3 − 0.8) = 3.2 kΩ, and the nearest E96 value, 3.24 kΩ, gives 3.269 V. With the reference limits of 0.772 V to 0.828 V and 1 % resistors, the output can be 3.108 V to 3.435 V.

Example 3: the LM317 trap

For 3.3 V from an LM317 with R1 = 240 Ω on top, R2 = (3.3 − 1.25) ÷ (1.25 ÷ 240 + 50 µA) = 389.9 Ω, and the nearest E96 value, 392 Ω, gives 3.311 V. Applying the FB-to-ground formula to the same resistors would predict 2.015 V, which is why the part selector here applies the right form for each regulator.

Reference voltage and divider advice by regulator

Transcribed from each data sheet. The minimum and maximum are the published limits for the condition shown, and the last columns give the data sheet’s names and a suggested starting point, which comes from the data sheet unless the row says otherwise.

RegulatorVref (typical)LimitsConditionBias currentTop / bottomStarting pointData sheet
LM2596-ADJ1.23 V1.18 to 1.28 V−40 °C to 125 °C10 nA typR2 / R1R1 of 1 kΩ, as in the data sheet’s design exampleTI LM2596, SNVS124G
LM2576-ADJ1.23 V1.18 to 1.28 Vfull operating temperature50 nA typR2 / R1R1 of 1 kΩ, as in the data sheet’s design exampleTI LM2576, SNVS107G
MP15840.8 V0.776 to 0.824 V25 °Cnot specifiedR1 / R2R2 of 40.2 kΩ, the data sheet’s typical valueMPS MP1584, Rev. 1.0
TPS543310.8 V0.772 to 0.828 V−40 °C to 150 °Cnot specifiedR5 / R6R5 of about 10 kΩ, as the data sheet recommendsTI TPS54331, SLVS839H
TPS54301.221 V1.196 to 1.245 V−40 °C to 125 °Cnot specifiedR1 / R2R1 of 10 kΩ, as the data sheet says to start withTI TPS5430, SLVS632L
TPS5632000.765 V0.758 to 0.772 V25 °C, continuous mode0 typ, ±100 nAR2 / R3R3 of 10 kΩ, as in the data sheet’s schematicTI TPS563200, SLVSCB0E
LMR336301 V0.985 to 1.015 V−40 °C to 125 °C200 pA typRFBT / RFBBRFBT of 100 kΩ, the data sheet’s recommended valueTI LMR33630, SNVSAN3F
TLV625690.6 V0.588 to 0.612 V25 °Cnot specifiedR1 / R2R2 of 100 kΩ, as in the data sheet’s schematicTI TLV62569, SLVSDG1C
MT36080.6 V0.588 to 0.612 V25 °C10 nA typ, out of the pinR1 / R2R2 of 15 kΩ, this tool’s starting value; the data sheet does not give a valueAerosemi MT3608 data sheet
XL40151.25 V1.225 to 1.275 V25 °Cnot specifiedR2 / R1R1 of 3.3 kΩ, as in the data sheet’s 5 V circuitXLSEMI XL4015, Rev 2.0
LM3171.25 V1.2 to 1.3 Vfull line, load and temperature50 µA typR1 / R2R1 of 240 Ω, TI’s typical applicationTI LM317, SLVS044Z
LM1117-ADJ1.25 V1.225 to 1.27 V0 °C to 125 °C60 µA typR1 / R2R1 of 124 Ω, the value in the data sheet’s exampleTI LM1117, SNOS412Q
AMS1117-ADJ1.25 V1.2125 to 1.2875 Vfull temperature55 µA typR1 / R2R1 near 125 Ω, so R1 alone carries the 10 mA minimum loadAdvanced Monolithic Systems AMS1117

Top resistor for common outputs

For regulators with the reference between FB and ground, using Rbottom = 10 kΩ. Each cell is the nearest E96 value and the error it gives, ignoring bias current.

Vref1.8 V2.5 V3.3 V5 V12 VUsed by
0.6 V20 kΩ (0.00%)31.6 kΩ (-0.16%)45.3 kΩ (+0.55%)73.2 kΩ (-0.16%)191 kΩ (+0.50%)TLV62569, MT3608
0.765 V13.7 kΩ (+0.73%)22.6 kΩ (-0.24%)33.2 kΩ (+0.15%)54.9 kΩ (-0.70%)147 kΩ (+0.09%)TPS563200
0.8 V12.4 kΩ (-0.44%)21.5 kΩ (+0.80%)31.6 kΩ (+0.85%)52.3 kΩ (-0.32%)140 kΩ (0.00%)MP1584, TPS54331
1 V8.06 kΩ (+0.33%)15 kΩ (0.00%)23.2 kΩ (+0.61%)40.2 kΩ (+0.40%)110 kΩ (0.00%)LMR33630
1.221 V4.75 kΩ (+0.05%)10.5 kΩ (+0.12%)16.9 kΩ (-0.47%)30.9 kΩ (-0.12%)88.7 kΩ (+0.43%)TPS5430
1.23 V4.64 kΩ (+0.04%)10.2 kΩ (-0.62%)16.9 kΩ (+0.26%)30.9 kΩ (+0.61%)86.6 kΩ (-0.98%)LM2596-ADJ, LM2576-ADJ
1.25 V4.42 kΩ (+0.14%)10 kΩ (0.00%)16.5 kΩ (+0.38%)30.1 kΩ (+0.25%)86.6 kΩ (+0.62%)XL4015

R2 for OUT-to-ADJ regulators

The E96 value of R2 and the output it gives, including the typical ADJ current, with each part’s starting R1.

OutputLM317, R1 = 240 ΩLM1117-ADJ, R1 = 124 ΩAMS1117-ADJ, R1 = 121 Ω
1.8 V105 Ω (1.802 V)53.6 Ω (1.794 V)53.6 Ω (1.807 V)
2.5 V237 Ω (2.496 V)124 Ω (2.507 V)121 Ω (2.507 V)
3.3 V392 Ω (3.311 V)200 Ω (3.278 V)196 Ω (3.286 V)
5 V715 Ω (5.01 V)374 Ω (5.043 V)365 Ω (5.041 V)
9 V1.47 kΩ (8.98 V)768 Ω (9.038 V)750 Ω (9.039 V)
12 V2.05 kΩ (12.03 V)1.07 kΩ (12.1 V)1.05 kΩ (12.15 V)

Getting the divider right on the board

Connect the top of the divider at the output capacitor and return the bottom to the regulator’s quiet ground. Keep the FB trace short and away from the switch node, since a noisy FB pin looks like an output error. Use 1 % resistors, and check that the divider current is well above any FB bias current: at 80 µA a 10 kΩ bottom resistor on a 0.8 V reference is comfortable.

This feedback resistor divider calculator sets only the DC operating point. Changing the divider can move the loop response of a regulator with external compensation, and very large resistors may need a feedforward capacitor across the top resistor. Check the data sheet’s compensation section, and for the MP1584 note that MPS now points new designs to the MP2338.

Glossary

Feedback (FB) pin
The input of the error amplifier. The loop adjusts the output until this pin equals the reference.
Reference voltage (Vref)
The internal voltage the regulator compares the feedback against.
Divider current
The current through the feedback resistors, set by the resistor across the reference.
Bias current
The small current that flows in or out of the FB pin, which adds an error through the top resistor.
E96
The standard series of 96 resistor values per decade, usually supplied at 1 % tolerance.
Feedforward capacitor
A capacitor across the top resistor that adds phase lead to the control loop.

Related guides

Frequently asked questions

How do I calculate feedback resistors for a regulator?

Pick the bottom resistor, or start from the value the data sheet gives, then use Rtop = Rbottom × (Vout ÷ Vref − 1). For regulators with the reference between OUT and ADJ, such as the LM317, it is the other way round: pick R1 and use R2 = R1 × (Vout ÷ Vref − 1).

What resistors give 3.3 V from a 0.8 V reference?

With Rbottom = 10 kΩ the exact Rtop is 31.25 kΩ. The nearest E96 value, 31.6 kΩ, gives 3.328 V.

Why is the LM317 formula different from a buck converter’s?

On most converters the reference sits between FB and ground, so the bottom resistor sets the current. On an LM317, LM1117 or AMS1117-ADJ the reference sits between OUT and ADJ, so the top resistor (R1) sets the current and the ratio inverts. Using the wrong form gives a badly wrong voltage.

How large should the feedback resistors be?

Large enough not to waste current and small enough to resist noise and bias-current error. TI SLVA477 keeps the divider current at 100 times the FB bias current or more. Many data sheets give a value or range: the LM2596 asks for R1 between 240 Ω and 1.5 kΩ, the TPS5430 starts with 10 kΩ, the LMR33630 with 100 kΩ.

How accurate will the output voltage be?

The reference usually sets the limit. The LM2596 reference is ±4 % over temperature (1.18 V to 1.28 V), so even perfect resistors cannot beat it; resistors at 1 % add about 1.5 % at 5 V. This adjustable voltage regulator calculator shows the full worst-case range for the selected part.

What happens if the FB pin picks up noise?

The regulator treats it as an output error, so the output jitters or the loop misbehaves. Keep the divider next to the FB pin, route it away from the switch node and inductor, and take the top of the divider from the output capacitor.

Can I make an output lower than the reference voltage?

Not with a resistor divider, because a divider can only make the output higher than the reference. Use a part with a lower reference or a converter designed for that voltage.

What is a feedback resistor?

In a regulator it is one of the two resistors that divide the output down to the feedback pin. The control loop adjusts the output until the internal reference appears at that pin (between OUT and ADJ on LM317-style parts), so the ratio of the resistors sets the output voltage.

Does this work as a buck converter feedback resistor calculator?

Yes, and as an LDO feedback resistor calculator too, because most buck and boost converters and many LDOs have the reference between FB and ground. Pick the regulator from the list (the LM2596 and other common parts are built in) or enter its reference voltage. LM317-style parts use the OUT-to-ADJ form, and the part selector applies it for you.

More free PCB tools

See all free electronics tools →

Sources

Design the whole board, not one number

ProtoFlow is free AI PCB design software: describe a circuit and get a schematic with real parts, PCB layout with an autorouter, SPICE simulation and Gerber files. Native KiCad, Altium and EAGLE import and export. Free on macOS, Windows and Linux.

Get for Mac

Free to start. No card required.