Sub topic 10
Gain error from finite open-loop gain
This chapter assumes you can derive the ideal inverting and non-inverting gains from the virtual short. It also assumes you know the feedback fraction (the share of the output fed back to the inverting input). The ideal equations treat the open-loop gain A as infinite. A real op amp has a large but finite A, often 100,000 or more at DC. This chapter shows how that finite value shifts the closed-loop gain.
Where the error comes from
The virtual short only holds exactly when A is infinite. With finite A, the output is A times the small difference between the two inputs. That difference is not zero. The output must be slightly smaller than the ideal circuit would produce.
For the non-inverting amplifier, the feedback network returns a fraction β of the output to the inverting input:
β = Rg / (Rf + Rg)
The input difference is Vin − βVout, so:
Vout = A (Vin − β Vout)
Solving for the gain gives:
Vout / Vin = A / (1 + Aβ) = (1/β) × 1 / (1 + 1/(Aβ))
The ideal gain is 1/β = 1 + Rf/Rg. The factor 1 / (1 + 1/(Aβ)) is always slightly below 1.
The inverting case
Write the current equation at the summing node, with V− = −Vout/A. The result is:
Vout / Vin = −(Rf/Rin) / (1 + (1 + Rf/Rin) / A)
The error term uses 1 + Rf/Rin, not Rf/Rin. This quantity equals 1/β for the same resistor network, and it is called the noise gain. A gain of −10 therefore has a noise gain of 11. A non-inverting gain of +10 has a noise gain of 10.
A rule of thumb
For large Aβ, the fractional gain error is approximately:
error ≈ −1 / (Aβ) = −(noise gain) / A
The error depends on the noise gain divided by the open-loop gain. It does not depend on the input voltage. With A = 100,000:
| Noise gain | Approximate gain error |
|---|---|
| 2 | 0.002% |
| 11 | 0.011% |
| 100 | 0.1% |
| 1000 | 1% |
To keep the error below a limit ε, require A ≥ (noise gain) / ε. A gain of 100 with 0.1% accuracy needs A of at least 100,000.
Checking the numbers in code
def inverting_gain(rf, rin, open_loop_gain=float('inf')):
ideal = -rf / rin
if open_loop_gain == float('inf'):
return ideal
return ideal / (1 + (1 + rf / rin) / open_loop_gain)
def noninverting_gain(rf, rg, open_loop_gain=float('inf')):
ideal = 1 + rf / rg
if open_loop_gain == float('inf'):
return ideal
beta = rg / (rf + rg)
return open_loop_gain / (1 + open_loop_gain * beta)
print(inverting_gain(10e3, 1e3)) # -10.0
print(noninverting_gain(9e3, 1e3)) # 10.0
print(inverting_gain(10e3, 1e3, 1e5)) # about -9.9989
print(noninverting_gain(9e3, 1e3, 1e5)) # about 9.9990A gain of 10 with A = 100,000 is off by only about 0.01%. Resistor tolerance is usually a larger error source here. A 1% resistor changes the gain by far more than this.
Common mistakes
- Using Rf/Rin instead of 1 + Rf/Rin as the noise gain for an inverting stage. This underestimates the error slightly at low gain.
- Expecting the error to shrink with a larger input signal. It is a fixed fraction of the output.
- Treating A as constant across frequency or temperature.
- Expecting more precision from a high-gain stage. Each factor of 10 in noise gain costs a factor of 10 in accuracy. If you need a gain of 1000 accurately, split it into two stages of about 32 each.
Exercise
A non-inverting amplifier is built for a gain of 50 using an op amp with A = 200,000. Estimate the fractional gain error and the actual closed-loop gain.
Show answer
The noise gain is 1/β = 50. The error is about 50 / 200,000 = 0.025%. The actual gain is 50 / (1 + 50/200,000) = 50 / 1.00025, or about 49.9875.