Butterworth Filter Design

Statistics
Introduced by
Stephen Butterworth
Year
1930
Type
Infinite Impulse Response (IIR) filter design
Family
Frequency filtering

What does it do?

The Butterworth filter is a signal processing filter whose magnitude response is as flat as possible at low frequencies, so the passband has no ripple, while the response falls off toward the stopband at a gradual rate.

Stephen Butterworth introduced the design in 1930, and it is one of the most commonly used IIR filter families in electrical engineering and digital signal processing.

The intuition behind the method

The Butterworth design trades transition sharpness for smoothness. Its magnitude response decreases monotonically with frequency, so it never overshoots or oscillates in the passband. The response is made maximally flat at zero frequency, and the stopband roll-off is gradual rather than steep. A higher filter order steepens the roll-off but does not add ripple. Designers who need a sharper cutoff at the same order can look at Chebyshev or elliptic filters, which accept ripple in exchange for a narrower transition band.

History

Stephen Butterworth introduced the filter in 1930 in the article "On the Theory of Filter Amplifiers", where he described a filter with a maximally flat passband response. The design is one of the classic analogue filter families, alongside Chebyshev and elliptic filters. Digital Butterworth filters are obtained from the analogue prototype by the bilinear transform, as described in the FAQ below.

When to use it

Choose a Butterworth filter when the passband must be free of ripple and a monotonic magnitude response is important, and when a gradual transition to the stopband is acceptable. It is a reasonable choice for audio, biomedical and data-acquisition signals where the designer can tolerate nonlinear phase. Do not choose it when a narrow transition band is needed at low order, because a Chebyshev or elliptic design will meet the same edges with fewer poles. Do not choose it when the phase of the signal must be preserved; in that case a linear-phase FIR filter, or zero-phase filtering with an IIR filter applied forwards and backwards, is more appropriate.

Limitations and considerations

  • For the same passband and stopband edges, a Butterworth filter needs a higher order than a Chebyshev or elliptic filter, because it does not exploit passband ripple to narrow the transition band.
  • The transition region is gradual, so the filter is a poor fit when the signal contains components just outside the passband that must be removed.
  • The phase response is nonlinear, so the filter changes the timing of signal components, and the distortion is strongest near the cutoff.

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

Strengths

  • The passband magnitude response is maximally flat, with no ripple, so the in-band signal is not amplitude-distorted by the filter itself.
  • The magnitude response decreases monotonically, so there are no overshoots or oscillations in either band.
  • The order and pole locations follow from closed-form expressions, so the design can be carried out without iterative optimisation.
  • A digital realisation is a recursive filter that needs only on the order of n multiply-accumulate operations per sample, which suits real-time processing.

Applications

  • Audio processing, where low-pass or high-pass filtering removes out-of-band noise while leaving the tonal content of the signal largely unchanged.
  • Biomedical signal processing, such as filtering electrocardiogram (ECG) and electroencephalogram (EEG) recordings to limit noise outside the frequency band of interest.
  • Data acquisition systems, where a Butterworth low-pass filter smooths sensor measurements and removes high-frequency noise.
  • Anti-aliasing and bandwidth limitation before sampling, where a smooth passband is needed so that the wanted signal is not distorted.
  • Image processing, where a Butterworth low-pass filter applied in the frequency domain gives a smooth transition between the frequencies that are passed and those that are removed. Compared with a sharp ideal cutoff it produces less ringing, and keeping the order low limits the ringing that remains.

How it works

How it works

1

Define the filter specifications: the desired cutoff frequency, the allowed passband deviation, the required stopband attenuation, and the sampling rate of the signal to be filtered.

2

Express the cutoff frequency relative to the Nyquist frequency (half the sampling rate) so that the design works in normalised frequency. For a digital filter designed through an analogue prototype, the cutoff is also prewarped to compensate for the frequency warping of the bilinear transform.

3

Compute the minimum filter order from the stopband attenuation, the passband edge and the stopband edge, using the order equation given in the FAQ below, and round the result up to the next integer.

4

Place the poles of the analogue prototype on a circle of radius equal to the cutoff frequency in the left half of the s-plane, with the angles spaced evenly for the chosen order. Then map the prototype to the digital domain with the bilinear transform.

5

Realise the resulting transfer function as a recursive (IIR) digital filter, and check that the poles lie inside the unit circle and that the computed frequency response meets the specification. For higher orders, cascades of second-order sections are usually preferred over a single high-order direct-form structure, because rounding errors in the coefficients can move the poles.

Common pitfalls

  • Choosing a low order and expecting a sharp cutoff. The roll-off rate is set by the order, so a sharp edge requires a higher order rather than a different cutoff value.
  • Setting the cutoff in Hz without normalising against the Nyquist frequency, or placing it above the Nyquist frequency. Either mistake moves the attenuation away from the intended frequency.
  • Designing an analogue prototype and converting it to digital without prewarping the cutoff. The bilinear transform compresses the frequency axis, so the digital cutoff will be shifted.
  • Implementing a high-order filter as a single direct-form section and then assuming the designed poles are preserved. Coefficient rounding can move poles toward or outside the unit circle, so stability should be checked on the realised filter.

Frequently asked questions

How do I choose the filter order for a Butterworth filter?

The filter order is determined from the attenuation requirement and the transition band using the equation: n ≥ log₁₀[(10^(As/10) - 1)/(10^(Ap/10) - 1)] / [2·log₁₀(ωs/ωp)], where As is the stopband attenuation in dB, Ap is the passband ripple in dB, and ωs and ωp are the stopband and passband frequencies. Round the result up to the next integer.

What is the relationship between analog and digital Butterworth filters?

A digital Butterworth filter is usually obtained from an analogue Butterworth prototype with the bilinear transform. This transform maps the s-plane poles to z-plane poles and keeps the filter order. It also warps the frequency axis, so the analogue cutoff must be prewarped if the digital cutoff is to fall at the intended frequency. The magnitude response of the digital filter is therefore not identical to the analogue response at every frequency.

Why does a Butterworth filter have no passband ripple?

The Butterworth design makes the squared magnitude response as flat as possible at zero frequency (DC) by forcing its low-order derivatives to vanish there. The magnitude then decreases monotonically with frequency, so the passband shows no ripple. The flatness at DC alone does not establish this across the whole band; the monotonic decrease does. The gentler roll-off toward the stopband is the price of this smoothness.

Can I use a Butterworth filter for real-time signal processing?

Yes. A digital IIR implementation needs on the order of n multiply-accumulate operations per sample, where n is the filter order, so it is computationally light. For orders above a few poles, implement the filter as cascaded second-order sections rather than in a single direct form, to limit the effect of coefficient rounding.

Related methods

Sources

  1. Butterworth, S. (1930). On the Theory of Filter Amplifiers. Wireless Engineer and Experimental Wireless, 7, 536–541.

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

    Open publication reference