Butterworth Filter Designer: Order, Response, Coefficients
Enter a cutoff and an order, or a passband and stopband spec to find the order. See the analog and digital responses, the section Qs and the biquad coefficients. Nothing is sent anywhere.
Order 4 Butterworth low-pass, −3 dB at 1000 Hz, rolling off at 80 dB per decade. Sections: Q = 0.5412, Q = 1.3066.
| Section | b0 | b1 | b2 | a1 | a2 |
|---|---|---|---|---|---|
| 1 | 0.00381725 | 0.00763449 | 0.00381725 | -1.76950 | 0.784773 |
| 2 | 0.00407407 | 0.00814814 | 0.00407407 | -1.88856 | 0.904852 |
The formulas
The Butterworth low-pass: maximally flat, exactly −3.01 dB at ωc, then falling 20N dB per decade. For a high-pass, swap ω and ωc.
The order for at most Ap dB loss at the passband edge fp and at least As dB at the stopband edge fs (here fs means the stopband frequency, not the sample rate).
The bilinear transform with prewarping, so the digital filter is −3.01 dB at exactly fc. Each pair of poles becomes one biquad with quality factor Qk, k = 1 to N/2; an odd order adds one first-order section.
Worked example: a low-pass to pass 1 kHz and stop 4 kHz
- Spec: at most 3 dB loss at 1 kHz, at least 40 dB at 4 kHz. N ≥ log10(9999 / 0.9953) / (2 log10 4) = 3.32, so N = 4.
- With fc = 1 kHz and N = 4, the response at 4 kHz is −10 log10(1 + 4⁸) = −48.2 dB: the spec is met with 8 dB to spare.
- The four poles pair into two biquads with Q = 0.5412 and Q = 1.3066. The high-Q section is the one that keeps the passband flat to the corner.
- Digitally, an order-2 low-pass at 1 kHz with a 48 kHz sample rate has b0 = 0.003916 (b1 = 2b0, b2 = b0), a1 = −1.8153 and a2 = 0.8310.
- Higher order means a steeper skirt but more ringing in the step response; Chebyshev and elliptic filters trade passband ripple for an even steeper skirt.
- Cascade the biquads in order of increasing Q to keep internal signal levels from peaking in fixed-point code.
- A first-order RC filter is the N = 1 case: fc = 1/(2πRC), falling 20 dB per decade.