Skip to content

Why Songs Get Stuck in Your Head: The Science of Earworms

You are washing dishes, commuting to work, or sitting quietly at your desk when suddenly a fifteen-second fragment of a song—perhaps a pop hook, a cartoon theme, or an old commercial jingle—begins looping relentlessly in your mind. No matter how hard you try to think of something else, the chorus replays on an infinite loop for hours. You have been hijacked by an earworm.

5 min readRead

In a Finnish survey of about 12,000 internet users, more than 90% reported an earworm at least once a week. Most people find them neutral or even pleasant, but a minority find them genuinely intrusive. What causes this bizarre cognitive glitch, why do certain songs trigger it, and what does science say about shaking one off?

What Is an Earworm?

The scientific term for an earworm is Involuntary Musical Imagery (INMI). The colloquial name comes from the German word Ohrwurm, coined to describe the sensation of a musical beetle crawling into your ear and nesting in your brain.

An earworm is not a full song; it is almost always a short, 10-to-30-second melodic fragment—usually a catchy chorus or vocal hook—that becomes trapped in a cognitive loop.

What Makes a Song "Earwormy"?

In a major study published by the American Psychological Association, music psychologist Dr. Kelly Jakubowski and her team analyzed thousands of earworms reported by the public (frequently citing songs like Lady Gaga's Bad Romance, Queen's Bohemian Rhapsody, and Don't Stop Believin'). They discovered that earworms share three structural traits:

  1. Simple, Arch-Shaped Melodic Contours: Earworm melodies tend to follow a simple pitch pattern: the notes rise in pitch, reach a peak, and then descend (a common arch shape found in nursery rhymes like Twinkle, Twinkle, Little Star). This structure is easy for the brain's memory systems to encode and recall.
  2. Unusual Interval Leaps or Rhythmic Shifts: While the general structure is simple, an earworm usually contains an unexpected musical "twist"—an unusual pitch jump or a syncopated rhythmic pause. This creates a subtle "itch" in the brain's auditory processing center.
  3. Upbeat Pace and Repetitive Structure: Songs with faster tempos designed for dancing or walking naturally match our internal motor rhythms, making them easier for the brain to play on repeat.

An earworm occurs when a simple, catchy melodic contour contains just enough unexpected rhythm to create a musical "itch" in the brain's auditory memory loop.

Why Your Brain Gets Stuck in a Loop

Earworms occur because of how working memory processes sound through the Phonological Loop—the inner voice you use to repeat a phone number or read silently.

Researchers have proposed two triggers; the first is a popular idea that hasn't been well tested, the second is better supported:

  • The Zeigarnik Effect (Unfinished Tasks): The idea is that your brain dislikes incomplete information. If you hear a song on the radio but it fades out or you leave the car before the song ends, your brain attempts to "complete" the musical thought by replaying the fragment over and over.
  • The Idle Brain (Default Mode Network): Earworms most frequently strike when your mind is idle, bored, or performing low-focus routine tasks (showering, folding laundry, walking). Diary studies consistently find this. One hypothesis is that when executive focus drops, the brain's Default Mode Network (active during mind-wandering) turns inward and pulls recent, catchy, or emotionally charged sound fragments from memory; that link is still being studied.

4 Ways to Shake an Earworm (and How Well Each Is Tested)

If a song is driving you crazy on loop, here are four things to try. The first and third have been tested in experiments; the other two come mainly from what people report works for them:

1. Chew Gum

In experiments at the University of Reading, researchers found that chewing gum reduced how often people heard a song in their heads. Chewing occupies the motor muscles of the jaw and tongue—the same sub-vocal articulatory apparatus your brain uses to "sing" the inner earworm in your head. Interrupting the motor apparatus disrupts the phonological loop.

2. Listen to the Entire Song

Many people report that listening to the actual song from start to finish ends the loop. If the unfinished-pattern idea above is right, it gives the brain the closure and final cadence it is searching for; this one rests mostly on self-reports.

3. Solve a Verbal Puzzle

Engage your working memory with a moderate cognitive task, such as a crossword puzzle, a word search, or an anagram. In experiments by Ira Hyman and colleagues, moderately hard anagrams reduced earworms best: if the task is too easy, the earworm persists; if it is too hard, the mind drifts back to the music. A moderate verbal puzzle displaces the phonological loop.

4. Play a "Cure Song"

In surveys run by Victoria Williamson's team at Goldsmiths, some people said they use a "cure tune" to push the earworm out; God Save the Queen was the most often named, followed by songs such as Karma Chameleon and Happy Birthday. This is self-report from small numbers of people, not a tested remedy.


Takeaways

Earworms (Involuntary Musical Imagery) are short melodic loops—usually just a hook or a chorus—created when catchy, arch-shaped melodies with subtle rhythmic shifts trigger the brain's phonological loop during idle moments. Possibly driven by the brain's urge to complete unfinished patterns (the Zeigarnik effect, a popular but little-tested explanation), earworms can be disrupted by chewing gum or a moderately hard verbal puzzle (both tested in experiments), and many people report success from listening to the full song.

Action step: Next time a song gets stuck in your head, pop a piece of gum in your mouth or open a crossword puzzle for three minutes to disrupt the brain's sub-vocal music loop.


Sources & Further Reading

Sources
- Kelly Jakubowski et al., "Dissecting an Earworm: Melodic Features of Involuntary Musical Imagery" (Psychology of Aesthetics, Creativity, and the Arts, 2017). Philip Beaman et al., "Want to block earworms from conscious awareness? B(u)y gum!" (Quarterly Journal of Experimental Psychology, 2015). Victoria Williamson's You Are the Music. Weekly prevalence: Lassi Liikkanen, "Musical activities predispose to involuntary musical imagery" (Psychology of Music, 2012), a survey of about 12,000 Finns. Puzzles: Ira Hyman et al., "Going Gaga: Investigating, creating, and manipulating the song stuck in my head" (Applied Cognitive Psychology, 2013). Coping and cure tunes: Williamson, Liikkanen, Jakubowski and Stewart, "Sticky tunes: how do people react to involuntary musical imagery?" (PLoS ONE, 2014), with the cure-tune list as reported by Discover magazine.

Go Deeper
- 📘 You Are the Music — Victoria Williamson (an engaging look at how music affects everyday cognition and memory)
- 📘 Musicophilia — Oliver Sacks (includes fascinating clinical cases of musical imagery and brain loops)
- 🌐 Goldsmiths University — Earworm Research Project
- 🌐 Related piece in this library: How Habits Actually Form (and break)


For Your Vocabulary

Involuntary Musical Imagery (INMI) (the scientific term for an earworm—a song or melody looping involuntarily in the mind) · Ohrwurm (the German word meaning "earworm," describing catchy music stuck in the head) · Phonological Loop (the component of working memory that handles verbal and auditory information) · Zeigarnik Effect (the psychological tendency for the human brain to remember and loop unfinished tasks or patterns) · Melodic Contour (the overall shape and direction of a melody as it rises and falls in pitch) · Default Mode Network (DMN) (the interconnected brain regions active when the mind is at rest or wandering) · Cadence (a melodic or harmonic configuration that creates a sense of resolution or finality at the end of a musical phrase) · Sub-vocal Articulation (the subtle, microscopic muscle movements in the speech apparatus when thinking or imagining sound)