What Is a Notch Filter? How It Works and Where It’s Used

A notch filter cuts out one narrow slice of sound or signal and leaves the rest almost untouched.1MathWorks. What Is a Notch Filter? How It Works and Where It’s Used That makes it the go-to fix when a single steady tone, like a hum or a whistle, ruins an otherwise good signal.2MathWorks. What Is a Notch Filter? How It Works and Where It’s Used The same idea works well beyond audio, from heart monitors to factory robots to laser instruments, because each of these can be spoiled by one unwanted frequency.

How a Notch Filter Picks Out One Frequency

Any sound or electrical signal can be thought of as a blend of many frequencies, meaning how fast something vibrates, from low rumbles to high hiss. An unwanted tone sits at one spot in that blend, and a notch filter is aimed at exactly that spot. Graph what the filter lets through and you see a flat line with one sharp V-shaped dip. That dip is the notch that gives the filter its name.

The dip is not a cliff. The response slopes down into the notch and back out, so a tone exactly at the center is removed almost completely, while a tone a few hertz away may only be dimmed. Tones farther out pass at essentially full strength.

In digital filters, the dip comes from a mathematical “zero” placed at the target frequency. The filter is built so its output becomes zero exactly at the chosen frequency.3tttapa.github.io. Designing a Simple FIR Notch Filter A second ingredient, called a pole, is placed just beside that zero to control how wide the dip is.4Atlantis Press. Second-order IIR Notch Filter Design and implementation of digital signal processing system The closer the pole sits to the zero, the deeper and narrower the notch becomes.5Atlantis Press. Second-order IIR Notch Filter Design and implementation of digital signal processing system

Without the math, the zero is a spot where the filter is forced to say no, and the pole is a nearby spot that pulls the response back up to normal. Moving the pole farther from the zero spreads that recovery over a wider stretch, which is how a designer widens the notch.6IEEE Transactions on Signal Processing. Stable IIR notch filter design with optimal pole placement

Notches also come in analog and digital forms. Analog notches use real electronic parts such as capacitors and resistors. Digital notches do the same job with arithmetic inside a chip or in software. A software notch can be retuned instantly, while an analog one is fixed by its parts.

Notch Width, Depth, and the Q Factor

A notch is described by three separate dials. The center frequency says where it cuts, the width says how much neighboring pitch goes with it, and the depth says how hard it cuts.

Width is usually given as Q, the quality factor, which compares the center frequency with the notch’s width.7Emotiv. The Notch Filter A high-Q notch is very narrow, while a low-Q one affects a wider range of nearby frequencies.8Emotiv. The Notch Filter Narrow notches often reach Q values above 100.9Patsnap Eureka. Notch Filter Vs. Bandstop: Which Improves Signal Clarity? On many audio tools the width control is labeled Q, bandwidth, or octaves. A higher Q number means a narrower notch, while a bandwidth number works the other way around. Getting the center slightly wrong matters more with a narrow notch, because it can miss a tone sitting just beside it.

Choosing between narrow and wide depends on the situation. Too narrow, and a slightly drifting hum slips past. Too wide, and you start removing wanted parts of the music or signal. The usual compromise is the narrowest notch that still covers the drift.

Sharper is not always better. A very narrow notch can ring, meaning the filter keeps vibrating briefly after a sound hits it10Emotiv. The Notch Filter, which can add a faint whistling tail to sudden sounds like drum hits. A very narrow notch is also more sensitive to small errors, since a tiny shift in the target tone or in component values can push the tone out of the cut.

Depth is usually given in decibels (dB), a scale for how strongly the tone is reduced, where every 20 dB means about ten times less signal strength. Notch filters typically cut their target by 40 to 60 dB.11Patsnap Eureka. Notch Filter Vs. Bandstop: Which Improves Signal Clarity? In fast analog circuits a designer can realistically hope for only 40 to 50 dB.12Texas Instruments (TI) Analog Applications Journal. High-speed notch filters Engineers often focus more on hitting the right center frequency and width than on chasing extra depth.13Texas Instruments (TI) Analog Applications Journal. High-speed notch filters

Removing Mains Hum From Audio

Mains hum is a buzz at the power grid’s frequency, 50 Hz in Europe and 60 Hz in the US.14Audacity Forum. Hum removal It usually comes with many harmonics, extra tones at multiples like 120 and 180 Hz.15Audacity Forum. Hum removal Removing it can take a whole row of notches, sometimes dozens, to catch every audible harmonic.16Audacity Forum. Hum removal Because the harmonics are evenly spaced multiples, they are easy to find once you know the base frequency.

A typical hum notch spans just a couple of hertz. A standard example sets the notch from 59 to 61 Hz to remove 60 Hz hum.17MathWorks. Remove the 60 Hz Hum from a Signal Frequencies in that 2 Hz window lose at least half their power, while the rest is kept.18MathWorks. Remove the 60 Hz Hum from a Signal

To fix hum in your own recording, start by checking your region’s grid frequency, 50 or 60 Hz. Apply a notch there, then listen for leftover buzz. If buzz remains, add notches at double and triple that frequency. Too many deep notches can thin out bass instruments, so stop when the hum is gone.

Many audio editors have a spectrum or frequency display, where hum shows up as a tall thin spike at the grid frequency with smaller spikes at multiples. A stretch where nobody is speaking or playing makes the spikes easier to see. After applying the notch, play that same quiet stretch again. If the spikes are gone and the buzz is gone, you have fixed the hum.

A notch isn’t always the right fix. Hum from a bad cable or ground loop is better fixed at the source, because filtering only treats the symptom after recording.

Taming Feedback Howl in Live Sound

Feedback howl happens when a microphone picks up its own speaker and the sound loops louder and louder. It grows at the pitch where the room, speaker, and microphone together amplify the most, which is why a howl is typically one clear pitch rather than a mix. Each trip around the loop makes that pitch louder, so a faint ring climbs quickly to a painful squeal.

A feedback suppressor listens for the start of the howl and inserts a notch at its exact frequency.19Wikipedia. Feedback suppressor The notch removes just that pitch, so the voice stays clear. Several notches can stack up during a show as different pitches ring. Ringing out the room during soundcheck sets notches before the audience arrives.

Lowering the overall volume would also stop feedback, but it makes the performance quieter for everyone. A notch reduces gain only at the problem pitch, so the rest of the sound can stay loud.

Automatic systems are not yet universal because of worries they misjudge howl or color the sound.20Proceedings of the International Conference on Digital Audio Effects. Assessing the Suitability of the Magnitude Slope Deviation Detection Criterion for Use in Automatic Acoustic Feedback Control A singer moving on stage also changes which frequencies howl, so newer systems remove notches when they’re no longer needed.21Politecnico di Milano. Acoustic feedback control in live music performances: a solution based on notch filters

Notch Filters in Heart and Brain Recordings

Heart and brain signals at the skin are tiny, so even a small amount of interference from nearby wiring and equipment can show up as a fuzzy thick line. ECG and EEG machines often pick up 50 or 60 Hz power-line interference.22Computers and Electrical Engineering. A new method for removal of powerline interference in ECG and EEG recordings The body and the electrode leads act like antennas, which is why hum can appear even when the equipment seems fine. Poor electrode contact makes it worse, so a loose or dry electrode is worth checking before reaching for a filter.

A notch filter can remove that narrow band while leaving most of the trace almost unchanged.23Computers and Electrical Engineering. A new method for removal of powerline interference in ECG and EEG recordings It struggles when the interference frequency drifts, as it does in poor electrical environments, and may not remove it fully.24Computers and Electrical Engineering. A new method for removal of powerline interference in ECG and EEG recordings

Common digital notches can also noticeably distort the sharp spike of each heartbeat on an ECG.25Biomedical Instrumentation & Technology. Power-Line Interference Cancellation in ECG Signals That spike contains energy across many frequencies, including some near 50 or 60 Hz, so a notch there removes a little of the spike itself. The result can be a slightly smaller or reshaped spike, which matters when doctors read fine details of the trace. Some digital notches also ring after the spike, adding small wiggles that were never in the heart signal.

Self-Tuning Notches for Shifting Interference

A fixed notch is aimed at one frequency, so if the interfering tone moves a little, it slips onto the sloping edge of the notch and is only partly removed. The narrower the notch, the less movement it tolerates.

Fixed analog notches lose effect when the grid frequency drifts or part tolerances shift their center.26Materials Research Proceedings. Auto-Tuned 50 Hz Notch Filter Using a PLL-Based Frequency Tracker In a notch, small capacitor tolerances can cause dramatic changes in center frequency and depth.27Analog Applications Journal. High-speed notch filters A fast analog notch can give 100-to-1 rejection over a ±1% range but only 10-to-1 over ±10%.28Texas Instruments (TI) Analog Applications Journal. High-speed notch filters

An adaptive notch filter is a self-tuning notch that tracks and suppresses tones whose frequencies are unknown or changing.29International Journal of Electronics and Communications (AEÜ). Adaptive notch filter design under multiple identical bandwidths It can follow several unrelated interfering tones at once.30International Journal of Electronics and Communications (AEÜ). Adaptive notch filter design under multiple identical bandwidths It keeps measuring where the interfering tone sits and slides the notch to follow it.

To do that, it must first estimate the interfering frequency from the signal itself, which is hard when the wanted signal is also present. It then updates the notch center continuously, so the cut stays on the tone as it moves. Designers balance how fast it follows against how stable it stays, since a filter that chases too quickly can wander off or be fooled by the wanted signal.

Motors, Radios, Lasers, and Images

Servo drives use notch filters to suppress mechanical resonance caused by flexible parts in the drive train.31Synapticon. Notch filter against mechanical resonances in the servo drive A motor connected to its load through a flexible shaft or belt can shake at a particular frequency, like a spring bouncing. A controller trying to correct the shaking can push at the wrong moments and make it worse. A notch in the control signal at that frequency stops the controller from feeding the shake. Because load changes shift the resonance, self-tuning notches can find and suppress it automatically.32IET Electric Power Applications. Mechanical vibration reduction control of two-mass permanent magnet synchronous motor using adaptive notch filter with fast Fourier transform analysis

Solar inverters use notches to strip a ripple at twice the grid frequency so they can lock onto the grid.33Texas Instruments Application Report. Software Phase Locked Loop Design Using C2000 Microcontrollers for Single Phase Grid Connected Inverter That ripple appears in the inverter’s measurement of the grid and confuses its tracking of the grid’s timing. With it removed, the inverter can follow the grid’s rhythm, which matters because it must feed power in time with the grid. Notch-based grid tracking keeps working even with badly distorted grid voltage.34Transactions of the Institute of Measurement and Control. Photovoltaic tied unified power quality conditioner topology based on a novel notch filter utilized control algorithm for power quality improvement

Radio receivers chain several notches to cut jamming tones, sizing each to minimize damage to the signal.35Applied Sciences. Multiple Narrowband Interferences Characterization, Detection and Mitigation Using Simplified Welch Algorithm and Notch Filtering Self-tuning notches improved signal clarity against jammers in digital radio links.36Applied Sciences. Single and Multiple Continuous-Wave Interference Suppression Using Adaptive IIR Notch Filters Based on Direct-Form Structure in a QPSK Communication System

Optical notch filters block one laser color while passing other light, and are used in lab instruments that study light scattered from samples, and in microscopy.37Edmund Optics. Notch Filters Narrow optical notches need thick coatings, once only possible with holographic filters.38Spectroscopy. Thin-Film Filters for Raman Spectroscopy In images, notch filters remove repeating patterns like moiré stripes from photos.39IET Image Processing. Adaptive Gaussian notch filter for removing periodic noise from digital images

Notch Filter vs Band-Stop and Other Filters

A notch filter is a band-stop filter with a very narrow stopband.40Wikipedia. Band-stop filter Regular band-stop filters block a wider range, usually by 20 to 40 dB, with Q around 5 to 50.41Patsnap Eureka. Notch Filter Vs. Bandstop: Which Improves Signal Clarity? Notches suit single-tone problems, while band-stops suit broader noise bands.42Patsnap Eureka. Notch Filter Vs. Bandstop: Which Improves Signal Clarity?

Low-pass and high-pass filters differ in kind. They block everything on one side of a corner frequency, removing a whole region of the spectrum rather than a slice. Their cut also builds up gradually rather than dropping at one pitch. They cannot remove a hum without also cutting wanted sound on one side.