Curious Minds

Clear answers to science and history questions

Sleepwalking: What Happens in the Brain

· 5 min read · Science

Sleepwalking is a parasomnia in which a person partially wakes from deep non-REM sleep and carries out complex behaviours—walking, talking, even leaving the house—while not fully conscious. It happens when the brain's sleep–wake switch is stuck between states: the body can move, but the conscious, decision-making parts of the brain stay asleep.

What Sleepwalking Actually Is

Sleepwalking, known medically as somnambulism, is classified as a non-REM arousal disorder. It is not a dream enacted—dreams occur mostly in REM sleep, when the body is normally paralysed. Sleepwalking instead arises from the deepest stage of non-REM sleep (slow-wave sleep), usually within the first third of the night when that stage is most abundant.

Episodes can range from sitting up in bed and mumbling to walking around, opening doors, or performing routine actions like dressing. Most last a few minutes. The person's eyes may be open, but they typically have a blank stare and do not respond meaningfully to conversation. They usually have no memory of the event the next morning.

It is most common in children—roughly 15–30% of children have at least one episode—and most outgrow it by adolescence. It is much less common in adults, and adult-onset sleepwalking warrants a medical evaluation because it can be linked to other conditions.

How the Brain Gets Stuck Between Sleep and Waking

Normal sleep is not a single state but a cycle of stages. In deep non-REM sleep, the brain is highly synchronised and the body is relaxed but capable of movement. Waking up is normally a clean transition: the brain's arousal system switches on fully, and consciousness returns.

In sleepwalking, that transition is incomplete. An arousal—often triggered by noise, touch, or an internal event like a full bladder—partially activates the brain. The motor areas that control walking and movement come online, but the prefrontal cortex, which handles judgment, awareness, and memory, remains in a sleep-like state. The result is a person who can navigate familiar surroundings but cannot think clearly or remember it.

This dissociation between movement and consciousness is the core mechanism. It explains why sleepwalkers can avoid obstacles yet do nonsensical things, and why they are not “acting out a dream.”

Common Triggers and Risk Factors

Sleepwalking episodes are more likely when deep sleep is fragmented or when the brain is under pressure to arouse. Known contributing factors include:

  • Sleep deprivation — missing sleep increases deep-sleep pressure, making partial arousals more likely.
  • Irregular sleep schedules — shift work or jet lag disrupts the sleep cycle.
  • Stress and anxiety — can fragment sleep and increase arousals.
  • Fever or illness — especially in children, fever is a common trigger.
  • Alcohol — disrupts sleep architecture and increases arousals in adults.
  • Certain medications — some sedatives, antipsychotics, and stimulants have been associated with sleepwalking; this is a reason to consult a doctor rather than stop a medicine on your own.
  • Genetics — sleepwalking tends to run in families, suggesting a hereditary predisposition.
  • Other sleep disorders — obstructive sleep apnea, restless legs syndrome, and periodic limb movements can fragment sleep and trigger episodes.

In children, sleepwalking is often simply a developmental phenomenon and does not require treatment if it is infrequent and safe.

What Happens During an Episode

An episode typically begins with the person sitting up, sometimes with eyes open but unfocused. They may perform repetitive movements, walk, or speak in short phrases. The behaviour is usually routine and may include trying to open doors, eat, or use the bathroom. Coordination is often preserved enough to avoid obvious obstacles, but judgment is impaired.

Episodes usually end spontaneously when the person returns to bed or lies down, or they may wake up confused. Attempts to wake a sleepwalker are not dangerous, but the person may be disoriented or startled. The main risk is injury—from stairs, furniture, or leaving the house.

Contrary to a persistent myth, it is not dangerous to wake a sleepwalker. The concern is that a sudden awakening can cause confusion or agitation, so gentle guidance back to bed is often preferable.

Safety and When to Seek Help

Most childhood sleepwalking is harmless and outgrown. The priority is preventing injury:

  • Keep floors clear and remove sharp objects or tripping hazards.
  • Use stair gates or locks on doors and windows, especially in children's bedrooms.
  • Consider a ground-floor bedroom if sleepwalking is frequent.
  • Use motion sensors or a bell on the bedroom door to alert others.
  • Ensure the sleepwalker gets enough sleep and keeps a regular schedule.

Medical evaluation is warranted if episodes are frequent, cause injury, involve dangerous behaviour (such as leaving the house or cooking), begin in adulthood, or are accompanied by other symptoms like daytime sleepiness or violent movements. A doctor may screen for sleep apnea or other triggers and, in some cases, refer to a sleep specialist.

There is no medication approved specifically for sleepwalking. Treatment focuses on safety, addressing triggers, and—if episodes are frequent and risky—sometimes scheduled awakenings (waking the person briefly before the expected episode time) or, in specialist care, other approaches. This is not a condition to self-treat with sedatives.

Sleepwalking vs. Other Parasomnias

Sleepwalking is often confused with other sleep behaviours. Sleep terrors involve sudden screaming, intense fear, and autonomic arousal, usually with no memory; they can co-occur with sleepwalking. REM sleep behaviour disorder (RBD) occurs in REM sleep, when the body should be paralysed; people with RBD act out dreams, often violently, and usually remember dream content. RBD is more common in older adults and is a different condition requiring medical assessment.

Confusional arousals are another non-REM disorder: the person wakes partially, appears confused, and may resist comfort, but does not walk. These distinctions matter because the evaluation and safety advice differ.

Frequently Asked Questions

Can you wake a sleepwalker?

Yes. Waking a sleepwalker is not physically dangerous, though they may be confused or startled. Gentle guidance back to bed is often easier than forceful waking.

Is sleepwalking hereditary?

It often runs in families. Having a parent or sibling who sleepwalks increases the likelihood, suggesting a genetic predisposition, though environmental triggers also play a role.

Do sleepwalkers have their eyes open?

Often yes, but their gaze is usually blank and they do not respond normally to visual cues. They may navigate familiar spaces but are not consciously seeing in the usual sense.

Can sleepwalking be dangerous?

The main danger is injury from falls, stairs, or leaving the home. Most episodes are brief and harmless, but safety measures are important, especially for children and frequent sleepwalkers.

Does sleepwalking happen during dreams?

No. Sleepwalking arises from deep non-REM sleep, not REM dreaming sleep. The person is not acting out a dream; they are in a mixed state of sleep and wakefulness.

When should an adult see a doctor for sleepwalking?

Adult-onset sleepwalking, frequent episodes, injury, or dangerous behaviour should be evaluated. A doctor can check for triggers such as sleep apnea, medication effects, or other sleep disorders.

In this article
  1. What Sleepwalking Actually Is
  2. How the Brain Gets Stuck Between Sleep and Waking
  3. Common Triggers and Risk Factors
  4. What Happens During an Episode
  5. Safety and When to Seek Help
  6. Sleepwalking vs. Other Parasomnias
  7. Frequently Asked Questions