onomo is in open beta — help us shape the future of music production.Learn more
All articles
Music Theory6 min read

The Science of Earworms: Why Songs Get Stuck in Your Head (and How to Evict Them)

That song looping in your brain right now isn't random. Researchers studied 3,000 people's earworms and found the exact melodic ingredients that make a tune sticky — plus a genuinely tested trick to make it stop.

The Onomo Team·
The Science of Earworms: Why Songs Get Stuck in Your Head (and How to Evict Them)

Right now, there's a decent chance a song fragment is looping somewhere in the back of your mind. Maybe it's been there since this morning. You didn't choose it, you can't quite turn it off, and it's probably just a few seconds of the chorus on repeat. Congratulations: you have an earworm — and it turns out scientists have studied exactly why it happens.

The technical name is involuntary musical imagery, and it's one of the most common experiences in human cognition — over 90% of people get earworms at least weekly. The fascinating part, for anyone who makes music, is that the songs that get stuck aren't random. They share specific, measurable musical features. Researchers found the recipe.

The study that cracked it

In a widely-cited piece of research, a team led by psychologist Kelly Jakubowski asked 3,000 people to name the tunes that most often got stuck in their heads, then compared those earworm songs against equally popular, equally recent songs that nobody named as earworms. By analyzing the melodic differences, they isolated what actually makes a tune sticky (APA; ScienceDaily).

Three ingredients stood out:

1. A faster tempo. Earworms tend to be upbeat. The brain seems to latch onto music that moves at a brisk, energetic pace — it's hard to get a slow ballad stuck on loop the way an up-tempo hook lodges itself.

2. A common, easy melodic shape. This is the big one. Earworms tend to follow a familiar melodic contour — the overall up-and-down shape of the notes (Lesson 4 and Lesson 8 of our course are all about this). The classic example is "Twinkle, Twinkle, Little Star," where the first phrase rises and the second falls — a shape so common and natural that countless nursery rhymes use it. Easy contours are easy for the brain to replay.

3. Unusual intervals or repetitions — a little twist. This is where it gets interesting: a sticky song has a common overall shape but with some distinctive, slightly-unexpected leap or repeated phrase that sets it apart. Jakubowski points to the opening riff of "Smoke on the Water" by Deep Purple and the chorus of "Bad Romance" by Lady Gaga — familiar enough to follow, surprising enough to stand out.

In other words: familiar shape + a memorable surprise = stuck in your head. Which, if you think about it, is the exact recipe for a great hook in the first place.

Why your brain does this at all

The leading theory is that earworms live in a kind of cognitive itch. Your brain has a powerful pattern-completion drive — and music is built on repetition and expectation (our whole lesson on tension and release is about this). When you hear a catchy fragment, your memory grabs it, but often grabs an incomplete loop — usually about 15–30 seconds, frequently the chorus. Your brain, hating an unfinished pattern, keeps replaying it trying to "resolve" it, and the loop sustains itself.

Earworms also love an idle or lightly-occupied mind. They tend to strike when you're doing something automatic — walking, showering, chores — because there's mental room for the loop to run. Stress and recent exposure (you heard the song earlier) make them more likely too.

How to actually get rid of one (this was tested)

Folk remedies abound, but one cure has real experimental support — and it's delightfully simple: chew gum.

Researchers at the University of Reading played participants sticky songs ("Payphone" by Maroon 5 and "Play Hard" by David Guetta) and then asked them not to think about the tunes. The group that chewed gum reported "hearing" the song significantly less than groups who sat still or just tapped a finger (ScienceDaily; PubMed).

Why does it work? When a song is stuck, you're subtly, unconsciously "singing along" in your head — which quietly activates the same jaw and mouth motor-planning you'd use to actually sing. Chewing gum occupies that same motor machinery, jamming the signal. The researchers call it "interfering with articulatory motor programming." Your brain literally can't sub-vocalize the loop while your jaw is busy chewing.

A few other research-backed evictions:

  • Finish the song. Listen to the whole track, start to end. Remember the unfinished-loop theory? Completing the pattern can let your brain mark it "done" and release it.
  • Engage your mind, but not too much. A moderately demanding task (a puzzle, a conversation) crowds out the loop. Too easy and there's still room for it; too hard and your mind wanders right back.
  • The "cure tune." Some people swap the stuck song for a different, equally-catchy one — though you risk simply trading earworms.
  • Stop fighting it. Studies on thought suppression find that trying not to think of something often keeps it active. Letting it fade on its own frequently works faster than forcing it out.

The takeaway for people who make music

There's a useful lesson buried in the silliness here. The features that make a song an earworm — a singable contour, a touch of repetition, one distinctive twist, energy — are not mystical. They're the same melodic and rhythmic principles any producer can learn and apply. When you write a hook that follows an easy shape but lands one surprising, memorable move, you make it catchy and you make it stick. Earworm-craft and hook-craft are the same craft.

So the next time a song burrows into your skull for three days, don't just curse it — study it. Why is that fragment so sticky? What's the shape? Where's the twist? That annoying loop is a free masterclass in what makes melody memorable. (And then, mercifully, go find some gum.)

Ready to try it yourself?

Onomo is a full DAW in your browser — synths, drums, effects, and export. Free to start, nothing to install.

Write your own earworm in the Studio