---
title: Differential pairs in depth
heading: Large-signal transfer, linear range, offset and common-mode rejection
eyebrow: S2 · Lesson 10 · Differential pairs in depth
xp: 50
---

::: hook
The differential pair is the input of nearly every op amp, comparator and mixer. C6 showed it amplifying differences and ignoring common-mode signals. A designer needs more: how large an input it handles before it compresses, how much offset its mismatches create (and how that offset drifts), and how well it rejects common-mode signals when its halves aren't quite equal. The bipolar and MOS versions answer these differently, and the differences decide which one goes where.
:::

::: play
- The fraction of the tail current steered to one side against the differential input voltage, for a bipolar pair (solid) and a MOS pair with overdrive $V_{ov}$ (dashed).
- The bipolar pair's curve is $\tanh(v_{id}/2V_T)$, fixed by physics: it switches fully within about ±100 mV, and is linear only over a few millivolts.
- The MOS pair's range scales with its overdrive: it steers fully at $\sqrt2V_{ov}$. Raise $V_{ov}$ for a wider linear range, at the cost of less $g_m$ per unit current.
:::
:::

```sim plot
view: graph
x: v = -300..300 mV
y: i = -1.1..1.1
slider: Vov = 50..400 = 200 mV
plot: tanh(v/51.7) | samples: 600 | label: bipolar pair
plot: step(1.41421*Vov - abs(v))*(v/Vov)*sqrt(abs(1 - v^2/(4*Vov^2))) + (1 - step(1.41421*Vov - abs(v)))*sign(v) | samples: 600 | dashed | color: ch2 | label: MOS pair
readout: MOS pair fully steered at, mV = 1.41421*Vov
```

::: predict
## Over roughly what input range is a bipolar differential pair linear to within 1%?

- [ ] ±100 mV
- [ ] ±50 mV
- [x] ±9 mV
- [ ] ±1 mV

::: reveal
About ±9 mV. The $\tanh(v_{id}/2V_T)$ curve departs from its slope by 1% at $v_{id}$ = 9 mV. A MOS pair at $V_{ov}$ = 0.2 V stays within 1% out to about ±56 mV. That's one reason MOS pairs dominate where linearity matters, and why bipolar pairs that must handle larger signals use emitter degeneration, which widens the range to roughly $I_{EE}R_E$.
:::
:::

::: nameit
## Large-signal transfer

- **Bipolar:** $\Delta I = I_{EE}\tanh\frac{v_{id}}{2V_T}$, with small-signal $G_m = \frac{I_{EE}}{2V_T}$ (each transistor at $I_{EE}/2$).
- **MOS** (square law, each device at $V_{ov}$ when balanced): $\frac{\Delta I}{I_{SS}} = \frac{v_{id}}{V_{ov}}\sqrt{1 - \frac{v_{id}^2}{4V_{ov}^2}}$ for $|v_{id}| \leq \sqrt2V_{ov}$, fully steered beyond.

The cubic term in each expansion sets the third-order distortion (lesson 33).

## Offset

Mismatches make the output nonzero at zero input; the **input offset** is the input that cancels it.

- Bipolar, with resistor loads: $V_{os} = V_T\left(\frac{\Delta R}{R} + \frac{\Delta I_S}{I_S}\right)$. A fraction of a millivolt for good matching. Because it's proportional to $V_T$, its drift is $V_{os}/T$: trimming the offset also trims the drift.
- MOS: $V_{os} = \Delta V_T + \frac{V_{ov}}{2}\left(\frac{\Delta R}{R} + \frac{\Delta(W/L)}{W/L}\right)$. Threshold mismatch, several millivolts, usually dominates.

## Common-mode rejection

A common-mode input moves the tail current through the tail resistance $R_{EE}$ (or $R_{SS}$). In a perfectly matched pair that cancels at the differential output; mismatch converts part of it into a differential signal. With load mismatch $\Delta R_C/R_C$,

$$\text{CMRR} \approx \frac{2g_mR_{EE}}{\Delta R_C/R_C}$$

and a $g_m$ mismatch gives a similar term. High CMRR needs a tail with high output resistance (cascoded) and good matching. At high frequency the tail's capacitance lowers $R_{EE}$'s impedance and CMRR falls.

## Common-mode range

The inputs must stay where every transistor is saturated (or active): above the tail's compliance plus $V_{GS}$, below the point where the loads push the input devices into triode. Rail-to-rail inputs put an NMOS pair and a PMOS pair in parallel.
:::

::: example
## A bipolar pair has 1% load mismatch and 1% $I_S$ mismatch. Find its offset and drift. A MOS pair at $V_{ov}$ = 0.2 V has 3 mV of threshold mismatch and the same 1% load mismatch. Find its offset.

::: solution
1. **Bipolar offset.** In the worst case, where the two 1% errors add:
   $$\begin{aligned} V_{os} &= 0.02585 \times 0.02 \\ &= 0.52\ \text{mV} \end{aligned}$$
2. **Bipolar drift.**
   $$\frac{0.52\ \text{mV}}{300\ \text{K}} = 1.7\ \text{µV/K}$$
3. **MOS offset.** In millivolts:
   $$\begin{aligned} V_{os} &= 3 + \frac{0.2}{2} \times 0.01 \times 1000 \\ &= 4\ \text{mV} \end{aligned}$$
   dominated by the threshold term.
4. **What follows.** This is why precision op amps use bipolar inputs or chopping, and why MOS pairs are made large to shrink $\Delta V_T$.

**Answer:** the bipolar pair's offset is 0.52 mV, drifting 1.7 µV/K, and the MOS pair's is 4 mV.
:::
:::

::: example
## A bipolar pair runs at 0.5 mA per side with a 100 kΩ tail resistance and 1% load mismatch. What's its CMRR?

::: solution
1. **Transconductance.**
   $$\begin{aligned} g_m &= \frac{0.5\ \text{mA}}{0.02585\ \text{V}} \\ &= 19.3\ \text{mS} \\ &\approx 20\ \text{mS} \end{aligned}$$
2. **CMRR.**
   $$\begin{aligned} \text{CMRR} &\approx \frac{2 \times 0.02 \times 10^5}{0.01} \\ &= 4 \times 10^5 \end{aligned}$$
   or 112 dB.
3. **With a resistor tail.** A simple resistor tail of 10 kΩ would give 92 dB.
4. **With a cascoded tail.** Cascoding the tail current source raises $R_{EE}$ into the megohms and CMRR well past 120 dB at low frequency.

**Answer:** a CMRR of 4 × 10⁵, or 112 dB.
:::
:::

::: example
## How far must the input of a bipolar pair, and of a MOS pair at $V_{ov}$ = 0.2 V, move to steer nearly all of the tail current to one side?

::: solution
1. **Bipolar.** The steered fraction is $\Delta I/I = \tanh(\Delta V/2V_T)$, which reaches 96% at
   $$\begin{aligned} \Delta V &= 4V_T \\ &= 103\ \text{mV} \end{aligned}$$
2. **MOS.** The square law steers it all at
   $$\begin{aligned} \Delta V &= \sqrt2V_{ov} \\ &= 283\ \text{mV} \end{aligned}$$
3. **Why it matters.** A MOS pair's wider linear range is why it handles larger signals with less distortion, at the cost of lower $g_m$ per amp.

**Answer:** about 103 mV for the bipolar pair (96% of the current) and 283 mV for the MOS pair.
:::
:::

::: check
given: v = 30 | 60 | 100; I = 0.2 | 1
answer: I*tanh(v/51.7)*1000
unit: µA
tolerance: 1%

## A bipolar pair with a {I} mA tail gets a {v} mV differential input. How much current difference does it produce?

::: right
Right. $I_{EE}\tanh\frac{v_{id}}{2V_T}$ = {answer} µA.
:::

::: misses
- [I*v/51.7*1000] That's the linear approximation; use tanh.
- [any] Not yet. Use the large-signal law.
:::
:::

::: check
given: v = 0.1 | 0.2 | 0.35
answer: 1.41421*v*1000
unit: mV
tolerance: 1%

## A MOS pair is biased so each transistor has $V_{ov}$ = {v} V at balance. At what differential input does it steer the whole tail current?

::: right
Right. $\sqrt2V_{ov}$ = {answer} mV.
:::

::: misses
- [2*v*1000] It's $\sqrt2V_{ov}$: the off transistor reaches threshold as the other carries all the current.
- [v*1000] One transistor must carry twice its balanced current.
- [any] Not yet. Solve for one side carrying $I_{SS}$.
:::
:::

::: check
given: v = 100 | 150 | 200; o = 150 | 250
answer: v/o*sqrt(1 - v^2/(4*o^2))
tolerance: 1%

## A MOS pair with $V_{ov}$ = {o} mV gets a {v} mV differential input. What fraction of the tail current does it steer?

::: right
Right. $\frac{v_{id}}{V_{ov}}\sqrt{1 - \frac{v_{id}^2}{4V_{ov}^2}}$ = {answer}.
:::

::: misses
- [v/o] That's the small-signal slope; the square-root term compresses it.
- [any] Not yet. Use the square-law pair formula.
:::
:::

::: check
given: R = 0.5 | 1 | 2; S = 0.5 | 2
answer: 0.02585*(R + S)/100*1e6
unit: µV
tolerance: 1%

## A bipolar pair has {R}% load mismatch and {S}% $I_S$ mismatch, adding. What's its offset?

::: right
Right. $V_T\left(\frac{\Delta R}{R} + \frac{\Delta I_S}{I_S}\right)$ = {answer} µV.
:::

::: misses
- [0.02585*(R + S)*1e6] Convert percent to a fraction.
- [any] Not yet. Each mismatch shifts $V_{BE}$ by $V_T$ times it.
:::
:::

::: check
given: T = 1 | 3 | 6; v = 0.1 | 0.3; R = 0.5 | 2
answer: T + v/2*R/100*1000
unit: mV
tolerance: 1%

## A MOS pair has {T} mV of threshold mismatch, $V_{ov}$ = {v} V and {R}% load mismatch. What's its offset (the errors adding)?

::: right
Right. $\Delta V_T + \frac{V_{ov}}{2}\frac{\Delta R}{R}$ = {answer} mV.
:::

::: misses
- [T + v*R/100*1000] The load term carries $V_{ov}/2$.
- [any] Not yet. Threshold mismatch plus the load term.
:::
:::

::: check
given: g = 5 | 20; R = 20 | 200; m = 0.5 | 2
answer: 20*log(2*g*1e-3*R*1e3/(m/100))
unit: dB
tolerance: 0.5%

## A pair has $g_m$ = {g} mS per side, a {R} kΩ tail and {m}% load mismatch. What's its CMRR?

::: right
Right. $20\log\frac{2g_mR_{EE}}{\Delta R/R}$ = {answer} dB.
:::

::: misses
- [20*log(g*1e-3*R*1e3/(m/100))] Include the factor of 2.
- [any] Not yet. Common-mode gain to the differential output comes from the mismatch.
:::
:::

::: check
given: v = 0.2 | 0.8 | 2; T = 300 | 350
answer: v*1000/T
unit: µV/K
tolerance: 1%

## A bipolar pair has {v} mV of offset from $I_S$ and load mismatch at {T} K. How fast does it drift?

::: right
Right. $V_{os}/T$ = {answer} µV/K.
:::

::: misses
- [any] Not yet. The offset is proportional to $V_T$, so to T.
:::
:::

::: check
kind: parts
given: v = 0.1 | 0.2 | 0.3; d = 10 | 50

## A MOS pair has $V_{ov}$ = {v} V; a bipolar pair runs at 300 K. Each sees a {d} mV differential input.

::: part
answer: sqrt(2)*v*1000
unit: mV
tolerance: 0.5%

### At what input does the MOS pair steer all its tail current?

::: misses
- [any] $\sqrt2V_{ov}$.
:::
:::

::: part
answer: (exp(d/1000/0.02585) - 1)/(exp(d/1000/0.02585) + 1)*100
unit: %
tolerance: 0.5%

### What fraction of its tail current does the bipolar pair steer at {d} mV, $\tanh(\Delta V/2V_T)$?

::: misses
- [any] $\tanh(\Delta V/2V_T)$.
:::
:::
:::

::: check
kind: derivation
vars: g = 1e-4..1e-2, R = 1e4..1e7, e = 0.001..0.05

## A differential pair has transconductance g per side, a tail resistance R, and load mismatch e.

::: step
answer: 1/(2*R)

### What is its common-mode transconductance, roughly (for $2g_mR \gg 1$)?
:::

::: step
answer: 2*g*R/e

### What CMRR results, for differential output?
:::

::: right
Right. CMRR is set by the tail's resistance and the halves' mismatch, which is why precision inputs use cascoded tails.
:::
:::

::: explain
## Why does a MOS differential pair handle larger input signals linearly than a bipolar pair?

::: model
A bipolar pair's linear range is fixed by physics: the current depends on $V_{BE}$ through an exponential with a scale of $V_T$, about 26 mV, so the tail current is steered almost entirely within a few tens of millivolts. A MOS pair follows the square law, and its scale is the overdrive voltage, which the designer chooses by sizing the transistors: a narrower device at the same current runs at a higher overdrive and needs a larger input to steer its current. A MOS pair at 0.2 V of overdrive is several times more linear than a bipolar pair. The price is transconductance: per unit current, the MOS pair gives $1/V_{ov}$ against the bipolar pair's $1/2V_T$, so more linearity means less gain and more noise.
:::
:::

::: practice

::: check
given: v = 10 | 40; I = 0.5 | 2
answer: I*tanh(v/51.7)*1000
unit: µA
tolerance: 1%

## Bipolar pair: {v} mV, {I} mA tail?

::: misses
- [any] $I_{EE}\tanh(v/2V_T)$.
:::
:::

::: check
given: v = 0.1 | 0.15 | 0.2 | 0.25 | 0.3 | 0.4
answer: 1.41421*v*1000
unit: mV
tolerance: 1%

## MOS full-steering input at $V_{ov}$ = {v} V?

::: misses
- [any] $\sqrt2V_{ov}$.
:::
:::

::: check
given: g = 8 | 30; R = 50 | 500; m = 0.3 | 1
answer: 20*log(2*g*1e-3*R*1e3/(m/100))
unit: dB
tolerance: 0.5%

## CMRR: {g} mS, {R} kΩ tail, {m}% mismatch?

::: misses
- [any] $20\log(2g_mR_{EE}/(\Delta R/R))$.
:::
:::
:::
