Signal notch filter design calculator

Calculate notch b coefficients and notch a coefficients with your own figures.

Your numbers

Use the units shown. Results update as you change valid inputs.

Use notch b coefficients and notch a coefficients to compare changes to your inputs. The method and limits below explain the scope.

Examples

Examples

Try the starting example

Notch frequency (Hz)
20
Notch bandwidth (Hz)
2
Sampling frequency (Hz)
100
Notch b coefficients
[0.940809296182,-0.581452121972,0.940809296182]
Notch a coefficients
[1,-0.581452121972,0.881618592363]
Frequency-magnitude pairs
[[0,1],[1.5625,0.999959617707],[3.125,0.999833122591],[4.6875,0.999602976615],[6.25,0.999234230633],[7.8125,0.998662754884],[9.375,0.997769496068],[10.9375,0.996320699649],[12.5,0.993813613251],[14.0625,0.989013249059],[15.625,0.978224087268],[17.1875,0.9462802576],[18.75,0.785049320537],[20.3125,0.297091009941],[21.875,0.879306515721],[23.4375,0.958682640838],[25,0.979897158696],[26.5625,0.988374952727],[28.125,0.992591529851],[29.6875,0.99499181401],[31.25,0.996487828273],[32.8125,0.997482085676],[34.375,0.998174597949],[35.9375,0.998673892326],[37.5,0.999042967269],[39.0625,0.999320371634],[40.625,0.99953068379],[42.1875,0.999690067926],[43.75,0.999809376833],[45.3125,0.999895956221],[46.875,0.99995472385],[48.4375,0.999988821564],[50,1]]

Try another scenario

Notch frequency (Hz)
22
Notch bandwidth (Hz)
2
Sampling frequency (Hz)
100
Notch b coefficients
[0.940809296182,-0.352580165386,0.940809296182]
Notch a coefficients
[1,-0.352580165386,0.881618592363]
Frequency-magnitude pairs
[[0,1],[1.5625,0.99997086282],[3.125,0.999880359399],[4.6875,0.999718515316],[6.25,0.999466097667],[7.8125,0.999089543776],[9.375,0.998530725422],[10.9375,0.997685613517],[12.5,0.996356512837],[14.0625,0.994133602425],[15.625,0.990057167188],[17.1875,0.981446306759],[18.75,0.958452154814],[20.3125,0.863126099229],[21.875,0.123967995744],[23.4375,0.818987318593],[25,0.947991638656],[26.5625,0.976770658354],[28.125,0.987234300535],[29.6875,0.992150216741],[31.25,0.994841946817],[32.8125,0.996471809346],[34.375,0.997530355505],[35.9375,0.998253373143],[37.5,0.998765503383],[39.0625,0.999137553842],[40.625,0.999412040642],[42.1875,0.999615589492],[43.75,0.999765378264],[45.3125,0.999872666449],[46.875,0.999944805],[48.4375,0.999986403779],[50,1]]
Calculation method

Calculation method

Notch b coefficients

Second-order notch with beta=tan(pi bandwidth/fs); gain=1/(1+beta).

Notch a coefficients

[1,−2gain cos(w0),2gain−1].

Frequency-magnitude pairs

33 points DC to Nyquist.

Symbols and units
a
Notch frequency (Hz)
b
Notch bandwidth (Hz)
c
Sampling frequency (Hz)

Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.

Assumptions & limits

Assumptions & limits

  • Notch frequency, bandwidth, sample rate. Returns Coefficients and frequency response. All coefficients and observations are user supplied; results describe only the stated mathematical model. Quantities are deterministic calculations from supplied observations and assumptions; no external data is fetched. Supported limits: Finite inputs only; numeric fields bounded as labelled. Lists and JSON records are limited to 256 entries unless a stricter tool bound is stated. No automatic design approval, legal conclusion, treatment recommendation or safety certification. Notch frequency (Hz): minimum 1e-12, maximum 1000000000000.0. Notch bandwidth (Hz): minimum 1e-12, maximum 1000000000000.0. Sampling frequency (Hz): minimum 1e-12, maximum 1000000000000.0.
Are these inputs private?

These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.

Further reading

Method reference ↗

Background reading; this does not imply endorsement or independent review of SumFizz.

Share this page
Share this calculator

Leave unchecked to share the page without your entered values.