Put on a pair of noise cancelling headphones on a plane and the engine drone falls away, as if someone turned a dial. Nothing physical blocked it. The headphones made the quiet by adding sound: a carefully timed copy of the noise, flipped upside down, played into your ear.
That sounds like a magic trick, and it sort of is. It is also a lovely bit of physics with a hard deadline measured in microseconds. In this post we walk through how it works, why it handles a jet engine much better than a crying baby, and why it can never be perfect.
Sound is pressure, and pressure adds up
Sound in air is a pressure wave: tiny alternating bands of compressed and stretched air moving toward your ear. A microphone turns those pressure wiggles into a voltage that rises and falls, and a speaker turns a voltage back into pressure.
The key rule is the superposition principle. For a linear system, and air at normal listening levels behaves like one, the response to two sounds at once is just the sum of the responses to each. At any point in space, the pressure you feel is the pressure from wave A plus the pressure from wave B.
So if two waves of the same frequency meet crest to crest, they add up to a bigger wave. That is constructive interference. If they meet crest to trough, half a cycle (180 degrees) apart, they subtract. With equal amplitudes, the sum is zero. That is destructive interference, and it is the whole idea behind active noise cancellation (ANC).
Same wave, flipped: the sum goes flat, until the timing slips
The idea is old. Paul Lueg filed a US patent for a "process of silencing sound oscillations" in 1934, granted in 1936. According to the active noise control article, it described cancelling tones in ducts and cancelling sound around a loudspeaker by inverting the polarity. Practical headsets took decades longer: the Wikipedia history traces work on aviation headsets through the 1950s and commercial ANC aviation headsets arriving in the late 1980s.
The basic loop
Every ANC headphone does some version of this:
- A microphone hears the noise.
- A circuit flips its polarity (multiplies it by -1), shapes it, and adjusts its level.
- The headphone's own speaker plays that anti-noise, mixed with your music.
- At your eardrum, noise plus anti-noise adds up to something much quieter.
The hard part is step 2. The anti-noise has to match the noise as it arrives at your ear, not as it arrived at the microphone. The earcup, the seal and the shape of the ear canal all change the noise on its way in, and the speaker colors the anti-noise on its way out. The electronics have to predict both. Where you put the microphone decides how that prediction works.
Feedforward, feedback and hybrid
There are two places to put a microphone, and they lead to two different control strategies. The research literature on ANC headphones (for example this hybrid structure paper by Rivera Benois, Papantoni and Zölzer) describes them the same way.
Feedforward puts a reference microphone on the outside of the earcup. It hears the noise before it gets in, which gives the electronics a head start. The catch is that it never hears the result. If the seal on your head is different from the one the engineers tuned for, or the noise comes from a direction they did not expect, the prediction is off and nothing inside tells the system so.
Feedback puts an error microphone inside the earcup, near your ear. It hears what is actually left over after cancellation and drives that toward zero, like a thermostat. It automatically accounts for fit. But it is a closed loop, and closed loops are sensitive to delay: push the gain too far, or let the delay grow, and the loop can turn unstable. The Helmut Schmidt University group notes that the classic feedback controller is normally built in analog circuitry precisely because of its "sensitivity to delays in the control chain" (Rivera Benois, Nowak and Zölzer).
Hybrid uses both: the outside mic gets a head start, the inside mic cleans up what remains. Apple's support page describes exactly this on AirPods Pro and AirPods Max: an outward-facing microphone detects external sounds that the earbuds counter with anti-noise, and an inward-facing microphone listens inside your ear for unwanted sounds that also get countered.
Outside mic for a head start, inside mic to check the work
The time budget is tiny
Here is where it gets interesting. Sound in air at 20 °C travels at about 343 metres per second. That is fast compared to the size of a headphone.
Take a feedforward mic sitting, say, 2 cm from where the noise and anti-noise need to meet (an illustrative number; real designs vary). The noise covers that distance in:
0.02 m / 343 m/s ≈ 58 µs
That is the entire head start. In 58 microseconds the system must sample the mic, compute the filter, convert back to analog, and let the speaker move air. For scale, one sample period at a 48 kHz sample rate is already about 20.8 µs. The 2017 paper on a feedforward and feedback hybrid from the same group opens by saying feedforward ANC headphones "suffer from challenging processing delay constraints, due to the small distances between transducers" (Rivera Benois, Nowak and Zölzer).
How seriously engineers take this shows in their hardware. In their fully digital design, that group used converters with about 1 µs conversion delay each and custom FPGA filtering to get the whole analog-in to analog-out path down to 2.03 µs. They write that standard sigma-delta converters with a general purpose DSP "lead to significant delays" that shrink the band the feedback controller can attenuate. With the fast path, their feedback controller reached an attenuation bandwidth of about 870 Hz, with 10 to 20 dB of attenuation.
Why low hums cancel and high hiss does not
A fixed delay matters very differently depending on frequency. The wavelength is speed divided by frequency:
100 Hz: 343 / 100 = 3.43 m
2 kHz: 343 / 2000 = 0.17 m (about 17 cm)
A 100 Hz engine drone has crests more than three metres apart. A small timing error barely moves the anti-wave relative to it. A 2 kHz tone has crests 17 cm apart, so the same timing error is a much bigger slice of each cycle.
We can put numbers on it. If the anti-noise has the perfect amplitude but arrives late by τ seconds, it is off by a phase of φ = 360° × f × τ, and what is left over has amplitude |1 - e^(-iφ)| = 2 sin(φ/2) relative to the noise. Here is a tiny script (ours, purely illustrative) that turns that into decibels:
import math
def leftover_db(freq_hz, delay_s=50e-6, gain=1.0):
phi = 2 * math.pi * freq_hz * delay_s
residual = abs(1 - gain * complex(math.cos(phi), -math.sin(phi)))
return math.degrees(phi), 20 * math.log10(residual)
for f in (100, 1000, 2000, 3333, 5000):
print(f, leftover_db(f))
With a 50 µs timing error:
| Frequency | Phase error | Leftover noise |
|---|---|---|
| 100 Hz | 1.8° | about -30 dB (quieter) |
| 1 kHz | 18° | about -10 dB |
| 2 kHz | 36° | about -4 dB |
| 3.33 kHz | 60° | 0 dB (no change) |
| 5 kHz | 90° | about +3 dB (louder) |
The same 50 µs that wipes out 30 dB of a 100 Hz hum barely dents a 2 kHz tone, and past about 3.3 kHz the "anti-noise" starts adding noise. It is no accident that the feedback controllers in the papers above report their attenuation below about 1 kHz (870 Hz for the fully digital one).
The same delay is a sliver of a slow swell and a big chunk of a short chop
Timing is not the only error. Amplitude mismatch matters too: with perfect timing but anti-noise that is 10% too quiet, the leftover is 0.1 of the original, which is -20 dB. Getting 40 dB would need 1% accuracy, across frequencies, while the fit of the earcup on your head keeps changing it.
That is why the headphones lean on plain old physics for the highs. The earcup padding or the silicone ear tip is passive isolation, and it is effective in the mid and high frequency range, as both of the hybrid papers above put it. The Wikipedia article on active noise control makes the same split: active control suits low frequencies, passive treatment does better at high ones. A good noise cancelling headphone is really two systems: electronics for the rumble, foam and seal for the hiss.
Why steady noise is easier than voices
Engines, air conditioning and road rumble are steady. They repeat, and a periodic sound is easier to predict and cancel than a random one, as the active noise control article notes. Adaptive filters can also take their time to converge on a sound that stays the same for an hour.
Voices and a baby's cry are the opposite: sudden, always changing, and reaching up into the kilohertz range where our table already looks bad. McGill's Office for Science and Society sums it up well: the process is quick, but not instant, which is part of why the headphones work best on constant noises like airplane engines and struggle with sudden ones like babies crying.
A nice side effect: removing the low drone also removes the masking it causes. A loud sound hides quieter sounds near it in frequency (we covered auditory masking in our codec post), so with the rumble gone, quiet details in your music come back without turning the volume up.
That "eardrum suck" feeling
Some people put on ANC headphones and feel pressure, like they need to pop their ears on a plane. People online call it "eardrum suck". The headphones are not actually pulling a vacuum on your eardrum.
The common explanation is perceptual. McGill describes it as your brain perceiving the lack of low-frequency sound as a pressure differential between your inner and outer ear, just like when you climb in an airplane. ANC removes exactly those low frequencies, so the brain draws a familiar (and wrong) conclusion. Plenty of people stop noticing it after a while; some never do.
Transparency mode: the same mics, run the other way
Transparency (Apple), Ambient Sound Mode (Sony) and similar features reuse the outside microphones to let the world back in. Sony's help guide describes it plainly: you hear ambient sound through the microphones embedded in the left and right units of the headset while your music plays.
So instead of flipping the outside sound, the headphones play it through, shaped so it sounds natural despite the earcup or ear tip in the way. It has the same timing problem in reverse: the piped-in copy and the sound leaking past the seal meet at your eardrum, and if one lags the other they interfere, reinforcing some frequencies and dulling others. The same physics as before, now working against you. Apple even lets you tune it, with amplification, balance and tone sliders for Transparency mode on AirPods Pro.
Nothing in this chain involves your music app, by the way. Spotube, like any player, hands audio to the operating system, and the cancellation runs on the headphone's own chip, a few millimetres from your ear, where the microseconds are.
Why it can never be perfect
Put together, the limits are fundamental, not a matter of a better chip:
- Causality. The system can only react to sound it has already heard. Feedforward buys a few tens of microseconds; feedback buys none.
- Delay versus frequency. Any fixed delay becomes a bigger phase error as frequency rises, so cancellation always fades with frequency.
- Matching. Amplitude and phase must match to within a percent or so for deep cancellation, and the path changes with fit, hair, glasses and head movement.
- Space. Cancellation is perfect, at best, at one point. The anti-noise and noise travel different paths, so the quiet zone is small. That is fine for an ear canal and much harder for a whole room, which needs many microphones and speakers.
- Unpredictable sound. Random, sudden sounds have nothing to predict.
That is why the best results combine a good seal for the highs with ANC for the lows, and why even great headphones turn a jet engine into a distant whisper rather than nothing at all. Physics lets you flatten the sea. It does not let you do it ahead of the wave.
References
- Active noise control (Wikipedia): pressure waves, antiphase, periodic versus random noise, active versus passive control.
- Noise-cancelling headphones (Wikipedia): history, mic configurations, and the pressure sensation.
- Superposition principle and Wave interference (Wikipedia): why waves add, and constructive versus destructive interference.
- Speed of sound (Wikipedia): about 343 m/s in air at 20 °C.
- Wavelength (Wikipedia): the relation between speed, frequency and wavelength.
- US2043416A, Process of silencing sound oscillations (Google Patents): Paul Lueg's 1930s patent.
- Psychoacoustic Hybrid Active Noise Control Structure for Application in Headphones, Rivera Benois, Papantoni, Zölzer (ICSV25, 2018): feedforward, feedback and hybrid structures, passive attenuation in the mids and highs.
- Fully Digital Implementation of a Hybrid Feedback Structure for Broadband ANC in Headphones, Rivera Benois, Nowak, Zölzer (2017): the 2.03 µs latency path and 870 Hz attenuation bandwidth.
- Evaluation of a Decoupled Feedforward-Feedback Hybrid Structure for ANC, Rivera Benois, Nowak, Zölzer (2017): processing delay constraints in feedforward ANC.
- Active Noise Cancellation and Transparency modes for AirPods (Apple Support): outward and inward facing microphones in a hybrid design.
- Customize Transparency mode for AirPods (Apple Support): amplification, balance and tone controls.
- Ambient Sound Mode, WH-1000XM5 Help Guide (Sony): hearing surroundings through the headset's microphones.
- Noise Cancelling Headphones (McGill Office for Science and Society): steady versus sudden noise, and the pressure feeling.
Originally published on spotube.org.



Top comments (0)