Why Do I Keep Having Sex Dreams About My Ex?

Recurring sex dreams about an ex are extremely common, and they rarely mean you want to get back together. Your brain processes emotional memories during sleep, and a former partner who once triggered intense feelings, including physical intimacy, is prime material for your dreaming mind to revisit. These dreams say more about how your brain works at night than about your actual desires.

Your Brain Is Less Filtered During Sleep

During REM sleep, the stage where most vivid dreaming happens, your brain’s hormone-regulating center ramps up production of sex hormones, which can trigger physical arousal even while you’re unconscious. At the same time, the part of your brain responsible for decision-making and social judgment becomes significantly less active. That combination means your sleeping brain generates sexually charged scenarios without the filters you’d normally apply while awake. Dopamine, the brain chemical tied to pleasure and reward, also surges during REM, reinforcing the vividness and emotional intensity of these dreams.

In short, your brain during sleep is essentially running uncensored highlight reels of emotionally loaded memories. An ex you were physically intimate with is one of the most emotionally loaded memories you have.

Emotional Memories Get Priority in Dreams

Researchers refer to the “continuity hypothesis” of dreaming: your dreams tend to reflect whatever occupies your emotional bandwidth during the day. Emotionally intense waking experiences are more likely to get incorporated into dreams, which is why close relationships, past and present, show up so frequently. A large survey of nearly 1,700 adults published in the International Journal of Dream Research found that dreams about ex-partners were surprisingly common even years after the relationship ended, and those dreams tended to carry more negative or mixed emotional tones than dreams about a current partner.

This doesn’t require you to be actively thinking about your ex. Even low-level processing, like hearing a song you associate with them or passing a restaurant you used to visit, can be enough for your brain to pull that person into your dream content a few nights later. Sleep research shows dreams most frequently incorporate experiences from one to seven days prior.

What Your Ex Might Represent

Dream analysts, particularly those drawing on Jungian psychology, point out that people in dreams often represent parts of yourself rather than the literal person. Your ex might symbolize a quality you valued during that time in your life: confidence, spontaneity, passion, a sense of adventure. The sex in the dream may not be about physical desire for that specific person but about wanting to reconnect with something they represented.

This is especially true with first loves or relationships from formative periods. Many people find that a first serious partner becomes a recurring dream figure for years or even decades, not because of lingering romantic attachment but because the psyche uses that person as a symbol for a certain emotional state or unmet need. If you notice these dreams spiking when you feel stuck, bored, or disconnected from something in your current life, that’s a clue the dream is more about you than about them.

Relationship Satisfaction Plays a Role

If you’re currently in a relationship, research suggests a pattern worth noting: people with higher relationship satisfaction tend to dream about their current partner, while those in shorter-term or less satisfying relationships more often dream about a former one. That doesn’t mean your relationship is doomed. It may simply reflect a period of stress, emotional distance, or unmet needs that your sleeping brain is trying to process by reaching for a comparison point.

You shouldn’t feel guilty about these dreams, even if they felt enjoyable or intensely sexual. You cannot control your dream content, and having a sex dream about an ex does not mean you want to cheat or that you prefer your ex over your current partner. What you can do is treat these dreams as information. If they keep recurring, it may be worth asking yourself whether something in your current relationship needs attention, whether that’s physical intimacy, emotional connection, or simply novelty.

Unresolved Feelings and Unfinished Business

Sometimes the explanation is more straightforward: you haven’t fully processed the breakup. If the relationship ended abruptly, if you never got closure, or if there were betrayals like infidelity, your brain may keep circling back to that person during sleep. Research shows that if you were cheated on in a past relationship, you’re more likely to dream about infidelity even long after the breakup, and those themes can blend with sexual content in ways that feel confusing or distressing.

For people who experienced a toxic or abusive relationship, recurring sexual dreams about a former partner can feel especially unwanted. In some cases, intrusive sexual dreams may be connected to post-traumatic stress disorder or obsessive-compulsive disorder. If these dreams are causing significant distress, disrupting your sleep, or accompanied by other symptoms like flashbacks or anxiety during the day, a mental health professional can help determine whether something deeper is going on.

How to Reduce These Dreams

You can’t flip a switch to stop dreaming about someone, but a few approaches can shift the pattern over time.

  • Identify your daytime triggers. Pay attention to what happens in the one to seven days before the dream. Social media contact, mutual friends, revisiting old places, or even stress at work can activate memories your brain then processes at night. Reducing exposure to those triggers often reduces the dreams.
  • Process the emotions while awake. Journaling about the relationship, talking it through with someone you trust, or working with a therapist can help your brain finish the emotional processing it’s trying to do during sleep. Once the feelings are resolved, the dreams typically become less frequent.
  • Try imagery rehearsal. This technique involves recalling the dream while awake, rewriting the storyline toward a neutral or positive ending that doesn’t involve your ex, and mentally rehearsing that new version during the day. Practicing this for two to three weeks has been shown to reduce the frequency and intensity of recurring dreams, though it works better for some people than others.
  • Redirect your focus forward. Rather than fixating on why the dream happened, use it as a prompt. If the dream highlighted passion, consider how to bring more of that into your current life. If it highlighted a quality your ex had, think about how to cultivate that quality in yourself.

The dreams will likely fade on their own as your brain finishes processing the relationship. For most people, they become less frequent over months and years, even if they never disappear entirely. An occasional sex dream about an ex, even a vivid one, is a normal part of how your brain handles its emotional archive.