How to get rid of an earworm that won’t leave your brain alone

Your brain loops on earworms and anxious thoughts for the same reason — open loops feel urgent. Here’s what actually closes them.

How to get rid of an earworm that won't leave your brain alone
This post may contain affiliate links. For more information, please read our affiliate disclosure policy.

You know that feeling where a song burrows into your skull at 2am and just… stays there? Could be a jingle. Could be the hook from a song you don’t even like. Could be whatever was playing in the grocery store three days ago and your brain decided to keep forever.

I’m using earworm loosely here, because honestly the same thing happens with thoughts that won’t quit — the embarrassing thing you said in 2014, the argument you’re pre-having with someone in your head, the worry that shows up every single night like it pays rent.

Same brain, same problem, same fix. Here’s what actually works.

Why does your brain get stuck on one thing in the first place?

Your brain treats unfinished things as urgent — this is called the Zeigarnik Effect, and it’s the same reason you remember every task you didn’t finish today more clearly than everything you did. A song that stops before the chorus, a conversation that didn’t resolve, a worry with no answer yet? Your brain flags all of those as open loops. Open loops get replayed. Constantly.

This is not a personal failing. It is not anxiety being a drama queen (well, not entirely). It is your brain doing exactly what it was designed to do — just in the completely wrong context.

Does trying NOT to think about it actually make it worse?

Yes. One hundred percent yes, and there’s research from the late 1980s that confirms it. It’s called the White Bear Effect — tell yourself not to think about a white bear and now that’s all you can think about. The act of suppressing a thought requires your brain to constantly check whether you’re thinking about it. Spoiler: now you are.

So when someone tells you to “just don’t think about it” — yeah. Cool advice. Thanks.

Is there a difference between a song stuck in your head and a thought that won’t quit?

Kind of, but the mechanism is the same. Both are open loops your brain is trying to close. The difference is that a thought-loop can tip into rumination pretty fast — where you’re cycling through the same worry with no exit ramp and no plan. That’s not problem-solving. That’s just dread with extra steps.

Problem-solving has a destination. Rumination is just a room you’re trapped in. Learning to tell the difference fast — that’s actually the first useful skill here. The second you can label it as “this is just a loop, not useful information,” you’ve already taken a little bit of its power away.

What actually gets rid of an earworm?

Listen to the whole song. That’s the most direct fix and it sounds too simple to be real, but it works because it closes the loop. Your brain was stuck on the unresolved hook — give it the ending and it can file the song away.

If you can’t listen to it right then, try replacing it. Put on something with a strong, distinct melody — something your brain can grab onto. It won’t always work instantly, but it gives your brain a new open loop to chew on instead.

For thoughts that won’t quit, the fastest circuit breaker is goal-directed activity. Not scrolling — scrolling has no finish line and approximately one million new things to catastrophize about. Something with a clear endpoint: cooking from scratch, a run, reorganizing a single drawer, a puzzle. The reason this works is that goal-directed tasks use the same cognitive resources that rumination hogs. You genuinely cannot fully spiral AND figure out if the onions are done. One of those things wins. Make it the onions.

Does writing it down actually do anything?

Yes, and there’s real research behind this one too. Expressive writing — just dumping the thought onto a page without editing yourself — has been shown to reduce anxiety and help process difficult emotions. Here’s the part I find genuinely interesting: your brain keeps looping on an unresolved thought partly because it’s afraid of forgetting it. Writing it down signals that it’s been recorded. Filed. Safe to let go.

You don’t have to write beautifully. You can write “I am so annoyed and I don’t even fully know why” and that counts. The goal isn’t insight. It’s release.

In my old post about building a journaling habit that actually sticks, the main takeaway was: low bar, every single time. You don’t need a special notebook or a perfect system. You just need a pen and two minutes.

poll

What kind of earworm haunts you most?

pick your answer — no counts saved, just for fun

What about mindfulness — does that actually help or is it just Instagram fluff?

Mindfulness is so overused as a word that it’s basically stopped meaning anything. But here’s what it’s actually doing when it works: training your brain to notice a thought without immediately treating it as an emergency.

A song hook shows up. An anxious thought walks in. Mindfulness says: “huh, there’s a thought” — and that’s it. You don’t fight it. You don’t follow it. You just notice it and come back.

The entry point is boring on purpose: sit somewhere quiet, breathe, and when a thought shows up — notice it, don’t grab it. You will be bad at this at first. That’s not a bug, that’s literally the practice. I wrote about trying to build a real meditation habit from scratch and the short version is that five bad minutes a day beats zero perfect minutes every time.

When should you actually talk to someone about this?

If the loops are frequent, distressing, and eating into your actual life — yes, go talk to a therapist, specifically one who works with CBT or ACT approaches. Both are built specifically around the relationship between thoughts and behavior, not just “tell me about your childhood.”

There’s a version of this that’s totally normal human brain weirdness, and there’s a version that tips into OCD or an anxiety disorder. The line between them can be hard to spot on your own. Nothing here replaces real support if you genuinely need it. But what do I know? I’m just a blogger who spent years trying to out-think her own brain before realizing that wasn’t the move.

The goal was never to have zero earworms, zero anxious thoughts, zero weird loops. That’s not a goal, that’s a fantasy. The goal is to get faster at recognizing the loop — and then giving your brain something better to do.

Here’s the honest version: your brain is not broken. It’s just dramatic and really committed to finishing things.

Notice the loop. Name it. Give your brain an off-ramp — finish the song, write it down, go make something with your hands. And if none of that’s enough, go talk to someone. There’s genuinely no prize for white-knuckling it alone.

The onions aren’t going to cook themselves.

Frequently asked questions

How do you get rid of a song stuck in your head?
Listen to the whole song all the way through. Your brain is stuck on an unresolved loop — giving it the ending closes the loop. If you can’t listen right then, replace it with a song that has a strong distinct melody to give your brain a new hook to grab.
Why does a song keep playing in my head on repeat?
Your brain treats unfinished things as high priority — this is called the Zeigarnik Effect. A song that stopped before the chorus feels unresolved, so your brain keeps replaying it trying to finish it.
Does trying to not think about something make it worse?
Yes. Suppressing a thought requires your brain to constantly check whether you’re thinking about it — which means you’re thinking about it more. This is called the White Bear Effect and it’s been studied since the 1980s.
What is the difference between rumination and problem-solving?
Problem-solving has a destination — you’re thinking through something because you’re working toward a plan. Rumination is cycling through the same worry with no exit and no action. One has a door. The other is just a room you’re trapped in.
Does journaling help with intrusive thoughts?
Yes. Expressive writing — dumping the thought on a page without editing — signals to your brain that the thought has been recorded and can be let go. Research shows it reduces anxiety and helps process difficult emotions.
When should I see a therapist for thoughts that won’t stop?
If intrusive thoughts are frequent, distressing, and interrupting your daily life, that’s worth a conversation with a therapist — particularly one who uses CBT or ACT approaches. Both are specifically built around breaking the relationship between unwanted thoughts and behavior.
What is the fastest way to break a thought loop?
Give your brain goal-directed activity — something with a clear finish line like cooking, a run, or a puzzle. These tasks use the same cognitive resources that rumination requires, so your brain can’t fully do both at once.