Noise Canceling

An interactive explainer · turn your sound on, drag the waves to spin them

Noise-canceling headphones do something that sounds impossible the first time you hear it described. They make silence by adding more sound. Not by blocking your ears, not by drowning the noise out, but by playing a second sound so precisely shaped that it erases the first one. This piece explains how, it shows you the sound in 3D, and it lets you hear every step.

The figures play audio and render live 3D. Find a comfortable volume, then start pressing play and dragging the waves around.

Sound is a wave in the air

When something vibrates, it shoves the air next to it. That air shoves the air next to it, and a ripple of pressure races outward. The surface below is that pressure, drawn as height: the peaks are air squeezed tight, the troughs are air pulled thin. Spin it around, change the pitch, and press play to hear the same wave your eyes are watching.

drag to rotate
220 Hz
A pure tone is a single smooth ripple. How fast the ripples repeat is the frequency, which you hear as pitch. How tall they are is the loudness.

Two waves add up

Here is the fact that makes everything else work. When two sound waves arrive at the same place, the air does not pick one. It adds them. At every point, the push from one wave and the push from the other combine into a single push.

If two waves rise and fall together they reinforce, and you get a taller wave. But if one rises exactly as the other falls, they fight. Line them up perfectly opposite, same shape, opposite direction, and they cancel completely. The surface goes dead flat. Silence. Drag the phase to 180° and listen to the sound vanish.

drag to rotate
loud
The surface is the sum of the two waves, and that sum is exactly what you hear. At 0° they stack into something twice as loud. At 180° with matched volume they flatten into nothing.

So: listen, flip, play it back

That is the entire trick. A noise-canceling headphone is a little machine bolted to the side of your head that does three things, thousands of times a second. A tiny microphone on the outside listens to the noise heading for your ear. A chip flips that noise upside down, turning every push into a pull. And a speaker on the inside plays the flipped version, the anti-noise, right next to your eardrum. The two add up and cancel. You are left with the quiet.

Below is a droning engine hum. Press play to suffer through it, then switch the cancellation on. The anti-noise floods in, the surface at your eardrum collapses toward flat, and the drone falls away.

drag to rotate
noise only
The surface here is what is left at your eardrum. With cancellation off it is the full engine hum. Switch it on and it nearly flattens. Drop the accuracy and the cancellation gets sloppy, because real microphones and speakers are never perfect.

Why it only kills the hum

If this worked on everything, the world would be silent on demand. It does not, and the reason is timing. To cancel a wave you have to play its mirror image at exactly the right moment. Get the timing wrong by even a fraction of the wave's length and your anti-noise stops subtracting and starts adding.

Low sounds, like an engine, have long slow waves, so there is plenty of time to measure them and fire back in step. They cancel beautifully. High sounds, like a voice, have tiny fast waves. By the time the chip has measured one and computed its opposite, the wave has already moved on, and the anti-noise lands in the wrong place. That is why your headphones mute the plane but not the baby two rows back.

Real headphones usually run two microphones, a feedforward mic outside that hears noise before it arrives and a feedback mic inside that listens to whatever is left and corrects the system's own mistakes. Good ones blend both. But none of it is magic. It is the same humble fact you heard a few figures ago, that two equal and opposite waves add up to nothing, executed very fast and very precisely a few millimeters from your ear.