Real Op-Amps: Offset, Bias Currents, CMRR and Rail-to-Rail
A type K thermocouple produces about per degree. Amplify it by 101 with a general-purpose op-amp, short the input, and the output reads : the amplifier claims a temperature of almost with nothing connected. The ideal model of The Ideal Op-Amp has no way to explain that. Real op-amps have a small offset voltage, draw small bias currents, pass a little of the common-mode and supply voltages, and cannot take their inputs or outputs all the way to the rails. Each effect is one entry in a datasheet table and one source in a model. This lesson turns those entries into an error budget, and covers the single-supply and rail-to-rail tricks that modern low-voltage designs depend on. The dynamic limits (bandwidth, slew rate) are in Gain-Bandwidth and Slew Rate.
The DC error model
Draw an ideal op-amp and put the errors outside it:
| Error | Symbol | What it is | General-purpose bipolar | Precision / zero-drift CMOS |
|---|---|---|---|---|
| Input offset voltage | the input difference that gives out | to | to | |
| Offset drift | change with temperature | to | to | |
| Input bias current | average current into the inputs | to | to | |
| Input offset current | about | similar to | ||
| Common-mode rejection | CMRR | / input-referred change | to | to |
| Power-supply rejection | PSRR | / input-referred change | to | to |
The ranges are typical of each class as of 2026, not of any one part: always read your part's datasheet, and use its maximum values for a worst-case design. CMOS bias currents are leakage of the input protection diodes and double about every .
For the non-inverting amplifier of the figure (and the inverting one, which has the same noise gain), superposition of the error sources gives the output error
The offset voltage is amplified by the noise gain , not the signal gain. The two bias-current terms cancel when , the bias-current compensation resistor: both inputs then see the same resistance, and only the offset current remains, . With CMOS inputs at picoamperes this resistor is pointless (and only adds noise); with bipolar inputs it can matter.
CMRR and PSRR are easiest to use as input-referred errors: a common-mode change acts like an offset of , a supply change like (both as plain ratios, ). In a non-inverting amplifier the input common mode is the signal, so a finite CMRR becomes a small gain error; in an inverting amplifier the inputs sit at ground and CMRR hardly matters. Both ratios fall with frequency, typically above a few tens of hertz, which is why supply ripple at from a switching regulator gets through far more easily than DC changes.
Input and output range, rail-to-rail
The input stage of a classic op-amp (The Differential Pair) needs a volt or two of headroom: the datasheet's input common-mode range might be to . Outside it the gain collapses, and some older parts even invert their output ("phase reversal"). The output stage likewise saturates a volt or so from each rail.
- Rail-to-rail input op-amps use two complementary input pairs, one working near each rail. Where the two hand over (typically to below the positive rail) the offset jumps by tens to hundreds of microvolts, a source of distortion; some parts avoid it with an internal charge pump.
- Rail-to-rail output op-amps use common-source (or common-emitter) output transistors that can pull to within millivolts of a rail at light load; the datasheet gives the headroom against load current, e.g. at but at .
On a single or supply, neither is a luxury.
Single-supply design
With only and , an AC signal must be centred somewhere between them. The usual answer is a mid-supply reference: a divider of two equal resistors, decoupled by a capacitor and buffered by a follower, gives . Input signals are AC-coupled and biased to that reference, the amplifier's "ground" resistor () returns to it, and the output swings around it. For DC-coupled sensors, choose a rail-to-rail op-amp and make sure the signal's minimum is above the output's lower headroom, or shift it with a reference as in Instrumentation Amplifiers.
Worked example: a thermocouple amplifier
Given: non-inverting gain (, ), a general-purpose bipolar op-amp with , , (, ), drift ; thermocouple with negligible resistance.
Find: the output error at without and with , and the drift over , in degrees.
Solve:
Check: the compensation resistor reduces the bias-current error from to (that is ), but the offset voltage dominates. A one-point calibration removes the at room temperature; the of drift remains. The conclusion: this job needs a precision op-amp.
In Python: an error budget for two op-amp classes
G, Rf, R1 = 101, 100e3, 1e3
Rp = R1 * Rf / (R1 + Rf)
S = 41e-6 # V/K, type K thermocouple near room temperature
dT = 25 # K from the calibration temperature
dVs = 0.25 # V of supply variation (5 V +/- 5 %)
amps = {
"general bipolar": dict(Vos=2e-3, drift=10e-6, Ibp=105e-9, Ibn=95e-9, cmrr=90, psrr=90),
"zero-drift CMOS": dict(Vos=10e-6, drift=0.05e-6, Ibp=300e-12, Ibn=200e-12, cmrr=120, psrr=120),
}
for name, a in amps.items():
terms = {
"Vos": a["Vos"],
"bias (with Rp)": (a["Ibn"] * Rf - a["Ibp"] * Rp * G) / G,
"drift over 25 K": a["drift"] * dT,
"CMRR (Vcm 0.5 V)": 0.5 / 10 ** (a["cmrr"] / 20),
"PSRR (0.25 V)": dVs / 10 ** (a["psrr"] / 20),
}
print(f"{name}: input-referred errors")
for k, v in terms.items():
print(f" {k:18s} {v*1e6:9.2f} uV = {v/S:7.3f} K")
rss = sum(v * v for k, v in terms.items() if k != "Vos") ** 0.5
print(f" after calibrating Vos out, RSS of the rest: {rss*1e6:.2f} uV = {rss/S:.3f} K")general bipolar: input-referred errors
Vos 2000.00 uV = 48.780 K
bias (with Rp) -9.90 uV = -0.241 K
drift over 25 K 250.00 uV = 6.098 K
CMRR (Vcm 0.5 V) 15.81 uV = 0.386 K
PSRR (0.25 V) 7.91 uV = 0.193 K
after calibrating Vos out, RSS of the rest: 250.82 uV = 6.118 K
zero-drift CMOS: input-referred errors
Vos 10.00 uV = 0.244 K
bias (with Rp) -0.10 uV = -0.002 K
drift over 25 K 1.25 uV = 0.030 K
CMRR (Vcm 0.5 V) 0.50 uV = 0.012 K
PSRR (0.25 V) 0.25 uV = 0.006 K
after calibrating Vos out, RSS of the rest: 1.37 uV = 0.033 K
After a room-temperature calibration, the general-purpose part still leaves about , almost all of it offset drift; the zero-drift part leaves , so the thermocouple's own cold-junction compensation becomes the limit.
Cross-check with SPICE: error sources outside the macro-model
The deck adds a offset source and two bias-current sources to the op-amp macro-model written for this course (the next lesson builds them into the subcircuit). The input is grounded, so the output is pure error. alter then fits the compensation resistor.
cat > dcerr.cir <<'EOF'
* non-inverting G = 101, input grounded: output = DC error
.subckt OA inp inn out
G1 0 n1 inp inn 1m
R1 n1 0 100meg
C1 n1 0 159.2p
E1 out 0 n1 0 1
.ends
Rp ip 0 1m
Ibp ip 0 105n
Vos ipp ip 2m
Ibn n 0 95n
R1 n 0 1k
Rf n out 100k
X1 ipp n out OA
.control
op
print v(out)
alter Rp = 990
op
print v(out)
.endc
.end
EOF
ngspice -b dcerr.cir 2>&1 | grep -E '^v\('v(out) = 2.112866e-01
v(out) = 2.007982e-01
and , less the that the finite takes off: the hand formula holds.
Interactive: tune the compensation resistor
Here the op-amp is the ideal controlled source E1 out 0 ipp n 1meg (gain ), with the offset Vos and the bias currents Ibp, Ibn drawn outside it as in the figure. ee-netlist has no op-amp element, so this is exactly the error model of this lesson.
At the defaults the lab shows ; slide to for , and set to zero to see the bias-current error alone, which crosses zero near (where ) rather than at , because the two currents are not equal.
Guided lab: measure an op-amp's offset and bias current
Hand calculation. Non-inverting, , (noise gain ), input grounded: . For that is about . Then put in series with the input: the output changes by , about per (pick for a bipolar part to stay inside the rails).
Simulation. The SPICE deck with your datasheet's typical values; the lab.
What you would measure. General-purpose op-amp on from a current-limited split supply, 1 % resistors. Read with a DMM (), divide by : expect within the datasheet's maximum, with any sign. Several op-amps from one bag will scatter widely: that is why datasheets give a typical and a maximum. Warm the chip with your finger or a hair dryer on low and watch the drift in . With a CMOS op-amp the step is unmeasurably small; with a bipolar one it gives to about .
Hazards and safe setup. Low-voltage current-limited supply. A hair dryer on low only; keep it away from the bench supply and do not heat the board above hand-warm.
Pitfalls
- Multiplying by the signal gain. It is multiplied by the noise gain; an inverting amplifier of gain multiplies by 2.
- Adding to a CMOS op-amp circuit. No benefit, more noise.
- Trusting "rail-to-rail" at full load. Read the output-headroom curve at your load current.
- Leaving out the input common-mode range in single-supply designs. An input at is outside many op-amps' range on a single supply.
- Ignoring PSRR at high frequency. Switching-regulator ripple goes straight through; filter the supply.
Practice
- An inverting amplifier has , and an op-amp with . What is the output offset?
- What compensation resistor goes in the input of that amplifier, and what bias-current error remains with ?
- An op-amp has . How much input-referred error does of supply ripple cause?
Answer
- Noise gain ; .
- (E24 ); the remaining error is about .
- ; (at frequencies where the PSRR still is ).
Test yourself
An inverting amplifier of gain uses an op-amp with . The output offset is…
The bias-current compensation resistor in the non-inverting input should equal…
A CMRR of means a change of common-mode voltage acts like an input offset of…
Why does a single-supply AC amplifier usually need a mid-supply reference?
- To lower the noise
- So the signal can swing both ways around a point between 0 and
- To raise the gain
- To cancel bias currents