Getting someone out of your head is less about willpower and more about understanding why your brain holds on in the first place. Whether it’s an ex, someone who rejected you, or a person you never actually dated, the mental loop feels the same: intrusive thoughts, constant replaying of moments, and a frustrating inability to just move on. The good news is that this pattern has well-understood psychological mechanisms, and working with those mechanisms (rather than against them) is what actually breaks the cycle.
Why Your Brain Won’t Let Go
Your brain treats an unresolved relationship the way it treats an incomplete task. Psychologists call this the Zeigarnik effect: humans remember interrupted or unfinished experiences far better than completed ones. When you don’t get closure, when a relationship ends ambiguously, or when you never got to say what you needed to say, your mind keeps circling back as if trying to finish the job. Relationship researcher John Gottman found that unprocessed negative events between people “are remembered and rehearsed repeatedly, turned over and over in each person’s mind.” Your brain isn’t broken. It’s doing exactly what it evolved to do with unfinished business.
Neurochemistry plays a role too. The attachment you feel to someone involves dopamine, oxytocin, and serotonin, the same reward and bonding chemicals involved in addiction. When that person becomes unavailable, your brain experiences something similar to withdrawal. Cortisol, a stress hormone, rises. The result is a cocktail of longing, anxiety, and hypervigilance that can feel completely out of your control.
Your Attachment Style Affects How Long This Lasts
Not everyone gets stuck to the same degree. Research published in the European Journal of Psychology found that people with anxious attachment styles are significantly more sensitive to rejection and far more prone to rumination afterward. Specifically, people with “preoccupied” attachment (wanting closeness but fearing it won’t last) and “fearful” attachment (wanting closeness but expecting rejection) showed the highest levels of rejection sensitivity. These individuals tend to be hypervigilant to any cue that someone is pulling away, and that vigilance doesn’t shut off just because the relationship does.
If you recognize yourself in this pattern, it doesn’t mean something is wrong with you. It means your nervous system learned early on to monitor relationships closely for signs of loss. That wiring makes letting go harder, but knowing it’s a pattern rather than a personal failing gives you something concrete to work with.
How Long Recovery Actually Takes
There’s no clean timeline, but research from the British Psychological Society gives a realistic picture. In a study of 328 adults who had been in significant relationships lasting more than two years, participants reported feeling only about halfway to fully letting go at roughly four years after the breakup. That number sounds discouraging, but it represents the average across people who weren’t necessarily using any deliberate strategies. Active effort shortens the process considerably.
For less serious attachments, or situations where you’re fixated on someone you were never actually with, the timeline is typically shorter. What psychologists call “limerence,” an involuntary obsessive attraction, can last anywhere from six months to several years depending on intensity and whether you maintain contact. The Cleveland Clinic describes limerence as “an involuntary pull toward someone you can’t have” that involves intrusive thoughts, mood swings between euphoria and despair, compulsive checking of texts and social media, and even physical symptoms like nausea and loss of appetite.
Why “Just Stop Thinking About Them” Backfires
The most intuitive strategy is the worst one. Trying to forcibly suppress thoughts about someone triggers what psychologists call ironic processing. Your brain runs two systems simultaneously: one that tries to push the thought away, and an unconscious monitor that scans your environment and memory to check whether the thought has returned. That monitoring process constantly brings the person back to mind in order to verify that you’re not thinking about them. The harder you try to suppress, the more frequently the thought intrudes.
This is why people who tell themselves “I will NOT think about her” or “I need to forget him” often feel like they’re going crazy. The strategy itself is generating the problem. Accepting that the thoughts will arise, without engaging with them or fighting them, is the first step toward reducing their frequency.
Cutting Contact Is Not Optional
Every time you check their social media, re-read old messages, or find an excuse to run into them, you’re giving your brain a small hit of the same neurochemistry that’s keeping you stuck. Going no-contact means eliminating these triggers so your nervous system can begin to recalibrate.
This means unfollowing or muting them on every platform, not just unfriending. It means asking mutual friends not to relay updates. It means deleting or archiving the text thread so it’s not sitting in your recent messages. The goal isn’t punishment or drama. It’s practical: reducing how often your mind wanders back to them by removing the cues that pull it there. As therapists who specialize in breakup recovery point out, maintaining even innocent “check-ins” prolongs pain and creates confusion about whether the connection is truly over.
Redirect Your Thoughts Instead of Suppressing Them
Since suppression doesn’t work, redirection does. The NHS recommends a technique called “catch it, check it, change it” for managing intrusive thoughts. When you notice your mind replaying a conversation or fantasizing about a reunion, you catch the thought without judgment, check it against reality, and then actively reframe it.
Checking it means asking yourself specific questions: How likely is the outcome I’m imagining? What evidence actually supports this thought? What would I say to a friend who was thinking this way? If you’re telling yourself “I’ll never find anyone like them,” the check might reveal that you’re catastrophizing. If you’re replaying a perfect memory, the check might remind you that you’re selectively editing out the reasons it didn’t work.
Another useful approach is scheduled “worry time.” Rather than fighting thoughts about this person all day, you designate 15 to 20 minutes where you allow yourself to think, feel, and even write about them freely. Outside that window, when the thoughts arise, you remind yourself that you have a designated time for this and gently redirect. Over days and weeks, most people find the designated window shrinks on its own because the thoughts lose their urgency when they’re no longer being suppressed.
Act First, Feel Later
When you’re consumed by thoughts of someone, waiting until you “feel ready” to move on means waiting indefinitely. Behavioral activation, a strategy developed for depression recovery at the University of Michigan, flips the script: you act according to a plan and let your mood follow. The researchers call this the “outside-in” approach.
Start by tracking what you’re actually doing throughout the day and how each activity affects your mood. Most people stuck on someone discover that their lowest moments correspond with idle time, scrolling, lying in bed, or sitting alone in the evening. The fix is to deliberately schedule activities into those gaps, especially ones that align with what you genuinely value or enjoy.
This doesn’t mean forcing yourself to run a marathon or socialize when you’re miserable. The key is breaking tasks into small, achievable steps. If you used to enjoy cooking but haven’t in months, the first step might just be buying ingredients. If you want to exercise, the first goal might be putting on shoes and walking for ten minutes. The University of Michigan team recommends “pleasure predicting,” where you guess how much enjoyment you’ll get from a planned activity and then record how you actually felt afterward. People consistently underestimate how much better they feel once they start moving.
Recognize Patterns You’re Idealizing
One of the hallmarks of being stuck on someone is what psychologists call the halo effect: seeing the person as perfect and without flaws. You’re not actually missing the real person. You’re missing a curated highlight reel your brain has constructed, and that version never existed.
A practical exercise is to write down, honestly and in detail, the things that didn’t work. The times you felt anxious, dismissed, bored, or unseen. The incompatibilities you glossed over. This isn’t about demonizing them. It’s about breaking the idealization that keeps the obsession alive. Many people find it helpful to keep this list accessible for moments when the longing surges, because your emotional brain will keep trying to rewrite history, and your rational brain needs ammunition.
Pay attention to the categories of distorted thinking that show up most often: believing this was your only chance at love (catastrophizing), focusing only on the good moments while ignoring the bad (mental filtering), or assuming the entire failure was your fault (personalization). Simply naming these patterns when they appear weakens their grip over time.
Build a Life That’s Harder to Disappear From
The deepest reason someone stays in your head is often that they filled a space you don’t know how to fill yourself. Maybe they provided validation, excitement, a sense of being chosen, or a distraction from parts of your life that feel empty. The long-term solution isn’t just removing them from your thoughts. It’s building enough meaning, connection, and engagement in your own life that one person’s absence doesn’t collapse the whole structure.
This looks different for everyone. For some people it means investing in friendships that got neglected. For others it means pursuing goals that got put on hold. The common thread is making decisions based on what you know is good for you rather than what you feel like doing in the moment. Feelings of longing and loss will coexist with your new activities for a while. That’s normal. The goal isn’t to feel nothing. It’s to build a life full enough that the thoughts, when they come, pass through without pulling you under.

