Why do songs get stuck in your head? Because your brain hates an open loop, and a tune is the easiest open loop there is. A phrase of melody starts, the brain predicts where it goes, and if the ending never properly arrives, it replays the middle until something closes it. You didn't choose the song. You didn't even like it much. It just walked in, put its feet up, and started again from the chorus.
I think in systems, so let me draw this one as a diagram. There is a trigger: you heard the song, or something near it, or a smell, a word, a mood that lives next to it. There is a loop: a few seconds of music, repeating. And there is a missing exit condition. The thing loops because nothing tells it to stop. No wonder it feels like a bug. It is a bug, in the sense that a program stuck in a while loop is a bug, and for much the same reason.
The research, such as it is, backs the shape of this. Scientists call it involuntary musical imagery, which is a gloriously dry name for something that ruins your morning. The surveys keep landing in the same place: most people get it, they get it regularly, and the tune that sticks is rarely the whole song. It's the hook. The simple, repetitive stretch with one slightly unexpected turn in it, the bit built to be remembered by people who weren't trying to remember it. Songwriters spend careers aiming for that few seconds. The brain, being a thorough archivist, files it and then won't stop reading it aloud.
What makes it stranger is the delivery. Earworms don't arrive at random. They tend to turn up when your attention goes slack, in the shower, on a walk, in the queue for something. The mind has spare capacity, goes looking for something to do with it, and there's the tune, ready and waiting. Stress and tiredness seem to help it along. Which means a song that's been looping for three days is sometimes less a comment on your taste than a small flag. Something else is running in the background and the music is how it's showing up.
The fixes are exactly as unglamorous as the problem. Listen to the whole song, start to finish, and let it end properly. That's the loop closing, and it works more often than it has any right to. Give your brain something with real grip: a puzzle, a hard conversation, a task with edges. Some people swear by chewing gum, and there's modest evidence it interrupts the replay. What doesn't work is trying not to think about it. You can't delete a thought by staring at it. That just sends the chorus round again, louder.
I find the whole business oddly moving, and not only because it's annoying. A tune you can't place is a reminder that a lot of what's in your head arrived without your sign-off. Memory, mood, association, all of it running underneath, all of it occasionally surfacing as four bars of something you haven't heard since a car journey in a decade you'd rather not name. You are not as in charge of the interior as you'd like to be. Mostly that's fine. Occasionally it's the start of something stranger.
A novel about this
That "occasionally" is where I wrote The Soul Bank. Andy Clarke is a hardware consultant who spends one forgettable night in a business hotel and goes home with a tune in his head he can't place. It's the first thing that's wrong. The relationship starts to feel distant, the sleep gets worse, and the dreams get vivid in a way that makes his waking life look badly drawn. It's dark, literary and a bit unsettling, and the speculative part never stops being ambiguous, which is how I like it.
If you've ever lain awake with a melody on repeat and the feeling it was trying to tell you something, that's the book. And if you finish it still humming, well. That's your problem now.
FAQ
Why do songs get stuck in your head?
Because the brain is bad at leaving a musical phrase unfinished. Researchers call the experience involuntary musical imagery: a short, repetitive fragment replays on a loop, often triggered by recent exposure, a memory, or a mood. The loop tends to be the catchiest few seconds of a song, not the whole thing.
What makes a song more likely to become an earworm?
Simple, repetitive melodies with a slightly unexpected turn tend to do it, along with songs you have heard a lot recently. Fast tempo and a strong rhythmic pulse help. The tune doesn't need to be good. It needs to be easy to replay and just incomplete enough to keep asking for another pass.
How do you get a song out of your head?
Finishing the song helps, because it closes the loop the brain was chewing on. Listening to the whole track, or switching to something engaging like a puzzle or a conversation, also works for many people. Some studies suggest chewing gum can interrupt the replay. Fighting the tune directly usually makes it louder.
Is it normal to have the same song stuck in your head for days?
It is common, and usually harmless. Most people get earworms regularly, and they tend to fade within hours to a day. If a tune loops for days and you can't place why, it is worth asking what else is on your mind, since mood and stress seem to feed them.
Is there a novel about a tune you can't shake?
Yes. The Soul Bank by Adam Eccles opens with Andy Clarke, a hardware consultant who spends a forgettable night in a business hotel and comes home with a tune in his head he can't place, a relationship that feels distant, and dreams about a woman he has never met. It is dark literary fiction about what the unconscious holds on to.