Why Do Songs Get Stuck in Your Head? The Psychology of Earworms

Psychology & Habits Writer
Last updated: August 2026
8 min read

TL;DR
An earworm is what researchers call involuntary musical imagery: a short piece of music, usually a chorus or hook, that replays in your mind without being invited. Most people experience them regularly, and they are harmless. Studies suggest the tunes most likely to stick are fairly simple and repetitive, often with a small unexpected leap or rhythm that catches attention. They seem to loop through the same inner rehearsal system you use to hold a phone number in mind, and they show up more when your attention is idle or when a song was left unfinished. Research points to a few gentle fixes: chew gum, give your working memory a moderately demanding task, or simply listen to the song all the way through. The same machinery that loops a chorus is also what good learning uses on purpose.
Last week a jingle from a cereal advert I had not seen in years arrived in my head at seven in the morning and stayed until lunch. I had not heard it recently. I had not thought about it. It simply started playing, a few bars over and over, like a record with a scratch in it.
If that sounds familiar, you are in very good company. Surveys by music psychologists suggest that the large majority of people experience earworms, many of them every week. They are one of the most common and least discussed quirks of the human mind, and they turn out to tell us something useful about how memory works.
What an earworm actually is
Researchers use the rather formal term involuntary musical imagery, often shortened to INMI. It describes music you hear in your mind without deciding to. Typically it is a fragment, not a whole song: a chorus, a hook, sometimes a single line that repeats. It is not a hallucination, and it is not a sign that anything is wrong. For almost everyone it is a normal, mildly annoying feature of a healthy brain.
Most earworms are brief and fade on their own. Only a small number of people find them genuinely distressing, and for them it is worth talking to a professional. For the rest of us, they are a small window into the mind's habits.
Why some tunes stick more than others
Not every song becomes an earworm. Studies that compared frequently reported earworms with similar songs that were rarely reported found some common features. The sticky tunes tended to have a fairly simple, familiar melodic shape, the kind you could hum easily, combined with something slightly unusual, such as an unexpected jump in pitch or an interval that catches the ear.
That combination makes sense. Simplicity makes a tune easy to rehearse. A small surprise makes it distinctive enough to grab attention. Repetition, which pop music uses generously, gives it plenty of practice. Recent and frequent exposure matters too: songs you have heard a lot lately are more likely to return.
Context plays a role as well. A word, a place or a mood connected to a song can act as a cue. Someone says a phrase that matches a lyric, and suddenly the chorus is back.
The loop inside your working memory
Psychologists describe part of working memory as a phonological loop: a short inner rehearsal system that holds sounds and words by quietly repeating them. It is what you use when you keep a phone number in mind by saying it over and over.
Earworms appear to use the same kind of rehearsal. A fragment of music gets picked up and repeated in that inner loop, and because repeating it keeps it active, it keeps being repeated. This is also why some fixes work: if you give that system something else to hold, the tune has less room to play.
Unfinished tunes and the Zeigarnik effect
In the 1920s the psychologist Bluma Zeigarnik observed that people tend to remember interrupted tasks better than finished ones. The mind seems to keep incomplete things on a kind of mental to-do list. I wrote about this in detail in the Zeigarnik effect and unfinished learning.
Many researchers suspect something similar with earworms. We rarely have a whole song stuck in our heads. We have a piece of it, often one that loops back before it resolves. An unfinished fragment may feel like an open loop the mind keeps trying to close. That is the reasoning behind one of the simplest fixes below.
Why idle minds invite them
Earworms tend to show up during low demand moments: showering, walking, doing the dishes, lying awake. These are the same moments when the mind naturally wanders. When attention is not fully occupied, spare capacity gets filled by whatever is easily available, and a well rehearsed chorus is very easily available.
This is not a reason to fear quiet moments. As I explored in why boredom is good for your brain, idle time is also when a lot of useful thinking and connecting happens. An earworm is just one of the things a wandering mind picks up.
It also connects to how attention filters sound more generally. Your brain is constantly choosing what to focus on and what to ignore, something I looked at in the cocktail party effect. An earworm is, in a sense, a sound your brain has chosen to keep playing even though nobody is playing it.
Evidence based ways to get rid of one
There is no guaranteed off switch, but research and common experience point to a few gentle methods worth trying.
- 1Chew gum. Studies have found that chewing gum can reduce how often people hear an earworm, possibly because it interferes with the subtle mouth and throat movements linked to inner rehearsal.
- 2Give your working memory a moderately demanding task. A puzzle, an anagram or a focused bit of reading can crowd the tune out. Something too easy leaves room for it, and something far too hard makes the mind wander again.
- 3Listen to the song all the way through. If the unfinished loop idea is right, hearing the ending may help the mind let go.
- 4Try a cure song. Some people use a different, less sticky tune to replace the earworm. It works for some, though it can simply swap one earworm for another.
- 5Do not fight it too hard. Trying not to think of something can make it return more often. Gentle redirection tends to work better than suppression.
Turning the insight around
Here is the part I find most interesting. Everything that makes a chorus stick, simplicity, a small surprise, repetition over time and an open loop that asks to be closed, is exactly what good learning tries to do on purpose.
A lesson that tells a short story, adds one surprising detail and then asks you a question before you move on is borrowing the same machinery. So is reviewing an idea again a few days later. Earworms show how powerful involuntary rehearsal can be. Learning is what happens when you point that power at something you actually want to keep.
That idea shapes how we built MindSnap, which is our app, so take this as a disclosed mention rather than a neutral review. Its two minute story lessons end on a question, and features like Turning Points leave you with a choice to make before revealing what happened. Not quite as catchy as a cereal jingle, but considerably more useful to have stuck in your head.
Frequently asked questions
One snap tomorrow morning.
Two minutes in art, history, psychology, philosophy or economics, then the app tells you you're done.
Get MindSnap on iOSFree daily fact, forever. Pro is $9.99/month or $44.99/year.


