It is 10:40 p.m. and you are on the couch when you hear the soft pad of feet in the hallway. Your seven-year-old is standing at the top of the stairs. Their eyes are open and they are looking straight at you, but nobody is home. You say their name and get no answer. They turn and walk toward the bathroom, then stop in front of the linen closet and start to pee.
If you have lived through a scene like this, you know the particular chill of it. Your child is right there in front of you and also completely unreachable. The strangest part comes in the morning, when they eat their cereal with no memory of any of it.
The reassuring news is that this is common in school-age children. It is also one of the most misunderstood things that happens in a child's bedroom.
What sleepwalking actually is
Sleepwalking is not a dream being acted out. It belongs to a family of events sleep scientists call disorders of arousal, or parasomnias, that come out of deep non-REM sleep.
Most deep sleep, the slow-wave kind, happens in the first third of the night. That is why sleepwalking usually shows up an hour or two after bedtime and not at 5 a.m. During this stage the brain is in its heaviest, most restorative mode, and a child is hard to wake.
In a sleepwalking episode, part of the brain is pulled toward wakefulness while the rest stays in deep sleep. The motor areas and some basic routines switch on. The regions responsible for awareness, judgment, and memory formation stay offline. That explains why a sleepwalker can open doors and navigate a familiar house but cannot answer a question or recall the event later.
It also explains why kids are the ones who do it. Children spend a much larger share of the night in deep slow-wave sleep than adults, and their brains are still maturing the systems that keep sleep stages cleanly separated. Most children outgrow sleepwalking as those systems settle, usually by the teen years. A tendency toward it often runs in families.
Sleep talking comes from the same place. A child who mumbles, laughs, or says a strange sentence at 10 p.m. is usually a partly aroused brain leaking language, not a window into their secret thoughts.
Why it happens on some nights and not others
The tendency is mostly inherited, but the trigger is usually the night itself. The things that most reliably raise the odds of an episode are the ones that deepen or fragment sleep:
- Too little sleep. A short night, or a skipped nap in a young child, makes the next night's deep sleep heavier and harder to exit smoothly. This is the best-established trigger.
- An irregular schedule. Bedtimes that swing from night to night, especially after a weekend of staying up late, make the transitions between sleep stages messier.
- Fever or illness. Being sick disrupts sleep architecture.
- Anything that pokes the sleeper. A full bladder, a noise, or a parent's footstep can be enough to trigger a partial arousal.
- Disrupted breathing. Loud, habitual snoring or pauses in breathing can repeatedly pull a child toward waking, and sleepwalking can ride along with that. This is worth raising with your pediatrician.
Notice what this list has in common. Almost none of it is about your child's emotional state or something you did wrong. It is about the physical quality of their sleep, and that is something you can influence.
What to do while it is happening
The instinct is to shake them awake or to shout. Resist it. Waking a child out of deep sleep tends to leave them confused, frightened, and sometimes combative, because they surface into a half-formed mind with no idea why they are standing in the hall.
Instead, treat it as a quiet escort job:
- Stay calm and stay close. Your steady presence matters more than anything you say.
- Guide, don't grab. Place a hand lightly on their shoulder or back and steer them toward their bed. Most sleepwalkers will follow gentle direction.
- Use few, soft words. "Time to go back to bed" in a low voice is plenty. Do not quiz them or ask what they are doing.
- Tuck them back in and leave. Episodes typically last a few minutes up to a bit longer, then the child drops back into ordinary sleep.
The one exception is danger. If your child is heading for the stairs, a window, or the front door, physically and gently redirect them right away.
In the morning, keep it light. If your child asks, tell them simply that their body got up while their brain was resting and that it is nothing to worry about. Avoid teasing or making it a family story told at dinner. Kids who feel ashamed of it can start to dread sleep itself, and that anxiety makes sleep worse.
Making the house safer, not scarier
Since you cannot control what a sleeping brain decides to do, you control the environment. The goal is that a wandering child can't get hurt.
- Put a gate at the top of stairs, or a latch they cannot reach, on the door at the stairs.
- Use door alarms or a simple chime on exterior doors and on their bedroom door so you know when they are up.
- Keep windows locked and consider window guards on upper floors.
- Clear the floor of toys, cords, and sharp objects between the bed and the door.
- If your child sleeps in a bunk bed, move them to the bottom bunk.
None of this needs to be dramatic. A child who knows the house has "night helpers" like a chime and a gate usually shrugs it off.
The prevention that actually works
Because the biggest lever is sleep quality, prevention is mostly about protecting the amount and regularity of your child's sleep.
Lock in a bedtime that gives them the full sleep their age needs, and keep it within a narrow window even on weekends. Notice whether episodes cluster after late nights, and let that pattern guide you. Treat illness nights gently and add extra rest during recovery. Make sure they use the bathroom right before bed so a full bladder isn't the nudge.
Then look at the wind-down itself. A child who goes to bed wound up tends to have lighter, choppier sleep early on, and a nervous system that is calm at lights-out slides more smoothly into deep sleep. This is where a predictable routine earns its keep: a short story, slow breathing, and a steady background sound all signal that the day is over.
If sleepwalking is frequent, happening most nights, getting more intense, involving risky behavior, or paired with heavy snoring, talk to your pediatrician. They may want to rule out sleep-disordered breathing or other contributors.
Your next moves
- Tonight: Walk your child's route from bed to the stairs and exterior doors. Add a gate, a chime, or a latch wherever you spot a risk.
- Tonight: Make bathroom use the last step before lights-out, every night.
- This week: Track bedtimes and any episodes in a notes app for seven days. Look for episodes after late or short nights.
- This week: Tighten the bedtime to within about 30 minutes, weekends included, and see whether episodes thin out.
- At your next visit: Mention the sleepwalking, plus any loud snoring, to your pediatrician so they can check for contributing causes.
A calmer start to the night
What we've learned is that sleepwalking is less a problem to fix than a signal about how the night begins. A child who falls asleep slowly and smoothly is less likely to have the stormy first hours that trigger it. That's why we built Nightlamp as an eight-minute ritual that a child can run on their own: one calming story, a breathing sequence, and a sleep-sound mix matched to their age. It won't cure a family tendency, but it gives the first stretch of sleep a gentler on-ramp. If you'd like to see what that looks like, you can take a look at Nightlamp.