Divide all coefficients by a₀ so the leading denominator coefficient is 1.
Q typically 0.707 for maximally flat (Butterworth Q).
Higher Q → sharper peak; lower Q → gentler.
Worked example: 1 kHz low-pass at 48 kHz
For f₀ = 1,000 Hz, fs = 48,000 Hz and Q = 0.707: ω₀ = 2π × 1,000 / 48,000 = 0.13090 rad. Then cos ω₀ = 0.99144 and sin ω₀ = 0.13053, so α = 0.13053 / (2 × 0.707) = 0.09231.
The low-pass coefficients are b₀ = (1 − 0.99144) / 2 = 0.00428, b₁ = 0.00856, b₂ = 0.00428, a₀ = 1.09231, a₁ = −1.98288 and a₂ = 0.90769. Dividing everything by a₀ gives b₀ = 0.003916, b₁ = 0.007832, b₂ = 0.003916, a₁ = −1.8153 and a₂ = 0.8310. A quick check: at DC the gain is (b₀ + b₁ + b₂) / (1 + a₁ + a₂) = 0.015664 / 0.0157, which is about 1 within the rounding of these four-digit values, as a low-pass should be.
Practical rules
Precision gets harder as the cutoff falls. When f₀ is tiny compared with fs, the poles sit close to z = 1 and the coefficients differ only in the last digits. In 32-bit float the filter can drift or become unstable, so use double precision or a state-variable structure for very low frequencies.
Frequencies near Nyquist warp. The bilinear transform compresses the frequency axis; a peak placed above about fs / 4 will be narrower than the design Q suggests.
Check stability. A biquad is stable when both poles are inside the unit circle: |a₂| < 1 and |a₁| < 1 + a₂ (after dividing by a₀).
Mind the sign convention. The cookbook writes the denominator as 1 + a₁z⁻¹ + a₂z⁻². SciPy and MATLAB use the same convention, but some libraries store the negated a values. Test the DC gain to check.
Notes
Reference: Robert Bristow-Johnson's "Cookbook formulae for audio EQ biquad filter coefficients".
Cascade biquads for higher-order filters (two biquads = 4th order).
Was this article helpful?
Cookies & ads
Tools run client-side — your inputs stay in your browser. No ad network is installed, so no ad cookies are set. Choose what this site may store on your device. Privacy · Cookies
Essential StorageTheme, consent state, CSRF tokens. Required for the site to work.
Always on
PersonalizationRecently used tools, custom colors, accessibility preferences. Stored locally on your device.
AdvertisingOnly applies if an ad network is installed. None is today, so no ad cookies are set either way. Details.
AnalyticsAggregate, anonymous page-view counts so we know which tools to improve.
AI IntegrationStores your API key locally for optional AI features. Key never leaves your device.