---
title: Real op-amp limits
heading: Where the golden rules start to fail
eyebrow: C6 · Lesson 35 · Real op-amp limits
xp: 50
---

::: hook
The golden rules describe an op amp with infinite gain at every frequency, infinite speed, inputs that draw nothing and an output that can go anywhere. Real op amps fall short in five ways that matter: gain-bandwidth, slew rate, output swing, input offset and input bias current. Each one puts a limit on what a circuit can do, and datasheets quote each one so you can check.

::: play
- A non-inverting amplifier with a gain of 1 + $R_F$/1 kΩ, built from an op amp with a 1 MHz gain-bandwidth and a 0.5 V/µs slew rate. The Bode plot shows its small-signal response; the scope shows a 20 kHz sine.
- Raise the gain. How does the bandwidth on the Bode plot change?
- Raise the input amplitude until the output's peaks become straight lines. That's the slew rate, not clipping: the output simply can't move fast enough.
:::
:::

```sim circuit
V1 in 0 sine 0.5 V 20k Hz           @ 0,2 down 2
U1 in m out GBW=1M SR=0.5M VSAT=12  @ 2,1 flip
RF m out 9k                         @ 2,-1 right 3
RG m 0 1k                           @ 2,-1 up 2
slider: RF 1k..100k log
slider: V1.amp 0.05..1 log
bode: v(out)/v(in) | f = 100..10M Hz
scope: v(in), v(out)
time: 0..100u s
```

::: predict
## An op amp with a 0.5 V/µs slew rate must reproduce a 10 V peak sine. Roughly what's the highest frequency it can manage?

- [ ] 500 kHz
- [ ] 80 kHz
- [x] About 8 kHz
- [ ] 1 MHz

::: reveal
About 8 kHz. A sine of peak $V_p$ at frequency f changes fastest at its zero crossings, at $2\pi fV_p$. Setting that equal to the slew rate gives $f = 0.5\times10^6/(2\pi \times 10) = 8$ kHz: the **full-power bandwidth**. The same op amp handles small signals out to hundreds of kilohertz, because they need much less slewing.
:::
:::

::: nameit
## Five limits

**Gain-bandwidth (GBW).** The open-loop gain falls 20 dB per decade above a low pole, so gain × frequency is constant. With feedback, the bandwidth is about

$$f_{3\text{dB}} \approx \frac{\text{GBW}}{\text{noise gain}}$$

where the **noise gain** is $1 + R_F/R_G$ for both inverting and non-inverting stages (it's $1/\beta$).

**Slew rate (SR).** The fastest the output can change, in V/µs. A sine of peak $V_p$ needs $2\pi fV_p \leq \text{SR}$, so the **full-power bandwidth** is

$$f_\text{FPB} = \frac{\text{SR}}{2\pi V_p}$$

Beyond it, sines turn into triangles. Slew limiting is a large-signal effect; small signals obey GBW.

**Output swing.** The output can't reach the supply rails: typically 1 to 2 V short, or within tens of millivolts for "rail-to-rail" op amps. Beyond that it clips.

**Input offset voltage** $V_{OS}$: the op amp behaves as if a small voltage (microvolts to millivolts) sits in series with its + input. It's amplified by the noise gain, so a gain-of-1000 stage with a 1 mV offset has a 1 V error at its output.

**Input bias current** $I_B$: real inputs draw a little current (picoamps for CMOS, nanoamps for bipolar). Flowing through the feedback resistor, it causes an output error of about $I_BR_F$. Making the resistance seen by both inputs equal largely cancels it.

**Also on the datasheet:** common-mode rejection (CMRR), power-supply rejection (PSRR), noise density, and the allowed input voltage range.
:::


::: example
## An op amp with GBW = 1 MHz and a slew rate of 0.5 V/µs runs at a gain of 100 with a 10 V peak output. What limits it first?

::: solution
1. **Small-signal bandwidth.**
   $$\frac{1\ \text{MHz}}{100} = 10\ \text{kHz}$$
2. **Full-power bandwidth.**
   $$\begin{aligned} f_\text{FPB} &= \frac{0.5\ \text{V}/\mu\text{s}}{2\pi \times 10\ \text{V}} \\ &= 8.0\ \text{kHz} \end{aligned}$$
3. **Which comes first.** 8.0 kHz is below 10 kHz, so at full output, slewing limits it first.

**Answer:** the slew rate limits it first, at 8.0 kHz against 10 kHz for the small-signal bandwidth.
:::
:::

::: example
## What slew rate does a 20 kHz, 5 V peak sine need?

::: solution
1. **Required slew rate.** The steepest slope of the sine is
   $$2\pi \times 20\ \text{kHz} \times 5\ \text{V} = 0.63\ \text{V}/\mu\text{s}$$
2. **A slower op amp.** One with 0.5 V/µs would turn it into a triangle.

**Answer:** it needs at least 0.63 V/µs.
:::
:::

::: example
## An op amp on ±12 V swings to within 1.5 V of its rails and can supply 20 mA. What's the largest sine it can deliver into 100 Ω, and into 1 kΩ?

::: solution
1. **Two limits.** The swing allows 10.5 V peak, and the current, into a load R, allows $20\ \text{mA} \times R$ peak.
2. **Into 100 Ω.** The current wins:
   $$20\ \text{mA} \times 100\ \Omega = 2\ \text{V peak}$$
3. **Into 1 kΩ.** The current would allow 20 V, so the swing wins: 10.5 V peak.
4. **Where they cross.** Below about 525 Ω the output current sets the limit, and the clipping looks the same on a scope, which is why "my op amp clips at 2 V" usually means the load is too heavy rather than the supply too low.

**Answer:** 2 V peak into 100 Ω, and 10.5 V peak into 1 kΩ.
:::
:::

::: check
given: GBW = 1 | 10 | 50; G = 10 | 100 | 1000
answer: GBW*1000/G
unit: kHz
tolerance: 0.5%

## An op amp with a {GBW} MHz gain-bandwidth is used at a noise gain of {G}. Roughly what's the bandwidth?

::: right
Right. GBW/G = {answer}.
:::

::: misses
- [GBW*G*1000] Divide.
- [any] Not yet. $f_{3dB} \approx \text{GBW}/G$.
:::
:::

::: check
given: SR = 0.5 | 1 | 13; Vp = 5 | 10
answer: SR*1e6/(2*pi*Vp)/1000
unit: kHz
tolerance: 0.5%

## An op amp slews at {SR} V/µs. What's its full-power bandwidth for a {Vp} V peak sine?

::: right
Right. $\text{SR}/(2\pi V_p)$ = {answer}.
:::

::: misses
- [SR*1e6/Vp/1000] Include 2π: a sine's steepest slope is $2\pi fV_p$.
- [any] Not yet. Set $2\pi fV_p = \text{SR}$.
:::
:::

::: check
given: f = 10 | 50 | 100; Vp = 1 | 5 | 10
answer: 2*pi*f*1e3*Vp/1e6
unit: V/µs
tolerance: 0.5%

## What slew rate does a {Vp} V peak sine at {f} kHz need?

::: right
Right. $2\pi fV_p$ = {answer}.
:::

::: misses
- [f*1e3*Vp/1e6] Include 2π.
- [any] Not yet. Max slope $= 2\pi fV_p$.
:::
:::

::: check
given: Vos = 0.1 | 0.5 | 2; Rf = 9 | 49 | 99; Rg = 1
answer: Vos*(1 + Rf)
unit: mV
tolerance: 0.5%

## An op amp with {Vos} mV of offset is in a stage with $R_F$ = {Rf} kΩ and $R_G$ = 1 kΩ. How much output error does the offset cause?

::: right
Right. The offset is multiplied by the noise gain, $1 + R_F/R_G$: {answer}.
:::

::: misses
- [Vos*Rf] Multiply by $1 + R_F/R_G$, not $R_F/R_G$.
- [Vos] It's amplified by the noise gain.
- [any] Not yet. $V_{OS}(1 + R_F/R_G)$.
:::
:::

::: check
given: IB = 10 | 100; Rf = 100 | 1000
answer: IB*Rf/1000
unit: mV
tolerance: 0.5%

## An op amp's input draws {IB} nA of bias current through a {Rf} kΩ feedback resistor. Roughly what output error results?

::: right
Right. $I_BR_F$ = {answer}.
:::

::: misses
- [IB*Rf] nA × kΩ is µV: convert to mV.
- [any] Not yet. $I_BR_F$.
:::
:::

::: check
kind: parts
given: V = 5 | 12 | 15; h = 0.15 | 1.5; I = 10 | 40; R = 0.1 | 0.47 | 2

## An op amp on ±{V} V swings to within {h} V of its rails and supplies {I} mA, into {R} kΩ.

::: part
answer: (V - h)*step(I*R - (V - h)) + I*R*step((V - h) - I*R)
unit: V
tolerance: 0.5%

### What's the largest peak output?

::: misses
- [any] The smaller of the swing and $I_\text{max}R_L$.
:::
:::

::: part
answer: (V - h)/I
unit: kΩ
tolerance: 0.5%

### Below what load does the current set the limit?

::: misses
- [any] $\frac{V_\text{swing}}{I_\text{max}}$.
:::
:::
:::

::: check
kind: derivation
vars: G = 1..10000000, n = 1..10000, S = 100000..1000000000, V = 0.1..20

## An op amp has gain-bandwidth G (Hz), runs at noise gain n, has slew rate S (V/s) and an output of V peak.

::: step
answer: G/n

### What's its small-signal bandwidth?
:::

::: step
answer: S/(2*pi*V)

### What's its full-power bandwidth?
:::

::: step
answer: S*n/(2*pi*G)

### At what output peak are the two equal?
:::

::: right
Right. Above that amplitude, slewing limits the bandwidth first.
:::
:::

::: explain
## Why does an op-amp amplifier's bandwidth shrink as its gain is increased?

::: model
A typical op amp's open-loop gain falls steadily with frequency, at 20 dB per decade, so gain times frequency is roughly constant. With feedback, the closed-loop gain stays at its set value only while the open-loop gain is much larger than it. The higher the closed-loop gain, the lower the frequency at which the open-loop gain falls to meet it, and above that point the response follows the falling open-loop gain. So the bandwidth is about the gain-bandwidth product divided by the closed-loop (noise) gain.
:::
:::

::: practice

::: check
given: GBW = 3 | 10; f = 10 | 100
answer: GBW*1000/f
tolerance: 0.5%

## A {GBW} MHz op amp must keep its gain flat to {f} kHz. Roughly the most noise gain it can have?

::: misses
- [any] GBW ÷ bandwidth.
:::
:::

::: check
given: SR = 1 | 10; f = 100 | 500
answer: SR*1e6/(2*pi*f*1e3)
unit: V
tolerance: 0.5%

## An op amp slewing at {SR} V/µs: the largest sine peak it can reproduce at {f} kHz?

::: misses
- [any] $V_p = \text{SR}/(2\pi f)$.
:::
:::

::: check
given: Vos = 1 | 3; G = 10 | 100
answer: Vos*G
unit: mV
tolerance: 0.5%

## Offset {Vos} mV, noise gain {G}. Output error?

::: misses
- [any] $V_{OS} \times G$.
:::
:::
:::
