A filter is a circuit whose gain depends on frequency. Everything on this page follows from one idea: each pole in the transfer function adds 20 dB per decade of roll-off and up to 90° of phase, and where you put the poles in the complex plane decides whether the response is flat, sharp, or faithful in time. The rest is choosing parts that keep those poles where you put them.
A linear filter is described by its transfer function H(s), the ratio of output to input in the Laplace domain. Evaluate it at \(s=j\omega\) to get the frequency response: |H| is the gain and ∠H the phase shift at each frequency. The roots of the denominator are the poles, the roots of the numerator the zeros. A filter's order is its number of poles, and in practice its number of independent energy-storage elements (capacitors and inductors).
The cutoff (corner) frequency fc is normally where the gain is 3 dB below the passband (half power, 1/√2 in amplitude). Chebyshev filters are the exception: they are usually specified at the edge of their ripple band, which is not the −3 dB point.
Group delay \(\tau _{\text{g}}=-\mathrm{d}\varphi /\mathrm{d}\omega\) is the time delay each frequency component experiences. If it is constant across the passband the waveform shape is preserved (a pure delay); if it varies, pulses and steps ring and overshoot even when the magnitude response looks perfect. Magnitude and phase are linked for minimum-phase filters, so a sharper magnitude transition always costs more group-delay variation.
The single-pole RC low-pass is the most used filter in electronics, as an EMI filter on an input pin, an anti-alias filter on an ADC, a reference noise filter or a de-glitch on a reset line.
At fc the phase is −45°, a decade above it the gain is −20 dB and the phase nearly −90°. Swap R and C and it becomes a high-pass with the same corner. The output impedance of an RC section is R at DC, and the next stage's input impedance appears in parallel with C, so cascading two identical RC sections does not give two ideal poles: they interact, the corner moves and the knee softens. Buffer between sections or scale impedance by about 10× per stage.
A series RLC network gives a true second-order response with a resonance at \(\omega _{0}=1/\sqrt{LC}\) and a quality factor set by the resistance: \(Q=(1/R)\cdot \sqrt{L/C}\) for the series form. Passive LC filters dominate where op-amps cannot follow: RF front ends, power-supply input filters, audio speaker crossovers, and above a few MHz in general.
Any higher-order filter is built from second-order sections (biquads), plus one first-order section if the order is odd. Every second-order low-pass has the same form, described by just two numbers: the natural frequency ω₀ and the quality factor Q.
Q measures how close the poles are to the jω axis. Low Q means well-damped, slow knees; high Q means sharp knees, peaking and ringing.
| Q | Damping \(\zeta =1/(2Q)\) | Frequency response | Step response |
|---|---|---|---|
| 0.5 | 1 | Two real coincident poles, gain −6 dB at ω₀ | Critically damped, no overshoot |
| 0.577 | 0.866 | 2nd-order Bessel, flattest group delay | ≈ 0.4 % overshoot |
| 0.707 | 0.707 | 2nd-order Butterworth, maximally flat, −3 dB at ω₀ | ≈ 4.3 % overshoot |
| 1.0 | 0.5 | +1.25 dB peak just below ω₀ | ≈ 16 % overshoot |
| 5 | 0.1 | +14 dB peak at ω₀ | Rings for about Q cycles |
An ideal brick-wall filter cannot be built, so each classical family approximates it with a different compromise. For a given order they differ only in where the poles sit, which shows up as a different set of section Qs.
| Family | Optimises | Passband | Transition | Time domain | Section Qs, 4th order |
|---|---|---|---|---|---|
| Butterworth | Flatness at DC | Maximally flat, no ripple | Moderate | Some overshoot (≈11 % at 4th order) | 0.54, 1.31 |
| Chebyshev I | Steepness for a given ripple | Equiripple (0.1–3 dB) | Steep | Large overshoot and ringing | 0.78, 3.56 (1 dB) |
| Bessel | Flat group delay | Droops early | Slow | Almost no overshoot, preserves pulse shape | 0.52, 0.81 |
| Elliptic (Cauer) | Steepest for given order | Ripple | Steepest, with stop-band notches | Worst | Needs zeros, e.g. notch biquads |
| Linkwitz–Riley | Crossovers sum flat | −6 dB at fc | Moderate | Good | Two cascaded Butterworths |
Choose by asking what the signal cares about. Audio and frequency-domain measurements: Butterworth or Chebyshev. Pulses, edges, data, sensor steps and anything where overshoot reads as a false event: Bessel. Anti-alias filters in front of an FFT: often Chebyshev or elliptic for the sharpest transition. Butterworth is the default when nothing argues otherwise.
Op-amps let a filter realise complex poles with only R and C, isolate sections from each other, and provide gain. Two topologies cover most practical designs.
Pick a family, order and cutoff. The plot shows magnitude (left axis) and group delay (dashed, normalised); the results list each section's f₀ and Q and unity-gain Sallen-Key values with \(R=10\ \text{k}\Omega\).
A sampler cannot tell a tone at f from one at fs − f. Any energy above fs/2 at the ADC input folds into the band of interest and cannot be removed afterwards. The anti-alias filter must attenuate everything that would fold onto the passband to below the noise floor or the error budget.
Worked example. A 12-bit SAR samples at 100 kS/s; the signal extends to 10 kHz. Anything at 90 kHz folds onto 10 kHz, so we need about 74 dB there. A Butterworth of order n attenuates by 10·log(1 + (f/fc)2n); at 9× the corner that is 19 dB per order, so \(n=4\) gives 76 dB. Alternatives: sample at 1 MS/s and decimate digitally, and a 2nd-order filter is enough; or use a ΣΔ converter, whose heavy oversampling leaves only a single RC to do.
NoteOversampling moves the hard part of the filter into the digital domain where it is exact, cheap and drift-free. That is why audio codecs, IMUs and most sensor ADCs are ΣΔ and need only a simple RC in front.
A SAR's sampling capacitor takes a gulp of charge at the start of each acquisition (kickback). The small RC at the ADC pin is mostly a charge reservoir, not an anti-alias filter: \(C_{\text{filt}}\approx 10\)–20 × Csample so the kick only disturbs the node by a few percent, and R is chosen so the node settles to ½ LSB within the acquisition time (about (N+1)·ln2 time constants) while isolating the driver op-amp from the capacitive load. Too large an R and it fails to settle; too small and the op-amp may oscillate.
At \(\omega =1/RC\) the transfer function is 1/(1 + j), whose angle is −atan\((1)=-45\)° and magnitude 1/√2. The step response is 1 − e−t/RC; going from 10 % to 90 % takes \(RC\cdot \ln 9\approx 2.2\,RC\), which is 0.35/fc. The same 0.35/BW relationship links an oscilloscope's bandwidth to its rise time.
No. Two real poles can never give Q above 0.5, and Butterworth needs 0.707. Worse, the second stage loads the first, so the poles split apart and the overall Q drops to about 0.33. The response is soft and the −3 dB point is much lower than either stage alone. Use an active stage to get complex poles, or scale impedances so the second stage barely loads the first.
When the waveform shape matters more than passband flatness: pulse or data signals, sensor step responses, triggers, anything where ringing could cross a threshold. Bessel has nearly constant group delay so all components arrive together and the step response barely overshoots. The cost is a gentler transition, so you need higher order or more margin for the same stop-band rejection.
At high frequency the op-amp's closed-loop output impedance rises (its loop gain has run out), and C1 couples the input directly to the output node. The circuit becomes an RC divider with a floor set by R1, C1 and Zout. Fixes: a faster op-amp, an MFB topology, or a passive RC after the active stage.
Find the lowest frequency that folds into the passband, fs − fpass. Decide how much attenuation it needs (signal-to-noise target or ½ LSB, and how big the out-of-band energy is in reality, not always full scale). Then pick a family and solve for order, or raise fs and decimate. Always check passband droop and group delay at the top of the band too.
It adds phase lag inside the feedback loop. f₀ shifts down and Q typically rises, so peaking increases, and at worst a high-Q section becomes unstable. Rules of thumb like \(\text{GBW}\ge 100\cdot Q\cdot f_{\text{c}}\) keep these errors near 1 %. Slew rate limits large-signal performance separately: \(\text{SR}\ge 2\pi \cdot f\cdot V_{\text{peak}}\).
The bead's inductance (a few µH at low frequency, before it turns resistive) and the very low-ESR MLCC form an LC resonance near 1/(2π√(LC)), which for 3 µH and 10 µF is about 29 kHz; with DC bias reducing the MLCC and a smaller bead the peak lands in the hundreds of kHz, right on the buck's switching frequency or a load transient's energy. Q of the tank is high, so it amplifies. Add damping (a series-R electrolytic or polymer cap, or an R-C snubber), or choose a bead that is resistive at that frequency, and check the bead's inductance at the actual DC current.
Class II ceramics (X7R, X5R) lose a large fraction of their capacitance with DC bias, vary with temperature and ageing, and their capacitance changes with the instantaneous AC voltage. That moves poles, changes Q, and makes the filter nonlinear, which shows up as harmonic distortion. C0G is stable to about ±30 ppm/°C and linear.