How to Sleep Better in Your 40s (2026): What Actually Changes — and What to Do About It

Rest Science may earn a commission on purchases made through some links on this page. It never changes our verdicts. Read our affiliate & advertising disclosure.

Somewhere in your 40s, sleep stops working the way it used to. You fall asleep fine and wake at 3 a.m. for no reason. You sleep seven hours and wake up feeling like you got four. The wind-down routine that worked at 30 does nothing now, and the advice online is either aimed at 25-year-olds or at retirees. Here's the honest version: your sleep isn't broken, and you don't need less of it. What's changed is the machinery underneath — less deep sleep, a lighter sleep, a body clock that runs earlier — and the habits that used to be optional are now the ones that decide whether you wake up rested.

What actually changes after 40

Four things shift, and they're worth knowing by name, because each one points at a different fix. First, deep sleep declines. A 2004 meta-analysis in the journal Sleep pooled 65 studies covering 3,577 healthy people and found that slow-wave (deep) sleep falls by roughly 2% of total sleep time per decade from the mid-30s onward — so by 60, many people get under 10% of the night in deep sleep, down from 20 to 25% in their 20s. Deep sleep is where most physical repair happens, so losing it is why sleep feels less restorative even when the hours look the same.

Second, sleep gets lighter and more fragmented. The same research shows sleep efficiency — the share of time in bed actually spent asleep — falls with age, and wake-after-sleep-onset rises. Small disturbances that you slept through at 25 now wake you: a snoring partner, a warm room, a full bladder. Third, your body clock shifts earlier. The National Institute on Aging notes that as we age we tend to go to bed earlier and wake up earlier, with lighter sleep and more waking during the night — which is why 4 a.m. wake-ups become a midlife cliché. And fourth, hormones change the game: testosterone declines gradually in men (roughly 1% a year from around 30), and for women the perimenopause transition brings night sweats and fragmented sleep — the Menopause Society reports sleep disturbance affects roughly 40–60% of women in the menopause transition and after. What doesn't change: you still need about 7 to 9 hours. The need stays; the ability to get it uninterrupted is what erodes.

The five levers that matter most now

At 25 you could get away with an irregular schedule and a late coffee. At 45 the margin is gone, and these five levers are what the evidence actually supports — in rough order of impact.

  1. Fix the wake time, not the bedtime. One wake time, seven days a week, within about 30 minutes. Your body clock anchors to when you wake, not when you go to bed, and a two-hour weekend lie-in is a self-inflicted time-zone change that costs you until Wednesday. Our guide to fixing your sleep schedule is the practical version of this.
  2. Get morning light within an hour of waking. Light is the strongest signal for your internal clock, and after 40 your clock needs stronger signals. Ten to 20 minutes outside, or by a bright window, beats any supplement. If you wake before sunrise, a light therapy lamp at breakfast does the same job.
  3. Move your last coffee to the morning. Caffeine's half-life is roughly five to six hours, and sensitivity to it increases with age. A good rule now is no caffeine within eight hours of bed — for a 10:30 bedtime, that means the last cup by 2:30 p.m. The full case is in our caffeine and sleep guide.
  4. Add resistance training. Of all the interventions studied for restoring deep sleep in midlife, regular exercise — especially resistance training a few days a week — has the strongest evidence. A 2023 systematic review found resistance training increased slow-wave sleep by 10 to 20 minutes a night within about four weeks. It doesn't have to be heavy: bodyweight work counts, and morning or afternoon timing beats late-evening sessions.
  5. Cool the room and protect the first hours of the night. Deep sleep is concentrated in the first half of the night, so that's the window to protect. A cool room (around 65°F), a real wind-down, and no alcohol in the evening — alcohol suppresses deep sleep in the first half of the night and fragments the second. Our 60-minute wind-down routine is a template you can shrink to 20 minutes.

What to stop doing

Some of the most popular midlife sleep advice is either useless or actively counterproductive, and the 40s are when the bill comes due. Melatonin megadoses are the classic example: the doses sold in stores (5 to 10 mg) are far above what the evidence supports, and the American Academy of Sleep Medicine suggests against using melatonin for long-term insomnia because the benefits found in studies were small. If you use it at all, low doses (0.5 to 1 mg) taken an hour before bed are the evidence-based range — and it shifts timing more than it improves sleep quality. Our melatonin vs magnesium comparison covers both honestly.

Using alcohol as a sedative is the second one to drop. It helps you fall asleep and then quietly dismantles the second half of the night — the half where most of your REM sleep lives. If you're waking at 3 a.m. after an evening drink, that's not a mystery, it's a mechanism. Sleeping in on weekends is the third: it feels like recovery, but it shifts your clock later and makes Monday's wake-up harder, which is why the worst mornings of the week are so often Mondays. And chasing your tracker's deep-sleep score is the fourth — wearables estimate sleep stages from movement and heart rate, they don't measure them, and the nightly number varies more than your actual sleep does. Use the tracker for trends over weeks, not for judging last night.

When it's not just aging

"It's just your age" is the most common way real sleep problems get missed in midlife, so here's the line. Sleep apnea risk rises sharply after 40 — in men especially — and loud snoring with gasping, pauses, morning headaches, or daytime sleepiness is a medical problem, not an aging problem. A home sleep test takes one night and answers it definitively. If you've had trouble falling or staying asleep three or more nights a week for three months or longer, that's chronic insomnia, and the first-line treatment is cognitive behavioral therapy for insomnia (CBT-I), not sleep hygiene tips alone — our CBT-I vs sleeping pills guide explains why. And if the problem started when a new medication did — beta blockers, some antidepressants, and diuretics are common culprits — that's a conversation with the prescriber, not a new pillow. Aging changes your sleep. It doesn't explain away a disorder.

The experiment worth running: one fixed wake time, morning light within an hour, last coffee by early afternoon, and a cool, dark room — for two weeks, with a 1–10 morning score by the bed. If the score climbs, the machinery is fine and the habits were the problem. If it doesn't move, get tested: the answer is probably medical, and midlife is exactly when apnea and insomnia start getting missed.

FAQ

Do you need less sleep after 40?

No. Adults still need about 7 to 9 hours, and that holds as you get older — the National Institute on Aging is clear on this. What changes is how easily you get it uninterrupted, not how much you need.

Why do I keep waking up at 3 a.m. now?

It's the combination of a body clock that has shifted earlier, lighter sleep with more awakenings, and a brain that is more easily activated by stress, a full bladder, or a warm room in the second half of the night. Our guide to waking up at 3 a.m. covers the mechanism and the fix.

Is melatonin safe to take every night after 40?

Low doses (0.5 to 1 mg) are generally considered safe for short-term use, but the evidence for long-term benefit is thin, and the 5 to 10 mg doses commonly sold are far above what studies support. If sleep problems persist for months, CBT-I has far stronger evidence than any supplement.

Keep reading