---
title: Gain and input and output impedance
heading: The three numbers that describe an amplifier
eyebrow: C6 · Lesson 1 · Gain and impedances
xp: 40
---

::: hook
Whatever is inside an amplifier, from one transistor to a whole chip, its outside can be summed up by three numbers: how much it multiplies the signal, how heavily it loads whatever drives it, and how much it sags when it drives something. Get the impedances wrong and a perfectly good amplifier loses half its signal at each connection. Every datasheet quotes them, and every design starts by checking them.

::: play
- A source with internal resistance $R_s$ drives an amplifier modeled as input resistance $R_i$, a voltage gain A and output resistance $R_o$, which drives a load $R_L$.
- Lower $R_i$ toward $R_s$. What fraction of the source reaches the amplifier?
- Lower $R_L$ toward $R_o$. What happens to the output? What would an ideal voltage amplifier's $R_i$ and $R_o$ be?
:::
:::

```sim circuit
VS s 0 sine 10m V 1k Hz     @ 0,0 down
RS s in 1k                  @ 0,0 right
RI in 0 10k                 @ 2,0 down
E1 x 0 in 0 100             @ 4,0 down
RO x out 100                @ 4,0 right 3
RL out 0 1k                 @ 7,0 down
slider: RI 100..1M log
slider: RL 10..100k log
scope: v(s), v(out)
time: 0..3m s
meter: v(in), v(out)
```

::: predict
## A microphone with 1 kΩ of internal resistance drives an amplifier whose input resistance is also 1 kΩ. What fraction of the microphone's voltage reaches the amplifier?

- [ ] All of it
- [x] Half
- [ ] A quarter
- [ ] Almost none

::: reveal
Half. The microphone's internal resistance and the amplifier's input resistance form a divider, so equal values split the voltage evenly: a 6 dB loss before any amplification. A voltage amplifier should have an input resistance much larger than the source's, ten times at least, and an output resistance much smaller than its load's.
:::
:::

::: nameit
## The amplifier model

**The voltage amplifier model:** an input resistance $R_i$, a controlled source of gain A (the open-circuit gain), and an output resistance $R_o$. With a source of resistance $R_s$ and a load $R_L$:

$$\frac{v_\text{out}}{v_s} = \underbrace{\frac{R_i}{R_s + R_i}}_{\text{input loss}}\;A\;\underbrace{\frac{R_L}{R_o + R_L}}_{\text{output loss}}$$

The ideal voltage amplifier has $R_i \to \infty$ and $R_o \to 0$.

**Measuring them.**

- $R_i$: the input voltage divided by the input current.
- A: the output voltage with no load, divided by the input.
- $R_o$: the output's Thevenin resistance (C1.15), from the drop when a known load is connected.

**Gain in dB.** Voltage gain $20\log_{10}|v_\text{out}/v_\text{in}|$; power gain $10\log_{10}(P_\text{out}/P_\text{in})$. They agree only when input and output resistances are equal.

**Other kinds.** Depending on whether the input and output are voltages or currents, an amplifier is a voltage amplifier (V in, V out), a transconductance amplifier (V in, I out, like a transistor's $g_m$), a current amplifier, or a transimpedance amplifier (I in, V out, like a photodiode amplifier). Each has its own ideal impedances: a current input wants $R_i \to 0$, a current output wants $R_o \to \infty$.

**Cascades.** In a chain of stages, every junction is a divider of one stage's $R_o$ and the next's $R_i$. Buffers (lesson 18) are used to fix bad junctions.
:::


::: example
## An amplifier with $R_i$ = 50 kΩ, open-circuit gain 100 and $R_o$ = 100 Ω is driven from 10 kΩ into 1 kΩ. Find the overall gain in V/V and dB.

::: solution
1. **Overall gain.** The input divider, the open-circuit gain and the output divider multiply:
   $$\begin{aligned} A &= \frac{50}{60} \times 100 \times \frac{1000}{1100} \\ &= 75.8 \end{aligned}$$
2. **In decibels.**
   $$20\log_{10} 75.8 = 37.6\ \text{dB}$$
3. **What the dividers cost.** A quarter of the gain is lost to the two dividers.

**Answer:** the overall gain is 75.8 V/V, or 37.6 dB.
:::
:::

::: example
## An amplifier's output reads 2.0 V open-circuit and 1.5 V with a 600 Ω load. What is its output resistance?

::: solution
1. **Output resistance.** The 600 Ω load and $R_o$ divide the open-circuit voltage, so
   $$\begin{aligned} R_o &= 600\left(\frac{2.0}{1.5} - 1\right) \\ &= 200\ \Omega \end{aligned}$$

**Answer:** the output resistance is 200 Ω.
:::
:::

::: example
## A sensor with 1 MΩ of source resistance must feed a converter whose input is 10 kΩ. Compare connecting it directly with putting a buffer between them ($R_i$ = 10 MΩ, gain 1, $R_o$ = 50 Ω).

::: solution
1. **Connected directly.** The converter and the sensor form a divider, so 99% of the signal is lost:
   $$\frac{10\ \text{k}}{1.01\ \text{M}} = 0.0099$$
2. **With the buffer.**
   $$\begin{aligned} \frac{v_\text{out}}{v_s} &= \frac{10}{11} \times 1 \times \frac{10{,}000}{10{,}050} \\ &= 0.905 \end{aligned}$$
3. **Why the buffer helps.** A stage with no voltage gain recovers a factor of 91, because its input resistance is ten times the source's and its output resistance a two-hundredth of the load's.
4. **Power and voltage.** Matching resistances maximizes power; for voltage, you want the input high and the output low.

**Answer:** connected directly, only 0.0099 of the signal arrives; through the buffer, 0.905 of it does, 91 times more.
:::
:::

::: check
given: Rs = 10 | 50 | 100; Ri = 10 | 100 | 1000; A = 10 | 50; Ro = 10 | 100; RL = 100 | 1000
answer: Ri/(Rs + Ri)*A*RL/(Ro + RL)
tolerance: 0.5%

## A source of {Rs} kΩ drives an amplifier with $R_i$ = {Ri} kΩ, open-circuit gain {A} and $R_o$ = {Ro} Ω into {RL} Ω. What is the overall voltage gain?

::: right
Right. Both dividers and the gain: {answer}.
:::

::: misses
- [A] Include the losses at the input and the output.
- [A*RL/(Ro + RL)] Include the input divider too.
- [any] Not yet. $\frac{R_i}{R_s + R_i}A\frac{R_L}{R_o + R_L}$.
:::
:::

::: check
given: Voc = 2 | 5; RL = 100 | 1000; VL = 0.8 | 0.9
answer: RL*(1/VL - 1)
unit: Ω
tolerance: 0.5%

## An amplifier's output is {Voc} V with no load and drops to {VL} of that with a {RL} Ω load. What is its output resistance?

::: right
Right. $R_o = R_L(V_\text{oc}/V_L - 1)$ = {answer}.
:::

::: misses
- [RL*(1 - VL)] Divide by the loaded fraction: $R_L(1/k - 1)$.
- [any] Not yet. The output is a divider of $R_o$ and $R_L$.
:::
:::

::: check
given: A = 10 | 100 | 1000 | 31.6
answer: 20*log10(A)
unit: dB
tolerance: 0.5%

## A voltage gain of {A}: how many dB?

::: right
Right. $20\log_{10}A$ = {answer}.
:::

::: misses
- [10*log10(A)] Voltage ratios use 20 log₁₀.
- [any] Not yet. $20\log_{10}A$.
:::
:::

::: check
given: v = 10 | 100; i = 2 | 10
answer: v/i
unit: kΩ
tolerance: 0.5%

## An amplifier's input draws {i} µA when {v} mV is applied. What is its input resistance?

::: right
Right. $v/i$ = {answer}.
:::

::: misses
- [v*i] Divide the voltage by the current.
- [any] Not yet. $R_i = v_\text{in}/i_\text{in}$.
:::
:::

::: check
kind: match

## Match each amplifier type to the ideal impedances it should have.

- voltage in, voltage out :: very high input, very low output
- current in, voltage out (transimpedance) :: very low input, very low output
- voltage in, current out (transconductance) :: very high input, very high output
- current in, current out :: very low input, very high output

::: right
Right. A voltage is best taken with a high impedance and delivered with a low one; a current the opposite.
:::
:::

::: check
kind: parts
given: Rs = 100 | 470 | 1000; RL = 1 | 10; Ri = 1 | 10; Ro = 20 | 100

## A {Rs} kΩ source feeds a {RL} kΩ load. A unity-gain buffer with $R_i$ = {Ri} MΩ and $R_o$ = {Ro} Ω can go between them.

::: part
answer: RL/(RL + Rs)
tolerance: 0.5%

### What fraction of the signal reaches the load directly?

::: misses
- [Rs/(RL + Rs)] The load is the part of the divider that's kept.
- [any] $\frac{R_L}{R_L + R_s}$.
:::
:::

::: part
answer: Ri*1000/(Ri*1000 + Rs)*RL*1000/(RL*1000 + Ro)
tolerance: 0.5%

### And through the buffer?

::: misses
- [any] $\frac{R_i}{R_i + R_s}\cdot\frac{R_L}{R_L + R_o}$.
:::
:::
:::

::: check
kind: derivation
vars: s = 10..1000000, i = 1000..100000000, a = 0.1..1000, o = 1..10000, L = 10..1000000

## An amplifier (input resistance i, open-circuit gain a, output resistance o) is driven from s into a load L.

::: step
answer: i/(s + i)*a*L/(o + L)

### What's the overall gain?
:::

::: step
answer: a/o

### What's its short-circuit transconductance?
:::

::: step
answer: a*L/(o + L)

### What's the gain if the source resistance is zero?
:::

::: right
Right. The two dividers are the whole story of loading.
:::
:::

::: explain
## Why should a voltage amplifier have a high input impedance and a low output impedance?

::: model
At its input, the amplifier and the source's internal resistance form a voltage divider; a high input impedance means almost all of the source's voltage appears across the amplifier, instead of being lost inside the source. At its output, the amplifier's output resistance and the load form another divider; a low output impedance means almost all of the amplified voltage reaches the load. Together they make the gain nearly independent of what's connected on either side.
:::
:::

::: practice

::: check
given: Rs = 1 | 5; Ri = 4 | 20
answer: Ri/(Rs + Ri)
tolerance: 0.5%

## Source {Rs} kΩ, amplifier input {Ri} kΩ. Fraction of the source's voltage at the input?

::: misses
- [Rs/(Rs + Ri)] That's the share lost in the source.
- [any] $R_i/(R_s + R_i)$.
:::
:::

::: check
given: g1 = 20 | 40; g2 = 6 | 26
answer: g1 + g2
unit: dB
tolerance: 0.5%

## Two stages of {g1} dB and {g2} dB (loading included). Total?

::: misses
- [any] dB add.
:::
:::

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

## {dB} dB of voltage gain, as a ratio?

::: misses
- [10^(dB/10)] Voltage uses 20 log₁₀.
- [any] $10^{dB/20}$.
:::
:::
:::
