Why Do I Have Songs Stuck in My Head — Earworms Explained
It is 2 a.m. and you are lying in bed with the chorus of a song you heard six hours ago playing on a loop inside your skull. You did not choose to think about it. You do not even like the song. But there it is, cycling through the same eight bars with the persistence of a smoke alarm you cannot find. You hum along involuntarily. You try to think about something else. The song comes back. You try harder. It comes back louder.
This is not a quirk. It is not a sign that something is wrong with you. It is one of the most universal features of human cognition, and the research behind it reveals something surprising about how your brain handles sound, memory, and the space between them.
What is an earworm and why does almost everyone get them
Researchers call this experience involuntary musical imagery, or INMI. The colloquial name — earworm — comes from the German Ohrwurm, and the phenomenon is exactly what it sounds like: a short fragment of music, usually between fifteen and thirty seconds, that replays in your mind without your permission and resists your attempts to stop it.
The numbers are striking. A survey-based study led by Kelly Jakubowski, now a professor of music psychology at Durham University, found that over 90 percent of people experience earworms at least once a week. A Finnish study pushed the figure even higher, reporting that roughly 60 percent of people experience them daily. James Kellaris, a marketing professor at the University of Cincinnati who conducted some of the earliest systematic research on earworms, estimated that 98 percent of people have experienced them at some point.
This is not a niche phenomenon. It is a near-universal feature of the human mind.
The phonological loop — your brain's built-in replay button
The mechanism most researchers point to sits inside a model of working memory proposed by Alan Baddeley and Graham Hitch in 1974. Their model describes a component called the phonological loop — a short-term memory system with two parts. The first is a phonological store, sometimes called the "inner ear," which holds brief sequences of sound as memory traces that decay within a few seconds. The second is the articulatory rehearsal process, the "inner voice," which refreshes those traces by silently replaying them before they fade.
This is the system you use when someone tells you a phone number and you repeat it in your head until you can write it down. It is also the system that keeps an earworm alive. The melody enters the phonological store, the rehearsal process loops it, and the loop sustains itself because the act of rehearsing the fragment refreshes the very memory trace it is rehearsing. The system was designed for maintenance, and a catchy melody exploits that design perfectly.
A 2005 study by David Kraemer and colleagues at Dartmouth College demonstrated this vividly using fMRI. They played participants familiar songs, then introduced silent gaps. During those gaps, the auditory cortex remained active — the brain was filling in the missing music involuntarily. The participants could not help continuing the song in their heads. When the gaps fell during instrumental passages, activity spread deeper into the auditory processing stream, as though the brain was working harder to reconstruct the sound from memory.
Your auditory cortex, in other words, does not wait for permission to replay music. It just does it.
Why some songs stick more than others
Not all songs are equally parasitic. Jakubowski's research, published in Psychology of Aesthetics, Creativity, and the Arts in 2017, analysed the earworm reports of 3,000 participants and compared the most frequently named stuck songs against matched control songs that were equally popular but rarely reported as earworms.
Three features distinguished the earworms. First, they had faster tempos. Second, they used common melodic contours — the kind of rising-then-falling pitch patterns found across Western pop music, the same contour heard in "Twinkle, Twinkle, Little Star." Songs that follow a familiar melodic shape are easier for the brain to encode and, critically, easier to reproduce internally.
Third, and most interestingly, earworms contained unusual interval structures within that familiar contour — unexpected leaps in pitch, or more repeated notes than you would typically hear. The combination is what makes them stick: a shape the brain recognises, with a detail it cannot quite resolve.
"These musically sticky songs seem to have quite a fast tempo along with a common melodic shape and unusual intervals or repetitions." — Kelly Jakubowski, Durham University
The most reported earworms in Jakubowski's study included "Bad Romance" by Lady Gaga, "Can't Get You Out of My Head" by Kylie Minogue, and "Don't Stop Believin'" by Journey. Kellaris found that songs with lyrics accounted for nearly 74 percent of earworms, while purely instrumental music accounted for less than 8 percent — suggesting that the phonological loop's preference for verbal material gives lyrical melodies an advantage.
When earworms arrive — and what that says about your brain
Earworms do not strike at random. They appear overwhelmingly during states of low cognitive load — when the brain is not fully occupied.
A 2015 experience sampling study by Georgia Floridou and colleagues, published in the Quarterly Journal of Experimental Psychology, confirmed what most people intuitively know: earworms surface during showers, commutes, housework, and the drifting minutes before sleep. They are a product of mind wandering, and mind wandering is what the brain does when it has processing capacity to spare.
This matters because it reframes the earworm as a window into your cognitive state. When you notice a song looping in your head, what you are really noticing is that your brain's auditory working memory is underoccupied. The phonological loop is idling, and an earworm is what idle auditory processing sounds like.
This is also why earworms intensify at bedtime. Michael Scullin, a sleep researcher at Baylor University, published a study in Psychological Science in 2021 showing that people who listen to music before bed experience significantly more nighttime earworms, and those earworms are associated with worse sleep quality. Instrumental music, counterintuitively, was twice as likely to trigger sleep-disrupting earworms as vocal music. Scullin's polysomnography data showed that participants who experienced sleep earworms had more slow oscillations over the auditory cortex — a neural signature of memory reactivation. The sleeping brain was still rehearsing.
Why some people get earworms more than others
If earworms are universal, they are not equally distributed. Several personality and cognitive traits predict who gets them more frequently, more intensely, and with more difficulty letting go.
People who score higher on openness to experience — one of the Big Five personality traits — report more frequent earworms across multiple studies. Neuroticism is also positively associated with earworm frequency and, notably, with how bothersome earworms feel.
People with higher levels of subclinical obsessive-compulsive traits experience earworms more often and find them more distressing. The pattern is recognisable: the loop-and-resist cycle of an earworm mirrors the intrusive thought patterns characteristic of OCD. The harder you try to suppress the song, the stronger it returns — a phenomenon psychologists call the ironic process theory of mental control, first described by Daniel Wegner.
For people with ADHD, the connection runs through a different channel. Difficulty filtering irrelevant stimuli means that a catchy melody, once encoded, may get more airtime than it would in a brain with tighter attentional regulation. Excessive mind wandering — a hallmark of inattentive ADHD — creates more of the low-load cognitive gaps where earworms thrive.
Musicians, perhaps unsurprisingly, tend to experience earworms more frequently than non-musicians, though the research is not unanimous on this point. What is clearer is that musical training changes the character of the experience. Victoria Williamson, a music psychologist formerly at Goldsmiths, University of London, found in qualitative interviews that musically trained individuals reported earworms with higher fidelity — more accurate pitch, more complex arrangements, and concurrent motor imagery, as though their fingers were playing along.
The cognitive itch — why you cannot just stop
Kellaris proposed a theory that has become the dominant metaphor in the field. Earworms, he suggested, create a "cognitive itch" — a gap or unresolved pattern that the brain compulsively tries to close by rehearsing the fragment again and again. The itch is not in the melody itself. It is in the brain's relationship to the melody: the sense that the pattern is almost but not quite complete, that one more repetition might resolve it.
This maps neatly onto what we know about auditory working memory. The phonological loop is a maintenance system, not a resolution system. It keeps information alive but does not process it to completion. An earworm persists precisely because the loop does its job — maintaining the fragment — without ever reaching a point where the fragment can be filed away as finished.
It also explains why certain strategies work to dislodge earworms while others fail. In 2015, researchers at the University of Reading found that chewing gum reduced the frequency of earworm episodes by roughly a third. The mechanism is articulatory interference: chewing gum occupies the same motor circuits involved in subvocal rehearsal, disrupting the articulatory loop that keeps the melody cycling. Tapping fingers on a desk, by contrast, had no effect — because tapping does not engage the speech-motor system.
Other effective strategies involve engaging the phonological loop with competing verbal material: having a conversation, reading aloud, or listening to a different, complete song from start to finish. The goal is not to suppress the earworm but to replace it — to give the loop something else to hold.
What earworms reveal about your auditory processing
Through the lens of cognitive profiling, earworms are not just an annoyance. They are diagnostic — a naturally occurring signal about how your brain handles several dimensions of auditory cognition.
The first is phonemic processing. Earworms are fundamentally a phenomenon of sound representation. Your brain is recreating a melody from stored acoustic features — pitch, rhythm, timbre, and often the phonemic content of lyrics. The fidelity of your earworm, how clearly you hear the vocals versus a vague melodic contour, reflects how precisely your auditory system encodes and retrieves the sound structure of language and music. This is the same processing dimension that underlies phonemic awareness and that distinguishes how different brains decode spoken language.
The second is memory and sequencing. An earworm is a sequencing task. It involves holding a temporal pattern — notes in order, words in rhythm — and cycling through it. The strength and persistence of your earworms tell you something about the capacity and stickiness of your auditory working memory. People whose working memory holds onto auditory sequences tenaciously may experience more persistent earworms, but they may also excel at tasks that demand auditory recall: following multi-step verbal instructions, learning languages by ear, retaining spoken information without writing it down.
The third is attention and rhythm. Earworms exploit the gap between how much attentional capacity you have and how much your current task demands. They are, in a real sense, a readout of your brain's attentional surplus. People with highly variable attentional regulation — whose focus oscillates between deep absorption and idle drift — may experience earworms in sharp bursts that vanish the moment a demanding task arrives. Understanding this pattern is part of understanding your own attentional profile.
If you want to understand how your brain handles auditory information, working memory, and attentional regulation in a more structured way, CognitionType offers a dimensional cognitive assessment that maps these processing styles — not as diagnoses, but as a profile of how your particular brain encodes and manages information.
Do earworms serve a purpose
It is tempting to dismiss earworms as a glitch — a misfiring of a system designed for something else. But some researchers argue they may serve a functional role.
Earworms are a form of involuntary memory rehearsal. The phonological loop, when it replays a melody without your permission, is consolidating a memory trace. From an evolutionary perspective, the ability to hold and rehearse auditory patterns — bird calls, spoken warnings, rhythmic group signals — would have been adaptive. The earworm may be the modern, music-saturated version of a system that evolved to keep important sounds in mind.
There is also evidence that earworms can regulate mood. Williamson's interview studies found that many people reported positive associations with their earworms — the songs were comforting, energising, or linked to meaningful memories. The experience is not always unwanted. For some, it is the brain providing its own soundtrack, matching a song to an emotional state in a way that feels spontaneous and right.
The line between a pleasant earworm and a distressing one often comes down to perceived control. When the experience feels voluntary — a favourite song drifting through your mind on a good day — it is welcome. When it feels involuntary and uncontrollable, the same mechanism becomes an intrusion. The song does not change. The brain's relationship to it does.
What to do when an earworm will not leave
The research points to a few evidence-based strategies, though none is a guaranteed cure.
Engage your articulatory system with something else. Chewing gum works for many people because it disrupts the subvocal rehearsal loop. Having a conversation, reading aloud, or even silently reading demanding text can serve the same purpose.
Listen to the full song. One theory holds that earworms persist because the brain is replaying a fragment — an incomplete pattern that never resolves. Hearing the song through to its natural conclusion may allow the brain to close the loop and file the melody away.
Increase cognitive load. Switch to a task that demands your full working memory — a challenging puzzle, a complex conversation, a piece of writing that requires sustained concentration. Earworms thrive in the gaps. Fill the gaps and the earworm loses its foothold.
Accept rather than suppress. Fighting an earworm often strengthens it, for the same reason that trying not to think of a white bear makes you think of one more. Acknowledging the earworm without engaging it — letting it play without trying to stop it — can sometimes allow it to fade on its own.
If earworms are frequent enough, distressing enough, and resistant enough to these strategies that they interfere with sleep or concentration, that pattern may be worth exploring through a more formal assessment. Persistent, distressing earworms can overlap with auditory processing differences, anxiety, or obsessive-compulsive patterns that benefit from professional support.
The song in your head is your brain at work
An earworm is your auditory working memory doing exactly what it was built to do — maintaining a sound pattern, rehearsing it, keeping it available. The fact that the pattern is a pop chorus rather than a phone number is incidental. The machinery is the same.
What varies is how strongly that machinery grips, how easily it lets go, and how much of your attentional bandwidth it commandeers while it runs. Those variations are not random. They reflect real, measurable differences in how your brain processes sound, holds sequences, and allocates attention — dimensions of cognition that shape everything from how you read to how you listen to how you learn.
The next time a song gets stuck in your head, you are not broken. You are hearing your own cognitive profile in action.
CognitionType is an informational assessment tool, not a clinical diagnosis. If you suspect an auditory processing disorder, OCD, ADHD, or another condition that affects how your brain handles involuntary thoughts, we encourage you to seek a formal evaluation from a qualified professional.