How to Keep Dementia Patients From Wandering at Night

Nighttime wandering is one of the most stressful and dangerous behaviors caregivers face, and preventing it requires a layered approach: addressing why the person is getting up, making the home physically safer, and using technology as a backup. People with dementia are 18 times more likely to wander than those without it, and most incidents happen when caregivers are asleep. The strategies below work best in combination, not in isolation.

Why People With Dementia Wander at Night

Understanding what drives nighttime wandering makes it easier to intervene at the source. Dementia damages the brain’s internal clock, a small structure called the suprachiasmatic nucleus that regulates sleep-wake cycles. As this area deteriorates, the brain loses its ability to distinguish day from night. At the same time, the gland that produces melatonin (the hormone that signals sleepiness) calcifies with age and disease progression, leaving the person more alert and restless after dark. This combination is the biological engine behind “sundowning,” the pattern of increased confusion, agitation, and wandering that peaks in the evening and overnight hours.

But biology is only part of the picture. Physical discomfort is a major, often overlooked trigger. Pain from arthritis or other conditions, the need to urinate, heartburn from a late meal, or restless legs can all pull someone out of bed. Once up, a person with dementia may not remember why they stood, may not recognize the room, and may head for a door out of habit or confusion. Addressing these physical triggers directly can eliminate some wandering episodes entirely.

Build a Daytime Routine That Promotes Sleep

What happens during the day has a direct effect on what happens at night. Structured daytime activity, even something as simple as an hour of games, conversation, or light household tasks, has been shown to improve nighttime sleep in people with dementia. Physical activity in the afternoon or early evening (but not close to bedtime) helps promote natural tiredness, reduces daytime napping, and can ease depression, all of which contribute to better sleep.

Meals and exercise should happen on a consistent schedule. The brain’s circadian system relies on regular patterns of activity and rest to stay synchronized, and even a damaged clock responds to routine. In the two hours before bed, reduce (but don’t eliminate) fluid intake so the person is less likely to wake needing the bathroom. Avoid heavy meals in the evening, which can cause reflux and disrupt sleep.

The wind-down period matters too. Discuss any worries or stressful topics well before bedtime, not at lights-out. Gentle relaxation techniques like slow breathing or light massage can help signal to the body that it’s time to sleep. Keep the same sequence every night: a predictable bedtime routine becomes an anchor for someone whose internal sense of time is fading.

Use Light Strategically

Light is one of the most powerful and underused tools for managing nighttime restlessness. By the eighth or ninth decade of life, only one-tenth as much circadian-activating light reaches the retina compared to a young person. And many older adults, especially those in care facilities or who spend most of the day indoors, get shockingly little bright light. One study of nursing home residents found they were exposed to light above 1,000 lux for a median of just 10.5 minutes per day, with typical indoor levels hovering around 52 lux during daylight hours. That’s not enough to keep the circadian system functioning.

Two hours of bright light exposure in the morning has been shown to improve sleep efficiency, meaning the person spends more of their time in bed actually sleeping. Even 30 minutes of direct sunlight per day reduces daytime napping, which in turn makes nighttime sleep more consolidated. If getting outside isn’t practical, bright indoor lighting during the day helps. The circadian system is most sensitive to blue-spectrum light, so specialized high-color-temperature lamps (around 14,000 kelvin) can achieve the same effect at lower brightness levels, around 400 to 500 lux instead of the 2,500-plus lux needed with standard bulbs.

The flip side is equally important: minimize bright and blue-spectrum light after 6 pm. Evening light exposure can actively disrupt the circadian rhythm. Switch to warm, dim lighting in the hours before bed, and keep hallways and bathrooms lit just enough for safe navigation with soft, warm-toned nightlights.

Secure Doors and Exits

Physical barriers are your most reliable line of defense while you’re asleep. Several types of locks work well for dementia care, and the best choice depends on the person’s physical abilities and level of cognitive decline.

  • Hidden or high-mounted locks: Latch-style locks placed above the person’s line of sight are simple and effective. If the person doesn’t see the lock, they’re unlikely to try to open it.
  • Keypad locks: These require a code to open, which someone with significant memory loss won’t be able to enter. They’re easy for other household members to use.
  • Smart locks: These send real-time alerts to your phone when a door is opened and allow remote locking. Useful if you’re sleeping in another part of the house.
  • Double-cylinder deadbolts: These require a key on both sides of the door, preventing someone from simply turning a knob to exit. Keep the key accessible for emergencies but out of the person’s reach.
  • Door alarms: Not a lock, but an essential complement. An alarm that sounds when a door opens alerts you immediately, even from another room. Particularly valuable at night.

An important safety note: whatever locking system you use, make sure other household members can exit quickly in a fire or emergency. Some caregivers keep a key on a hook near the door, high enough to be out of the person’s sightline but reachable for anyone who knows it’s there.

Visual Deterrents at Doorways

One surprisingly effective, low-cost strategy takes advantage of how Alzheimer’s disease changes visual perception. People with Alzheimer’s tend to perceive two-dimensional grid patterns on the floor as physical barriers, even though non-demented people walk over them without a second thought. In one study, black tape laid in a horizontal grid pattern in front of exit doors reduced door contact by up to 97% in four patients with Alzheimer’s. The effect was less reliable for people with other types of dementia, but for those with Alzheimer’s specifically, it’s a remarkably simple addition to your safety plan.

Dark mats or rugs in front of doors can work on the same principle, as they may be perceived as holes or obstacles. Painting the door the same color as the surrounding wall can also reduce its visual prominence, making it less likely to attract attention.

Monitoring and Tracking Technology

GPS wearable devices have become a practical backup for caregivers, offering a way to locate someone quickly if prevention measures fail. Most GPS solutions for dementia are portable devices clipped to clothing, attached to a belt, or placed in a pocket. Wrist-worn options exist but are less common, partly because many people with dementia remove unfamiliar wristbands.

Motion-sensor systems inside the home can alert you when someone gets out of bed or enters a hallway. Pressure mats placed beside the bed or in front of doors trigger an alarm when stepped on. These are particularly useful at night because they give you an early warning, often before the person reaches an exit. Some caregivers use simple baby monitors or camera systems pointed at the bedroom door for the same purpose.

Address Toileting Needs Proactively

Needing the bathroom is one of the most common reasons people with dementia get up at night, and once they’re up and disoriented, wandering follows. A scheduled toileting routine before bed, combined with reducing fluids in the two hours before sleep, can cut down on overnight waking. A commode placed next to the bed, with a clear path lit by a nightlight, removes the need to navigate hallways at all.

If the person does need to reach the bathroom during the night, make the route as obvious as possible. Motion-activated nightlights along the hallway, a light left on in the bathroom, and removing obstacles from the path all reduce the chance of a confused detour toward an exit.

When Melatonin May Help

Melatonin supplements have shown genuine promise for reducing nighttime restlessness and sundowning in people with Alzheimer’s. In several clinical studies, a dose of 3 mg taken at bedtime significantly reduced nighttime activity and made sleep onset more predictable. One study found that 7 out of 10 dementia patients with sleep disorders showed measurable improvement after three weeks on melatonin. Higher doses (6 to 9 mg) used over longer periods of two to three years improved sleep quality, and in one group of 14 patients, sundowning symptoms became undetectable in 12 of them.

A sustained-release formulation at 2.5 mg also showed improvement in caregiver-rated sleep quality compared to placebo, suggesting that how the melatonin is released through the night matters as much as the dose. Melatonin is generally well tolerated, but the right dose and timing should be discussed with a doctor, especially since it can interact with other medications common in older adults.

Putting the Layers Together

No single strategy is foolproof. The most effective approach combines several layers: a consistent daytime routine with physical activity and bright light exposure, a calm evening wind-down with reduced fluids, secured exits with alarms, visual deterrents at doors, a clear and lit path to the bathroom, and monitoring technology as a safety net. Each layer catches what the others might miss. A door alarm won’t stop someone from getting up, but it will wake you if they reach the exit. Bright daytime light won’t prevent every episode of confusion, but it reduces the frequency. Together, these measures can dramatically lower the risk of a dangerous nighttime wandering event.