When a song loops in your head for hours, your brain is essentially running a short recording on repeat in its short-term memory system. Nearly 90% of people experience this at least once a week, and the typical loop lasts only 15 to 30 seconds of a song, not the whole thing. The phenomenon has a formal name, involuntary musical imagery (INMI), but most people just call it an earworm. It’s one of the most universal quirks of human cognition, and the reasons behind it involve a specific memory loop in your brain, the musical structure of the song itself, and whatever you happened to be doing or feeling when it lodged itself in there.
The Short Loop of Tape in Your Brain
Your auditory cortex, the part of the brain responsible for processing sound, sits in the temporal lobe alongside key short-term memory circuits. Within that region is something researchers call the phonological loop: a small-capacity memory system that works like a brief recording on repeat. It’s designed to hold a few seconds of auditory information, which is exactly why earworms tend to be a chorus or a single melodic phrase rather than a full song.
Brain imaging studies at Dartmouth found that when people listen to a song, their left primary auditory cortex lights up. The striking part: the same area activates when people merely imagine the song, or when researchers remove a chunk of a familiar tune and let subjects mentally fill in the gap. Your brain treats the imagined version almost like the real thing, which is why an earworm can feel so vivid and persistent. The phonological loop keeps refreshing the fragment, and each mental repetition doesn’t weaken the loop. It actually reinforces it, extending the song’s stay. Researchers describe this as a “cognitive itch,” a sensation where the act of scratching only makes it itchier.
What Makes a Song Sticky
Not every song becomes an earworm. Research published by the American Psychological Association analyzed the melodic features of songs that get stuck versus songs that don’t, and found several consistent patterns. Earworm songs tend to be faster, averaging around 124 beats per minute compared to about 116 bpm for non-earworm songs. They also use longer note durations and smaller jumps between pitches, creating melodies that feel smooth and singable.
The melodic shape matters too. Songs most likely to get stuck have what researchers call a “common global contour,” meaning their phrases follow a familiar arc that rises and falls in a way your brain already expects from years of hearing pop music. Think of melodies that build to a peak and then descend. About 80% of the tunes matching this contour pattern in the study were identified as earworms by participants. But there’s a twist: if a melody doesn’t follow the standard arc, it can still get stuck if it contains something unusually distinctive, like unexpected leaps between notes or a pattern that repeats the same pitch. So the formula is either “sounds like everything you’ve heard before” or “sounds like nothing you’ve heard before.” The forgettable middle ground is what stays out of your head.
What Triggers an Earworm
The most obvious trigger is simply hearing a song recently. But earworms don’t require direct exposure to start. Surveys on earworm triggers have found several common pathways:
- Association. Contact with a specific person, place, word, or rhythm linked to the song. Sometimes the connection is obvious (hearing someone’s name that appears in a lyric), sometimes surprisingly obscure.
- Memory. Driving down the same road where you first heard a song, returning to a restaurant, or encountering any context your brain associates with the music.
- Anticipation. Thinking about an upcoming event, like a concert or a party, can cue related songs.
- Mood and stress. Emotional states can pull songs from memory, particularly songs tied to similar feelings.
- Low attention states. Boredom, drowsiness, or routine tasks leave your brain with unused processing capacity, and earworms tend to fill that gap.
That last trigger explains why earworms so often strike during commutes, showers, or mindless chores. When your brain isn’t occupied with something demanding, it’s more likely to retrieve and replay stored musical fragments on its own. Researchers frame earworms as a type of involuntary memory retrieval, the same basic process that causes old memories to surface unbidden when you encounter a familiar smell or location.
Why Your Brain Won’t Let Go
One leading theory borrows from a concept in psychology called the Zeigarnik effect: your brain is better at remembering incomplete tasks than completed ones. When you only remember a fragment of a song (say, the chorus but not the verse), your brain may keep looping it because it senses something unfinished. This is why a common piece of advice for breaking an earworm is to listen to the entire song from start to finish. The idea is that hearing the song resolve gives your brain the sense of completion it was looking for.
Certain musical qualities also exploit this. Songs with repetitive structures, unexpected rhythmic patterns, or unusual intervals can trigger what researcher James Kellaris describes as “an abnormal reaction in the brain,” where the song’s properties compel your auditory system to keep paying attention to it. The more attention you give it, the more the phonological loop reinforces it.
When Earworms Become a Problem
For most people, earworms are mildly annoying or even pleasant. But for some, they cross into genuinely distressing territory. People who find earworms highly stressful and disruptive are more likely to also experience symptoms associated with obsessive-compulsive disorder. In clinical literature, severe cases are sometimes called “stuck song syndrome,” and they can interfere with sleep and daily functioning.
Those most at risk for problematic earworms include women, younger people, and individuals with OCD. In OCD, earworms function as intrusions, a subtype of obsession where unwanted thoughts repeat despite efforts to stop them. For the vast majority of people, earworms are a normal and harmless feature of how the brain processes music. But if they’re causing significant distress or disrupting your ability to concentrate or sleep on a regular basis, that pattern is worth mentioning to a healthcare provider, particularly if other repetitive or intrusive thoughts are present.
How to Get a Song Unstuck
Since earworms rely on the phonological loop and your auditory processing circuits, the most effective strategies work by redirecting those same brain resources toward something else.
Chew gum. This one sounds odd, but a study published in the Quarterly Journal of Experimental Psychology found that chewing gum reduced both voluntary and involuntary musical thoughts. The mechanism appears to involve articulatory motor programming, essentially the brain systems you use to silently “speak” or “sing” along with music. Chewing occupies those same motor circuits, making it harder for the earworm to maintain its loop.
Engage in a moderately demanding task. Solving anagrams, reading something absorbing, or having a real conversation can pull your brain’s resources away from the loop. The key is “moderately” demanding. Tasks that are too easy leave room for the earworm, while tasks that are too hard can increase stress and potentially make it worse.
Listen to the full song. If your brain is looping a fragment because it feels incomplete, playing the entire track from beginning to end may provide the closure your auditory memory needs to let go.
Replace it with another song. Playing a different piece of music can overwrite what’s currently stuck. The risk, of course, is trading one earworm for another, so choosing something you find pleasant but not overly catchy can help.
Try not fighting it. A mindfulness-based approach, simply noticing the earworm without trying to suppress it, can sometimes let it fade on its own. Actively trying to push a thought away tends to make it more persistent, a well-documented pattern in psychology called the “white bear” effect.

