Why Do Songs Get Stuck in Your Head, and How Do You Get Them Out?
Quick answer
Earworms tend to be simple, repetitive melodies with just enough of an unusual twist, an odd interval, an unexpected rhythm, to be slightly hard for your brain to fully predict, which seems to be exactly what makes them loop. Stress, boredom, and an idle mind all make earworms more likely and more persistent, since a distracted or under-stimulated brain has more spare attention for an intrusive melody to grab onto. The most reliably reported fix is listening to the actual song all the way through, which appears to let the brain resolve whatever incomplete musical loop it was stuck trying to finish.
Want to try this yourself? Open the Focus page.
An earworm can hijack your attention for hours over a song you didn't even choose to think about, and the cognitive science behind why some songs do this so reliably is more specific than "catchy."
What makes a song "sticky"
Researchers studying earworms have found a consistent pattern: the songs most likely to get stuck tend to be simple and repetitive overall, but include one unusual element, an unpredictable rhythmic quirk or an interval jump that breaks from an otherwise easy-to-follow melody. That combination of familiarity plus a small twist appears to be exactly what keeps a melody looping in short-term auditory memory rather than fading out normally.
Why stress and boredom make it worse
Several studies link higher stress levels and more frequent mind-wandering with a higher rate of earworms and longer-lasting ones. The likely explanation is straightforward: an idle, understimulated, or anxious mind has more spare attentional capacity available for an intrusive melody to occupy, while a mind fully absorbed in a demanding task tends to have less room for one to take hold.
The strategy that actually works for most people
One proposed explanation for earworms is that they're partly the brain attempting to "complete" an incomplete musical memory, playing a fragment on loop because it never got resolved to an ending. Consistent with that idea, many people report that actually listening to the full song, letting it play out properly, is more effective at ending an earworm than trying to distract from it or suppress it, which can sometimes make the loop more persistent instead of less.
If an earworm is competing with your ability to focus, replacing it with a different steady auditory input can help redirect attention. Our Sounds mixer and Focus page both offer non-melodic background sound specifically because it doesn't compete with working memory the way another song would.