Recovery guide
Why do I masturbate in my sleep or half asleep, and how do I stop?
It may be a habit carried into half-awake moments, or it may be a sleep problem in which a person acts sexually while fully asleep. The half-awake version is the main subject of this page, including when it happens in the morning, before you’re properly up. The fully asleep version is one for a doctor or sleep specialist. Which one it is decides how to stop masturbating in your sleep, because the half-awake habit comes at a moment you can plan around.
Is it a habit, a sleep disorder or a wet dream?
It depends on how awake you were, and whether any touching happened. Half awake, you’re drowsy but partly aware of what’s happening, and that’s the habit case. Fully asleep, sexual behavior can be part of a sleep disorder called sexsomnia. A wet dream involves no deliberate touching at all: Wikipedia describes it as a spontaneous orgasm during sleep, often produced by sexual arousal during a dream.
Half awake is the state in which you might switch off an alarm or pull the covers back up before you’ve really decided to. You may notice what your hand is doing, even if the start didn’t feel like a decision. That’s why it can seem to begin without you.
What is sexsomnia, and when does it need a doctor?
Sexsomnia, also called sleep sex, is a type of sleep disorder known as a parasomnia, according to the Sleep Foundation, a sleep-health information site. Parasomnia is the name for that group of sleep disorders, and sexsomnia is one of them. People with sexsomnia, the Sleep Foundation says, “are asleep during these activities and unaware of their behavior once they’re awake.” The International Society for Sexual Medicine says a person with sexsomnia “acts out sexually while sleeping” and “might masturbate.”
The Sleep Foundation calls it “a rare and often misunderstood sleep disorder.” It adds that it’s difficult for experts to estimate how many people experience sexsomnia. In a study the American Academy of Sleep Medicine described, sexsomnia “was reported by almost eight percent of patients at a sleep disorders center.” Those were people already being seen at a sleep clinic. The researchers said, “we would expect the numbers to be much lower in the general population.”
If sexsomnia is suspected, the Sleep Foundation’s advice is to talk to your doctor. It says a doctor or sleep specialist will likely ask about your sleep history. A doctor may also recommend a recorded sleep test, known as video-polysomnography, it adds.
Why does the half-awake kind happen as you’re waking up?
Because waking is when you’re half awake: still in bed, still drowsy, not yet up. You’re aware enough to act but not yet fully alert. That makes waking the predictable moment for the half-awake case.
The US National Heart, Lung, and Blood Institute says that when you sleep, you cycle through two phases: rapid eye movement (REM) sleep and non-REM sleep. It adds that you may wake up briefly between cycles. None of this is about sexual behavior; it describes sleep in general. Even so, a brief waking in the night may be a half-awake moment too, much like waking in the morning.
How do you stop masturbating in your sleep?
For the half-awake case, the plan is built around the moment you wake. MedlinePlus, the US National Library of Medicine’s health site, says in its advice on sleep habits: “Your bed is for sleeping.” Our suggestion, which is not a MedlinePlus tip, is to get out of bed as soon as you wake, rather than lying there half awake.
Lying in bed after waking, drifting in and out, stretches that half-awake time. Getting up straight away shortens it. It changes where you are at that moment, rather than resting everything on a choice made while you’re barely awake.
Health agencies also give general advice on sleep. The US Centers for Disease Control and Prevention (CDC) lists going to bed and getting up at the same time every day. It also lists turning off electronic devices at least 30 minutes before bedtime. MedlinePlus advises against naps during the day or in the evening. For the bedroom itself, MedlinePlus suggests making sure your sleep area is quiet, dark, and at a temperature you like. The CDC also lists keeping your bedroom quiet, relaxing, and at a cool temperature. Before bedtime, MedlinePlus suggests calming activities, such as reading or taking a bath. If you cannot fall asleep within 30 minutes, MedlinePlus says to get up, move to another room and do a quiet activity until you feel sleepy. These are tips for better sleep in general, and they come with no promise of stopping anything.
Masturbating before you fall asleep is a separate moment, since you’re fully awake then; stopping at night before sleep is its own subject. For cutting back at other times of day, our main guide to stopping masturbation sets out the wider approach.
Does masturbating in your sleep count as a relapse?
It counts if your own plan says it does.
In a thread on the NoFap online forum about this happening during sleep, one member says they didn’t relapse. Another member wrote that the same thing had led to relapses on back-to-back days. Even in a single thread, the outcome differed between members.
How NoFap communities handle wet dreams is set out in our page on whether wet dreams count on NoFap.
Sources
- What is sexsomnia? International Society for Sexual Medicine (ISSM). Link
- Nocturnal emission. Wikipedia (citing Guyton and Hall, Textbook of Medical Physiology, Elsevier 2010). Link
- Sexsomnia: What to Know About Sleep Sex. Sleep Foundation. Link
- Study Finds that Sexsomnia is Common in Sleep Center Patients. American Academy of Sleep Medicine. Link
- How Sleep Works - Sleep Phases and Stages. NHLBI (NIH). Link
- Changing your sleep habits. MedlinePlus (NLM, NIH; A.D.A.M. Medical Encyclopedia). Link
- About Sleep (tips for better sleep, 'What to do'). CDC. Link
- Woke up last night beating my meat (wtf). NoFap forum (user thread). Link