How to Stop Thinking About Your Ex (According to Science)

A woman sitting by a large window at dusk, gazing out at the city below

Photo by Jin H

The fastest way to stop thinking about your ex is to stop fighting the thoughts and start redirecting them. Research shows that trying to suppress a thought makes it come back stronger, while two other strategies, distraction and reappraisal, measurably reduce how much your brain locks onto reminders of an ex. Add a few environment changes, some digital hygiene, structured journaling, and regular movement, and the thoughts lose their grip week by week.

That is the short version. The longer version matters, because most people spend months doing the one thing that science says backfires. Let’s fix that.

Why you can’t just will the thoughts away

In a famous 1987 experiment, psychologist Daniel Wegner asked people to avoid thinking about a white bear for five minutes. They couldn’t. Worse, once they were allowed to think about the bear, they thought about it far more than people who had never suppressed it at all.

This is called ironic process theory, and brain imaging backs it up. Electrophysiological studies show that when you actively suppress a thought, the suppressed concept stays more active in your brain than thoughts you process normally, and it rebounds harder once your guard drops.

Here is what that means for you: every time you grit your teeth and think “stop thinking about them,” part of your mind has to keep checking whether you’re thinking about them. That monitoring keeps your ex on a mental loop. The thoughts feel involuntary because, in a real sense, they are.

There is also a biological layer underneath. Romantic attachment activates the same reward circuitry as addiction, which is part of why breakups hurt so much and why your brain keeps reaching for its familiar source of reward. You are working against wiring, and wiring responds to strategy, patience, and repetition rather than willpower.

The two strategies that actually work

In 2018, researchers Sandra Langeslag and Michelle Sanchez ran one of the few experiments to directly test how people can down-regulate love feelings after a breakup. Heartbroken participants looked at photos of their exes while trying different mental strategies, and the researchers measured both their feelings and their brain responses.

Three strategies were tested:

StrategyWhat it looks likeEffect on love feelingsEffect on mood
Negative reappraisalListing your ex’s flaws and the relationship’s real problemsDecreasedBriefly more unpleasant
Love reappraisalAccepting the feelings without judging them (“It’s okay to still love them”)UnchangedNeutral
DistractionDeliberately thinking about something unrelated and pleasantUnchangedImproved

The most striking finding: all three strategies reduced the brain’s motivated attention toward the ex, measured by a dip in a neural signal called the late positive potential. In plain language, practicing any of these made the ex less magnetic to the participants’ attention.

So use them as a pair. Negative reappraisal weakens the attachment itself: when your mind drifts to a highlight reel, deliberately recall the incompatibilities, the arguments, the needs that went unmet. It stings in the moment, and that is a sign it is working on the right target. Distraction lifts your mood so you have the energy to keep going: queue up the podcast, call the friend, start the task that absorbs you.

Interrupting the loop in the moment

Strategies need a delivery mechanism, because rumination rarely announces itself. A trick from habit research called an implementation intention gives your brain a pre-loaded response: “When X happens, I will do Y.”

A few that work well after a breakup:

  • When I catch myself replaying a memory, then I name three things I can see and hear around me right now.
  • When I feel the urge to check their profile, then I open my journal app and write one sentence about today instead.
  • When the “what did I do wrong” spiral starts, then I stand up and change rooms.

Two more tools worth having. First, scheduled worry time: give the breakup 15 dedicated minutes a day to be thought about fully, and when thoughts arrive outside that window, remind yourself they have an appointment. This respects the brain’s need to process while shrinking the loop’s territory. Second, get perspective on the thought itself. Clinicians recommend asking whether the thought is solving anything: rumination disguises itself as problem-solving, but replaying the same scene for the fortieth time has no new information in it.

Change what your brain keeps bumping into

Memory is cued by context. If your apartment, your phone, and your routines are full of triggers, your brain will keep retrieving your ex the way a search engine autocompletes a familiar query.

The physical environment

You do not need to burn everything. Boxing up photos, gifts, and their belongings and moving the box out of sight is enough to remove the retrieval cues. Rearrange the furniture in the rooms you shared most, sleep on the other side of the bed, and change one or two anchor routines, like where you get your morning coffee. Small novelty tells your brain this is a new chapter with new predictions to make.

The digital environment

Digital cues are more relentless than physical ones because an algorithm actively serves them to you. Mute or unfollow your ex, their close friends, and accounts that surface couple content. Archive the photo albums rather than scrolling them one last time. Turn off memories notifications for a while.

If you are still texting or checking their activity, this is where the no contact rule earns its reputation. Every check is a fresh cue, and every fresh cue restarts the loop you are trying to close. Structure helps here: a no contact tracker turns an abstract intention into a streak you can protect.

Write the thoughts down instead of circling them

Rumination is repetitive and formless. Writing forces thoughts into sequence, and that structural difference is why expressive writing has decades of evidence behind it while brooding has none.

The key is writing with guardrails. Open-ended venting can slide back into rumination on paper, so use bounded sessions of 15 to 20 minutes, write about the experience from an observer’s perspective, and work toward a narrative with a beginning, middle, and end. Our guide to breakup journal prompts walks through the full method, and the guided journals in After Us are built around the same research, so you always have a prompt pulling the writing forward instead of a blank page inviting a spiral.

Journaling also pairs naturally with the reappraisal strategy above. A running list titled “things I don’t miss” is negative reappraisal in written form, and it is remarkably useful reading at 11pm.

Move your body, quiet the loop

Exercise reliably improves mood after a breakup, and one specific finding deserves more attention. In a Stanford study, participants who took a 90-minute walk in a natural setting showed reduced rumination and decreased activity in the subgenual prefrontal cortex, a brain region tied to brooding and self-focused negative thought. Participants who walked the same length of time along a busy road showed no such change.

You do not need a forest or 90 minutes. The practical takeaway is that movement plus a change of scenery, ideally with some green in it, works on rumination directly. A daily walk in a park is a legitimate anti-rumination intervention, and it stacks with everything else on this list.

When the thoughts need more than self-help

Intrusive thoughts about an ex are a normal part of grieving a relationship, and for most people they fade over weeks to months. Sometimes they need professional support instead. Reach out to a therapist or doctor if:

  • The thoughts are still constant and distressing after several months, or they are intensifying
  • You are losing sleep, missing work, or withdrawing from people because of them
  • The thinking has shifted toward monitoring, following, or repeatedly contacting your ex
  • You have symptoms of depression or anxiety, or any thoughts of harming yourself

Cognitive behavioral therapy has a strong track record with rumination specifically, and a therapist can help untangle whether the loops are grief, anxiety, or something like obsessive rumination that responds to targeted treatment. Asking for help with this is a sign you are taking your recovery seriously.

If you are in crisis or having thoughts of self-harm, contact a crisis line such as 988 in the US, or your local emergency services, right away.

The bottom line

You cannot delete thoughts of your ex, and the science says you should stop trying, because suppression feeds the loop. What you can do is redirect: reach for distraction to steady your mood, use negative reappraisal to loosen the attachment, interrupt spirals with if-then plans, clear the physical and digital cues from your daily life, journal with structure, and walk somewhere green.

None of these erases a person from your memory, and that was never the goal. The goal is for the thoughts to lose their pull, so that one ordinary afternoon you notice they simply visited less. That day comes sooner than the loop wants you to believe.