TExcelTAD
Home › Circuit Theory & Network Analysis › First-Order Low-Pass and High-Pass Filters

First-Order Low-Pass and High-Pass Filters

A temperature sensor's signal changes over seconds, but the wire to the microcontroller also picks up kilohertz switching noise. An audio input must block the DC bias of the previous stage but pass everything above 20 Hz. One resistor and one capacitor solve each problem. These first-order RC filters are the most common filters in electronics, and designing them well means knowing three things: where the corner is, how steep the skirt is, and what happens when the next stage loads the output. This lesson covers all three and the roadmap's lab project of building and measuring both types.

Two circuits, one corner

low-pass high-pass + vin R 1.6 kOhm C 100 nF out + - vout + vin C 100 nF R 1.6 kOhm out + - vout fc = 1/(2 pi R C) = 995 Hz for both

Both circuits are voltage dividers between RR and ZC=1/(jωC)Z_C = 1/(j\omega C). Take the output across the capacitor and you get a low-pass; across the resistor, a high-pass:

HLP(jω)=11+jωRC=11+jf/fc,HHP(jω)=jωRC1+jωRC=jf/fc1+jf/fc,fc=12πRCH_\text{LP}(j\omega) = \frac{1}{1 + j\omega R C} = \frac{1}{1 + j f/f_c}, \qquad H_\text{HP}(j\omega) = \frac{j\omega R C}{1 + j\omega R C} = \frac{j f/f_c}{1 + j f/f_c}, \qquad f_c = \frac{1}{2\pi R C}

Intuition from the limits: at low frequency the capacitor is nearly open, so the low-pass output follows the input and the high-pass output is nearly zero; at high frequency the capacitor is nearly a short, so the roles swap. At fcf_c both have ∣H∣=1/2\lvert H \rvert = 1/\sqrt{2} (−3.01 dB-3.01\ \text{dB}) and the low-pass phase is −45∘-45^\circ, the high-pass phase +45∘+45^\circ. Far from the corner each filter falls at 20 dB/decade20\ \text{dB/decade} (Decibels and Bode Plots): one decade past fcf_c the unwanted signal is ten times smaller, not gone. In the time domain the same τ=RC\tau = RC sets the step response (First-Order RC Circuits): fc=1/(2πτ)f_c = 1/(2\pi\tau).

Design: choose C, then R

Capacitors come in coarser value steps and wider tolerances than resistors, so pick a convenient CC first and compute R=1/(2πfcC)R = 1/(2\pi f_c C), then round RR to a standard value. Keep RR well above the source resistance (or include the source resistance in RR) and well below the load resistance.

Loading: the next stage is part of the filter

A load RLR_L across the output changes both filters. For the low-pass, a Thevenin step (Thevenin and Norton Equivalents) at the capacitor gives

HLP,loaded=RLR+RL⋅11+jω(R∥RL)C,fc′=12π(R∥RL)CH_\text{LP,loaded} = \frac{R_L}{R + R_L} \cdot \frac{1}{1 + j\omega (R \parallel R_L) C}, \qquad f_c' = \frac{1}{2\pi (R \parallel R_L) C}

The pass-band gain drops below 1 and the corner moves up. The same Thevenin resistance R∥RLR \parallel R_L sets the corner of a loaded high-pass, but its pass-band (high-frequency) gain stays 1. The cure is a load at least 10 to 100 times RR, or a buffer (an op-amp follower, planned in Analog Electronics).

Worked example

Given: a low-pass with fc≈1 kHzf_c \approx 1\ \text{kHz} and C=100 nFC = 100\ \text{nF}; the output drives an input of RL=10 kΩR_L = 10\ \text{k}\Omega.

Find: RR (E24 value), the actual corner, and the loaded DC gain and corner.

Solve:

R=12π⋅1 kHz⋅100 nF=1.592 kΩ  →  1.6 kΩ (E24)fc=12π⋅1.6 kΩ⋅100 nF=994.7 HzR∥RL=1.6⋅1011.6 kΩ=1.379 kΩ,fc′=12π⋅1.379 kΩ⋅100 nF=1.154 kHzK=1011.6=0.862=−1.29 dB\begin{aligned} R &= \frac{1}{2\pi \cdot 1\ \text{kHz} \cdot 100\ \text{nF}} = 1.592\ \text{k}\Omega \;\to\; 1.6\ \text{k}\Omega \text{ (E24)} \\ f_c &= \frac{1}{2\pi \cdot 1.6\ \text{k}\Omega \cdot 100\ \text{nF}} = 994.7\ \text{Hz} \\ R \parallel R_L &= \frac{1.6 \cdot 10}{11.6}\ \text{k}\Omega = 1.379\ \text{k}\Omega, \quad f_c' = \frac{1}{2\pi \cdot 1.379\ \text{k}\Omega \cdot 100\ \text{nF}} = 1.154\ \text{kHz} \\ K &= \frac{10}{11.6} = 0.862 = -1.29\ \text{dB} \end{aligned}

Check: the load lowers the gain by 14 % and raises the corner by 16 %, both because the load "helps" CC pull the output towards ground. A 100 kΩ100\ \text{k}\Omega load would cut these effects to under 2 %.

In Python

python · try it yourself
import numpy as np

R, C = 1.6e3, 100e-9
fc = 1 / (2 * np.pi * R * C)
print(f"f_c = {fc:.1f} Hz")
print("   f (Hz)   LP dB  LP deg   HP dB  HP deg")
for f in [100, fc, 1e4]:
    x = f / fc
    lp, hp = 1 / (1 + 1j * x), 1j * x / (1 + 1j * x)
    print(f"{f:9.1f} {20*np.log10(abs(lp)):7.2f} {np.degrees(np.angle(lp)):7.1f}"
          f" {20*np.log10(abs(hp)):7.2f} {np.degrees(np.angle(hp)):7.1f}")

for RL in [10e3, 100e3]:
    Rp = R * RL / (R + RL)
    print(f"R_L = {RL/1e3:5.0f} k: gain {RL/(R+RL):.3f} ({20*np.log10(RL/(R+RL)):.2f} dB),"
          f" corner {1/(2*np.pi*Rp*C):.1f} Hz")
f_c = 994.7 Hz
   f (Hz)   LP dB  LP deg   HP dB  HP deg
    100.0   -0.04    -5.7  -20.00    84.3
    994.7   -3.01   -45.0   -3.01    45.0
  10000.0  -20.09   -84.3   -0.04     5.7
R_L =    10 k: gain 0.862 (-1.29 dB), corner 1153.9 Hz
R_L =   100 k: gain 0.984 (-0.14 dB), corner 1010.6 Hz

Cross-check with SPICE: measure the corners

An AC sweep from 10 Hz to 100 kHz with 100 points per decade; meas interpolates the frequency where each output crosses −3.0103 dB-3.0103\ \text{dB}, and finds the low-pass phase (in radians) at 1 kHz.

bash · try it yourself
cat > rc.cir <<'EOF'
* RC low-pass and high-pass, R = 1.6k, C = 100n
V1 in 0 AC 1
R1 in lp 1.6k
C1 lp 0 100n
C2 in hp 100n
R2 hp 0 1.6k
.control
ac dec 100 10 100k
meas ac f_lp when vdb(lp)=-3.0103 fall=1
meas ac f_hp when vdb(hp)=-3.0103 rise=1
meas ac ph_lp find vp(lp) at=1k
.endc
.end
EOF
ngspice -b rc.cir 2>&1 | grep -E '^(f_|ph_)'
f_lp                =  9.947182e+02
f_hp                =  9.948110e+02
ph_lp               =  -7.880460e-01

Both corners agree with 994.7 Hz994.7\ \text{Hz} to within 0.1 Hz0.1\ \text{Hz} (the small difference comes from interpolating between sweep points), and −0.788 rad=−45.15∘-0.788\ \text{rad} = -45.15^\circ matches the hand value at 1 kHz.

Interactive: both filters on one source

The lab drives the two filters from one source. Slide the frequency through the corner and watch V(lp)V(\text{lp}) and V(hp)V(\text{hp}) trade places; their phases always differ by 90∘90^\circ.

0.00.51.0101001k10k100kf (Hz)|V| (V)|V(lp)||V(hp)|phasors at f = 1.000 kHz (magnitude @ phase)V(in)1.00 V @ 0.0 degV(lp)705 mV @ -45.2 degV(hp)709 mV @ 44.8 degI(V1)886 uA @ -135.2 degI(R1)443 uA @ 44.8 degI(C1)443 uA @ 44.8 degI(C2)443 uA @ 44.8 degI(R2)443 uA @ 44.8 deg

At 1 kHz1\ \text{kHz} the lab shows V(lp)=0.705 VV(\text{lp}) = 0.705\ \text{V} at −45.2∘-45.2^\circ and V(hp)=0.709 VV(\text{hp}) = 0.709\ \text{V} at +44.8∘+44.8^\circ. The R1R_1 slider moves only the low-pass corner, so you can see the two curves cross at a different place.

Guided lab: build and measure both filters

Hand calculation. fc=995 Hzf_c = 995\ \text{Hz}; low-pass −0.04 dB-0.04\ \text{dB} at 100 Hz, −3.0 dB-3.0\ \text{dB} at fcf_c, −20.1 dB-20.1\ \text{dB} at 10 kHz; the high-pass mirror image.

Simulation. The Python table, the SPICE sweep and the lab above.

What you would measure. Use a 1.6 kΩ1.6\ \text{k}\Omega 1 % resistor and a 100 nF100\ \text{nF} film capacitor (5 % or 10 %). Drive each filter from a function generator at 2 V2\ \text{V} peak-to-peak and read input and output on a two-channel scope with 10× probes. Find the corner by tuning the frequency until the output is 0.7070.707 of the input (or the phase reads 45∘45^\circ with the scope's measurement function). Expect fcf_c between about 900 Hz900\ \text{Hz} and 1.1 kHz1.1\ \text{kHz} with a 10 % capacitor; measure the capacitor on an LCR meter first and the prediction tightens to the resistor's 1 % plus the meter's accuracy. Then add a 10 kΩ10\ \text{k}\Omega load to the low-pass: the low-frequency output should drop to 0.860.86 of the input (about 1.72 V1.72\ \text{V} peak-to-peak) and the corner rise to about 1.15 kHz1.15\ \text{kHz}. Feed a square wave at 100 Hz to see the same filter in the time domain: rounded edges through the low-pass, spikes through the high-pass.

Hazards and safe setup. Signal levels only; the generator, scope and circuit share one ground. Electrolytic capacitors are polarised and dislike the AC across them, so use a film or ceramic capacitor.

Pitfalls

  • Forgetting the source resistance. A 50 Ω50\ \Omega generator in series with R=1.6 kΩR = 1.6\ \text{k}\Omega moves fcf_c by 3 %; with small RR the error is large.
  • Expecting a brick wall. At 2fc2f_c a first-order low-pass still passes 45 % of the amplitude. For a steeper skirt use second order (Second-Order Passive Filters) or active filters.
  • Cascading two RC sections and multiplying their gains. The second section loads the first; the result is not H2H^2 (ABCD cascades).
  • Probe loading. A 1× scope probe adds about 100 pF100\ \text{pF} to the output node, which matters when CC itself is small.

Practice

  1. Design a high-pass with fc=20 Hzf_c = 20\ \text{Hz} using C=1 μFC = 1\ \mu\text{F}. Which E24 resistor?
  2. A low-pass has R=10 kΩR = 10\ \text{k}\Omega, C=10 nFC = 10\ \text{nF}. How many dB does it attenuate a 50 kHz noise signal?
  3. Why does a load reduce the pass-band gain of the low-pass but not of the high-pass?
Answer
  1. R=1/(2π⋅20⋅1 μF)=7.96 kΩ→8.2 kΩR = 1/(2\pi \cdot 20 \cdot 1\ \mu\text{F}) = 7.96\ \text{k}\Omega \to 8.2\ \text{k}\Omega, giving fc=19.4 Hzf_c = 19.4\ \text{Hz}.
  2. fc=1.59 kHzf_c = 1.59\ \text{kHz}; 20log⁡10(1/1+(50/1.59)2)=−29.9 dB20\log_{10}(1/\sqrt{1 + (50/1.59)^2}) = -29.9\ \text{dB}.
  3. In the low-pass's pass band the capacitor is open and the output is set by the divider RR / RLR_L. In the high-pass's pass band the capacitor is a short and the load sits directly across the source.

Test yourself

An RC low-pass has R=1.6 kΩR = 1.6\ \text{k}\Omega and C=100 nFC = 100\ \text{nF}. Its corner frequency is about…

  1. 99.5 Hz99.5\ \text{Hz}
  2. 995 Hz995\ \text{Hz}
  3. 6.25 kHz6.25\ \text{kHz}
  4. 160 kHz160\ \text{kHz}

At its corner frequency, the phase of an RC high-pass output relative to the input is…

  1. −45∘-45^\circ
  2. 0∘0^\circ
  3. +45∘+45^\circ
  4. +90∘+90^\circ

A resistive load connected across an RC low-pass output moves the corner frequency…

  1. down
  2. up
  3. nowhere
  4. to zero

One decade above its corner, a first-order low-pass attenuates by about…

  1. 3 dB3\ \text{dB}
  2. 6 dB6\ \text{dB}
  3. 20 dB20\ \text{dB}
  4. 40 dB40\ \text{dB}