Breakups are rarely clean, and the mental aftermath can often feel like an endless loop. If you find yourself constantly replaying old conversations, analyzing what went wrong, or checking their social media profiles, you are experiencing rumination.
Moving on isn’t about magically erasing your past or pretending the relationship never happened; it is about retraining your brain to live in the present.
To stop thinking about your ex, cut off all contact and triggers, practice mindfulness to redirect your brain when memories pop up, and focus on physical and personal habits in the present.
When a relationship ends, your brain goes through a literal withdrawal process from the chemical bonds of attachment.
By understanding the psychology behind these breakup loops and applying highly structured behavioral changes, you can systematically break the cycle.
Here is a comprehensive, actionable guide on how to stop thinking about your ex.

1. Cut the Triggers (Starve the Chemical Habit Loop)
During a relationship, your brain becomes accustomed to regular hits of dopamine and oxytocin associated with your partner. When that connection ends suddenly, your brain craves a fix.
This biological deficit drives the urge to check up on them. Breaking this habit loop requires strict, non-negotiable boundary setting to allow your neurochemistry to stabilize.
Execute a Strict No-Contact Rule
Go beyond just avoiding texts. Block their phone number, unfriend them on Facebook, and block or restrict their profiles on Instagram, TikTok, and LinkedIn.
If you have mutual friends, explicitly ask them not to give you updates on your ex’s life.
If you must co-parent or work together, limit communication strictly to logistics using structured tools like email or dedicated co-parenting apps, keeping messages brief and entirely transactional.
Purge Your Environment of Physical Reminders
Gather every item that triggers a memory—clothing, gifts, physical photographs, concert tickets, and even specific fragrances.
If you aren’t ready to throw them away, place them in a sealed box and store it in an inaccessible place, such as a friend’s attic or a high garage shelf.
Out of sight genuinely helps keep them out of mind.
Digital Decoupling
Delete old text threads, archive or hide shared photo albums on your phone, and remove them from your emergency contacts list.
If your phone automatically surfaces “On This Day” photo memories, turn off those notification features in your settings immediately.
Every time you re-read an old message, you actively fire and reinforce the neural pathways you are trying to weaken.
2. Manage Intrusive Thoughts with Mindfulness
You cannot always control when a random memory or painful thought pops into your head, but you have absolute control over how long you sit and negotiate with it.
Treating thoughts as temporary events rather than absolute realities stops the exhausting cycle of mental bargaining.
Acknowledge Without Judging or Fighting
When a memory surfaces, do not beat yourself up or panic. Suppressing a thought only makes it bounce back stronger.
Instead, label it objectively. Say to yourself, “I am having the thought that I miss my ex right now.” Recognizing it as a passing mental event strips away its emotional power and allows it to drift away naturally.
Deploy the 5-4-3-2-1 Grounding Technique
When you feel a mental spiral or anxiety attack coming on, force your brain to process immediate sensory data.
Name aloud five things you can see around you, four things you can physically touch (like your clothes or a desk), three distinct things you can hear, two things you can smell, and one thing you can taste.
This exercises your prefrontal cortex, pulling blood flow away from the emotional centers of the brain.
Regulate Your Nervous System with Breathwork
Intrusive thoughts often trigger a physical stress response, such as a racing heart or a tight chest, which your brain misinterprets as a sign to keep worrying.
Break this feedback loop by practicing “box breathing.”
Inhale deeply through your nose for 4 seconds, hold your breath for 4 seconds, exhale slowly through your mouth for 4 seconds, and hold empty for 4 seconds.
Repeat this cycle four times to physically force your nervous system back into a calm state.
[Read: My Ex-Boyfriend Hates Me Because I Broke Up With Him]
3. Rebuild Your Routine and Reclaim Your Identity
When a relationship ends, you lose both a partner and the shared identity and daily routines that went with them.
The resulting empty space can easily fill with loneliness and longing if left unaddressed.
Filling your schedule with fresh, solo habits forces your mind to adapt to your new reality.
Immerse Yourself in High-Focus, Active Hobbies
Passive activities like watching TV or scrolling social media leave too much free mental space for mind-wandering.
Instead, choose active hobbies that demand simultaneous physical effort and mental focus.
Sign up for high-intensity fitness classes, join a local bouldering gym, take up pottery, enroll in a cooking course, or learn a new language.
These activities stimulate neuroplasticity, helping your brain build new pathways unrelated to your past.
Establish Micro-Goals for Self-Care
Redirect the emotional and mental energy you used to invest in the relationship entirely back into yourself.
Break your goals down into achievable weekly milestones. This could mean meal-prepping healthy lunches for the week, setting a specific professional target at work, sticking to a consistent sleep schedule, or finishing one book a month.
Achieving these micro-goals provides healthy, independent dopamine rewards.
[Read: Dating Mistakes That You Should Stop Before You Start New Relationship]
Proactively Schedule Social Connections
Do not wait for people to reach out to you. Take the initiative to schedule coffee dates, dinners, or weekend outings with supportive friends and family members.
If your social circle was heavily tied to your ex, use platforms like Meetup or local community boards to find volunteer groups, book clubs, or recreational sports leagues.
Surrounding yourself with positive interactions reminds your brain that your world remains full of deep, meaningful connections.