You stop thinking about your ex by starving the loop, not by fighting each thought. Mute their social media, remove the reminders you control, and stop asking mutual friends for updates. Then give grief a set time, rebuild the routines they left behind, and let time do its part. The thoughts fade when you stop feeding them.
If your ex is living rent-free in your head weeks or months after the breakup, you are not broken. You are stuck in a loop, and loops can be broken with the right moves.
Why Your Brain Keeps Replaying the Relationship
Thinking about an ex constantly is not a character flaw or a sign you were meant to be together. A relationship is a web of habits: the morning text, the show you watched together, the person you told everything to first. When it ends, the cues stay but the person is gone, so your brain keeps reaching for them out of pure pattern. That reaching feels like longing, but much of it is just a habit looking for its old reward.
The trap is that rumination disguises itself as problem-solving. Replaying the last argument, rewriting what you should have said, decoding their final text — it all feels productive, but nothing gets resolved and the wound reopens each time. The goal is not to never think of them again, which is impossible and would only make you monitor yourself. The goal is to lower the frequency and intensity until the thoughts stop running your day. Trying to suppress thoughts by force tends to backfire, which is why the strategies below focus on changing inputs and responses rather than willpower.
Cut the Inputs That Feed the Loop
Every check of their profile, every scroll through old photos, every casual question to a mutual friend is a fresh hit that keeps the loop alive. You cannot heal from something you keep re-injuring. This is the least romantic part of getting over someone and the most effective: you have to stop the flow of new information about them, because your brain will spin a story out of every scrap it gets.
Picture the classic 1 a.m. scroll. You see a photo, read an entire narrative into a stranger's arm in the frame, and lose two hours of sleep over something that may mean nothing. The fix is boring and works: remove the doorway. If blocking feels too hostile or you share a circle, muting does the same job invisibly. If you share kids or a workplace, mute everything you can and keep the contact you must have strictly logistical.
The inputs worth cutting:
- Mute or unfollow their accounts so nothing reaches you uninvited
- Archive or delete the chat thread you keep rereading
- Move shared photos to a hidden folder or off your phone entirely
- Ask close friends, once, not to pass along updates about them
Grieve on Purpose Instead of All Day
The opposite mistake from wallowing is trying to stay busy every waking hour so you never feel anything. That usually just postpones the grief, and it leaks out anyway — at work, at the gym, at 2 a.m. A more useful approach is giving grief a container. Set aside fifteen or twenty minutes a day to write, cry, or sit with it. When a thought ambushes you outside that window, tell yourself you will get to it at the scheduled time. Surprisingly often, the urge passes before the appointment arrives.
Journaling works best when you write the honest version, not the highlight reel. Ask yourself what you actually miss — the person, or the routine and the feeling of being chosen? What was not working that your memory keeps editing out? Memory after a breakup is a biased narrator; putting the full story on paper corrects it. One limit worth naming: scheduled grief is a tool, not a cure. Some days it will help and some days it will feel pointless, and both are normal.
Rebuild a Life That Is Not Shaped Like Them
The thoughts have room to run because the relationship left a hole in your schedule. The Tuesday you cooked together, the weekend mornings, the person you debriefed your day with — those empty slots are where the loop lives. The fix is specific, not vague: do not just stay busy, fill the exact times that used to belong to them. A standing Thursday dinner with a friend, a class on the night you would normally be alone, a project that gives your evenings a shape.
This is not about winning the breakup or performing a glow-up for an audience of one. It is about giving your brain new patterns so the old cues lose their grip. If your habit was texting them every evening, replace the slot with a call to a friend or a walk at that same hour. Be honest about the trade-off: new routines feel hollow at first, and that is fine. They work through repetition, not through feeling meaningful on day one. You are building scaffolding, and scaffolding is ugly until it holds weight.
Handle the Triggers You Cannot Delete
Some cues cannot be muted: a shared friend group, your neighborhood, certain songs, the restaurant you both loved. For predictable ones, plan ahead. If they might be at a party, decide before you go what you will do — bring a friend who knows the situation, keep the interaction brief and polite, and give yourself permission to leave early. Deciding in advance beats improvising while your heart pounds.
For sensory triggers like a song or a place, you have two options. Short-term avoidance is completely acceptable while things are raw. Later, when you feel steadier, you can deliberately reclaim the trigger — go to that restaurant with friends and attach a new memory to it. The only real mistake is forcing exposure before you are ready, or avoiding so long that half your city becomes off-limits. Let your actual state, not pride, set the pace.
What to Do When a Thought Hits Anyway
Even with good habits, thoughts will ambush you in the shower, mid-meeting, or on the drive home. When one lands, do not argue with it or judge yourself for having it. Name it plainly — thinking about the breakup again — and then redirect to something physical: your breathing, the task in front of you, the next small thing that needs doing. The thought loses power when you stop treating it as an emergency that must be solved right now.
If the thought comes with an urge to text them or check their page, use a delay rule: wait twenty-four hours and write the message in your notes app instead of sending it. The midnight draft of hey, how are you almost always looks different by morning. Occasionally reaching out is genuinely warranted — shared logistics, a real conversation you both agreed to have — but make that decision in daylight with a clear reason, not at 1 a.m. with a lonely one.
When It Has Been a While and Nothing Is Changing
If months have passed and you are still stuck — not sleeping, struggling at work, unable to enjoy anything, or leaning on alcohol to get through nights — that is a sign to bring in support rather than try harder alone. Persistent rumination is a common, workable problem, and a therapist can help you break patterns that willpower has not touched. Reaching out is not an admission that the breakup broke you; it is the same move you would make for any problem that stopped responding to your own efforts.
Also calibrate your expectations. Progress is a trend, not a straight line, and a bad week at month four does not mean you are back at zero — anniversaries, songs, and random Tuesdays will still sting sometimes. What matters is that the hard days get further apart and shorter. One caveat worth stating plainly: if you are ever having thoughts of harming yourself, treat that as urgent and contact a crisis line or someone you trust immediately, not eventually.
Illustrative Scenarios
The 1 a.m. profile check
Three months after his breakup, Marcus was doing fine during the day but checking his ex's Instagram every night. When she posted a photo with someone's arm at the edge of the frame, he read it as proof she had moved on, drafted a message he never sent, and slept four hours. The next day he told a friend what happened, and the friend asked a simple question: what did checking ever get you besides a worse night? Marcus muted her account, moved his phone charger to the kitchen, and the nightly spiral lost its fuel within two weeks.
Key point: Every check is a fresh hit that restarts the loop. Cutting the input is not petty — it is how the loop actually dies.
The like that meant nothing
Six weeks after going quiet, Dana's ex liked one of her photos. She spent three days composing the perfect casual reply and polling friends on what it meant. One friend finally asked: if a stranger had tapped that heart, would you care? Dana realized the like cost him nothing and proved nothing — it was a reflex, not a message. She did not reply, the urge faded within days, and she later said the hardest part was admitting she had built a whole story on a single tap.
Key point: Ambiguous contact is data, not a door. Do not construct a reconciliation out of a gesture that took one second.
Frequently asked questions
How long does it take to stop thinking about an ex?
There is no fixed timeline, and anyone who gives you an exact number is guessing. In general, the intensity fades over weeks to months when you stop feeding the loop, with longer relationships usually taking longer. Occasional thoughts can pop up for years — what changes is that they stop hurting.
Is it petty to block or mute my ex?
No — it is a boundary, not a punishment. You are not obligated to stay informed about their life, and muting is invisible if blocking feels too hostile. Protecting your own recovery is a reasonable thing to do.
Should I stay busy or let myself feel sad?
Both, in structure. Pure distraction postpones grief and pure wallowing feeds it, so give sadness a set window each day and rebuild your routine around the rest. The combination works better than either extreme.
What if I have to see my ex because of work or kids?
Keep necessary contact brief, logistical, and preferably in writing, and apply the same input-cutting rules to every channel you can control. You cannot avoid the person, but you can avoid the extra exposure that keeps the loop fed.
Your next step
Tonight, do one concrete thing: mute or unfollow your ex and move your photos of them into a hidden folder. Then put one specific plan on tomorrow's calendar — a class, a call, a workout — in the time slot you used to spend on them.