Journal · What the Research Says

Does Afternoon Coffee Really Hurt Your Sleep After 40?

Does Afternoon Coffee Really Hurt Your Sleep After 40?

It is ten past three and the second cup is cooling next to the laptop. You slept badly again last night, and you suspect the cup. Or you suspect it isn't the cup, because you've had afternoon coffee for 20 years and slept fine for most of them. Either way, the question is a fair one: does a late cup cost you sleep, and if so, how late is too late?

We went looking for what has been measured, and on whom. The short version is that the effect of caffeine on sleep is one of the better-documented findings in sleep research, but almost all of it comes from healthy adults who are mostly younger than we are. For women in midlife, the evidence is much thinner than the confident advice about cutoff times suggests. We have covered the wider evening routine elsewhere, where caffeine appears only briefly, so this one stays on the cup.

What researchers found

The broadest source is a 2023 systematic review and meta-analysis in Sleep Medicine Reviews. It pooled 24 controlled crossover experiments in healthy adults aged 18 to 65, where each person slept once after caffeine and once after a comparison. The analysis of total sleep time counted 340 participants, though some people appear in more than one comparison. On average, caffeine went with about 45 minutes less sleep, sleep efficiency (the share of time in bed actually spent asleep) about 7 points lower, about 9 minutes longer to fall asleep, and about 12 more minutes awake during the night. Deep sleep was also shorter, by roughly 11 minutes. Timing mattered, but less than you might expect: for each additional hour between the caffeine and bedtime, the loss shrank by only about 3 minutes. Timing helped, but only a little.

From that model the authors estimated that a cup of coffee (about 107 mg of caffeine per 250 mL) would need to be finished roughly 8.8 hours before bed to avoid a statistically significant loss of total sleep. That figure describes what a statistical model predicted in healthy volunteers. The authors themselves say it rests on statistical significance rather than clinical significance, and that people vary widely in how fast they clear caffeine. Gardiner et al., Sleep Medicine Reviews, 2023

One of the trials behind that picture is the one usually cited for the "six hours" rule. A 2013 randomized, double-blind crossover study in the Journal of Clinical Sleep Medicine gave 12 healthy normal sleepers (six women and six men, aged 19 to 48) a 400 mg caffeine capsule or a placebo, taken at bedtime, three hours before bedtime, or six hours before bedtime. Caffeine cut total sleep time by about an hour at every timing, including six hours before bed, as measured by a home EEG headband. In the sleep diaries, the six-hour result did not reach statistical significance, so people were less aware of the loss than the headband showed. A sample of 12 is below the 30 we use as a floor for practical advice, so take it as a direction. The volunteers averaged 29, so whether the same holds in midlife is not known. The study was supported by a grant from the company that made the headband. Drake et al., Journal of Clinical Sleep Medicine, 2013

What about people in midlife?

Two small laboratory trials from the same Montreal group compared younger and middle-aged adults. A 2006 double-blind crossover study in the Journal of Sleep Research gave a 200 mg caffeine capsule or a placebo in the evening to 12 young adults (20 to 30) and 12 middle-aged adults (40 to 60), all moderate caffeine consumers. In both age groups caffeine lengthened the time to fall asleep, lowered sleep efficiency, and shortened sleep, and the authors described the effects as generally similar across ages. Drapeau et al., Journal of Sleep Research, 2006 A 2015 double-blind crossover study in the Journal of Psychopharmacology tested 200 mg and 400 mg in 22 young adults (average age 23.5) and 24 middle-aged adults (average 51.7, with a wide spread). Caffeine disturbed sleep in both groups, and at the higher dose the effects were more pronounced in the middle-aged group. Robillard et al., Journal of Psychopharmacology, 2015 Neither abstract says how many of the participants were women, and no group in either trial reaches 30 people, so they are hints about midlife at best. A 2017 systematic review in Sleep Medicine Reviews suggested that older adults may be more sensitive to caffeine's effects on sleep, though most of the studies it covered were in men from Western countries. The abstract gives neither the number of studies nor the number of participants, and does not say what ages count as "older," so we treat this as a pointer only, not as a finding about women in their 40s and 50s. Clark and Landolt, Sleep Medicine Reviews, 2017

One survey looked at women directly, though not at sleep. A 2015 cross-sectional study in Menopause analyzed questionnaires from 1,806 women who came to a Mayo Clinic women's health clinic with menopausal concerns (the abstract does not give their ages). Women who used caffeine rated their hot flashes and night sweats as slightly more bothersome than women who did not (an average score of 2.30 versus 2.15 on the questionnaire's scale). The abstract describes the finding as a link in postmenopausal women. It was a single questionnaire at one point in time, so it cannot show that caffeine caused anything, and it did not measure sleep. Night sweats can interrupt a night, so it is a reasonable thread to follow, but that connection is our inference. The study did not test it. Faubion et al., Menopause, 2015

Where the data is thin or conflicts

The biggest gap is the plain one: we didn't find a trial of afternoon coffee and sleep in women in perimenopause, or in women in their 40s and early 50s specifically. Everything above comes from healthy adults in general, from two small midlife trials that do not report the sex of their volunteers, or from a clinic survey that did not measure sleep.

The two midlife trials do not fully agree. One found effects that were generally similar in young and middle-aged adults at 200 mg. The other found a bigger effect in the middle-aged group, but only at the higher 400 mg dose. Both are small, so the difference may reflect who happened to enroll. The 2023 meta-analysis adds a different kind of uncertainty. Its volunteers were healthy and mostly low to moderate coffee drinkers, and the authors note the results may not carry over to people with high habitual intake. They also note that sleep loss could shrink with regular use, because the body may adapt, though they say tolerance has not been clearly shown in humans. How fast any one of us clears caffeine varies a lot (the review cites half-lives from 2 to 10 hours), and the trials did not sort people that way.

There is a practical mismatch too. Most of these studies gave capsules at set times to people asked to avoid other caffeine and then measured sleep in a lab or with a headband. Real afternoons involve a latte of unknown strength, a cup of tea, a square of chocolate, and a day that was already short on sleep. Finally, causation can run both ways: women who sleep poorly may drink more coffee to get through the afternoon, and a survey cannot untangle that. For the wider picture of why sleep changes in this stage of life, see the perimenopause sleep research.

What this can look like in practice

Here is what the research suggests you can try, as a small test of your own. The trials point to caffeine in the afternoon and evening, and one small trial suggests the loss can be bigger on a headband than in how rested you feel. So it is worth writing down the clock time along with the mood. For about two weeks, write down the time of your last caffeinated drink and, each morning, one line about how long it seemed to take to fall asleep and how many times you woke. Then move that last drink earlier, or swap it for a decaf or herbal version, for another two weeks, and compare the notes. Nothing in the studies promises that this will change how you sleep. What you will have is a few notes about your own nights, which no study of other people can give you.

If a place to keep the notes helps, our workbook Sleep After 40 follows the same method, with each claim linked to its study. It's there if it appeals. The article stands on its own without it.

What to hold off on

We wouldn't treat the 8.8 hours, or the six hours, as a personal cutoff. They describe what happened to healthy volunteers in specific experiments, not what will happen in your kitchen. Nor would we assume coffee is behind every bad night. The studies can't say that, and night sweats, stress, and plenty else interrupt sleep in these years. A cup you enjoy is nothing to feel guilty about. If your sleep stays poor for weeks, or you wake drenched or short of breath, that belongs with your own doctor.

Sources

  • Gardiner, C., Weakley, J., Burke, L. M., Roach, G. D., Sargent, C., Maniar, N., Townshend, A., & Halson, S. L. (2023). The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Systematic review and meta-analysis of 24 controlled crossover studies in healthy adults aged 18 to 65 (total sleep time analysis N = 340); mostly low to moderate habitual caffeine users; five studies at high risk of bias; full text read. Sleep Medicine Reviews, 69, 101764. Link
  • Drake, C., Roehrs, T., Shambroom, J., & Roth, T. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Randomized, double-blind, placebo-controlled crossover, N = 12 healthy sleepers (6 women, 6 men, aged 19 to 48, mean 29.3), 400 mg capsules, home EEG headband; funded by a grant from the headband's maker. Below the 30-person threshold we use, so treated as a direction only. Journal of Clinical Sleep Medicine, 9(11), 1195–1200. Link
  • Drapeau, C., Hamel-Hébert, I., Robillard, R., Selmaoui, B., Filipini, D., & Carrier, J. (2006). Challenging sleep in aging: the effects of 200 mg of caffeine during the evening in young and middle-aged moderate caffeine consumers. Double-blind crossover, N = 24 (12 aged 20 to 30, 12 aged 40 to 60); abstract read, sex of participants not given. Below the 30-person threshold, so treated as a direction only. Journal of Sleep Research, 15(2), 133–141. Link
  • Robillard, R., Bouchard, M., Cartier, A., Nicolau, L., & Carrier, J. (2015). Sleep is more sensitive to high doses of caffeine in the middle years of life. Double-blind crossover, N = 46 (22 aged about 23.5, 24 aged about 51.7 ± 11.5), polysomnography, 200 mg and 400 mg; abstract read, sex of participants not given. Each age group is below the 30-person threshold, so treated as a direction only. Journal of Psychopharmacology, 29, 688–697. Link
  • Clark, I., & Landolt, H. P. (2017). Coffee, caffeine, and sleep: a systematic review of epidemiological studies and randomized controlled trials. Systematic review; number of studies and participants not given in the abstract (the only part read), so used as a pointer only; most included studies in male adults of Western countries. Sleep Medicine Reviews, 31, 70–78. Link
  • Faubion, S. S., Sood, R., Thielen, J. M., & Shuster, L. T. (2015). Caffeine and menopausal symptoms: what is the association? Cross-sectional questionnaire study, N = 1,806 women with menopausal concerns at one US clinic, Mayo Clinic (ages not given in the abstract); did not measure sleep; shows association only. Menopause, 22(2), 155–158. Link
This is educational content. It is not medical advice and is not a substitute for consultation with a licensed physician. Nothing here is intended to diagnose, treat, cure, or prevent any disease or condition. If you have a health concern, please talk to your doctor.
← More from the journal