The best sleep aid for most seniors is not a pill. Cognitive behavioral therapy for insomnia (CBT-I) is the recommended first-line treatment, and when medication is needed, the safest options are very different from what you’ll find on a drugstore shelf. Many popular over-the-counter sleep aids, including diphenhydramine (the active ingredient in Benadryl and most “PM” medications), are specifically flagged as drugs to avoid in older adults.
Why Sleep Changes With Age
As you get older, your internal clock naturally shifts earlier. You feel sleepy sooner in the evening and wake earlier in the morning. Your body also produces less melatonin, the hormone that signals sleep onset, and you spend less time in deep sleep stages. These are normal changes, but they can make it harder to stay asleep through the night or feel rested in the morning. Understanding this is important because some sleep problems in seniors aren’t disorders at all. They’re a mismatch between expectations and biology.
Behavioral Approaches Work Best
Clinical guidelines consistently recommend starting with non-drug approaches. CBT-I, a structured program that retrains sleep habits and thought patterns, works especially well for the most common complaint among older adults: waking up in the middle of the night and struggling to fall back asleep.
Two specific techniques form the backbone of CBT-I. Stimulus control means using your bed only for sleep (and sex), leaving the bedroom if you’re awake for more than 15 to 20 minutes, and returning only when you feel sleepy again. You keep your wake-up time fixed every day regardless of how well you slept. Sleep restriction limits the time you spend in bed to match the amount of sleep you’re actually getting. Once your sleep efficiency improves above 90%, you gradually add 15-minute increments of time in bed until you reach a satisfying duration. The minimum is never set below five hours.
These methods feel counterintuitive, and the first week or two can be rough. But they reshape the association between your bed and sleep, and the effects tend to last longer than medication.
Over-the-Counter Sleep Aids to Avoid
Diphenhydramine and doxylamine, the two antihistamines found in nearly every OTC sleep product, are on the American Geriatrics Society’s Beers Criteria list of medications that older adults should avoid. The reason is their anticholinergic effect: they block a brain chemical called acetylcholine that plays a central role in memory and alertness. Older adults are especially vulnerable because the brain produces less acetylcholine with age and the blood-brain barrier becomes more permeable, letting more of the drug reach sensitive tissue.
The consequences go beyond next-day grogginess. Cumulative use of strong anticholinergic medications is linked to an increased risk of sustained cognitive decline, including mild cognitive impairment and dementia. A large prospective study published in JAMA Internal Medicine found that the risk rose with higher cumulative exposure. These drugs also cause dry mouth, constipation, urinary retention, and blurred vision, all of which are more pronounced and more problematic in older bodies.
Melatonin: A Reasonable Starting Point
Melatonin supplements mimic the body’s own sleep-timing hormone and can help shift your internal clock earlier or later. For seniors, experts recommend starting with a low dose, as little as 0.3 mg and no more than 2 mg, taken about one hour before bedtime. Higher doses are not more effective and can cause morning drowsiness.
Melatonin’s strength is helping with sleep onset, not necessarily keeping you asleep through the night. It has a favorable safety profile and no significant risk of dependence. If falling asleep is your main problem, it’s a reasonable first supplement to try.
Magnesium Supplements
Magnesium has drawn interest as a natural sleep aid, particularly magnesium oxide and magnesium citrate. A meta-analysis of studies in older adults found that magnesium supplementation reduced the time it took to fall asleep by about 17 minutes compared to placebo. Total sleep time improved by roughly 16 minutes, though that result wasn’t statistically significant. Doses in these studies ranged from 320 mg to 729 mg of elemental magnesium per day, typically split into two or three doses. Magnesium is generally well tolerated, though higher doses can cause loose stools.
Prescription Options When Medication Is Needed
When behavioral strategies and supplements aren’t enough, a few prescription categories have better safety profiles for older adults than others. The guiding principle for any sleep medication in this age group is: lowest effective dose, shortest possible duration (ideally no more than three to four weeks), and intermittent use when feasible.
Low-Dose Doxepin
At very low doses (3 to 6 mg), doxepin blocks histamine receptors that promote wakefulness. At this dose it doesn’t carry the anticholinergic risks associated with higher doses used for depression. It’s particularly useful for sleep maintenance, meaning it helps you stay asleep rather than fall asleep faster. It improves total sleep time and sleep quality, and it’s one of the few medications studied specifically in older adults with a favorable safety record.
Orexin Receptor Antagonists
A newer class of sleep medications works by blocking orexin, a brain chemical that promotes wakefulness. Unlike older sedatives that broadly suppress brain activity, these drugs target a more specific wake-promoting system. Animal and clinical studies suggest they have less impact on balance and cognition compared to benzodiazepines, which matters enormously for fall prevention in seniors. The most common side effects are next-day sleepiness (about 13% of users versus 3% on placebo), fatigue, and dry mouth. Serious adverse events were actually slightly less common in the medication group than in the placebo group in clinical trials. These medications are sometimes a good alternative for older adults who have had side effects from other sleep drugs.
Ramelteon
Ramelteon works on the same melatonin receptors as melatonin supplements but is a prescription-strength version. It’s used at doses of 4 to 8 mg per day and helps primarily with falling asleep. It has no abuse potential and no risk of physical dependence, which makes it one of the safer prescription options.
Medications That Carry Serious Risks
The 2023 Beers Criteria explicitly recommends avoiding several categories of sleep medications in older adults.
- Benzodiazepines (such as temazepam, lorazepam, and diazepam) increase the risk of cognitive impairment, delirium, falls, fractures, physical dependence, and car accidents. A large population study found that older adults taking long-acting benzodiazepines had more than twice the risk of falls or fractures. That risk grew with longer use: after 90 days, it reached 2.5 times higher. For adults 85 and older on certain related medications, the risk climbed to 11 times higher.
- Z-drugs (zolpidem, eszopiclone, zaleplon), despite being newer and widely prescribed, carry similar risks to benzodiazepines in older adults, including delirium, falls, fractures, and increased emergency room visits, with only minimal improvement in how quickly you fall asleep.
- First-generation antihistamines (diphenhydramine, doxylamine, hydroxyzine) should be avoided due to anticholinergic effects on the brain.
- Barbiturates have a high rate of physical dependence and overdose risk at low doses.
Some of these medications, particularly Z-drugs, still appear in clinical guidelines as first-line agents in certain countries. But the American Geriatrics Society’s position is clear: the risks outweigh the modest benefits for older adults.
A Practical Approach
If you’re a senior struggling with sleep, the most effective path usually starts with behavioral changes. Fix your wake time, limit time in bed, and remove screens and other stimulation from the bedroom. If you want to try a supplement, low-dose melatonin (0.3 to 2 mg) taken an hour before bed is the safest option for difficulty falling asleep. Magnesium may offer a modest additional benefit.
If those steps aren’t enough, talk with your doctor about low-dose doxepin for staying asleep, ramelteon for falling asleep, or an orexin receptor antagonist as an alternative to older sedatives. Be wary of any provider who reaches for benzodiazepines or Z-drugs as a first option, and clear your medicine cabinet of OTC “PM” products that contain diphenhydramine. For older adults, those familiar blue pills create far more risk than benefit.

