IIR Filter Design

Statistics
Introduced by
Andrew Viterbi and Jim Kaiser
Year
1966
Type
Infinite Impulse Response filter design
Family
Frequency filtering

What does it do?

Infinite Impulse Response (IIR) filters are recursive digital filters: each output depends on past inputs and past outputs, so feedback lets them reach a sharp frequency cutoff at a low filter order.

Compared with FIR filters, they usually need fewer coefficients for a given transition sharpness, but their phase response is nonlinear and the feedback structure makes stability a central design concern.

The intuition behind the method

The main idea is that feedback creates recursive structures that can approximate a target frequency response with fewer coefficients than a non-recursive (FIR) filter needs for comparable sharpness. The cost is that poles placed outside the unit circle make the filter unstable, and the phase is generally nonlinear, so the signal shape can be distorted even when the magnitude response meets its specification. IIR design is therefore chosen when computational economy matters more than phase linearity.

History

IIR designs are built on classical analog prototypes: the Butterworth, Chebyshev and Elliptic families. Digital versions are obtained by mapping these analog designs through the bilinear transformation.

When to use it

Choose an IIR filter when a sharp magnitude cutoff is needed at low order, when computational or memory budget is tight, and when some nonlinear phase is acceptable or can be corrected afterwards with all-pass sections. It suits real-time processing where low latency and few multiplications per sample matter. Avoid it when the application requires linear phase or constant group delay, such as waveform-preserving work, because an FIR filter can provide exact linear phase. Be cautious when a high-order fixed-point implementation is planned, since coefficient sensitivity and stability then dominate the design.

Limitations and considerations

  • Potential instability if poles are incorrectly placed outside the unit circle
  • Nonlinear phase response introduces phase distortion of the signal
  • Susceptible to coefficient quantization errors, especially with high-order filters or poles near the unit circle
  • More complex implementation than FIR due to stability considerations and potential numerical issues
  • Limit cycle oscillations can occur in fixed-point implementations

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Reaches a given cutoff sharpness with a lower filter order than an FIR filter, so fewer coefficients and multiplications per sample
  • Low per-sample computational cost makes it practical for real-time processing on constrained hardware
  • Built on established analog prototypes (Butterworth, Chebyshev, Elliptic), so the trade-offs between families are well understood and the specification maps directly onto a prototype choice
  • Pole and zero placement gives direct control over the magnitude response shape, and all-pass sections can adjust phase without changing magnitude

Applications

  • Real-time signal conditioning where low per-sample cost and low latency matter, such as embedded or portable devices
  • Anti-aliasing and reconstruction filtering around analog-to-digital and digital-to-analog conversion
  • Smoothing and noise reduction of biomedical signals such as ECG and respiration
  • Channel filtering and equalisation in communications systems
  • Sensor-data smoothing and filtering in control loops

How it works

How it works

1

Define the required magnitude response: the passband and stopband edges, the transition bandwidth, and the ripple or attenuation tolerances. These specifications drive every later choice, so they should be fixed before a prototype is selected.

2

Express the band edges relative to the Nyquist frequency (half the sampling rate), so the specification does not depend on the absolute sampling rate. Determine the required attenuation and transition slope, which set how steep the prototype must be.

3

Select an analog prototype family and estimate the lowest order that meets the specification. Butterworth has a maximally flat, monotonic passband and stopband and the gentlest transition for a given order. Chebyshev type I has an equiripple passband and a monotonic stopband; Chebyshev type II has a monotonic passband and an equiripple stopband. The elliptic (Cauer) family is equiripple in both bands and gives the steepest transition for a given order, with ripple in both bands. The minimum order follows from the passband ripple, the stopband attenuation and the transition bandwidth, using the order formula for the chosen family. Choose the family according to which of passband flatness, transition steepness and ripple the application can tolerate.

4

Map the analog prototype to the digital domain with the bilinear transformation, z = (1 + s·Ts/2)/(1 - s·Ts/2), where Ts is the sampling period. This mapping compresses the frequency axis non-linearly (frequency warping), so the digital cutoff frequencies are not simply those of the prototype. When exact digital cutoffs are required, the analog cutoffs must be prewarped before the mapping to compensate for this warping. Scale the resulting poles and zeros to the required cutoff.

5

Check that every pole of the digital transfer function lies strictly inside the unit circle, then compare the magnitude response with the specification. Implement the filter as a cascade of second-order sections and re-check stability on the realised coefficients, since quantisation can move the poles.

Common pitfalls

  • Failing to verify stability of the digital filter after transformation—always check pole locations relative to the unit circle
  • Using direct form implementation for high-order filters, which is highly sensitive to coefficient quantization and can become unstable at high order—use cascaded biquad sections instead
  • Not accounting for the phase distortion introduced by IIR filters in applications where group delay matters
  • Ignoring coefficient sensitivity issues when implementing in fixed-point arithmetic, leading to stability problems

Frequently asked questions

What is the bilinear transformation and why is it used?

The bilinear transformation maps the continuous-time s-plane to the discrete-time z-plane: z = (1 + s·Ts/2)/(1 - s·Ts/2), equivalently s = (2/Ts)(z - 1)/(z + 1), where Ts is the sampling period. It maps the imaginary axis onto the unit circle and keeps stable analog poles stable, which avoids the aliasing that naive sampling of an analog impulse response would cause. The cost is frequency warping, which must be compensated when the exact cutoff frequencies matter.

How do I ensure an IIR filter remains stable?

A digital IIR filter is stable if and only if all poles of its transfer function lie strictly inside the unit circle (|z| < 1) in the z-plane. After designing the filter, plot the pole-zero diagram and verify no poles exceed the unit circle radius. Using cascaded second-order sections rather than direct form helps maintain numerical stability during implementation.

Can I use an all-pass filter to correct the phase of an IIR filter?

Yes. An all-pass section has its poles and zeros at conjugate reciprocal locations: for a pole at p, there is a zero at 1/p*, where p* is the complex conjugate of p. Its magnitude response is flat, so cascading it with the IIR filter changes the phase and group delay without altering the magnitude response.

What are second-order sections and why are they preferred?

Second-order sections (biquads) are cascade combinations of first and second-order transfer functions. Breaking a high-order IIR filter into cascaded biquads reduces numerical sensitivity to coefficient quantization and improves stability. Each biquad handles a low-order transfer function, making the implementation more robust than a direct-form realisation of a high-order filter.

Related methods

Sources

  1. Oppenheim, A. V., Schafer, R. W., & Buck, J. R. (1999). Discrete-Time Signal Processing (2nd ed.). Prentice Hall.

    Open publication reference
  2. Jackson, L. B. (2013). Digital Filters and Signal Processing (3rd ed.). Kluwer Academic Publishers.

    Open publication reference