---
title: Biopotential amplifiers
heading: What a biopotential amplifier must do, the three-op-amp instrumentation amplifier and its gain, common-mode rejection ratio and where it comes from, how mismatched electrode impedances turn common-mode voltage into a differential error, and splitting the gain around a high-pass filter
eyebrow: S15 · Lesson 15 · Biopotential amplifiers
xp: 50
---

::: hook
An ECG amplifier must find a 1 mV signal between two electrodes while both sit, together, at tens of millivolts or more of power-line voltage picked up by the patient's body, and each electrode adds its own few hundred millivolts of DC offset. It has to amplify the difference a thousandfold while rejecting the common part almost completely, without loading electrodes whose impedance can reach hundreds of kilohms. The instrumentation amplifier of C6 is the core of the answer, but the electrodes themselves set a limit that no amplifier can fix on its own.
:::

::: play
- The input-referred error from a common-mode voltage $v_{cm}$: the amplifier's own rejection contributes $v_{cm}/\text{CMRR}$, and a mismatch ΔZ between the two electrode impedances contributes $v_{cm}\Delta Z/Z_{cm}$, where $Z_{cm}$ is the input's common-mode impedance.
- With a 100 dB amplifier, the electrodes usually dominate: 20 kΩ of mismatch against 100 MΩ is a CMRR of only 74 dB.
- Raising the input impedance, or lowering the common-mode voltage itself (lesson 17), are the remedies.
:::

```sim plot
view: graph
x: d = 0.1..100 log
y: e = 0.01..100 log
slider: v = 1..100 = 10 log
slider: Z = 1..1000 = 100 log
slider: C = 60..120 step 1 = 100
plot: v*1e-3*d*1e3/(Z*1e6)*1e6 + v*1e-3/10^(C/20)*1e6 | samples: 300 | label: input-referred error, µV (ΔZ in kΩ)
plot: v*1e-3/10^(C/20)*1e6 + 0*d | dashed | color: ch3 | label: amplifier CMRR alone
readout: error at 20 kΩ mismatch, µV = v*1e-3*20e3/(Z*1e6)*1e6 + v*1e-3/10^(C/20)*1e6 | digits: 3
```

::: predict
## The body sits at 10 mV of 60 Hz common-mode voltage. The two ECG electrodes differ in impedance by 20 kΩ, and the amplifier's common-mode input impedance is 100 MΩ. How large a 60 Hz differential error appears at its input?

- [ ] 0.2 µV
- [x] 2 µV
- [ ] 200 µV
- [ ] 10 mV

::: reveal
Each electrode forms a divider with the input's common-mode impedance, and the mismatch makes the two dividers differ by ΔZ/Z_cm = 20 kΩ/100 MΩ = 2 × 10⁻⁴. So 10 mV of common-mode becomes 2 µV of differential signal, which no amplifier can reject because it really is differential at the input pins.
:::
:::

::: nameit
## Requirements

A biopotential amplifier needs differential gain of about 1000 for ECG (more for EEG), an input impedance far above the electrodes' (above 10 MΩ, ideally gigaohms in common mode), a high common-mode rejection ratio, a bandwidth matched to the signal, low noise, protection against defibrillation pulses, and isolation of the patient (lesson 24).

## The instrumentation amplifier

Two noninverting input buffers sharing a gain resistor $R_1$ (with feedback resistors $R_2$), followed by a difference amplifier with gain $R_4/R_3$:

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

The first stage amplifies the differential signal but passes common-mode at unity gain, so the second stage's rejection is multiplied by the first stage's gain.

## Common-mode rejection

With differential gain $G_d$ and common-mode gain $G_{cm}$, $\text{CMRR} = G_d/G_{cm}$, usually quoted as $20\log_{10}$ of that. Referred to the input, a common-mode voltage appears as $v_{cm}/\text{CMRR}$. A single difference amplifier with gain G and resistors of tolerance t has a worst-case CMRR of about $(1 + G)/(4t)$.

## Electrode mismatch

Source impedances $Z_1$ and $Z_2$ feeding inputs of common-mode impedance $Z_{cm}$ convert common-mode voltage into a differential one:

$$v_d \approx v_{cm}\frac{Z_1 - Z_2}{Z_{cm}}$$

so the system's CMRR can't exceed $Z_{cm}/\Delta Z$, however good the amplifier.

## Gain staging

Electrode offsets of up to ±300 mV limit the DC-coupled first stage to a gain of about 10 to 20 (lesson 14). A high-pass filter (0.05 Hz for diagnostic ECG, 0.5 Hz for monitoring) then removes the offset, and later stages supply the rest of the gain.
:::

::: example
## An instrumentation amplifier has $R_1$ = 5.6 kΩ, $R_2$ = 25 kΩ and a unity-gain difference stage. What's its gain? How much more gain does a 1000-times ECG front end need after the high-pass filter?

::: solution
1. **Gain of the instrumentation amplifier.**
   $$\begin{aligned} G &= 1 + \frac{2 \times 25}{5.6} \\ &= 9.93 \end{aligned}$$
   about 9.9 before the filter, keeping a 300 mV offset under 3 V.
2. **Gain still needed.** A total of 1000 needs
   $$\frac{1000}{9.93} = 101$$
   more after the filter.

**Answer:** the gain is 9.93, and the front end needs 101 times more after the high-pass filter.
:::
:::

::: example
## A difference amplifier with gain 10 is built from 0.1% resistors. What CMRR can it guarantee, and what's the total input-referred 60 Hz error with 10 mV common-mode, a 100 dB amplifier and the predict question's electrodes?

::: solution
1. **CMRR from 0.1% resistors.**
   $$\begin{aligned} \text{CMRR} &\approx \frac{1 + 10}{4 \times 0.001} \\ &= 2750 \end{aligned}$$
   or 68.8 dB, which is why integrated instrumentation amplifiers with laser-trimmed resistors are used.
2. **The amplifier's share.** With 100 dB of CMRR:
   $$\begin{aligned} e_\text{amp} &= \frac{10\ \text{mV}}{10^5} \\ &= 0.1\ \mu\text{V} \end{aligned}$$
3. **The electrodes' share.** The electrode mismatch adds 2 µV.
4. **Total.** About 2.1 µV, dominated by the electrodes.

**Answer:** the resistors can guarantee a CMRR of 2750 (68.8 dB), and the total input-referred error is about 2.1 µV, dominated by the electrodes.
:::
:::

::: example
## An ECG amplifier has 10 nV/√Hz of input voltage noise and 1 pA/√Hz of input current noise, and each input sees 50 kΩ of electrode. What's the total input noise over 150 Hz?

::: solution
1. **Current noise through the electrode.**
   $$\begin{aligned} e_i &= 1\ \text{pA}/\sqrt{\text{Hz}} \times 50\ \text{k}\Omega \\ &= 50\ \text{nV}/\sqrt{\text{Hz}} \end{aligned}$$
2. **The other two sources.** The electrode's own thermal noise is $\sqrt{4kTR}$ = 29 nV/√Hz, and the amplifier adds 10 nV/√Hz.
3. **Add them in power.** They're independent:
   $$\begin{aligned} e_n &= \sqrt{10^2 + 50^2 + 29^2} \\ &= 59\ \text{nV}/\sqrt{\text{Hz}} \end{aligned}$$
4. **Over 150 Hz.**
   $$\begin{aligned} v_n &= 59 \times \sqrt{150}\ \text{nV} \\ &= 0.72\ \mu\text{V rms} \end{aligned}$$
5. **What sets the floor.** With high-impedance electrodes the amplifier's current noise, not its voltage noise, sets the floor, so dry-electrode front ends use FET inputs with femtoampere noise currents.

**Answer:** the total input noise is 59 nV/√Hz, 0.72 µV RMS over 150 Hz.
:::
:::

::: check
given: R = 1 | 5.6 | 22; F = 10 | 25 | 50; k = 1 | 2 | 10
answer: (1 + 2*F/R)*k
tolerance: 0.5%

## An instrumentation amplifier has gain resistor $R_1$ = {R} kΩ, feedback resistors $R_2$ = {F} kΩ and a difference stage of gain {k}. What's its gain?

::: right
Right. $(1 + 2R_2/R_1)(R_4/R_3)$ = {answer}.
:::

::: misses
- [(1 + F/R)*k] Both input buffers' feedback resistors count: $2R_2/R_1$.
- [any] Not yet. First-stage gain times second-stage gain.
:::
:::

::: check
given: G = 100 | 1000; c = 0.001 | 0.01 | 0.1
answer: 20*log(G/c)
unit: dB
tolerance: 0.5%

## An amplifier has differential gain {G} and common-mode gain {c}. What's its CMRR in decibels?

::: right
Right. $20\log_{10}(G_d/G_{cm})$ = {answer} dB.
:::

::: misses
- [10*log(G/c)] These are voltage gains: use 20 log.
- [any] Not yet. Ratio of the gains, in dB.
:::
:::

::: check
given: v = 5 | 20 | 100; C = 80 | 100 | 120
answer: v*1e-3/10^(C/20)*1e6
unit: µV
tolerance: 0.5%

## A {v} mV common-mode voltage reaches an amplifier with {C} dB of CMRR. How large an input-referred error does that alone produce?

::: right
Right. $v_{cm}/\text{CMRR}$ = {answer} µV.
:::

::: misses
- [v*1e-3/10^(C/10)*1e6] Convert dB with 20 log for voltages.
- [any] Not yet. Common-mode voltage divided by the CMRR ratio.
:::
:::

::: check
given: v = 5 | 20 | 50; d = 5 | 20 | 50; Z = 10 | 100 | 1000
answer: v*1e-3*d*1e3/(Z*1e6)*1e6
unit: µV
tolerance: 0.5%

## A {v} mV common-mode voltage reaches inputs of {Z} MΩ common-mode impedance through electrodes that differ by {d} kΩ. What differential voltage does the mismatch create?

::: right
Right. $v_{cm}\Delta Z/Z_{cm}$ = {answer} µV.
:::

::: misses
- [any] Not yet. The two dividers differ by ΔZ/Z_cm.
:::
:::

::: check
given: G = 1 | 5 | 10; t = 0.0001 | 0.001 | 0.01
answer: 20*log((1 + G)/(4*t))
unit: dB
tolerance: 0.5%

## A difference amplifier with gain {G} uses resistors of tolerance {t}. What's its worst-case CMRR in dB?

::: right
Right. $20\log[(1 + G)/(4t)]$ = {answer} dB.
:::

::: misses
- [20*log(G/(4*t))] The common-mode error scales with 1 + G.
- [any] Not yet. Worst-case resistor mismatch.
:::
:::

::: check
given: o = 200 | 300 | 500; V = 3 | 4.5; T = 500 | 1000 | 2000
answer: T/(V/(o*1e-3))
tolerance: 0.5%

## A {o} mV electrode offset must not push a first stage beyond ±{V} V. If that stage uses all the gain it can, how much gain must follow the high-pass filter for a total of {T}?

::: right
Right. The first stage can have $V/v_\text{off}$, so the rest is {answer}.
:::

::: misses
- [any] Not yet. Total gain over the largest first-stage gain.
:::
:::

::: check
kind: parts
given: e = 4 | 15; i = 0.01 | 0.5 | 2; R = 10 | 100 | 1000; B = 100 | 150

## An amplifier's input noise is {e} nV/√Hz and {i} pA/√Hz; each input sees {R} kΩ of source resistance at 37 °C, over a {B} Hz band.

::: part
answer: sqrt(e^2 + (i*R)^2 + 4*1.380649e-23*310.15*R*1e3*1e18)
unit: nV/√Hz
tolerance: 0.5%

### What is the total noise density?

::: misses
- [e + i*R + sqrt(4*1.380649e-23*310.15*R*1e3)*1e9] Independent noises add in power, not amplitude.
- [any] $\sqrt{e_n^2 + (i_nR)^2 + 4kTR}$.
:::
:::

::: part
answer: sqrt(e^2 + (i*R)^2 + 4*1.380649e-23*310.15*R*1e3*1e18)*sqrt(B)/1e3
unit: µV
tolerance: 0.5%

### What RMS noise is that over the band?

::: misses
- [any] Density times $\sqrt B$.
:::
:::
:::

::: check
kind: derivation
vars: R = 1..100, F = 10..200, k = 1..100

## A three-op-amp instrumentation amplifier has gain resistor $R_1$, feedback resistors $R_2$ and a difference stage of gain k.

::: step
answer: 1 + 2*F/R

### What gain does its input stage have for differential signals?
:::

::: step
answer: (1 + 2*F/R)*k

### What is its total differential gain?
:::

::: right
Right. The input stage passes common-mode signals at unity gain, so it improves CMRR by its differential gain.
:::
:::

::: explain
## Why can't a perfect amplifier reject common-mode interference if the electrode impedances differ?

::: model
Each electrode's impedance and the amplifier's common-mode input impedance form a voltage divider for the common-mode voltage. If the two electrodes had equal impedances, both inputs would receive the same fraction, and a perfect amplifier would see no difference. When the impedances differ, the two inputs receive slightly different fractions, so part of the common-mode voltage arrives as a genuine difference between the input pins, and the amplifier, doing exactly its job, amplifies it as signal. The cure is to make the dividers' ratios insensitive to the mismatch, by raising the common-mode input impedance far above any electrode impedance, or to shrink the common-mode voltage itself with shielding and a driven-right-leg circuit.
:::
:::

::: practice

::: check
given: R = 0.5 | 50; F = 5 | 100; k = 1 | 10
answer: (1 + 2*F/R)*k
tolerance: 0.5%

## INA gain: $R_1$ = {R} kΩ, $R_2$ = {F} kΩ, second stage {k}?

::: misses
- [any] $(1 + 2R_2/R_1)k$.
:::
:::

::: check
given: v = 1 | 300; d = 1 | 200; Z = 5 | 5000
answer: v*1e-3*d*1e3/(Z*1e6)*1e6
unit: µV
tolerance: 0.5%

## Mismatch error: {v} mV, ΔZ = {d} kΩ, $Z_{cm}$ = {Z} MΩ?

::: misses
- [any] $v_{cm}\Delta Z/Z_{cm}$.
:::
:::

::: check
given: G = 1 | 1000; t = 0.00005 | 0.05
answer: 20*log((1 + G)/(4*t))
unit: dB
tolerance: 0.5%

## Difference-amp CMRR: G = {G}, tolerance {t}?

::: misses
- [any] $20\log[(1 + G)/(4t)]$.
:::
:::
:::
