How do noise-cancelling headphones erase sound?
They listen to the noise around you and play its exact opposite. The two sound waves cancel each other out before they reach your ear.
Sound is a wave of pressure. Noise reaches you as tiny pushes and pulls in the air. Each wave has peaks, where the air is squeezed, and valleys, where it's stretched.
The headphones make an anti-wave. A microphone on each ear cup hears the noise. A chip flips it, turning every peak into a valley, and the speaker plays the flipped wave. Peaks meet valleys and cancel. Scientists call this destructive interference.
Best on steady hums. Low, steady sounds like engine drone are the easiest to predict and cancel. Sudden or high sounds, like voices, are harder, so the soft ear cushions block those the old way.
Key words: destructive interference

Sources: Acoustical Society of America and Smithsonian National Air and Space Museum. How we check our facts
