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.
| Regulator | Vref (typical) | Limits | Condition | Bias current | Top / bottom | Starting point | Data sheet |
|---|
| LM2596-ADJ | 1.23 V | 1.18 to 1.28 V | −40 °C to 125 °C | 10 nA typ | R2 / R1 | R1 of 1 kΩ, as in the data sheet’s design example | TI LM2596, SNVS124G |
| LM2576-ADJ | 1.23 V | 1.18 to 1.28 V | full operating temperature | 50 nA typ | R2 / R1 | R1 of 1 kΩ, as in the data sheet’s design example | TI LM2576, SNVS107G |
| MP1584 | 0.8 V | 0.776 to 0.824 V | 25 °C | not specified | R1 / R2 | R2 of 40.2 kΩ, the data sheet’s typical value | MPS MP1584, Rev. 1.0 |
| TPS54331 | 0.8 V | 0.772 to 0.828 V | −40 °C to 150 °C | not specified | R5 / R6 | R5 of about 10 kΩ, as the data sheet recommends | TI TPS54331, SLVS839H |
| TPS5430 | 1.221 V | 1.196 to 1.245 V | −40 °C to 125 °C | not specified | R1 / R2 | R1 of 10 kΩ, as the data sheet says to start with | TI TPS5430, SLVS632L |
| TPS563200 | 0.765 V | 0.758 to 0.772 V | 25 °C, continuous mode | 0 typ, ±100 nA | R2 / R3 | R3 of 10 kΩ, as in the data sheet’s schematic | TI TPS563200, SLVSCB0E |
| LMR33630 | 1 V | 0.985 to 1.015 V | −40 °C to 125 °C | 200 pA typ | RFBT / RFBB | RFBT of 100 kΩ, the data sheet’s recommended value | TI LMR33630, SNVSAN3F |
| TLV62569 | 0.6 V | 0.588 to 0.612 V | 25 °C | not specified | R1 / R2 | R2 of 100 kΩ, as in the data sheet’s schematic | TI TLV62569, SLVSDG1C |
| MT3608 | 0.6 V | 0.588 to 0.612 V | 25 °C | 10 nA typ, out of the pin | R1 / R2 | R2 of 15 kΩ, this tool’s starting value; the data sheet does not give a value | Aerosemi MT3608 data sheet |
| XL4015 | 1.25 V | 1.225 to 1.275 V | 25 °C | not specified | R2 / R1 | R1 of 3.3 kΩ, as in the data sheet’s 5 V circuit | XLSEMI XL4015, Rev 2.0 |
| LM317 | 1.25 V | 1.2 to 1.3 V | full line, load and temperature | 50 µA typ | R1 / R2 | R1 of 240 Ω, TI’s typical application | TI LM317, SLVS044Z |
| LM1117-ADJ | 1.25 V | 1.225 to 1.27 V | 0 °C to 125 °C | 60 µA typ | R1 / R2 | R1 of 124 Ω, the value in the data sheet’s example | TI LM1117, SNOS412Q |
| AMS1117-ADJ | 1.25 V | 1.2125 to 1.2875 V | full temperature | 55 µA typ | R1 / R2 | R1 near 125 Ω, so R1 alone carries the 10 mA minimum load | Advanced 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.
| Vref | 1.8 V | 2.5 V | 3.3 V | 5 V | 12 V | Used by |
|---|
| 0.6 V | 20 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 V | 13.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 V | 12.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 V | 8.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 V | 4.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 V | 4.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 V | 4.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.
| Output | LM317, R1 = 240 Ω | LM1117-ADJ, R1 = 124 Ω | AMS1117-ADJ, R1 = 121 Ω |
|---|
| 1.8 V | 105 Ω (1.802 V) | 53.6 Ω (1.794 V) | 53.6 Ω (1.807 V) |
| 2.5 V | 237 Ω (2.496 V) | 124 Ω (2.507 V) | 121 Ω (2.507 V) |
| 3.3 V | 392 Ω (3.311 V) | 200 Ω (3.278 V) | 196 Ω (3.286 V) |
| 5 V | 715 Ω (5.01 V) | 374 Ω (5.043 V) | 365 Ω (5.041 V) |
| 9 V | 1.47 kΩ (8.98 V) | 768 Ω (9.038 V) | 750 Ω (9.039 V) |
| 12 V | 2.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.
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 →
- Heatsink calculatorMaximum heatsink thermal resistance for a part to stay below its junction limit, from power, θJC and the interface.
- LDO power dissipation calculatorPower an LDO burns, its junction temperature for the package, and the most current it can deliver before overheating.
- Junction temperature calculatorJunction temperature from power and θJA or θJC, the maximum power for your ambient, and a derating curve.
- LM317 calculatorOutput voltage of an LM317 from R1 and R2, or the standard resistor pair for a voltage, with dropout and heat.
- Buck converter calculatorDuty cycle, inductor, ripple current, output capacitor and peak current for a buck converter, with the inductor current waveform.
- LM317 constant current calculatorSet resistor for an LM317 constant-current source or LED driver, its power, and the supply headroom you need.
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.