The scene is always the same: a commuter train carriage, the hum of the electric motor, the air conditioning and a conversation three rows back. You put your headphones on, switch on noise cancelling and the train seems to go quiet. Nothing magic happened, and it was not a simple plug either: inside each earcup there are microphones, a processor and a speaker working in a loop that runs tens of thousands of times per second.
The trick is a subtraction
Sound is a pressure wave. When two waves meet at the same point their amplitudes add up: if a crest meets a crest the result is louder; if a crest meets a trough they cancel out. That is destructive interference, the same phenomenon that gives soap bubbles their colours and that here is used to manufacture silence.
Active noise cancelling (ANC) does not remove noise: it generates a second, identical sound inverted by 180 degrees, so that when both reach the eardrum the two pressures subtract. For the subtraction to work, that artificial sound must match the original in amplitude, in frequency and, above all, in phase. That last requirement is what makes the problem hard.
Outside, inside and in between
ANC headphones carry microphones in two positions. Feedforward mics sit on the outside of the cup and pick up the noise before it gets in; their advantage is a few millimetres of head start for processing, their problem is that they know nothing about what happens inside your ear. Feedback mics sit next to the driver, facing the ear canal, and measure the real result of the cancellation: they are more accurate, but they work with less margin and can start to oscillate — the same squeal you hear when a microphone gets close to its speaker.
Most hybrid models, the ones that have dominated the market since 2019, combine both: two outer mics for incoming noise, two inner ones to correct what is left. Sometimes a third pair is added for voice, with beamforming, so the software can separate your voice from the surroundings during calls.
A filter that learns while you walk
The heart of the system is an adaptive digital filter running on a DSP or a dedicated audio chip. Inverting the signal is not enough: the noise changes, the fit of the cup changes as you move, and the distance between driver and eardrum is different for every ear. The most widespread algorithm is LMS (least mean squares) in its FxLMS variant, which adjusts the filter coefficients to minimise the error signal read by the inner microphone. It is a control loop: measure, correct, measure again, thousands of times per second.
The computational cost is real. At a 48 kHz sampling rate, with blocks of 64 samples, the processor has to solve a filter with several hundred coefficients in under a millisecond, and do it without eating the battery budget that Bluetooth also needs. That is why modern audio chips integrate dedicated accelerators for these operations in fixed point and reduced floating point.
The enemy is called delay
Phase is a matter of time. At 1,000 Hz the wavelength of sound in air is 34 centimetres, and one degree of phase error equals less than a millimetre of path. A 50-microsecond delay in the loop — perfectly normal once you add analogue-to-digital conversion, processing and conversion back — means 18 degrees of error at that frequency, and at 4,000 Hz it is already 72 degrees, nearly half a wave lost.
Hence the division of labour: active cancellation attacks low frequencies, where the wavelength is long and a few microseconds barely matter; above 1 or 2 kHz phase becomes unmanageable and passive isolation — foam, porous materials, the seal of the earpad — takes over. In practice a good ANC cuts 20 to 30 dB below 500 Hz, which is exactly the band of an aircraft engine, a laptop fan and distant traffic.
Why it cannot handle voices
A nearby conversation is the worst case: a wideband signal with fast transients that changes frequency and level within milliseconds. The adaptive filter needs time to model the noise; by the time it has, the word is gone. Speech also arrives from different directions and with reflections, and the system can only act on what its microphones capture at their position.
It also explains why ANC bothers some people. The pressure felt in the ear is not imagination: cancelling the incoming wave alters the acoustic impedance of the canal and the body detects a sealed cavity. And wind over the outer microphones creates low-frequency noise that the algorithm tries to cancel, sometimes with worse results than wearing nothing.
The same hardware, backwards
Transparency mode uses exactly the same components with the polarity flipped: instead of inverting the noise it amplifies it and feeds it to the driver with an equalisation that compensates for the passive attenuation of the cup. The difficulty is delay, again: if the outside sound and the reproduced one do not arrive aligned, the brain perceives a hollow, metallic mix. Good models push the loop below 20 microseconds and add a stage that simulates sound arriving naturally from outside.
The result is a device that listens to the world in order to erase it, and that in the same gesture can hand it back to you. Noise cancelling is not a smarter earplug: it is a real-time control system that turns a wave into its own negation, with the millimetre and microsecond precision that the physics of sound demands.






