---
title: Instrumentation amplifiers
heading: Amplifying a millivolt difference sitting on volts of common mode
eyebrow: C6 · Lesson 22 · Instrumentation amplifiers
xp: 40
---

::: hook
A strain-gauge bridge on 5 V puts out a millivolt or two, riding on 2.5 V that's common to both of its outputs. A thermocouple's few millivolts may share a cable with a volt of hum. The difference amplifier of lesson 19 can subtract the two, but it loads the source through its input resistors, and its rejection of the common part depends on four resistors matching to a fraction of a percent. The **instrumentation amplifier** fixes both: two followers with gain give a very high input resistance and amplify only the difference, and a difference stage after them strips off what's left of the common mode. One resistor sets the gain.
:::

::: play
- A three-op-amp instrumentation amplifier. The inputs are 2.5 V ± 5 mV, in opposite phase: a 10 mV difference on 2.5 V of common mode.
- The first stage's outputs keep the 2.5 V but swing ±105 mV: the difference is amplified 21 times while the common mode passes at a gain of 1. The final output is just the difference, ±210 mV, centered on 0 V.
- Lower $R_G$ to raise the gain: one resistor sets it.
:::
:::

```sim circuit
V1 a 0 sine 5m V 1k Hz 0 ° 2.5      @ 0,-1 down 2
V2 b 0 sine 5m V 1k Hz 180 ° 2.5    @ 0,7 down 2
U1 a n1 o1                          @ 2,0 flip
U2 b n2 o2                          @ 2,6
R2A n1 o1 10k                       @ 2,2 right 3
RG n1 n2 1k                         @ 2,2 down 2
R2B n2 o2 10k                       @ 2,4 right 3
U3 p3 n3 out                        @ 11,3 flip
R3A o1 p3 10k                       @ 5,2 right 4
R4A p3 0 10k                        @ 10,2 up 3
R3B o2 n3 10k                       @ 5,4 right 4
R4B n3 out 10k                      @ 10,6 right 4
slider: RG 100..100k log
scope: v(o1), v(o2), v(out)
time: 0..3m s
meter: v(out)
```

::: predict
## A difference amplifier with a gain of 10 uses 0.1% resistors. Roughly what is its worst-case common-mode rejection?

- [ ] Over 120 dB
- [ ] About 100 dB
- [x] About 69 dB
- [ ] About 20 dB

::: reveal
About 69 dB, a ratio of 2750: $\frac{1 + 10}{4 \times 0.001}$. Its rejection depends on the ratio $R_2/R_1$ being identical on both sides, and 0.1% mismatches let a little common mode through. An instrumentation amplifier with a first-stage gain of 100 in front of the same difference stage gains another factor of 100, about 40 dB.
:::
:::

::: nameit
## The difference amplifier's limits

With $R_1$ in and $R_2$ in feedback on both sides, the output is $\frac{R_2}{R_1}(v_2 - v_1)$ only if the two ratios match exactly. With resistors of tolerance ε, the worst-case common-mode rejection is about

$$\text{CMRR} \approx \frac{1 + R_2/R_1}{4\varepsilon}$$

And its inputs draw current through $R_1$, so a source with a few kilohms of resistance unbalances it further.

## The three-op-amp instrumentation amplifier

**First stage:** two non-inverting amplifiers joined by a single $R_G$. For a difference $v_d$, $R_G$ carries $v_d/R_G$, which also flows through both $R_2$ resistors, so the difference grows by $1 + 2R_2/R_G$. For a common-mode input nothing flows in $R_G$, and both outputs simply follow: a common-mode gain of 1. The inputs are the op amps' non-inverting inputs: gigohms.

**Second stage:** a difference amplifier with gain $R_4/R_3$ removes the common mode.

$$G = \left(1 + \frac{2R_2}{R_G}\right)\frac{R_4}{R_3}$$

Because the first stage amplifies only the difference, the CMRR of the whole amplifier is roughly the second stage's CMRR times the first stage's gain. Integrated versions trim their resistors with a laser and give 100 to 130 dB, with gain set by one external $R_G$ (for example $G = 1 + \frac{49.4\text{ kΩ}}{R_G}$).

## Bridges

A Wheatstone bridge of four equal resistors R on an excitation $V_\text{exc}$, one of which changes by ΔR, gives a differential output of about $V_\text{exc}\frac{\Delta R}{4R}$ on a common mode of $V_\text{exc}/2$: exactly the job an instrumentation amplifier does.
:::

::: example
## Choose $R_G$ for a gain of 1000 in an amplifier with $G = 1 + 49.4\text{ kΩ}/R_G$, and find the output for a strain-gauge bridge on 5 V whose gauge changes by 0.1%.

::: solution
1. **Gain resistor.**
   $$\begin{aligned} R_G &= \frac{49.4\ \text{k}\Omega}{999} \\ &= 49.4\ \Omega \end{aligned}$$
2. **Bridge output.**
   $$\begin{aligned} v_d &= 5 \times \frac{0.001}{4} \\ &= 1.25\ \text{mV} \end{aligned}$$
3. **Amplifier output.**
   $$1000 \times 1.25\ \text{mV} = 1.25\ \text{V}$$

**Answer:** $R_G$ = 49.4 Ω, and the output is 1.25 V.
:::
:::

::: example
## Compare the CMRR of a gain-10 difference amplifier with 0.1% resistors against an instrumentation amplifier whose first stage has a gain of 100, followed by a unity-gain difference stage with the same resistors.

::: solution
1. **Difference amplifier.**
   $$\begin{aligned} \text{CMRR} &= \frac{11}{0.004} \\ &= 2750 \end{aligned}$$
   or 68.8 dB.
2. **Unity-gain stage alone.**
   $$\begin{aligned} \text{CMRR} &= \frac{2}{0.004} \\ &= 500 \end{aligned}$$
3. **With the first stage.** It multiplies that by 100: 50,000, or 94 dB.

**Answer:** the difference amplifier's CMRR is 2750 (68.8 dB), and the instrumentation amplifier's 50,000 (94 dB).
:::
:::

::: example
## A three-op-amp instrumentation amplifier on a single 5 V supply has a first-stage gain of 100. Its inputs sit at 2.5 V common mode. Where do the first stage's outputs go for a 20 mV differential input, and for 50 mV?

::: solution
1. **At 20 mV.** The first stage passes the common mode at unity gain and amplifies the difference by 100, split equally:
   $$2.5 \pm \frac{100 \times 20\ \text{mV}}{2} = 1.5,\ 3.5\ \text{V}$$
   Fine.
2. **At 50 mV.** The outputs would need to reach 0 and 5 V, which no op amp output can, so the first stage clips even though the final output may look in range.
3. **Usable input range.** An in-amp's usable input range depends on the common-mode voltage and the gain together; datasheets plot it as a hexagon for that reason.

**Answer:** at 20 mV the first stage's outputs sit at 1.5 V and 3.5 V; at 50 mV they would need 0 and 5 V, so the first stage clips.
:::
:::

::: check
given: R2 = 10 | 25; RG = 0.5 | 2 | 10; R4 = 10 | 20
answer: (1 + 2*R2/RG)*R4/10
tolerance: 0.5%

## A three-op-amp instrumentation amplifier has $R_2$ = {R2} kΩ, $R_G$ = {RG} kΩ, $R_3$ = 10 kΩ and $R_4$ = {R4} kΩ. What is its gain?

::: right
Right. $\left(1 + \frac{2R_2}{R_G}\right)\frac{R_4}{R_3}$ = {answer}.
:::

::: misses
- [(1 + R2/RG)*R4/10] Both $R_2$ resistors carry the current in $R_G$: it's $2R_2/R_G$.
- [any] Not yet. First-stage gain times second-stage gain.
:::
:::

::: check
given: G = 5 | 10 | 50; R2 = 24.7 | 50
answer: 2*R2/(G - 1)*1000
unit: Ω
tolerance: 0.5%

## An instrumentation amplifier with $R_2$ = {R2} kΩ and a unity-gain second stage must have gain {G}. What $R_G$?

::: right
Right. $R_G = \frac{2R_2}{G - 1}$ = {answer}.
:::

::: misses
- [2*R2/G*1000] The gain is $1 + 2R_2/R_G$; take off the 1 first.
- [any] Not yet. Solve $G = 1 + 2R_2/R_G$.
:::
:::

::: check
given: Ad = 1 | 10 | 100; tol = 0.01 | 0.1 | 1
answer: 20*log((1 + Ad)/(4*tol/100))
unit: dB
tolerance: 0.5%

## A difference amplifier of gain {Ad} uses {tol}% resistors. Roughly what is its worst-case CMRR?

::: right
Right. $\frac{1 + A_d}{4\varepsilon}$ in dB: {answer}.
:::

::: misses
- [20*log(Ad/(tol/100))] Use $(1 + A_d)/(4\varepsilon)$.
- [any] Not yet. $\text{CMRR} \approx (1 + R_2/R_1)/(4\varepsilon)$.
:::
:::

::: check
given: Vexc = 2.5 | 5 | 10; dR = 0.05 | 0.2 | 1
answer: Vexc*dR/100/4*1000
unit: mV
tolerance: 0.5%

## A bridge of equal resistors on {Vexc} V has one arm that changes by {dR}%. What differential output does it give?

::: right
Right. $V_\text{exc}\frac{\Delta R}{4R}$ = {answer}.
:::

::: misses
- [Vexc*dR/100*1000] A quarter of that: the bridge's two sides each move by a quarter.
- [any] Not yet. $V_\text{exc}\Delta R/(4R)$.
:::
:::

::: check
given: vcm = 1 | 2.5; vd = 2 | 20; G1 = 11 | 101
answer: vcm + G1*vd/2/1000
unit: V
tolerance: 0.1%

## An instrumentation amplifier's first stage has differential gain {G1}. Its inputs are {vcm} V ± {vd}/2 mV. What is the upper first-stage output?

::: right
Right. $v_{cm} + G_1v_d/2$ = {answer}: the common mode passes through untouched.
:::

::: misses
- [G1*vd/2/1000] The common mode isn't removed until the second stage.
- [any] Not yet. Common mode at gain 1, difference at gain $G_1$.
:::
:::

::: check
given: CMRR2 = 60 | 80; G1 = 10 | 100 | 1000
answer: CMRR2 + 20*log(G1)
unit: dB
tolerance: 0.5%

## An instrumentation amplifier's difference stage has a CMRR of {CMRR2} dB, and its first stage a differential gain of {G1}. What is the overall CMRR?

::: right
Right. The first stage's gain adds $20\log_{10}G_1$: {answer}.
:::

::: misses
- [CMRR2] The first stage boosts the difference before the second stage sees it.
- [any] Not yet. Multiply the ratios: add the decibels.
:::
:::

::: check
kind: parts
given: G1 = 10 | 50 | 100; Vc = 1.5 | 2.5; vd = 5 | 20 | 40

## A three-op-amp in-amp's first stage has a gain of {G1}. Its inputs sit at {Vc} V common mode with {vd} mV between them.

::: part
answer: Vc + G1*vd/1000/2
unit: V
tolerance: 0.5%

### Where does the higher first-stage output sit?

::: misses
- [Vc + G1*vd/1000] The amplified difference splits equally between the two outputs.
- [any] $V_{CM} + \frac{G_1v_d}{2}$.
:::
:::

::: part
answer: Vc - G1*vd/1000/2
unit: V
tolerance: 1%

### And the lower one?

::: misses
- [any] $V_{CM} - \frac{G_1v_d}{2}$.
:::
:::
:::

::: check
kind: derivation
vars: G = 1..1000, e = 0.00001..0.01, R = 10..100000

## An in-amp's first stage has gain G and uses $R_2$ = R; its difference stage is unity gain with resistors matched to a fraction e.

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

### What gain resistor sets G?
:::

::: step
answer: 2/(4*e)

### What CMRR does the difference stage alone give?
:::

::: step
answer: G*2/(4*e)

### What's the whole amplifier's CMRR?
:::

::: right
Right. The first stage's differential gain multiplies the CMRR, since it passes common mode at unity.
:::
:::

::: explain
## Why does an instrumentation amplifier reject common-mode signals better than a single difference amplifier with the same resistors?

::: model
A difference amplifier's rejection is limited by how well its resistor ratios match: a small mismatch turns a fixed fraction of the common-mode voltage into output. An instrumentation amplifier's first stage amplifies the difference between its inputs by its full gain but passes the common mode at a gain of exactly one, since with equal inputs no current flows in the gain resistor. So by the time the signal reaches the difference stage, the wanted part has been multiplied while the common-mode part hasn't. The same resistor mismatch leaks the same common mode, but now it's that much smaller relative to the amplified signal.
:::
:::

::: practice

::: check
given: R1 = 1 | 2.2 | 4.7 | 10 | 22 | 47 | 100
answer: 2*R1
unit: kΩ
tolerance: 0.5%

## What differential input resistance does a difference amplifier with {R1} kΩ input resistors present?

::: misses
- [any] Both inputs' resistors, in series through the virtual short.
:::
:::

::: check
given: G = 100 | 1000; v = 0.5 | 5
answer: v/G*1000
unit: mV
tolerance: 0.5%

## An amplifier with gain {G} must produce {v} V. What input difference does that take?

::: misses
- [any] Divide by the gain.
:::
:::

::: check
given: dB = 60 | 90 | 120
answer: 10^(dB/20)
tolerance: 0.5%

## What ratio is a CMRR of {dB} dB?

::: misses
- [any] $10^{dB/20}$.
:::
:::
:::
