Sub topic 12
DC errors: input bias current and offset voltage
This chapter assumes you can derive the inverting and non-inverting gain equations from the virtual short. It also assumes you know how to find a Thevenin resistance. Real op amps add small DC errors to the ideal result. With no input signal, the output may still sit away from 0 V.
Input offset voltage
A real op amp behaves as if a small voltage source, the input offset voltage (Vos), were in series with one input. Typical values run from microvolts in precision parts to several millivolts in general-purpose parts.
Feedback amplifies Vos by the noise gain, which is the gain the amplifier gives a signal applied at the non-inverting input:
Vout error = Vos × (1 + Rf/Rin)
Both configurations have the same noise gain. This means an inverting amplifier with gain -10 amplifies Vos by 11, not by 10.
Input bias current
Bipolar input stages draw a small base current, called the input bias current (Ib). It is typically tens of nanoamps. The two inputs draw slightly different currents, and the difference is the input offset current (Ios).
Take an inverting amplifier with the non-inverting input grounded. The summing node sits at 0 V, so Rin carries no current. The bias current must come through Rf, which gives:
Vout error = Ib × Rf
The error grows with resistor size. At Ib = 100 nA, Rf = 10 kΩ gives 1 mV, but Rf = 1 MΩ gives 100 mV.
Cancelling the bias current error
Put a resistor R3 in series with the non-inverting input and set it equal to the resistance seen at the inverting input:
R3 = Rin ∥ Rf
Both inputs then see the same resistance. The two bias-current errors nearly cancel. What remains is:
Vout error ≈ Ios × Rf
Worked example
Take an inverting amplifier with Rin = 1 kΩ and Rf = 10 kΩ. Assume Vos = 1 mV, Ib = 100 nA, and Ios = 10 nA.
def offset_error(vos, rin, rf):
return vos * (1 + rf / rin)
def bias_error(ib, rf):
return ib * rf
def compensated_bias_error(ios, rf):
return ios * rf
rin, rf = 1e3, 10e3
vos, ib, ios = 1e-3, 100e-9, 10e-9
print(f"Offset: {offset_error(vos, rin, rf) * 1e3:.3f} mV")
print(f"Bias: {bias_error(ib, rf) * 1e3:.3f} mV")
print(f"Compensated: {compensated_bias_error(ios, rf) * 1e3:.3f} mV")The output is:
Offset: 11.000 mV
Bias: 1.000 mV
Compensated: 0.100 mVHere Vos dominates. The two errors can add or partly cancel, so for the worst case add their magnitudes: up to 12 mV without compensation. If the gain is 1000, the same Vos produces about a volt of error. That is why high-gain stages need low-offset parts or an AC-coupled input.
Practical rules
| Situation | Action |
|---|---|
| Large Rf (hundreds of kΩ or more) | Add R3 = Rin ∥ Rf, or use a FET-input part with pA-level bias current |
| High closed-loop gain | Choose a low-Vos op amp, or trim the offset |
| Signal needs only AC | Add a capacitor in series with Rin so DC gain drops to 1 |
| Source impedance sets Rin | Include the source resistance when computing R3 |
Exercise
A non-inverting amplifier uses Rf = 100 kΩ and Rg = 1 kΩ, and the op amp has Vos = 0.5 mV. What output error does Vos cause? Which resistor value would you reduce if bias current were also a concern?
Show answer
The noise gain is 1 + 100k/1k = 101, so the output error is 0.5 mV × 101 = 50.5 mV. Bias current flows through the feedback network, so you would reduce Rf (and Rg in proportion, to keep the gain at 101), or add a matching resistor at the other input.