Sub topic 14
How Finite Open-Loop Gain Changes the Result
This chapter assumes you can write KCL at a node, analyze the inverting and non-inverting amplifiers with the virtual short, and read a voltage divider. The earlier chapters on negative feedback and the virtual short are the background. Here we remove one idealization: infinite open-loop gain. We keep the rest of the ideal model (infinite input resistance, zero output resistance, no supply limits).
Where the ideal model hid an approximation
The ideal analysis sets the differential input to exactly zero. That is only true when the open-loop gain A is infinite. A real op amp has a large but finite A, often 10^5 to 10^6 at DC. The output is vo = A (v+ - v-), so a finite output needs a nonzero difference:
v+ - v- = vo / A
For vo = -10 V and A = 10^5, the inputs differ by 100 µV. The virtual short is therefore a very small voltage, not a zero voltage. The question is how much this changes the gain.
Exact analysis of the inverting amplifier
Take Rin from the source to the inverting node and Rf from output to that node. The non-inverting input is grounded, so vo = -A v-, which gives v- = -vo / A.
KCL at the inverting node, with zero input current into the op amp:
(vin - v-) / Rin = (v- - vo) / Rf
Substitute v- = -vo / A:
(vin + vo/A) / Rin = -vo (1 + 1/A) / Rf
Collect the vo terms:
vin / Rin = -vo [ (1 + 1/A)/Rf + 1/(A Rin) ]
Multiply through by Rf and solve:
vo / vin = -(Rf/Rin) / [ 1 + (1 + Rf/Rin) / A ]
The numerator is the ideal gain. The denominator is a correction factor that approaches 1 as A grows.
Exact analysis of the non-inverting amplifier
Here Rf and Rg divide the output back to the inverting input:
v- = β vo, where β = Rg / (Rf + Rg)
The input is applied to the non-inverting terminal, so vo = A (vin - β vo). Solving:
vo / vin = A / (1 + Aβ) = (1/β) / (1 + 1/(Aβ))
Since 1/β = 1 + Rf/Rg, the numerator is again the ideal gain. This matches ideal / (1 + ideal/A) in the code below.
The feedback loop view
Both results have the same structure. Write G_ideal for the ideal closed-loop gain magnitude and NG = 1 + Rf/Rg (or 1 + Rf/Rin for the inverting case) for the noise gain, which is 1/β. Then:
G_actual = G_ideal / (1 + NG / A)
The product Aβ = A / NG is the loop gain. It measures how strongly feedback holds the input difference near zero.
Estimating the error
When NG / A is small, 1 / (1 + x) ≈ 1 - x, so:
relative error ≈ -NG / A = -1 / (Aβ)
The actual gain is slightly smaller in magnitude than the ideal gain. The error depends on the noise gain, not on whether the amplifier is inverting. This is why an inverting gain of -10 (noise gain 11) has about the same error as a non-inverting gain of +11.
| Configuration | Ideal gain | Noise gain `1/β` | Approximate relative error |
|---|---|---|---|
| Voltage follower | 1 | 1 | -1/A |
| Non-inverting, `Rf = 9k`, `Rg = 1k` | 10 | 10 | -10/A |
| Inverting, `Rf = 10k`, `Rin = 1k` | -10 | 11 | -11/A |
| Non-inverting, gain 1000 | 1000 | 1000 | -1000/A |
For the follower, the exact result is A / (1 + A), which is 1 - 1/(1 + A).
Checking the numbers in code
The functions below implement the exact formulas. Two helpers turn them into design estimates: the percentage error for a given noise gain, and the open-loop gain needed to meet an error budget.
def inverting_gain(rf, rin, a=None):
"""Closed-loop gain Vout/Vin of the inverting amplifier.
a=None uses the ideal model; otherwise a is the finite open-loop gain."""
ideal = -rf / rin
if a is None:
return ideal
return ideal / (1 + (1 + rf / rin) / a)
def noninverting_gain(rf, rg, a=None):
"""Closed-loop gain Vout/Vin of the non-inverting amplifier."""
ideal = 1 + rf / rg
if a is None:
return ideal
return ideal / (1 + ideal / a)
def gain_error_percent(noise_gain, a):
"""Percent change of the closed-loop gain caused by finite open-loop gain a."""
return (1 / (1 + noise_gain / a) - 1) * 100
def min_open_loop_gain(noise_gain, max_error_percent):
"""Approximate open-loop gain needed to keep the error within the budget."""
return noise_gain * 100 / max_error_percent
print(inverting_gain(10e3, 1e3)) # -10.0
print(inverting_gain(10e3, 1e3, a=1e5)) # about -9.9989
print(noninverting_gain(9e3, 1e3)) # 10.0
print(noninverting_gain(9e3, 1e3, a=1e5)) # about 9.999
for ng in (2, 11, 101, 1001):
print(ng, round(gain_error_percent(ng, 1e5), 3))
# 2 -0.002
# 11 -0.011
# 101 -0.101
# 1001 -0.991
print(min_open_loop_gain(100, 0.1)) # 100000.0With A = 10^5, a gain of 10 is off by about one part in ten thousand. A gain of 1000 is off by nearly 1%. The error grows in direct proportion to the noise gain, because higher gain leaves less loop gain.
Residual input difference
The correction also tells you the true input difference. For the non-inverting amplifier, v+ - v- = vo / A = vin / (1 + Aβ). With vin = 1 V, noise gain 10 and A = 10^5, the difference is about 100 µV. This is why the virtual short is a good approximation: the difference is small relative to the signals in the circuit.
You can confirm the idea in a circuit simulator by modeling the op amp as a voltage-controlled voltage source. The following netlist uses A = 10^6, so the operating point is very close to -10 V.
Inverting amplifier with an ideal op amp modeled as a VCVS
Vin in 0 DC 1
R1 in inn 1k
R2 inn out 10k
E1 out 0 0 inn 1e6
.op
.endChange 1e6 to 1e3 and the output moves to about -9.8 V. The formula predicts -10 / (1 + 11/1000) = -9.891. Rerun the simulation and compare it with that value.
Practical consequences
- Gain accuracy is limited by
A / NG, so the resistor tolerances usually dominate only whenA / NGis much larger than1/tolerance. With 1% resistors and a noise gain of 10, anyAabove about 10^5 makes the open-loop error negligible by comparison. - Using several low-gain stages instead of one high-gain stage keeps each noise gain small and each error small.
- Open-loop gain is not constant. It varies with temperature, from part to part, and with output load. The data sheet lists a minimum, a typical value, and sometimes only a typical value. Use the minimum when you need a guarantee.
- Feedback reduces the effect of variation in
A. IfAchanges by 50% whileAβis 10^4, the closed-loop gain changes by only about 0.005%.
What this does not cover
Finite open-loop gain is only one departure from the ideal model. It leaves out finite input resistance, nonzero output resistance, input offset voltage, bias currents, limited bandwidth and slew rate, and swing limits near the supply rails. The next chapter surveys those effects and explains when each one starts to matter.
Exercise
A non-inverting amplifier has Rf = 99 kΩ and Rg = 1 kΩ. The op amp has a minimum open-loop gain of 50,000. Find the ideal gain, the actual gain, and the percentage error.
Show answer
The ideal gain is 1 + 99k/1k = 100, so the noise gain is also 100. The actual gain is 100 / (1 + 100/50000) = 100 / 1.002 ≈ 99.80. The error is about -0.2%, which matches -NG/A = -100/50000 = -0.002.
Exercise
An inverting amplifier with Rf = 20 kΩ and Rin = 2 kΩ must have a gain error no worse than 0.05%. What minimum open-loop gain is required, and what is the op amp's input difference when vo = -5 V at that gain?
Show answer
The noise gain is 1 + 20k/2k = 11. The required gain is about NG × 100 / 0.05 = 11 × 2000 = 22,000. The input difference is vo / A = 5 / 22000 ≈ 227 µV (v+ - v- is positive, since vo is negative and the non-inverting input is grounded, so v- sits about 227 µV below ground... more precisely v- = -vo/A = +227 µV above ground).