Psychoacoustic masking happens when one sound, the masker, raises the ear's detection threshold for nearby frequencies so much that a second, quieter sound — the target — becomes completely inaudible even though its physical energy is well above the threshold of hearing in silence. This is not a flaw in hearing; it is how the cochlea's overlapping frequency filters (the "critical bands") work, and it is the single biggest reason lossy audio codecs like MP3 and AAC can throw away most of a signal without anyone noticing.
AUDIBLE. When it falls under the shaded volume beneath the curve it dims and is marked MASKED — inaudible in the presence of the masker.Lossy audio compression exploits masking directly: encoders estimate a masking threshold for every short time-frequency block and allocate almost no bits to anything predicted to be inaudible, which is how a 5-minute song can shrink from 50MB to 4MB with no audible loss.
A loud masker tone and a quiet target tone are placed on a 3D frequency-versus-loudness spectrum. A purple masking-threshold ribbon, computed from a Bark-scale spreading function, shows exactly when the target tone's energy drops below what the ear can still detect.
The masking threshold is not flat — it spreads asymmetrically around the masker frequency, reaching further upward than downward, because that's how the cochlea's critical-band filters overlap. Any tone whose spike falls under the shaded volume is inaudible.
Move the masker and target frequency/level sliders and watch the threshold ribbon and the AUDIBLE/MASKED status update live. Press "Play tones" to hear both sines together through the Web Audio API.
MP3 and AAC encoders run essentially this same calculation thousands of times per second, discarding any frequency component predicted to be masked so the compressed file can be a fraction of the size with no audible difference.