🚫

Notch Filter Calculator

This free notch filter calculator designs band-reject filters to surgically remove a single frequency — most often 50 Hz / 60 Hz mains hum. Three topologies: passive Twin-T, active Twin-T with Q boost, and parallel RLC. Includes mains-hum presets, Bode magnitude + phase, and step response.

Input

C, R/2, and 2C are computed from f₀ and R. Match components ≤ 1 % for a deep notch.

Result

Notch depth
Transfer function & key formulas
Schematic
Bode magnitude — |H(jω)| in dB vs frequency (log)
Bode phase — ∠H(jω) in degrees vs frequency (log)
Step response — output vs time after a unit-step input

Share or embed this tool

Free to use on your own website — WordPress, Wix, or any platform. Paste one line and it works instantly, resizing to fit.


About Notch Filters & Twin-T Topology

A notch filter (also called band-reject or band-stop) is the complement of a band-pass — it passes everything except a narrow band around its centre frequency f₀. The classic use case is removing 50 Hz or 60 Hz mains hum from audio without affecting the rest of the spectrum. Other applications: cancelling a known interfering tone, surgically attenuating a problem frequency in a recording, removing harmonic distortion artefacts, or suppressing a specific oscillation in a control system. Before designing a hardware notch, it can help to first identify and measure the problem frequency — the noise type identifier can classify whether you are dealing with a mains hum, buzz, or another noise type from its live spectral shape.

The Twin-T topology

The Twin-T is the most famous passive notch network — two interleaved T-sections, one low-pass (2 R's + 1 C in the bridge) and one high-pass (2 C's + 1 R in the bridge), with matched components R/2 and 2C in the bridge positions. At f₀ = 1 / (2π·R·C) the two T sections cancel exactly, producing a deep null. Component matching is critical: 1 % mismatch limits notch depth to ~40 dB; 0.1 % matching can give 60 dB or better. Passive Twin-T has fixed Q ≈ 0.25 — wide notch (BW ≈ 4·f₀), which works for mains hum removal but limits utility for sharper applications.

Active Twin-T (Q-boosted)

Adding an op-amp to bootstrap the bottom of the Twin-T network sharpens the notch dramatically. The bootstrap gain K = 2 − 1/(2Q), where K is the non-inverting amplifier's gain (K = 1 + R_b/R_a). For Q = 5, K = 1.9; for Q = 10, K = 1.95. The op-amp adds positive feedback that narrows the notch from the wide 0.25 baseline up to 50+ with careful component selection. Sensitivity to component variation also rises with Q — Q > 20 needs precision metal-film resistors and matched film capacitors.

Parallel RLC notch

A parallel LC tank inserted in the signal path between source and load: at f₀ the parallel tank has infinite impedance and blocks the signal completely. Q is set by the source/load resistance R and the LC characteristic impedance: Q = R · √(C/L). Useful when you have an inductor available (RF work especially) and want a deeper notch than passive Twin-T offers.

Why notches don't kill an entire band

A 2nd-order notch is mathematically the complement of a 2nd-order band-pass: |H_notch|² + |H_BPF|² = 1. Both share the same Q factor and f₀. A high-Q notch (Q = 10, BW = f₀/10) acts as a narrow band reject filter, cutting only ±5 % around f₀ — surgical. A low-Q notch (Q = 0.5, BW = 2f₀) cuts a much wider band — useful when you don't know the exact interferer frequency, or want to suppress an entire octave.

Mains-hum removal in practice

A 60 Hz hum filter (Americas) or 50 Hz hum filter (Europe and Asia) is the single most common notch-filter application. At 60 Hz mains, a Q = 5 notch removes the fundamental but also attenuates 50 Hz – 75 Hz audio. For voice this matters little (fundamental ~85–250 Hz). For music it can affect bass. The trade-off: higher Q (narrower notch) requires more precise f₀ matching — slight drift of mains frequency (±0.1 Hz) might miss the notch's narrow well. Q = 5 with auto-tuning, or cascaded notches at 60 + 120 + 180 Hz (fundamental + harmonics), is the common professional approach. If the hum originates from a ground loop in the signal chain, fixing the loop (balanced cables, isolation transformer, or lifting the ground at one point) is preferable to filtering, because filtering attenuates the fundamental but leaves harmonics; a ground-loop fix removes them all. Use the wavelength calculator if you also need to understand the physical scale of the interference for shielding or cable-routing decisions.

Frequently Asked Questions

How deep should my notch be?
For mains hum removal, 30–40 dB is typically enough — that brings 60 Hz from "audible buzz" to "below noise floor". Pursuing 60+ dB needs precision components: 0.1% tolerance resistors, matched 1% film capacitors, and careful PCB layout to avoid pickup of the very signal you're filtering. Theoretical Twin-T depth is infinite at f₀ — practical depth is limited by component matching. Each 1% mismatch loses about 20 dB of depth.
Should I use 50 Hz or 60 Hz?
Depends on your country's mains. 60 Hz: USA, Canada, most of South America, parts of Asia (Korea, Philippines, Taiwan), Saudi Arabia. 50 Hz: Europe, Russia, Africa, most of Asia (China, India, Japan-east-of-Itoigawa-Shizuoka, etc.). Japan is uniquely split: 50 Hz east of the Itoigawa-Shizuoka line (Tokyo), 60 Hz west (Osaka). If you're recording an international guest remotely, ask their region. Battery-powered gear avoids the issue entirely.
Why does the notch have a step response that doesn't reach 1?
It does eventually reach 1 — but with ringing for Q > 0.5. The mathematical relationship is: notch step response = 1 − BPF step response. Since BPF starts at 0, rings, and decays to 0, the notch starts at 1, dips and rings around 1, then settles back to 1. The dip depth and ring duration scale with Q. For Q = 5 expect ~17% dip and ~5 cycles of ringing.
Can I cascade two notches to deepen the rejection?
Yes — two identical Q=5 notches at 60 Hz in series give a deeper-but-also-narrower combined notch (depths add in dB at f₀, but the bandwidth of the combined "hole" shrinks). Cascading is sensitive to f₀ matching between the two stages; if they're 0.5% mismatched the result can be worse than a single stage. For mains hum, cascading different frequencies (60 + 120 + 180 Hz) to catch harmonics is usually a better engineering choice than stacking identical notches.
What's the phase doing around the notch?
Phase swings rapidly through ±90° as the magnitude passes through zero at f₀ — a hallmark of any notch. The phase actually flips by 180° as we cross f₀ (going from −90° below to +90° above for the unity-gain notch). For frequencies far from f₀, the phase returns to 0°. This rapid phase swing is a real signal-processing side effect — cascaded notches add up phase swings and can audibly "smear" transients near the notch frequencies.
Can I use a digital biquad notch instead?
Yes, and it's almost always the better choice in software. A biquad implements the same s-domain transfer function via the bilinear transform. Advantages: no component tolerances, no parasitic resistance in caps/inductors, easily adjustable f₀ and Q, can be made adaptive to mains-frequency drift. Use this calculator when you specifically need hardware: front-end of an ADC, headphone amp, vintage gear restoration. Most modern DAWs include parametric EQ with very narrow Q settings that act as notches.
How is this different from the Band-Pass Filter Calculator?
Mathematically: complementary. |H_notch|² + |H_BPF|² = 1 (at any frequency, for matched Q and f₀). The BPF passes only a narrow band; the notch passes everything except that band. They use the same s² + (ω₀/Q)·s + ω₀² denominator; only the numerator differs. The two calculators share most internal math — this one is best for "kill this frequency"; the band-pass for "keep only this frequency".
What component tolerances do I actually need on a breadboard to get a working notch?
For a passive Twin-T targeting 30–40 dB depth — enough for audible hum removal — standard 1 % metal-film resistors and 5 % film capacitors (measuring and matching by hand with a multimeter or LCR meter) are sufficient. The 1 % resistors are inexpensive; capacitor matching takes time but matters more than resistor tolerance. To reach 50–60 dB you need 0.1 % resistors and hand-selected capacitors within 0.5 % of each other. On a breadboard, stray capacitance and lead inductance can easily be worth several percent — a PCB with short traces gives noticeably better depth at Q > 10.
When should I choose active Twin-T over passive Twin-T?
Choose passive when simplicity matters and a wide notch (Q ≈ 0.25, bandwidth ≈ 4× f₀) is acceptable — it needs no power supply and works well for basic 50/60 Hz mains hum removal in a mic preamp or line-level stage. Choose active Twin-T when you need a narrower, more selective notch (Q = 2–20) that does not attenuate adjacent audio frequencies as heavily. The op-amp adds a single power rail, but the reward is precision: you can dial Q independently of f₀, and a Q of 5–10 keeps the 3 dB points inside ±10 % of f₀ rather than ±200 %. Typical op-amp choices: NE5532, TL072, or OPA2134 for audio applications.
Can a notch filter remove mains hum from a guitar or microphone signal?
Yes, and it is one of the most common real-world uses. A passive Twin-T at 60 Hz (or 50 Hz in Europe) placed between the instrument output and the amplifier input removes the hum fundamental. Many classic guitar effects pedals include exactly this circuit. For microphone preamps, an active Twin-T or a biquad notch in the DSP stage is preferred because the passive version's 0.25 Q may noticeably dull the low-end of a close-miked bass instrument. If the hum has strong harmonics at 120/180 Hz, adding cascaded notches at those frequencies — or addressing the ground loop causing the hum — gives cleaner results than a single notch at the fundamental.