Biquad Unplugged: The Ultimate Guide to the Biquad Filter for Audio and Signal Processing

The Biquad is a compact, versatile building block in digital signal processing. Used in everything from studio equalisers to live sound systems and embedded audio devices, the Biquad filter delivers second‑order filtering with a depth and flexibility that suits a broad range of applications. This guide dives into what a Biquad is, how it works, and how to design, implement and optimise Biquad filters in real‑world projects.
What Is a Biquad? A Practical Introduction to the Biquad Filter
A Biquad, or biquadratic filter, is a second‑order recursive digital filter. In practical terms, it is a filter whose output depends on the current input and two previous inputs, as well as two previous outputs. The result is a compact, low‑order filter that can realise a wide variety of frequency responses when the coefficients are chosen carefully. In audio and communications work, a Biquad is frequently employed as a single stage in a cascade of multiple biquad sections, each tuned to a specific frequency and bandwidth.
The Mathematics Behind the Biquad Filter
Difference Equation: The Core of a Biquad
The heart of a Biquad filter lies in its difference equation. For a standard Direct Form I or II implementation, the output y[n] is computed from the current and past inputs x[n], x[n−1], x[n−2] and the past outputs y[n−1], y[n−2] as follows:
y[n] = b0·x[n] + b1·x[n−1] + b2·x[n−2] − a1·y[n−1] − a2·y[n−2]
Here the coefficients b0, b1, b2 determine the feedforward portion of the filter, while a1 and a2 shape the feedback. The particular values of these coefficients define the filter’s type—low‑pass, high‑pass, band‑pass, notch or all‑pass—and its frequency response around the centre frequency f0. The elegance of the Biquad lies in the fact that with just a handful of coefficients you can produce a wide array of responses, from gentle shelving to precise notch filtering.
Pole-Zero Perspective
Another way to view the Biquad is through its pole‑zero representation. The filter’s poles and zeros lie in the z‑plane, and their locations determine the peak sharpness and the phase response. In practical design, the poles are often placed to achieve a desired bandwidth around a centre frequency, while zeros shape the frequency rejection or boost. The Biquad can be configured so that the poles lie within the unit circle, ensuring stability for real‑time processing and avoiding unbounded growth in the output signal.
Common Biquad Filter Types and Their Uses
Low-pass Biquad
The Low-pass Biquad passes frequencies below a chosen cut‑off, while attenuating frequencies above it. It is a staple in audio processing for smoothing or removing high‑frequency noise. In a well‑designed Biquad low‑pass stage, the transition from passband to stopband is controlled by the Q factor and the chosen centre frequency. This type is often used as a smoothing stage in digital equalisers or as a preliminary stage in anti‑aliasing networks for DACs.
High-pass Biquad
The High-pass Biquad does the opposite of the low‑pass: it attenuates low frequencies and passes higher frequencies. This is useful for removing rumble, DC offsets or very low‑frequency drift in audio paths. In a multi‑band graphic equaliser, high‑pass biquads can be used to shape the tonal balance before further processing in other bands.
Band-pass Biquad
A Band‑pass Biquad isolates a limited frequency band around a centre frequency f0. The bandwidth of the pass region is controlled by Q. This type is central to parametric EQs and helps sculpt specific tonal regions without affecting the rest of the spectrum excessively.
Notch Biquad
The Notch Biquad attenuates a narrow frequency band around f0, leaving frequencies away from f0 largely unaffected. Notch filters are commonly used to suppress problematic hum or interference at a precise frequency, such as 50 Hz mains interference or a problematic resonant mode in a system.
All-pass Biquad
An All‑pass Biquad preserves the amplitude of the signal across frequencies but alters the phase response. All‑pass stages are valuable in phase correction and delay alignment tasks, especially in complex multi‑way speaker systems or psychoacoustic processing where phase coherence matters as much as magnitude.
Parameterising the Biquad: f0, Q and Gain
Centre Frequency f0
The centre frequency f0 marks the heart of a biquad’s effect. In many designs, f0 is the focal point around which the filter shapes its response. For a parametric EQ, for example, you will set f0 to the frequency you wish to target, and then adjust Q and gain to control the width and depth of the boost or attenuation around that frequency.
Quality Factor Q
Q defines the selectivity of the filter. A higher Q yields a narrower bandwidth, producing a sharper peak or notch around f0. A lower Q broadens the effect. In practice, choosing Q involves balancing precision against potential artefacts such as peaking and phase distortion. In high‑fidelity audio work, a carefully chosen Q can deliver surgical control without introducing audible artefacts.
Gain
The gain parameter set in a Biquad stage determines how much boost or cut is applied at or around f0. In a notch, gain controls the depth of suppression; in a peak or bell filter, it controls the peak amplitude. The interplay between gain and Q is critical for achieving a musical, natural sound, especially when cascaded with other stages.
Design Methodologies for Biquad Coefficients
Analog Prototypes and the Bilinear Transform
One common approach to designing a Biquad is to start with an analog second‑order prototype, such as a low‑pass or band‑pass section, and then transform it into a digital form using the bilinear transform. This technique preserves the essential shape of the frequency response while mapping the continuous‑time poles and zeros into the discrete domain. Pre‑warping may be applied to compensate for frequency warping caused by the transform, ensuring that the target f0 remains accurate in the digital implementation.
Direct Form and Cascaded Second‑Order Sections
In practical implementations, particularly in audio workstations and embedded systems, the transfer function is implemented as a cascade of second‑order sections (SOS). This approach helps maintain numerical stability and reduces sensitivity to coefficient quantisation. Each Biquad stage contributes a portion of the overall response, and the cascade allows precise control over the final filter shape, including steep notches or narrow peaks.
Normalisation, Stability and Precision
Normalising the coefficients so that the filter remains stable is essential. For a Biquad, stability requires that the poles lie inside the unit circle in the z‑plane. Well‑scaled coefficients reduce the risk of overflow in fixed‑point implementations and minimise rounding errors in floating‑point processing. In audio applications, this translates to clean, predictable performance across a range of input levels and sample rates.
Cascading Biquad Stages: The Biquad Cascade
Why Cascade?
Cascading multiple Biquad stages—often referred to as a Biquad cascade or SOS chain—offers precise control over a complex frequency response. By stacking several second‑order sections, engineers can realise low‑shelf, peak, notch and notch‑plus shelf combinations that would be impractical with a single, higher‑order filter. This modular approach is a core idea in many professional equalisers and crossover networks.
Implementation Tips
When cascading stages, consider the following: (1) place stages so that each handles a focused portion of the spectrum to maintain numerical stability; (2) use appropriate sampling rates and ensure consistent coefficient quantisation will not introduce audible artefacts; (3) in fixed‑point DSP, allocate sufficient headroom and apply scaling between stages to prevent overflow. A well‑designed cascade yields a smooth, musical response with minimal phase anomalies.
Applications of the Biquad in Audio and Beyond
Crossover Networks
In loudspeaker systems, the Biquad filter appears as the practical equivalent of a second‑order crossover. By splitting the audio spectrum into multiple bands, each directed to a different driver (tibre, woofer, tweeter), the Biquad’s precise control over frequency boundaries helps achieve coherent, accurate sound reproduction. Modern crossovers often employ several Biquad stages per channel to tailor the response to the specific speaker design.
Parametric Equalisers
Parametric EQs are perhaps the most familiar use of the Biquad in music production. A typical parametric EQ offers several Biquad bands, each with a selectable f0, Q and gain. The result is a powerful tool for sculpting tone, correcting imbalances, or shaping the character of a recording. The Biquad’s second‑order nature ensures a smooth, musical roll‑off, even when several bands are engaged simultaneously.
Digital Audio Workstations and Plugins
Within digital audio workstations, Biquad filtering features prominently in mastering chains, dynamic EQs and creative effects. The Biquad’s efficiency makes it suitable for real‑time processing, while its precise control enables subtle or dramatic tonal adjustments. Plugin developers often expose Biquad parameters with intuitive controls for f0, Q and gain, making high‑quality filtering accessible to producers and engineers alike.
Practical Implementation: Real‑World Considerations
Coefficient Scaling and Overflow
When implementing Biquad filters in software or hardware, careful coefficient scaling is essential. In fixed‑point DSP, too large a gain or high‑Q can push the arithmetic into overflow. Designers typically scale inputs, intermediate results and coefficients to maintain numerical integrity across the expected signal range. Floating‑point implementations are more forgiving but still benefit from prudent scaling to maintain stability and consistent performance.
Floating‑Point vs Fixed‑Point DSP
Floating‑point processing offers wide dynamic range and ease of development for Biquad filters, particularly in rapid prototyping and research. Fixed‑point DSP is common in embedded devices where resources are limited; here, designers pay extra attention to scaling, quantisation noise and absolute error budgets. Both approaches can yield excellent results if the Biquad is implemented with attention to numerical health.
Phase and Delay Considerations
In multi‑band systems, phase coherence across frequency bands is crucial. The Biquad’s phase response varies with frequency and parameter choices; when cascading several stages, phase alignment becomes a design priority to prevent audible phase misalignment, combing or smearing of transients. All‑pass stages can be used tactically to correct or compensate for phase differences introduced by other Biquad sections.
Biquad in Open‑Source Software: Tools and Libraries
Python and SciPy Ecosystem
In Python, the SciPy ecosystem offers robust tools for designing and applying IIR filters, including Biquad‑based second‑order sections. While specific function names evolve, the underlying concepts remain the same: you select a target response (low‑pass, high‑pass, etc.), specify f0, Q and gain, and then convert the design into stable coefficients for a cascade of Biquad stages. This makes rapid experimentation and teaching accessible to students and professionals alike.
C++ and JUCE for Professional Plugins
In the C++ world, libraries and frameworks such as JUCE provide the groundwork for high‑quality audio plugins. Biquad processing is a common pattern in digital signal chains, and engineers implement cascaded Biquad stages with careful attention to numerical stability and real‑time performance. The modularity of Biquad components aligns well with plugin architectures, enabling flexible EQs and dynamic filters.
MATLAB, Octave and Prototyping
MATLAB and Octave are popular for prototyping filter designs. The Biquad form is a natural choice for illustrating how coefficient choices affect response, and MATLAB’s powerful plotting capabilities help writers and researchers verify both magnitude and phase responses across the audio band. Once a design is validated, it can be translated into real‑time code for deployment on DSP hardware or software hosts.
Embedded Microcontrollers and DSP Cores
For embedded systems, the Biquad approach is ideal due to its simplicity and stability. Microcontrollers and dedicated DSP cores commonly implement Biquad cascades to realise complex equalisation or filtering tasks without incurring excessive computational load. Efficient use of memory, careful management of state variables, and prudent use of fixed‑point arithmetic enable high‑quality audio processing in compact devices.
A Note on Notation, Nomenclature and the Biquad Lifecycle
Throughout this guide, you will see Biquad referred to in several forms: Biquad, biquad, Biquad filter, and biquad stage. This variation reflects common practice across engineers and authors; the important point is consistency within a project. When designing, label each stage clearly, for example “Biquad 1: Low‑pass f0=1.2 kHz, Q=0.707” and maintain a readable chain for debugging and collaboration.
Common Pitfalls and How to Avoid Them with the Biquad
Artefacts from Poor Q Selection
Choosing a very high Q without considering the overall gain can lead to sharp peaks and a sounding “honky” or unnatural in a mix. Start with moderate Q values and audition the effect in the context of the whole signal chain before pushing Q higher.
Phase Discrepancies in Cascades
When multiple Biquad stages are cascaded, phase differences can accumulate and create a sense of smearing or pumping in the transients. Use all‑pass corrections where needed and validate the phase response across the full frequency spectrum to maintain a coherent sound.
Numerical Instability in Fixed‑Point Implementations
Fixed‑point implementations demand careful scaling and careful management of dynamic range. Apply scale factors between stages, test with loud input, and validate that no overflow occurs. If necessary, reduce per‑stage gain or increase the word length to preserve fidelity.
The Biquad: A Royal‑Blue Cornerstone of Modern Audio Technology
From classical recording studios to compact portable devices, the Biquad remains a robust, reliable and adaptable filter. Its second‑order nature makes it sufficiently powerful to realise a wide array of responses in a compact form, while its mathematical simplicity makes it approachable for learners and seasoned engineers alike. As you design or tune audio systems, the Biquad filter offers a predictable, musical path to shaping tone, removing interference and correcting spectral imbalances with finesse.
Practical Steps for Getting Started with the Biquad
- Define the goal: what part of the spectrum needs shaping? Is it a gentle shelf, a surgical notch, or a precise peak?
- Choose the Biquad type: low‑pass for smoothing, high‑pass for rumble removal, band‑pass for targeting a band, notch for suppression, or all‑pass for phase work.
- Select centre frequency f0 and Q carefully, then adjust gain to taste.
- Convert the intended transfer function into stable coefficients using a standard design process (analog prototype with bilinear transform or a well‑tested digital design method).
- Implement as a cascade of Second‑Order Sections if multiple stages are needed; verify stability and reduce artefacts with careful scaling.
- Test in the context of the full signal chain, listening critically for tonal balance, transient fidelity and stereo image coherence.
Conclusion: The Biquad as a Flexible, Resilient Filter Choice
The Biquad filter stands as one of the most practical, widely used tools in digital signal processing. Its second‑order structure, combined with a straightforward difference equation and a versatile suite of types, makes it ideal for audio professionals and hobbyists alike. By understanding the relationship between f0, Q and gain, and by adopting best practices for cascade design, you can craft precise, musical responses that enhance clarity, warmth and balance in any signal chain. Embrace the Biquad as a dependable companion on your journey through sound.