Wiki · Read the guide: Analog filters and the Bode plot

Analog Filter & Bode

Design analog filters up to second order: set frequency f₀ (and Q) and get the R/L/C component values rounded to the E-series, the realized f₀ and Q, and the Bode plot. Demonstration tool.

Topology and requirements

Computed components

realized f₀ (natural) —
realized Q —

Bode plot

Magnitude: — dB Phase: —° Frequency: —

Magnitude |H| in dB (left axis) and phase in degrees (right axis) on a log frequency scale. The vertical line marks f₀. Demonstration tool.

You set the frequency (and Q for 2nd order). C is fixed — R for the RL — and R, L and the rest are the result.

What is a filter for?

A real signal is a sum of frequencies: the one you want, plus noise, hum and out-of-band interference. It is everywhere: band-limiting a signal before sampling it (anti-aliasing ahead of an ADC), removing 50/60 Hz mains hum, splitting an audio crossover, cleaning a switching-supply output, isolating or extracting a carrier. The cutoff frequency, the slope and the shape around the cutoff are what this tool sizes.

Transfer function

A filter is described by its transfer function H(jω): how much it attenuates and how much it phase-shifts each frequency. The Bode plot draws it in two traces — magnitude in dB and phase in degrees — on a logarithmic frequency scale, where slopes become straight lines. In normalized form, with x = f/f₀:

HLP,1=11+jxH_{\mathrm{LP},1}=\dfrac{1}{1+jx}HHP,1=jx1+jxH_{\mathrm{HP},1}=\dfrac{jx}{1+jx}HLP,2=1(1−x2)+jx/QH_{\mathrm{LP},2}=\dfrac{1}{(1-x^{2})+jx/Q}HHP,2=−x2(1−x2)+jx/QH_{\mathrm{HP},2}=\dfrac{-x^{2}}{(1-x^{2})+jx/Q}HBP=jx/Q(1−x2)+jx/QH_{\mathrm{BP}}=\dfrac{jx/Q}{(1-x^{2})+jx/Q}Hnotch=1−x2(1−x2)+jx/QH_{\mathrm{notch}}=\dfrac{1-x^{2}}{(1-x^{2})+jx/Q}

Natural frequency and −3 dB

For a first-order RC, f₀ = 1/(2πRC) is the −3 dB cutoff. For a second-order RLC, f₀ = 1/(2π√(LC)) is the natural frequency: lowpass and highpass cutoff also depends on Q and equals f₀ for a Butterworth alignment. In a bandpass f₀ is the centre frequency; in a notch it is the rejection centre.

What is the Q factor?

In 2nd-order filters the Q factor governs the shape around the cutoff: Q = 0.707 (Butterworth) gives the flattest response with no peak; a higher Q produces a resonance peak and a sharper transition; a lower Q softens it. In a band-pass, Q is the selectivity — f₀ divided by the bandwidth.

Which family: Butterworth, Bessel, Chebyshev, elliptic

At a given order, the "family" (or alignment) is the trade-off between three things you cannot maximise together: passband flatness, cutoff steepness and phase / transient quality.

  • Butterworth — maximally flat passband, no ripple, moderate cutoff and phase. The neutral default when you have no particular constraint.
  • Bessel — maximally flat group delay near zero in the analog prototype, generally with limited transient ringing. Assess this property over the useful band. In return, the gentlest cutoff. Used when the waveform shape matters (audio, pulses, data).
  • Chebyshev — steeper cutoff than Butterworth at the same order, at the cost of passband ripple (more ripple = steeper). When you need selectivity and ripple is acceptable.
  • Elliptic (Cauer) — the steepest possible cutoff for a given order, but with ripple in both passband and stopband, and the worst phase. Chosen when the transition band must be minimal.

For an all-pole 2nd-order cell (RLC, Sallen-Key) the family reduces to a Q value: Bessel ≈ 0.58, Butterworth = 0.707, Chebyshev > 0.707 (with ripple). Elliptic and inverse-Chebyshev also need ZEROS (a notch) and cannot be realised with a plain Sallen-Key low-pass — they need topologies with zeros. That is why, at 2nd order, the tool offers Bessel/Butterworth/Chebyshev.

Roll-off: 20 and 40 dB/decade

Past the cutoff the magnitude falls at a constant slope: −20 dB/decade for 1st order, −40 dB/decade for 2nd. Each extra order adds 20 dB/decade of attenuation — and 90° of phase shift. That is why stages are cascaded.

Sallen-Key: why active

A 2nd-order RLC needs an inductor — bulky and non-ideal at low frequencies. The Sallen-Key cell achieves the same 2nd order with an op-amp and only Rs and Cs: no inductors, low output impedance (stages cascade without loading each other) and a Q set by component ratios. It is the most common active topology.

What are the design formulas?

You start from the requirements (frequency f₀ and, for 2nd order, Q), fix a reference component (the capacitor C — the resistor R for the RL) and derive the others, then rounded to the E-series. With ω₀ = 2π·f₀:

RC  R=1ω0C\textsf{RC} \; R=\dfrac{1}{\omega_0 C}RL  L=Rω0\textsf{RL} \; L=\dfrac{R}{\omega_0}RLC serie  L=1ω02C,\textsf{RLC serie} \; L=\dfrac{1}{\omega_0^{2} C},R=1QL/CR=\dfrac{1}{Q}\sqrt{L/C}RLC parallelo  L=1ω02C,\textsf{RLC parallelo} \; L=\dfrac{1}{\omega_0^{2} C},R=QL/CR=Q\sqrt{L/C}Sallen-Key  C1=4Q2C2,\textsf{Sallen-Key} \; C_1=4Q^{2} C_2,R1=R2=1ω0C1C2R_1=R_2=\dfrac{1}{\omega_0\sqrt{C_1 C_2}}

The tool shows the ideal value and the nearest E-series value, and recomputes the realized f₀ and Q with the real values (rounding introduces a small error).

What are the tool’s limitations?

  • Ideal components: no tolerances, no real ESR/ESL, no downstream load (an unloaded output is assumed).
  • Sallen-Key uses an ideal op-amp: infinite bandwidth, gain and slew-rate. Real op-amp limits move the high-frequency response.
  • Up to 2nd order; higher orders come from cascading stages (not covered here).
  • Demonstration tool, not a SPICE simulator.