How to Get a Song Out of Your Head: The Science of Earworms
Why songs get stuck in your head and how to evict them: what earworm research says about playing it through, chewing gum, and why fighting back misfires.
By Kurt Woleret

Last Tuesday a stranger's phone played four seconds of a pop song on the subway platform. Four seconds. The track then installed itself in my head and ran on loop through two meetings, a deadline and most of a sandwich. I didn't choose the song. I don't even like the song. My brain simply decided this was the soundtrack now, the way a roommate decides the kitchen is where their bike lives.
The official term is involuntary musical imagery. The civilian term is an earworm, borrowed from the German Ohrwurm, and if you have one right now, I'm sorry for what the next paragraphs may reactivate. The good news: earworms are among the best-studied quirks of everyday cognition, and the research points to a few evictions that actually work, plus one popular strategy that reliably backfires.
Why songs get stuck at all
Earworms are nearly universal. When researchers surveyed people about stuck songs, almost everyone reported getting them, with most episodes lasting minutes to hours and only a minority experiencing them as genuinely unpleasant (Beaman & Williams, 2010, British Journal of Psychology). The songs that stick tend to be simple, repetitive and recently heard, often snagged by a trigger: a word that rhymes with the lyric, a rhythm in your footsteps, a stranger's ringtone on a subway platform.
The leading explanation is that a catchy fragment is an unfinished loop. Your auditory system is a prediction machine; give it half a chorus and it keeps generating the rest, the way your eye completes a circle that's missing an arc. The loop usually runs the hook, the catchiest eight bars, because that's the part your brain can reconstruct with the least effort and the most confidence. Low effort plus high confidence equals a tune that plays itself.
An earworm is an unfinished loop. Your brain isn't tormenting you; it's trying to complete a chorus you only half-loaded.
The eviction methods, ranked by evidence
First, and most counterintuitive: don't fight it. The same research tradition found that trying hard to suppress a stuck song predicts longer, more stubborn episodes, which is classic ironic process theory, the white bear problem with a backbeat (Beaman & Williams, 2010). The monitoring required to check whether the song is gone is itself a rehearsal. Every "is it still there?" is a replay.
Second: play the song all the way through. If the earworm is an unfinished loop, finishing it is the obvious patch. Listening to the full track, hook, bridge, outro and all, gives the brain the closure the eight-bar fragment was denying it. Anecdotally this is the most satisfying cure; it treats the song as a tab you close instead of an enemy you fight.
Third, and my favorite because it's ridiculous and evidence-backed: chew gum. Researchers found that vigorous gum-chewing after hearing catchy music reduced both the urge to "hear" the song and its spontaneous returns (Beaman, Powell & Rapley, 2015, Quarterly Journal of Experimental Psychology). The logic is mechanical: your inner singing borrows the same articulatory machinery you use to speak, and occupying the jaw and tongue with chewing jams the equipment the earworm needs to rehearse itself.
Fourth: displacement. Give the auditory loop a different job, ideally something moderately engaging. A different song can work as a cure tune, though pick a dull, gentle one or you've just changed tenants. Words work too: a podcast, a conversation, reading difficult prose aloud in your head. The sweet spot is moderate engagement; too easy and the loop runs under it, too hard and you abandon the task and the song floods back.
A field kit for the stuck-song emergency
- Shrug first. Most earworms fade within an hour if you grant them squatter's rights instead of waging war.
- If it's persistent, play the full track once, start to finish, and let the loop close.
- No headphones handy? Chew gum vigorously for a few minutes; it blocks the subvocal rehearsal the song runs on.
- Still looping at bedtime? Swap the channel: steady gentle audio or a boring mental task beats lying in silence with the hook.
Bedtime is the classic worst case, because a quiet dark room is an empty stage and the hook is a performer with nowhere else to be. This is where steady, textured sound earns its keep: rain, a low ambient wash, the soft looping soundscapes in Feelsy with autoplay on. You're not trying to overpower the song, you're renting the stage to a less demanding act, something with no chorus for your brain to complete. Slow visuals help for the same reason; a mind tracking a drifting texture has fewer cycles free to run the hook.
The reframe
Here's the dry consolation. An earworm is proof that your auditory memory is working beautifully: compressing a song into a fragment, storing it free of charge and reconstructing it on demand, just without your permission on the timing. The machinery that loops a bad chorus is the same machinery that lets a favorite song comfort you decades later from memory alone. The rent for that is an occasional pop song squatting in your skull through two meetings. Annoying, but as brain bugs go, this one's almost a feature.
Feelsy is a wellness product, not medical advice. If stress, anxiety or sleep problems persist, please speak with a qualified professional.
References
- Beaman, C. P., & Williams, T. I. (2010). Earworms (stuck song syndrome): Towards a natural history of intrusive thoughts. British Journal of Psychology, 101(4), 637-653.
- Beaman, C. P., Powell, K., & Rapley, E. (2015). Want to block earworms from conscious awareness? B(u)y gum! Quarterly Journal of Experimental Psychology, 68(6), 1049-1057.
Frequently Asked Questions
Why do songs get stuck in your head?
A catchy fragment behaves like an unfinished loop: your auditory system predicts and regenerates the hook because it's simple, repetitive and recently heard. Surveys show nearly everyone gets these earworms, usually triggered by recent listening, a related word or a rhythm, and most episodes fade within minutes to hours.
How do you get a song out of your head?
The best-supported moves are playing the full song once so the loop gets closure, chewing gum vigorously to occupy the speech machinery your brain uses to rehearse the tune, and displacing it with a moderately engaging task like a podcast or a dull, gentle cure song. Doing nothing also works; most earworms leave on their own within the hour.
Why does trying to ignore an earworm make it worse?
Actively suppressing a stuck song tends to lengthen the episode. Checking whether the song is gone requires replaying a bit of it, so every check is a rehearsal. Research on stuck songs links deliberate suppression attempts to longer and more stubborn earworms, which is the classic ironic process effect.
Does chewing gum really stop earworms?
There is real experimental evidence for it. In one study, people who chewed gum vigorously after hearing catchy music reported fewer involuntary returns of the tune and less urge to hear it. The proposed mechanism is motor interference: inner singing uses the same articulatory system as speech, and chewing keeps that system busy.
Why do earworms get louder at bedtime?
A quiet, dark room removes all competing input, so the loop gets an empty stage. Steady gentle audio such as rain or a soft ambient soundscape, or a boring mental task, gives your auditory system something else to track and usually beats lying in silence with the hook on repeat.

About the author
Contributing writer
Kurt is a New York based writer covering the practical science of stress, sleep and focus. He is the resident sceptic of the Journal: if a technique cannot survive a crowded subway commute and a deadline week, he is not interested in it.
Feel it for yourself.
Feelsy turns reading about calm into practising it. Two minutes of a slow texture is often the whole difference.
Related reading
ASMRWhy Lo-Fi Music Helps You Focus (It's Not the Vinyl Crackle)
Millions study to lo-fi beats, but why does it work? The research on background music, lyrics and attention, and how to build a focus soundtrack that helps.
ASMRWhy Podcasts Put You to Sleep Faster Than Silence
Press play, someone starts talking, you're out in ten minutes. Why podcasts knock you out faster than silence, and how to set them up so they help your sleep.
ASMRFrisson: Why Music Gives You Chills
Those shivers during a key change have a name: frisson. What happens in the brain when music gives you chills, and why some people feel them more than others.
ASMRTibetan Singing Bowls: Why an Old Bronze Bowl Calms a Modern Mind
Why Tibetan singing bowls calm the nervous system: their Himalayan history, what a small study measured about mood and tension, and how to begin at home.
ASMRWhy the Sound of Pouring Water Is So Soothing
Why the sound of pouring water is so soothing: what tea pourers have always known, what research says about water sounds, and how to listen on purpose.
ASMRPsithurism: Why the Sound of Wind in the Trees Calms the Mind
Psithurism is the whispering sound of wind through leaves. Here is why this natural broadband sound soothes the nervous system, and what research says about it.