How to Stop Your Child From Sleepwalking

Sleepwalking in children is common and almost always something they outgrow, but there are concrete steps you can take to reduce how often it happens and keep your child safe in the meantime. Nearly 29% of children sleepwalk at some point between ages 2 and 13, with a peak around age 10. The good news: most cases respond well to simple changes in sleep habits and environment, without any need for medication.

Why Children Sleepwalk

Sleepwalking happens during the deepest stage of non-REM sleep, which is why most episodes occur in the first half of the night. During a normal sleep cycle, the brain briefly surfaces from deep sleep and either sinks back down or fully wakes up within seconds. In sleepwalking, that transition stalls partway. Parts of the brain shift into a wake-like state while other parts stay asleep. This is why a sleepwalking child can open doors and navigate hallways but has no awareness of what they’re doing and won’t remember it in the morning.

Children spend more time in deep sleep than adults, which is one reason sleepwalking is so much more common in childhood. As they get older and their sleep architecture matures, episodes typically fade on their own.

Common Triggers to Watch For

The single biggest trigger is not getting enough sleep. Sleep-deprived children spend more time in deep sleep when they finally do sleep, which creates more opportunities for partial arousals. Children who are overtired can also perform more complex actions during episodes.

Other well-established triggers include:

  • Illness or fever: Even a mild cold can disrupt sleep cycles enough to set off an episode.
  • A full bladder: The internal signal to urinate can cause a partial arousal that turns into sleepwalking instead of full waking.
  • Stress or anxiety: A new school, family changes, or social pressures can increase episode frequency.
  • Noise or disruptions: Sounds that partially wake a child, like a door closing or a sibling coughing, can trigger an episode in a child who’s predisposed.
  • Other sleep disorders: Conditions like sleep apnea or restless legs syndrome fragment sleep and make sleepwalking more likely.

If your child only sleepwalks when they’re sick, overtired, or stressed, those situational triggers are your clearest targets. Addressing them often reduces or eliminates episodes without any other intervention.

Build a Sleep Routine That Prevents Episodes

The most effective prevention strategy is consistent, high-quality sleep. Johns Hopkins Medicine identifies better sleep as the single best way to prevent sleepwalking, and the specifics matter.

Set a fixed bedtime and wake time, including on weekends. Children who go to bed at irregular times accumulate sleep debt unevenly, which increases deep sleep rebound on some nights. A consistent schedule keeps sleep cycles predictable.

Create a wind-down routine that starts 30 to 60 minutes before bed. This could include a warm bath, reading together, or quiet conversation. The key is that it’s the same sequence each night, signaling the brain to start transitioning toward sleep. Avoid screens from TVs, tablets, and phones during this window, since the light they emit delays the onset of deep sleep.

Keep the bedroom at a comfortable temperature. A room that’s too warm can cause restless sleep and more frequent partial arousals. Exercise during the day helps children sleep more deeply and continuously, but finish any vigorous activity at least five to six hours before bedtime.

The Scheduled Awakening Technique

If your child sleepwalks at roughly the same time each night, a technique called scheduled awakenings can break the cycle. A study published in the Journal of Pediatric Psychology found this approach effective for eliminating childhood sleepwalking.

Here’s how it works. For one to two weeks, note what time your child’s sleepwalking episodes begin. Then, set an alarm for 15 to 30 minutes before that typical onset time. Go to your child’s room and gently shake them, asking them to wake up. You don’t need them fully alert. Once they open their eyes slightly or mumble a response, let them fall right back asleep.

This brief interruption resets the sleep cycle just before the brain would have entered the partial arousal state that leads to sleepwalking. It’s low-tech, requires no medication, and parents in the study were able to do it consistently at home. After several weeks of nightly scheduled awakenings, many families can gradually stop and find that the sleepwalking doesn’t return.

What to Do During an Episode

Your instinct may be to wake your child, but that usually backfires. A child roused from deep sleep mid-episode will likely be confused, disoriented, and upset, and waking them doesn’t stop future episodes.

Instead, gently guide them back to bed. Stay calm, speak softly, and steer them by the shoulders without restraining them. Most children will comply with gentle redirection without fully waking. Don’t ask questions or try to engage them in conversation. They won’t process it and it may agitate them. The episode will end on its own, usually within a few minutes.

Making Your Home Safe

While you work on reducing episodes, childproofing for nighttime wandering is essential. Children’s Hospital of Philadelphia recommends these specific measures:

  • Lock all windows and exterior doors every night before your child goes to sleep. Consider locks or latches that are difficult for a half-asleep child to operate.
  • Install a gate or alarm on the bedroom door. A safety gate across the doorway contains your child in a safe space. An alarm that sounds when the door opens alerts you that an episode is underway.
  • Use wall-mounted safety gates at the top of stairs. Pressure-mounted gates are not safe here because a child pushing against them during an episode can knock them loose.

Beyond these basics, clear the floor of toys and clutter that could cause a fall. If your child’s bed is elevated, consider switching to a lower bed or placing a mattress on the floor temporarily. Move any sharp or breakable objects out of the bedroom and hallway.

When Sleepwalking Needs Medical Attention

Most childhood sleepwalking doesn’t require treatment beyond the strategies above. But certain patterns warrant a conversation with your child’s pediatrician. Episodes that happen multiple times per week, persist into the teenage years, or involve dangerous behaviors like attempting to leave the house or use the stove suggest something beyond a typical developmental pattern. The same is true if your child seems excessively sleepy during the day despite getting enough hours in bed, which could point to an underlying sleep disorder like sleep apnea that’s fragmenting their sleep.

If another sleep disorder is identified, treating it often resolves the sleepwalking as well.

Medication Is Rarely Needed

In severe cases where a child is sleepwalking nightly and putting themselves at serious risk, doctors occasionally prescribe a low-dose benzodiazepine. This is the most commonly used medication class for severe sleepwalking in children. However, the evidence supporting its use in pediatric sleepwalking is limited, and the downsides are significant: daytime drowsiness, coordination problems, memory impairment, and a real risk of dependence. One study found that roughly 20% of children given benzodiazepines in a clinical setting showed withdrawal effects, including agitation, tremors, and difficulty sleeping.

Because of these risks, medication is considered a last resort, reserved for cases where behavioral strategies and safety measures haven’t been enough and the child is in genuine danger. For the vast majority of sleepwalking children, consistent sleep habits, trigger management, and a safe home environment are all that’s needed while they grow out of it.