Earworms are fragments of music that replay in your mind without you choosing to think about them. The experience, which researchers formally call involuntary musical imagery (INMI), usually involves a short section of a melody looping on repeat rather than an entire song playing start to finish. Nearly everyone gets them, and they’re a completely normal part of how your brain processes and stores music.
Why Songs Get Stuck in Your Head
Your brain doesn’t stop processing a song just because you’ve stopped listening to it. Earworms are closely tied to memory: hearing a melody creates a strong auditory imprint, and your brain can spontaneously replay that imprint hours or even days later. The experience typically pops up during low-focus moments, like commuting, showering, or doing routine chores, when your mind has spare capacity and starts wandering.
Triggers aren’t always musical. Stress, certain emotions, or even a single word that your brain associates with a song lyric can kick off an episode. Sometimes there’s no identifiable trigger at all. The melody simply surfaces into your conscious awareness uninvited.
Brain imaging research has linked earworm frequency to structural differences in regions responsible for sound processing, memory, and attention. People who get earworms more often tend to have thicker tissue in parts of the brain involved in auditory processing and emotional regulation. This doesn’t mean anything is wrong. It simply reflects natural variation in how brains are wired.
What Makes a Song “Sticky”
Not all songs are equally likely to become earworms. Research published by the American Psychological Association identified a specific recipe for stickiness: earworm songs tend to be faster in tempo, follow a melodic shape that’s common in Western pop music (making them easy to remember), but also contain something slightly unexpected, like an unusual leap between notes or a phrase that repeats more than you’d typically hear.
That combination of familiarity and surprise is the key. A melody that’s too predictable doesn’t leave a strong enough impression. One that’s too unusual is hard for your brain to hold onto. The sweet spot, the songs that burrow deepest, are the ones your brain can easily reconstruct from memory but that have just enough of a hook to make them stand out.
How Long Earworms Typically Last
A diary study from the British Journal of Psychology found that the average earworm episode lasts about 27 minutes, though there’s a wide range. In surveys, 88% of people reported earworms that persisted over a period of hours or longer. That said, recurrence beyond 24 hours is relatively uncommon for most people. The looping fragment is usually just a few seconds of music, but it can repeat enough times to make the experience feel much longer than it actually is.
When Earworms Become a Problem
For the vast majority of people, earworms are a mild annoyance at worst and sometimes even enjoyable. But in rare cases, the experience crosses into something more distressing. Researchers have described “stuck song syndrome,” where musical obsessions become intrusive, persistent, and difficult to control. This pattern can overlap with obsessive-compulsive disorder, particularly during periods of heightened stress or anxiety.
The distinction matters. A normal earworm is fleeting, doesn’t cause significant distress, and fades on its own or when you get absorbed in something else. A musical obsession feels impossible to stop, generates real anxiety, and interferes with concentration or sleep. If earworms are reaching that level, it’s worth exploring whether they’re part of a broader pattern of intrusive thoughts.
How to Get Rid of an Earworm
The most effective strategy is to engage your brain in a task that’s moderately absorbing. Research from the British Psychological Society found that tasks which are too easy leave your mind free to wander, giving the earworm room to grow. But tasks that are too difficult (like a very hard sudoku puzzle) can actually breed more earworms, possibly because the frustration and mental fatigue create more opportunities for the melody to intrude. The goal is something in between: engaging enough to occupy your attention without overwhelming it.
Chewing gum is another option backed by experimental evidence. A 2015 study found that the physical act of chewing interferes with the motor planning your brain uses to “hear” internal music. Participants who chewed gum reported fewer earworm episodes, and follow-up experiments confirmed this wasn’t just a distraction effect. The chewing specifically disrupted the mental machinery involved in replaying a melody.
Listening to the earworm song all the way through can also help. One theory is that earworms persist partly because your brain is trying to complete an unfinished musical phrase. Hearing the song to its end may satisfy that urge and let your brain move on. Replacing the earworm with a different, less catchy song is another common approach, though this carries the obvious risk of simply trading one earworm for another.