---
title: "RC low-pass: phase lag and the corner frequency"
heading: A filter made of one resistor and one capacitor
eyebrow: C3 · Lesson 11 · RC low-pass
xp: 50
---

::: hook
The RC divider from lesson 7 is the world's most common filter. Low frequencies pass almost untouched, because the capacitor's reactance is huge and it takes nearly all the voltage. High frequencies are shorted to ground through the capacitor. The changeover happens around one frequency, the **corner**, where R equals the capacitor's reactance. At that point the output is down to 71% and lags by exactly 45°.

::: play
- The Bode plot shows the filter's gain (top) and phase (bottom) across frequency, on log axes.
- Find the corner frequency on the plot: where is the gain down 3 dB, and what's the phase there?
- Change R or C. The whole curve slides along the frequency axis. How far does it move when you double C?
:::
:::

```sim circuit
V1 in 0 sine 1 V 1k Hz      @ 0,0 down
R1 in out 1k                @ 0,0 right
C1 out 0 100n               @ 2,0 down
slider: R1 100..100k log
slider: C1 1n..1u log
bode: v(out)/v(in) | f = 10..1M Hz
```

::: predict
## Far above the corner, how much does the output fall each time the frequency goes up tenfold?

- [ ] By half
- [x] By a factor of 10 (20 dB)
- [ ] By a factor of 100 (40 dB)
- [ ] It doesn't fall any further

::: reveal
By a factor of ten: 20 dB per decade. Well above the corner, the capacitor's reactance is much smaller than R, so the output is about $X_C/R$ of the input, and $X_C$ falls in proportion to frequency. On a Bode plot that's a straight line sloping down at −20 dB per decade, the signature of a single pole.
:::
:::

::: nameit
## The first-order low-pass

**Transfer function.** By the divider rule:

$$H(j\omega) = \frac{\mathbf V_\text{out}}{\mathbf V_\text{in}} = \frac{1/(j\omega C)}{R + 1/(j\omega C)} = \frac{1}{1 + j\omega RC} = \frac{1}{1 + jf/f_c}$$

**Corner frequency:**

$$f_c = \frac{1}{2\pi RC}$$

where $X_C = R$.

**Gain and phase:**

$$|H| = \frac{1}{\sqrt{1 + (f/f_c)^2}} \qquad \angle H = -\arctan\frac{f}{f_c}$$

| f | $f_c/10$ | $f_c$ | $10f_c$ | $100f_c$ |
|---|---|---|---|---|
| gain | 0.995 | 0.707 (−3 dB) | 0.0995 (−20 dB) | 0.01 (−40 dB) |
| phase | −5.7° | −45° | −84° | −89.4° |

**In decibels** (A1): $20\log_{10}|H|$. The "−3 dB" corner is where the output power is halved.

**The asymptotes.** On log axes, the gain is flat at 0 dB below $f_c$ and falls at −20 dB per decade above it; the two straight lines meet at $f_c$, and the true curve is 3 dB below them there.

**High-pass.** Swap R and C (output across R) and the response mirrors: $H = \frac{jf/f_c}{1 + jf/f_c}$, rising at +20 dB per decade below the same corner, with the phase leading from +90° down to 0.

**The time view.** τ = RC is the same filter's time constant (C2.7), and $f_c = 1/(2\pi\tau)$. A slow time response and a low corner frequency are the same fact.
:::

::: example
## An RC low-pass uses 10 kΩ and 10 nF. Where is its corner, and what are its gain and phase a decade above?

::: solution
1. **Corner frequency.**
   $$\begin{aligned} f_c &= \frac{1}{2\pi \times 10^4 \times 10^{-8}} \\ &= 1.59\ \text{kHz} \end{aligned}$$
2. **Gain a decade above.** At 15.9 kHz, $f/f_c = 10$, so
   $$|H| = \frac{1}{\sqrt{1 + 100}}$$
   which is −20.0 dB.
3. **Phase there.**
   $$\begin{aligned} \phi &= -\arctan 10 \\ &= -84° \end{aligned}$$

**Answer:** the corner is at 1.59 kHz, and a decade above it the gain is −20.0 dB at a phase of −84°.
:::
:::

::: example
## A low-pass needs a 1 kHz corner with a 1.6 kΩ resistor. What capacitor?

::: solution
1. **Solve for C.**
   $$\begin{aligned} C &= \frac{1}{2\pi \times 1000 \times 1600} \\ &= 99.5\ \text{nF} \end{aligned}$$
2. **Pick a standard value.** A standard 100 nF gives 995 Hz.

**Answer:** 99.5 nF, and a standard 100 nF puts the corner at 995 Hz.
:::
:::

::: example
## Two identical RC low-pass stages, each with corner $f_0$, are cascaded with a buffer between them. Where is the cascade's −3 dB point?

::: solution
1. **One stage.** Each stage has
   $$|H|^2 = \frac{1}{1 + (f/f_0)^2}$$
2. **The cascade.** Buffered stages multiply, so the cascade is down 3 dB where $|H|^4 = \frac12$, which gives
   $$(f/f_0)^2 = \sqrt2 - 1$$
3. **Solve for $f$.**
   $$\begin{aligned} f &= f_0\sqrt{\sqrt2 - 1} \\ &= 0.644f_0 \end{aligned}$$
4. **Roll-off.** Two poles give a steeper roll-off, 40 dB per decade far above $f_0$, but the corner moves down.
5. **Without the buffer.** The second stage loads the first and the corner falls further, to $0.374f_0$.

**Answer:** the cascade's −3 dB point is at $0.644f_0$.
:::
:::

::: check
given: R = 1 | 4.7 | 10; C = 10 | 100 | 1000
answer: 1/(2*pi*R*1e3*C*1e-9)
unit: Hz
tolerance: 0.5%

## What is the corner frequency of an RC low-pass with R = {R} kΩ and C = {C} nF?

::: right
Right. $f_c = 1/(2\pi RC)$ = {answer}.
:::

::: misses
- [1/(R*1e3*C*1e-9)] Include 2π.
- [2*pi*R*1e3*C*1e-9] Take the reciprocal.
- [any] Not yet. $f_c = 1/(2\pi RC)$.
:::
:::

::: check
given: fc = 1 | 2 | 5; f = 0.5 | 3 | 7
answer: 1/sqrt(1 + (f/fc)^2)
tolerance: 0.5%

## An RC low-pass has its corner at {fc} kHz. What fraction of the input amplitude comes out at {f} kHz?

::: right
Right. $1/\sqrt{1 + (f/f_c)^2}$ = {answer}.
:::

::: misses
- [fc/f] That's the high-frequency approximation. Use the full formula.
- [1/(1 + f/fc)] Take the magnitude: $\sqrt{1 + (f/f_c)^2}$ underneath.
- [any] Not yet. $|H| = 1/\sqrt{1 + (f/f_c)^2}$.
:::
:::

::: check
given: fc = 1 | 2 | 5; f = 0.5 | 3 | 10
answer: -atan(f/fc)*180/pi
unit: °
tolerance: 0.5%

## Same filter, corner at {fc} kHz. What is the output's phase at {f} kHz?

::: right
Right. $-\arctan(f/f_c)$ = {answer}.
:::

::: misses
- [atan(f/fc)*180/pi] A low-pass lags: the phase is negative.
- [-atan(fc/f)*180/pi] It's f over $f_c$.
- [any] Not yet. $\angle H = -\arctan(f/f_c)$.
:::
:::

::: check
given: n = 10 | 100 | 1000
answer: 20*log10(1/sqrt(1 + n^2))
unit: dB
tolerance: 0.5%

## What is an RC low-pass's gain in dB at {n} times its corner frequency?

::: right
Right. $20\log_{10}\frac{1}{\sqrt{1 + n^2}}$ = {answer}, close to −20 dB per decade.
:::

::: misses
- [-3*n] The slope is per decade, on a log scale.
- [20*log10(1/n)*2] A single pole falls at 20 dB per decade.
- [any] Not yet. $20\log_{10}|H|$.
:::
:::

::: check
kind: design
given: fc = 500 | 1k | 2k Hz
choose: R1, C1
goal: corner(v(out)/v(in)) = fc ± 5%
solution: R1 = 1.6k; C1 = 1/(2*pi*fc*1600)

## Choose $R_1$ and $C_1$ so the filter's corner frequency is {fc}.

```sim circuit
V1 in 0 sine 1 V 1k Hz      @ 0,0 down
R1 in out 10k               @ 0,0 right
C1 out 0 100n               @ 2,0 down
bode: v(out)/v(in) | f = 10..1M Hz
```

::: right
Right. Any R and C whose product is $1/(2\pi f_c)$ will do.
:::
:::

::: check
kind: parts
given: f = 1 | 10; n = 2 | 3 | 4

## {n} identical RC low-pass stages, each with a {f} kHz corner, are cascaded with buffers.

::: part
answer: f*sqrt(2^(1/n) - 1)
unit: kHz
tolerance: 0.5%

### Where is the cascade's −3 dB point?

::: misses
- [f/n] The corner shrinks as $\sqrt{2^{1/n} - 1}$.
- [any] Solve $(1 + (f/f_0)^2)^{-n/2} = \frac{1}{\sqrt2}$.
:::
:::

::: part
answer: 20*n
unit: dB/decade
tolerance: 0.5%

### How steep is its roll-off far above the corner?

::: misses
- [any] 20 dB per decade per pole.
:::
:::
:::

::: check
kind: derivation
vars: f = 1..100000, g = 1..100000

## A single RC low-pass with corner g, at frequency f.

::: step
answer: 1/sqrt(1 + (f/g)^2)

### What's its gain?
:::

::: step
answer: -atan(f/g)*180/pi

### What's its phase, in degrees?
:::

::: step
answer: 1/(1 + (f/g)^2)

### What's the power gain of two such stages, buffered?
:::

::: right
Right. Buffered stages multiply.
:::
:::

::: explain
## Why does an RC low-pass filter reduce high frequencies but not low ones?

::: model
The output is taken across the capacitor, which forms a voltage divider with the resistor. A capacitor's reactance is inversely proportional to frequency. At low frequencies it's far larger than R, so the capacitor takes nearly all the voltage and the output follows the input. At high frequencies its reactance becomes much smaller than R, so almost all the voltage drops across the resistor and the capacitor shorts the output toward ground. The changeover happens around the frequency where the two are equal.
:::
:::

::: practice

::: check
given: R = 1 | 10; C = 1 | 10
answer: 1/(2*pi*R*1e3*C*1e-6)
unit: Hz
tolerance: 0.5%

## {R} kΩ and {C} µF. Corner frequency?

::: misses
- [1/(R*1e3*C*1e-6)] Include 2π.
- [any] $1/(2\pi RC)$.
:::
:::

::: check
given: k = 2 | 4 | 10
answer: 1/k
tolerance: 0.5%

## C is made {k} times larger. By what factor does the corner frequency change?

::: misses
- [k] A larger C lowers the corner.
- [any] $f_c \propto 1/C$.
:::
:::

::: check
given: V = 1 | 2 | 5
answer: V/sqrt(2)
unit: V
tolerance: 0.5%

## A {V} V sine at exactly the corner frequency enters an RC low-pass. Output amplitude?

::: misses
- [V/2] At the corner it's $1/\sqrt2$, not ½.
- [any] $V/\sqrt2$.
:::
:::
:::
