How to sleep better after 40
How much sleep adults over 40 need, what to do when you can't fall asleep, how to set a schedule and a bedroom for sleep, what caffeine, alcohol, and naps do, and what research says about melatonin.

On this page
If you want to know how to sleep better, start with the habits that NIH health institutes recommend again and again: a steady schedule, a cool and dark bedroom, and fewer things that keep your brain switched on at night. After 40 they deserve a closer look, because sleep tends to get shorter and lighter with age, and you may wake up more often during the night, according to the National Institute on Aging (NIA).
This guide covers how much sleep you need, what to do when you can’t drift off, and when poor sleep is a reason to see a doctor.
How much sleep do you need after 40?
Most adults need 7 to 9 hours of sleep a night, and that includes older people, says the National Institute of Neurological Disorders and Stroke (NINDS). MedlinePlus adds that there’s no evidence adults need less sleep as they age. What changes is how you sleep. Older adults often spend less time in the deep, restful stages and wake up more easily.
Quality counts as much as hours. If your sleep is often broken up, you may not get enough of certain sleep stages. MedlinePlus suggests three questions to check yourself:
- Do I have trouble getting up in the morning?
- Do I have trouble focusing during the day?
- Do I doze off during the day?
A yes to any of them suggests your sleep habits need work.
Sleep also runs in cycles. You move through light sleep, deep sleep, and REM (dreaming) sleep several times a night, and your first REM period starts about 90 minutes after you fall asleep, NINDS says. StatPearls, a medical reference on the NCBI Bookshelf, puts each full cycle at about 90 minutes. Our sleep calculator uses those 90-minute cycles to suggest bedtimes and wake-up times, so your alarm is more likely to go off at the end of a cycle.
How to fall asleep fast
If you can’t fall asleep after about 20 minutes, get up and do something relaxing, MedlinePlus advises. NINDS gives the same advice: don’t lie in bed awake. Read or listen to calming music until you feel tired, then go back to bed.
That can feel backward when you’re desperate to sleep. Lying there staring at the clock rarely helps, though, and both pages say to leave the bed until you feel tired.
A few more steps can help you fall asleep fast:
- Keep the last hour quiet. The National Heart, Lung, and Blood Institute (NHLBI) suggests using the hour before bed for quiet time, without intense exercise or bright artificial light from a TV or computer screen. That light may tell your brain it’s time to be awake.
- Try a warm bath. NIA suggests reading, soothing music, or a warm bath to relax before bed. NHLBI and NINDS list a bath too.
- Keep screens out of the bedroom, as NIA suggests: no TV, computer, phone, or tablet there.
- Watch the lights. Light is perhaps the biggest single influence on your sleep and wake times, according to NINDS. Light at night can make it hard to fall asleep or to get back to sleep after you wake up.
Keep the same sleep schedule every day
Go to bed and get up at the same time every day, even on weekends and when you travel, NIA advises. NHLBI says the gap between your weekday and weekend schedules should be no more than about an hour, because staying up late and sleeping in on weekends can upset your body clock.
Your body clock (your circadian rhythm) makes you sleepy at night and can help you wake up in the morning without an alarm, NINDS explains. A second system, your sleep drive, gets stronger every hour you’re awake. A steady schedule lets the two work together.
Weekend catch-up sleep may not repay a week of short nights, NINDS adds, depending on how much sleep you’ve lost.
Daylight helps too. NHLBI suggests spending time outside every day when you can, and MedlinePlus lists getting enough sunlight during the day as a sleep habit. Pick a fixed wake-up time, then work back to a bedtime that gives you 7 to 9 hours.
Make your bedroom a place for sleep
NHLBI and MedlinePlus both recommend a bedroom that’s cool, dark, and quiet. A dim night light is fine if you need one, NHLBI says. NIA suggests a room temperature that’s neither too hot nor too cold.
For people over 40, the bedroom is also a safety question. NIA suggests:
- A lamp within easy reach, a night light in the hallway or bathroom, and a flashlight nearby
- No area rugs or cords to trip over if you get up at night
- A phone with emergency numbers by the bed
- Smoke alarms on each floor of your home
Caffeine, alcohol, meals, and naps
Caffeine’s effects can last up to 8 hours, according to NHLBI, so a cup of coffee in the late afternoon can make it hard to fall asleep at night. Tea, chocolate, and soda count too.
For alcohol, NHLBI and NINDS advise against alcoholic drinks before bed. NIA goes further and suggests avoiding alcohol, even small amounts.
Nicotine is a stimulant, like caffeine, and can interfere with sleep, NHLBI says.
With meals, NIA suggests not eating large meals within two to three hours of bedtime and not drinking large amounts of liquid late in the day. A light snack is okay, NHLBI says.
A short nap can help you feel more alert. But if you have trouble falling asleep at night, NHLBI suggests limiting naps, taking them earlier in the afternoon, and keeping them to 20 minutes or less. MedlinePlus says not to nap after 3 p.m.
Exercise helps, as long as it’s not too close to bed. NINDS suggests at least 30 minutes of exercise most days of the week, but not within a few hours of bedtime. NIA suggests ending exercise at least three hours before bed.
What about melatonin and other sleep aids?
Melatonin supplements may help with jet lag, but practice guidelines don’t find strong enough evidence to recommend them for long-term insomnia, according to the National Center for Complementary and Integrative Health (NCCIH).
Melatonin is a hormone your brain makes in response to darkness. It helps set the timing of your body clock and sleep, and light at night can block it, NCCIH explains.
Here’s what NCCIH says about melatonin supplements:
- For long-term (chronic) insomnia, guidelines from the American Academy of Sleep Medicine and the American College of Physicians found too little strong evidence on how well they work or how safe they are.
- Short-term use appears to be safe for most people. Information on long-term safety is lacking.
- Melatonin may stay active longer in older people and cause daytime drowsiness.
- Labels aren’t always accurate. In a 2017 test of 31 melatonin supplements, most didn’t contain the amount listed on the label.
In the United States, melatonin is sold as a dietary supplement, so the FDA regulates it less strictly than prescription or over-the-counter drugs. If you take medicine, check with your doctor first. NCCIH says people with epilepsy and people who take blood thinners should use melatonin only under medical supervision.
Sleep medicines may help in the short term, NIA says, but they carry risks, including dependence. Some lose their effect over time, so you need more to fall asleep.
When to talk to a doctor about sleep
Insomnia is the most common sleep problem in adults 60 and older, according to NIA. It means trouble falling asleep or staying asleep at least three nights a week. Short-term insomnia can come from stress or a change in routine. Chronic insomnia lasts more than three months.
For chronic insomnia, a structured program called cognitive behavioral therapy for insomnia (CBT-I) is often the first treatment. It combines changes in thinking, sleep habits, and relaxation. A 2015 review in the Annals of Internal Medicine pooled 20 trials with 1,162 adults whose average age was 56. After treatment, people fell asleep about 19 minutes faster and spent about 26 fewer minutes awake during the night. No harmful effects were reported.
See a doctor if you have problems sleeping or feel unusually tired during the day, NINDS advises. Also talk to one if you notice any of these:
- Loud snoring or pauses in breathing. These can be signs of sleep apnea, where your breathing stops for a few seconds again and again during sleep, NIA explains. Not everyone who snores has it, but untreated sleep apnea can lead to serious health problems.
- Tingling or crawling feelings in your legs at night. This can be restless legs syndrome. The feeling gets worse at night and better when you move, NIA says.
- Acting out your dreams. Moving during REM sleep, when the body normally stays still, can disrupt sleep and can be dangerous.
Before your visit, NIA suggests keeping a sleep diary for a couple of weeks. Note when you go to bed, when you wake up during the night, and when you get up for the day. Also note whether you had caffeine or alcohol and whether you exercised. Your doctor can use the diary to spot patterns.
Your plan for tonight
- Pick one wake-up time and keep it every day, weekends included.
- Use the sleep calculator to find a bedtime that gives you 7 to 9 hours.
- Stop caffeine 8 hours before that bedtime, and skip alcohol in the evening.
- Spend the last hour in dim light, without screens.
- If you’re still awake after about 20 minutes, get up and read until you feel sleepy.
For more on rest and recovery, browse our sleep guides or try our other health calculators.
This guide is general information, not medical advice. Talk to your doctor before you change your diet, your exercise, or your medicines. Read how we write and check our guides in our editorial policy.
Sources
- Brain Basics: Understanding Sleep, National Institute of Neurological Disorders and Stroke (NINDS), NIH
- Sleep and Older Adults, National Institute on Aging (NIA), NIH
- Sleep Deprivation and Deficiency: Healthy Sleep Habits, National Heart, Lung, and Blood Institute (NHLBI), NIH
- Healthy Sleep, MedlinePlus, National Library of Medicine
- Physiology, Sleep Stages, StatPearls, NCBI Bookshelf
- Melatonin: What You Need To Know, National Center for Complementary and Integrative Health (NCCIH), NIH
- Cognitive Behavioral Therapy for Chronic Insomnia: A Systematic Review and Meta-analysis, Trauer JM and others, Annals of Internal Medicine, 2015 (PubMed)