Songs get stuck in your head because your brain’s auditory processing networks can activate on their own, replaying a short loop of music without any external trigger. This phenomenon, known as an earworm, happens to nearly 90% of people at least once a week. The loop is typically about 20 seconds long, and it repeats because your brain treats the melody like an incomplete pattern it keeps trying to finish.
What Happens in Your Brain During an Earworm
Researchers call this experience involuntary musical imagery, or INMI. Unlike choosing to recall a song, an earworm starts without your permission. It recruits a wide network of brain areas involved in perception, emotion, memory, and spontaneous thought. The regions most active during earworms sit in the right frontal and temporal cortices, the same areas that process sound and music when you’re actually listening to something. Your brain is essentially running the same program it would use for real music, just without any input from your ears.
People who experience earworms more frequently tend to have measurably thicker cortex in these auditory and frontal regions, along with differences in the anterior cingulate (a region tied to attention and focus) and the left angular gyrus (involved in language and memory retrieval). In other words, individual brain structure partly explains why some people can’t shake a tune while others rarely notice the phenomenon. How emotionally bothersome or enjoyable an earworm feels also has a physical correlate: gray matter volume in areas linked to emotional processing and memory differs between people who find earworms pleasant and those who desperately want them to stop.
Why Certain Songs Are Stickier Than Others
Not every song has earworm potential. Research published by the American Psychological Association identified two key musical ingredients that make a melody more likely to lodge itself in your brain: tempo and melodic shape.
Earworm songs tend to be faster. The average tempo of songs reported as earworms was about 124 beats per minute, compared to 116 bpm for songs that didn’t get stuck. That puts earworm territory right around the pace of a brisk walk or an upbeat pop track. Think “Bad Romance” by Lady Gaga or “Can’t Get You Out of My Head” by Kylie Minogue, both frequently cited earworm offenders.
Melodic contour matters even more than tempo. Songs that follow a familiar overall shape, rising and falling in ways that match common patterns in pop music, are far more likely to become earworms. About 80% of tunes with a highly typical melodic contour were identified as earworm songs in the study. Your brain seems to latch onto melodies that feel predictable at a global level because they’re easy to encode and replay.
Here’s where it gets interesting: within that familiar framework, the catchiest earworms also contain unusual interval jumps, unexpected leaps between notes that stand out from the norm. So the recipe for maximum stickiness is a melody that sounds broadly familiar but includes a few surprising moments. That combination gives your brain something easy enough to loop but novel enough to keep replaying, as if it’s trying to resolve the surprise.
Who Gets Earworms More Often
Almost everyone experiences earworms, but certain factors raise the frequency considerably:
- Heavy music listening. The more music you consume, the larger your library of potential earworm material. People who listen frequently simply have more melodic fragments available for their brain to pull up at random.
- OCD traits. Earworm frequency is strongly associated with obsessive-compulsive behaviors, including both physical repetitive actions like foot tapping and mental ones like counting or spelling. The same neural tendency toward repetitive loops appears to fuel both.
- Stress and anxiety. When your mind is under load, it seems to create openings for earworms. One theory is that a stressed brain, already cycling through repetitive worry, is primed for other kinds of mental repetition too.
Musicians and people who engage with music professionally report earworms more often than non-musicians, likely because their auditory networks are more developed and more easily triggered.
Why the Loop Won’t Stop
The 20-second segment that repeats is usually the catchiest part of a song, often the chorus or a hook. Your brain treats it like an open loop. Cognitive scientists compare it to the Zeigarnik effect: unfinished tasks occupy mental resources more than completed ones. If you only remember part of a song, or if the melody keeps circling back to its beginning without resolving, your brain keeps replaying it in an attempt to reach some kind of closure.
This is also why earworms tend to strike during low-demand activities like walking, showering, or doing chores. When your mind isn’t fully occupied, it defaults to spontaneous internal experiences. An earworm fills that cognitive idle time the same way daydreaming does.
How to Stop an Earworm
The most counterintuitive remedy with real evidence behind it is chewing gum. Research found that the jaw movements involved in chewing interfere with your brain’s “inner voice,” the same sub-vocal system that silently replays music. Chewing gum reduced the number of times participants consciously experienced a stuck song in both conditions where they tried to suppress the tune and conditions where they let it play freely. Importantly, the study tested whether any motor activity would work and found that simple finger tapping was less effective than chewing. The key isn’t just keeping busy; it’s specifically occupying the muscles and neural pathways involved in internal speech and sound.
Other strategies that tend to help:
- Listen to the full song. Since earworms thrive on incomplete loops, hearing the entire track from start to finish can give your brain the closure it’s seeking.
- Engage in a mentally absorbing task. Puzzles, conversations, or anything requiring verbal processing can crowd out the musical loop by competing for the same cognitive resources.
- Replace it with a different song. Swapping one earworm for another isn’t always ideal, but choosing a song with a clear ending or a slower tempo can help your brain let go more easily.
Trying to forcefully suppress an earworm tends to backfire, much like being told not to think about a white bear makes you think about it more. The most reliable approach is gentle displacement: give your auditory system something else to do rather than fighting the loop directly.