CaffeineTime

Evidence guide

Caffeine & sleep: what the studies show

Published · Updated · Sources checked claim by claim by an AI review. Approved for publishing by Oleksii Y. on 2026-10-19.

How long caffeine stays in your body, how much sleep and deep sleep it costs, why you may not notice the loss, and how far before bed studies suggest stopping at different doses.

Key takeaways

  • It lasts: in healthy adults caffeine's half-life averages about 4 hours and ranges from about 2 to 8 hours (EFSA); one study of 16 healthy men measured 2.3 to 9.9 hours (Blanchard & Sawers 1983).
  • It costs sleep: pooled across studies, caffeine cut total sleep by about 45 minutes and deep sleep by about 11 minutes, and made falling asleep take about 9 minutes longer (Gardiner et al. 2023).
  • Dose matters: in one trial in 23 healthy young men, 100 mg taken 12, 8 or 4 hours before bed had no significant effect, while 400 mg reduced deep sleep even 12 hours before bed (Gardiner et al. 2025).
  • You may not notice: in 12 people, 400 mg 6 hours before bed cut sleep measured by a monitor by more than an hour, while the loss in their sleep diaries was smaller and not statistically clear (Drake et al. 2013).

1. How caffeine keeps you awake

Adenosine is widely accepted as one of the body's own sleep-regulating substances (Reichert et al. 2022). Caffeine works mainly by blocking the receptors adenosine acts on, which reduces sleepiness while caffeine is in your body (McLellan et al. 2016). This is a simplified picture of a complex system.

2. What caffeine does to a night's sleep

A 2023 meta-analysis pooled 24 studies that measured sleep after caffeine. On average, caffeine changed sleep like this (Gardiner et al. 2023):

Total sleep

About 45 minutes less

Sleep efficiency, the share of time in bed spent asleep, fell by about 7%.

Deep sleep (N3)

About 11 minutes less

In the 2025 trial, 400 mg cut deep sleep by 15–30 minutes depending on timing.

Falling asleep

About 9 minutes longer

In the 2025 trial, 400 mg taken 4 hours before bed delayed sleep by about 14 minutes.

Feeling fine is not a reliable guide. In Drake et al. 2013, 12 healthy sleepers took 400 mg at bedtime, 3 hours or 6 hours before bed. Even the 6-hour dose cut sleep measured by a monitor by more than an hour; in their own sleep diaries the loss was smaller (about 41 minutes) and not statistically clear.

3. How far before bed to stop, by dose

Two studies from the same research group give dose-specific guidance. They do not fully agree at 100 mg: the meta-analysis pools many studies with different people and doses, while the trial tested 23 healthy young men who drank moderate amounts of caffeine. The 100 mg and 400 mg rows are doses the trial gave; the 107 mg and 217.5 mg rows are cutoffs the meta-analysis estimated by statistical modelling of its pooled data for a standard cup of coffee and a standard pre-workout serving.

DoseStudyFinding
100 mg2025 trialNo significant effect when taken 12, 8 or 4 hours before bed
107 mg (cup of coffee)2023 meta-analysis (estimate)At least 8.8 hours before bed
217.5 mg (pre-workout serving)2023 meta-analysis (estimate)At least 13.2 hours before bed
400 mg2025 trialLess deep sleep even at 12 hours; avoid within 12 hours of bed

These findings come from groups of people. Your own cutoff may be earlier or later, so treat any number as a starting point.

For what these findings mean for a Red Bull, a Diet Coke or a Starbucks grande, see the latest time to drink 30 popular drinks before bed.

4. Putting it into practice

  • Have your larger doses earlier in the day: in both studies, the bigger the dose, the further before bed it had to be to spare sleep.
  • Judge a change by your sleep rather than by how you feel at bedtime: in Drake et al. 2013, people noticed less of the lost sleep than the monitor measured.

Estimate your own timing

Estimate a cutoff for one drink, or plan several drinks around your day and see how much is left at bedtime.

General information, not medical advice

  • This tool provides educational estimates only.
  • Caffeine's half-life averages about 4 hours in healthy adults and ranges from about 2 to 8 hours (EFSA). Your actual clearance may differ.
  • This tool does not diagnose sleep disorders or caffeine sensitivity.

If you feel unwell after caffeine — for example chest pain, a fast or irregular heartbeat that does not settle, fainting, confusion or trouble breathing — get urgent medical help. If you are pregnant or breastfeeding, under 18, take medication, or have a heart, liver or anxiety condition, high blood pressure or a sleep disorder, ask a doctor or pharmacist what amount is right for you.

Sources

  1. Gardiner C, Weakley J, Burke LM, et al. (2023). The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews, 69, 101764. doi:10.1016/j.smrv.2023.101764 ↗
  2. Gardiner CL, Weakley J, Burke LM, et al. (2025). Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial. Sleep, 48(4), zsae230. doi:10.1093/sleep/zsae230 ↗
  3. Drake C, Roehrs T, Shambroom J, Roth T. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 9(11), 1195–1200. PMID 24235903 ↗
  4. European Food Safety Authority (2015). EFSA explains risk assessment: Caffeine. European Food Safety Authority. efsa.europa.eu (PDF) ↗
  5. Blanchard J, Sawers SJ. (1983). Comparative pharmacokinetics of caffeine in young and elderly men. Journal of Pharmacokinetics and Biopharmaceutics, 11(2), 109–126. PMID 6886969 ↗
  6. Reichert CF, Deboer T, Landolt HP. (2022). Adenosine, caffeine, and sleep-wake regulation: state of the science and perspectives. Journal of Sleep Research, 31(4), e13597. PMID 35575450 ↗
  7. McLellan TM, Caldwell JA, Lieberman HR. (2016). A review of caffeine's effects on cognitive, physical and occupational performance. Neuroscience & Biobehavioral Reviews, 71, 294–312. PMID 27612937 ↗

An app for better sleep is on the way

We’re working on a mobile app to help you sleep better. It isn’t out yet. Leave your email and we’ll let you know when it launches.