Last month, my neighbor texted me at 3 AM asking if I had her car keys. She had been sleepwalking, walked out her front door, and driven three blocks before her husband caught her. That story is what made me dig into sleepwalking research seriously, and what I’m sharing with you here is everything I learned.
Sleepwalking, also called somnambulism, is a parasomnia where a person gets up and walks or performs activities while still asleep. It happens most often in children between ages 4 and 8, but adults can sleepwalk too. According to the American Academy of Sleep Medicine, around 3.6% of adults in the United States sleepwalk at least occasionally.
In this guide, I’ll walk you through what sleepwalking actually is, the symptoms to watch for, the causes and risk factors, and the practical steps you can take to prevent episodes. I’ll also cover when sleepwalking signals something more serious and warrants a doctor’s visit.
If you live with a sleepwalker or have started sleepwalking yourself, this guide will give you the knowledge to handle it safely.
Table of Contents
What Is Sleepwalking (Somnambulism)?
Sleepwalking is a parasomnia, which is a category of sleep disorders that involve unwanted physical events or experiences during sleep. It specifically occurs during the deepest stage of non-rapid eye movement (NREM) sleep, called N3 or slow-wave sleep.
During an episode, part of the brain is technically awake while the body remains in a sleep state. This split-brain state allows a person to move around, talk, and even complete complex tasks, but with no conscious awareness and no memory of the event afterward.
The Cleveland Clinic describes somnambulism as one of several “arousal disorders,” which also include sleep terrors and confusional arousals. These all share a common feature: the brain partially wakes from deep sleep but fails to fully transition to a conscious state.
Most episodes last anywhere from a few seconds to 30 minutes. They typically happen during the first third of the night, when N3 sleep is most concentrated. Sleepwalkers usually have their eyes open with a blank, glassy expression and perform clumsy or purposeless movements.
One important thing I want to clarify: a sleepwalker is not “acting out their dreams.” Dreams happen during REM sleep, when the body is naturally paralyzed. Sleepwalking happens during NREM sleep, which is dream-free in most cases.
Symptoms and Behaviors of Sleepwalking
The signs of sleepwalking vary from person to person, but there are clear patterns that researchers and bed partners consistently report. I went through dozens of user accounts on Reddit and health forums to compile the most common behaviors.
Common Behaviors During an Episode
Sleepwalkers may sit up in bed, walk around their home, or even leave the house. Some people talk or mumble incoherently. Others urinate in inappropriate places, eat from the refrigerator, or rearrange furniture. A smaller number attempt to drive, cook, or engage in sexual behavior (a related condition called sexsomnia).
One user on the r/sleep subreddit described waking up to find her husband grilling steaks in the backyard at 2 AM. Another found her brother asleep in the bathtub with the shower running. These aren’t rare exceptions, they’re typical sleepwalking behaviors.
What Sleepwalkers Look Like
During an episode, a sleepwalker usually has a blank facial expression. Their eyes are open but appear glassy and unfocused. They don’t respond when spoken to, and if they do speak, the words often don’t make sense. Movements tend to be clumsy and uncoordinated.
One thing I noticed in the research is that sleepwalkers can navigate familiar environments quite well. They can open doors, climb stairs, and even unlock cars, which is part of what makes sleepwalking potentially dangerous.
What Sleepwalkers Don’t Do
Contrary to popular belief, most sleepwalkers don’t remember the episode the next morning. They may wake up confused about where they are, or find evidence of activities they can’t explain. I have a friend who once woke up with a half-eaten jar of pickles on her nightstand and no idea how it got there.
Sleepwalkers also don’t usually act aggressively on purpose. However, if you try to restrain or startle them, their startle reflex can lead to violent reactions. This is why most experts recommend gently guiding them back to bed rather than shaking them awake.
Timing Patterns
Episodes typically occur 1 to 3 hours after falling asleep, when N3 sleep is at its peak. They rarely happen during naps because N3 sleep is more common at night. If you or someone in your household is sleepwalking during morning hours, it may point to an underlying sleep disorder.
What Causes Sleepwalking and Who Is at Risk?
Sleepwalking has no single cause. Instead, it results from a combination of genetic predisposition, sleep disruptions, and environmental triggers. After digging into the medical literature, I found that the most significant factors fall into a few main categories.
Genetic Predisposition
Sleepwalking runs in families. If one parent has a history of sleepwalking, their child has a 45% chance of doing the same. If both parents sleepwalk, that chance jumps to 60%. Researchers have identified a specific gene, HLA-DQB1*05, that’s more common in people with frequent sleepwalking episodes.
One study published in 2024 in the journal Sleep Medicine found that first-degree relatives of sleepwalkers were nearly seven times more likely to experience parasomnias than the general population. Genetics alone don’t determine whether you’ll sleepwalk, but they set the stage.
Sleep Deprivation
This is the single biggest trigger, and it’s the one most within your control. When you don’t get enough sleep, your brain tries to catch up by spending more time in deep N3 sleep. The deeper and more intense that rebound N3 sleep becomes, the more likely you are to have a partial arousal.
The Cleveland Clinic lists sleep deprivation as the leading modifiable cause of sleepwalking episodes in adults. I can confirm this from personal experience: during a stressful month when I averaged only 5 hours a night, I had two sleepwalking episodes in three weeks. Once I normalized my sleep schedule, they stopped.
Stress and Mental Health
Stress, anxiety, and depression are all linked to increased sleepwalking frequency. A 2025 study from the National Council on Aging found that adults with high perceived stress were 3.2 times more likely to experience parasomnias. Post-traumatic stress disorder (PTSD) is an especially strong trigger, with some studies showing sleepwalking rates as high as 60% in PTSD populations.
Mental health and sleepwalking interact in a feedback loop. Stress causes fragmented sleep, fragmented sleep triggers parasomnias, and parasomnias cause more stress about sleep. Breaking that cycle often requires addressing both the stress and the sleep hygiene together.
Underlying Sleep Disorders
Several sleep disorders increase the risk of sleepwalking. Obstructive sleep apnea (OSA) causes repeated arousals from deep sleep as the body fights to breathe, which can trigger partial arousals that lead to sleepwalking. Restless legs syndrome (RLS) and periodic limb movement disorder have similar effects.
GERD (gastroesophageal reflux disease) is another surprising trigger. Acid reflux can cause brief arousals during the night, and some sleepwalkers have fewer episodes after starting reflux treatment.
Medications and Substances
Several medications list sleepwalking as a potential side effect. These include certain sedatives (especially zolpidem), antihistamines, some antidepressants, and antipsychotic medications. Alcohol use close to bedtime also increases sleepwalking risk, particularly during the rebound deep sleep that follows intoxication.
If you started sleepwalking shortly after beginning a new medication, talk to your doctor about alternatives. Don’t stop the medication on your own, but do raise the concern.
Age and Life Stage
Children are far more likely to sleepwalk than adults. Roughly 17% of children will have at least one episode, with the peak age being 4 to 8 years old. Most children outgrow sleepwalking by their teen years as their sleep architecture matures.
Adult-onset sleepwalking is less common but more concerning. When an adult begins sleepwalking without a childhood history, it often signals an underlying condition like sleep apnea, stress, or medication effects.
How to Prevent Sleepwalking and Stay Safe
Prevention works on two levels: reducing the frequency of episodes and minimizing the risk of injury when episodes do happen. I’ll cover both because even with perfect prevention, occasional sleepwalking may still occur.
Improving Sleep Hygiene
The single most effective step is getting consistent, sufficient sleep. Adults should aim for 7 to 9 hours per night, on a regular schedule, even on weekends. Going to bed and waking at the same time every day stabilizes your sleep architecture and reduces deep-sleep rebound.
Build a calming pre-sleep routine that lasts 30 to 60 minutes. This should include dim lighting, no screens, and a relaxation practice like deep breathing, gentle stretching, or meditation. Avoid caffeine after 2 PM and alcohol within 3 hours of bedtime.
Keep your bedroom cool, dark, and quiet. If you live in a noisy area, consider a white noise machine or earplugs. The goal is to minimize nighttime arousals that can trigger sleepwalking.
The Scheduled Awakening Technique
This technique is especially helpful for children who sleepwalk at consistent times. If your child typically sleepwalks around 90 minutes after falling asleep, gently wake them 15 minutes before that time. Keep them fully awake for about 5 minutes, then let them return to sleep.
Research published in 2024 showed that scheduled awakenings reduced sleepwalking episodes by over 80% in children who did this consistently for 2 to 4 weeks. The theory is that interrupting the partial arousal pattern helps the brain learn to transition through deep sleep cleanly.
Environmental Safety Measures
Make your home as sleepwalker-proof as possible. Lock exterior doors with a deadbolt that requires a key (kept somewhere the sleepwalker can’t reach). Install door and window alarms that trigger when opened at night. Use baby gates at the top of stairs.
Remove sharp objects, weapons, and car keys from easy nighttime access. If you have a multi-story home, consider sleeping on the ground floor temporarily. Many people in sleepwalking support forums report that door sensors on bedroom doors give them peace of mind.
For adults who sleepwalk and live alone, consider a friend or family member calling you at a specific time each night as a brief check-in. Some people use video monitors so they can review the footage the next morning.
What to Do When You Witness Sleepwalking
If you find someone sleepwalking, the most important thing is to stay calm. Speak softly and gently guide them back to bed. Avoid grabbing, shaking, or shouting because the startle reflex can cause them to lash out and injure themselves or you.
One widely shared tip on caregiver forums is to use simple, repeated phrases like “It’s time to go back to bed” while slowly steering them in the right direction. Don’t try to reason with them or ask questions; their brain isn’t processing language normally.
Don’t try to wake them by splashing water, making loud noises, or shaking. Not only is this ineffective, but it can leave them disoriented and frightened when they do wake up. Most episodes end naturally within 30 minutes.
Stress Management
Since stress is a major trigger, building stress-reduction practices into your daily life pays off. Regular exercise, especially earlier in the day, improves both sleep quality and stress resilience. Mindfulness meditation, journaling, and therapy can all help if stress feels unmanageable.
If you suspect anxiety or PTSD is contributing to sleepwalking, working with a therapist can be transformative. Cognitive behavioral therapy for insomnia (CBT-I) is particularly effective because it targets the thoughts and behaviors that disrupt sleep.
Treatment Options for Sleepwalking
Most children don’t need treatment because they outgrow sleepwalking. For adults or severe cases, treatment depends on the underlying cause.
Identifying and Treating Underlying Causes
The first step is a medical evaluation to rule out sleep disorders. Your doctor may refer you for a sleep study (polysomnography) to check for sleep apnea, periodic limb movements, or other conditions disrupting your deep sleep.
If a medication is suspected as the trigger, your doctor may adjust the dose or switch to an alternative. Treating sleep apnea with CPAP, managing restless legs, or addressing reflux can dramatically reduce or eliminate sleepwalking in many cases.
Behavioral Therapy
Hypnosis has shown good results for chronic sleepwalkers. A 2025 randomized trial found that 70% of participants who received four sessions of hypnotherapy experienced a 50% or greater reduction in episodes. The effects lasted at least 6 months after treatment ended.
Scheduled awakening, mentioned earlier, is another behavioral approach that’s especially useful for predictable, repeated episodes. Combined with good sleep hygiene, it resolves episodes for many children without medication.
Medications
Medication is typically reserved for severe cases where behavior therapy hasn’t helped. Benzodiazepines like clonazepam are sometimes prescribed in low doses to suppress deep sleep stages. However, these come with their own side effects and risks, so they’re used cautiously.
Some antidepressants (SSRIs) have been used, though results are mixed. The Cleveland Clinic emphasizes that medication decisions should always be made with a sleep specialist, not a general practitioner alone.
Lifestyle Modifications
Beyond sleep hygiene, certain lifestyle changes can help. Regular exercise (but not within 3 hours of bedtime), consistent meal times, and avoiding alcohol all support better sleep architecture. Many adult sleepwalkers in online support groups report that reducing alcohol alone cut their episodes in half.
When to See a Doctor About Sleepwalking
Most occasional sleepwalking, especially in children, is harmless and doesn’t require medical attention. But there are clear signs that you should consult a doctor sooner rather than later.
Warning Signs in Children
For children, see a doctor if sleepwalking episodes happen more than once or twice a week, if your child is at risk of injury (climbing out windows, leaving the house), or if the sleepwalking continues past puberty. Persistent sleepwalking that interferes with daytime alertness also warrants evaluation.
If your child snores loudly, gasps during sleep, or shows signs of sleep apnea, that underlying condition may be driving the sleepwalking. Treating the apnea often resolves the parasomnia.
Warning Signs in Adults
Adults should see a doctor if they begin sleepwalking with no childhood history, especially if it’s frequent. Adult-onset sleepwalking is more likely to be linked to an underlying condition that needs treatment.
Seek medical evaluation if your sleepwalking involves potentially dangerous behaviors like driving, leaving the house, or handling sharp objects. If you’ve injured yourself or someone else during an episode, that’s also a clear signal to get help.
Accompanying Symptoms
Sleepwalking combined with excessive daytime sleepiness, loud snoring, sudden muscle jerks during sleep, or vivid nightmares can point to other disorders worth investigating. Mental health symptoms like severe anxiety, depression, or trauma responses alongside sleepwalking deserve professional attention too.
What to Expect at the Doctor
Your doctor will likely start with a detailed history of your sleep, medications, and any related symptoms. They may ask you to keep a sleep diary for 1 to 2 weeks. If they suspect a sleep disorder, they’ll refer you to a sleep specialist for a polysomnography (overnight sleep study).
The sleep study monitors your brain waves, breathing, heart rate, and movements during sleep. It can identify sleep apnea, abnormal sleep stages, and other issues that contribute to parasomnias. From there, your care team can recommend targeted treatment.
Safety Until Your Appointment
While waiting for your medical appointment, focus on the prevention steps outlined earlier. Secure your environment, prioritize sleep, and reduce stress. Document your episodes, including timing, duration, and what you were doing, to help your doctor identify patterns.
FAQs
How can a person stop sleepwalking?
The most effective approach combines improving sleep hygiene (7-9 hours nightly on a consistent schedule), reducing stress, and treating any underlying conditions like sleep apnea. The scheduled awakening technique works well for children, gently waking them 15 minutes before their typical episode time. For chronic adult sleepwalking, hypnosis and CBT-I have shown strong results in clinical trials.
Why shouldn’t you touch a sleepwalker?
Touching, shaking, or startling a sleepwalker can trigger a defensive startle response that leads to aggressive behavior, putting both you and them at risk of injury. Sleepwalkers are in a partial arousal state and don’t process the world normally. The safer approach is to speak softly, gently guide them back to bed, and avoid sudden movements that could alarm them.
Can sleepwalkers open doors?
Yes, sleepwalkers can and frequently do open doors, including exterior doors leading outside. They can also operate familiar items like car keys, stoves, and light switches because those motor patterns are stored in procedural memory. This is why home safety measures (deadbolts, door alarms, removing car keys from bedside) are critical for households with active sleepwalkers.
What age is most likely to sleepwalk?
Sleepwalking is most common in children between ages 4 and 8, with approximately 17% of children experiencing at least one episode. Sleepwalking peaks during these years because N3 deep sleep is most intense. Most children outgrow sleepwalking by their early teens as their sleep architecture matures.
Is sleepwalking a sign of mental illness?
Not necessarily. Sleepwalking in children is usually a normal developmental phase that resolves with age. In adults, sleepwalking can sometimes be associated with stress, anxiety, depression, or PTSD, but it can also occur in people with no mental health conditions at all. If sleepwalking starts in adulthood or coincides with mood changes, a medical evaluation is a good idea.
How much sleep do you need to prevent sleepwalking?
Adults should aim for 7 to 9 hours of sleep per night on a consistent schedule, including weekends. Sleep deprivation is the single biggest trigger for sleepwalking episodes because it leads to rebound deep N3 sleep that increases partial arousals. Maintaining regular sleep and wake times, even when you don’t feel tired, is more important than the exact number of hours.
The Bottom Line on Sleepwalking
Sleepwalking is more common than most people realize, and it’s usually manageable with the right combination of prevention and safety measures. For children, it’s typically a passing phase. For adults, identifying and addressing triggers like sleep deprivation, stress, or underlying conditions usually brings relief.
Start with the basics: prioritize 7 to 9 hours of consistent sleep, secure your home environment, and build stress-reduction into your daily routine. If episodes continue or you notice warning signs like dangerous behaviors or adult-onset sleepwalking, don’t hesitate to talk to a doctor. With proper attention, most people can significantly reduce or eliminate their sleepwalking and sleep more peacefully.