The short version
Caffeine does not simply keep you awake while it is in your system. A single 400 mg dose taken six hours before bed measurably reduced sleep in a controlled trial, and pooled data from many studies show later intake pushes sleep onset later and shortens total sleep time. The catch is that people vary a lot in how fast they clear caffeine, so a single universal cut-off hour is not supported. The practical move is to pick a personal cut-off a fixed number of hours before your own bedtime, then judge it by how you sleep.
Six hours is not a free pass
The cleanest single study here gave 12 people 400 mg of caffeine (about two strong coffees) at bedtime, three hours before bed, or six hours before bed, in a double-blind crossover design. Even the six-hours-before dose reduced total sleep time compared with placebo.
That matters because six hours is exactly how most people describe their own habit: 'only after lunch, never in the evening.' The study says that habit can still cost you sleep, even when you feel fine falling asleep.
[C01]
What the pooled evidence adds
Two systematic reviews reach the same broad conclusion from much larger evidence bases: caffeine before sleep lengthens the time it takes to fall asleep and reduces how long you sleep. A 2023 review with meta-analysis found the effect is dose-dependent, and that timing shifts the size of it.
An older but still widely cited systematic review of both cohort studies and trials added the point that keeps coming up: the relationship is not one-size-fits-all.
[C02]
Why there is no universal cut-off hour
Caffeine's half-life differs substantially between people because of genetics, age, liver function, smoking status, pregnancy and some medications. Two people can drink the same coffee at the same time and have meaningfully different amounts still circulating at midnight.
That is why the honest advice is not 'no caffeine after 2pm'. It is: choose a buffer measured backwards from your own bedtime, then check it against how you actually sleep for a couple of weeks.
[C03]
What the evidence does not say
Nothing here proves that caffeine causes insomnia as a diagnosis, and none of it applies to children, pregnancy, or people managing a medical condition with stimulants. The reviews also do not establish that cutting caffeine will fix sleep problems that have another cause.
If you cut caffeine and sleep does not improve in a few weeks, the caffeine was probably not the main driver.
[C02] [C03]
Caffeine myth check
Four things people repeat about caffeine and sleep, and what the evidence actually supports.
"I can drink espresso after dinner and sleep fine."
Falling asleep quickly is not the same as sleeping well. In the six-hour trial the effect was on total sleep time, not on how hard it was to fall asleep. [C01]
"Decaf is completely caffeine-free."
Decaf contains far less caffeine but not none. If you are sensitive, several decafs late in the day are not automatically neutral. [C03]
"No caffeine after 2pm is the scientific rule."
It is a reasonable starting point, not a finding. The reviews emphasise individual variation in clearance rather than one hour that fits everyone. [C03]
"Caffeine wears off in a couple of hours."
Clearance is measured in hours, not minutes, and varies between people. That is the reason the buffer is measured backwards from bedtime. [C01] [C03]
Claims, sources and what they can carry
Every claim links to the source(s) behind it. Weights rank source types
(Cochrane/systematic reviews 1.0, recognised guidelines 0.9, RCTs 0.8, observational or
preprint 0.5, mechanistic 0.2). A weight is not certainty and is not GRADE.
establishedc-01A 400 mg dose of caffeine taken six hours before bedtime measurably reduced objective sleep time compared with placebo.
Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013;9(11):1195-1200.
PMID 24235903Randomized, double-blind, placebo-controlled crossover trial (n=12); 400 mg caffeine at 0, 3 or 6 h before bed. · weight 0.8 · 400 mg caffeine taken even 6 hours before bedtime measurably reduced objective sleep time compared with placebo.↑ back to the article
establishedc-02Across systematic reviews, caffeine taken before sleep lengthens sleep onset latency and reduces total sleep time; the size of the effect depends on dose and timing.
Gardiner C, Weakley J, Burke LM, et al. The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Med Rev. 2023;69:101764.
PMID 36870101Systematic review and meta-analysis of caffeine and subsequent sleep. · weight 1.0 · Caffeine taken before sleep lengthens sleep onset latency and reduces total sleep time; effects are dose- and timing-dependent.Clark I, Landolt HP. Coffee, caffeine, and sleep: A systematic review of epidemiological studies and randomized controlled trials. Sleep Med Rev. 2017;31:70-78.
PMID 26899133Systematic review of epidemiological studies and RCTs. · weight 1.0 · Caffeine close to bedtime disrupts sleep; individual sensitivity varies widely, so a single universal cut-off time is not supported.↑ back to the article
directionalc-03Individual caffeine clearance varies widely, so the evidence supports a personal cut-off tested against your own sleep rather than one universal hour.
Clark I, Landolt HP. Coffee, caffeine, and sleep: A systematic review of epidemiological studies and randomized controlled trials. Sleep Med Rev. 2017;31:70-78.
PMID 26899133Systematic review of epidemiological studies and RCTs. · weight 1.0 · Caffeine close to bedtime disrupts sleep; individual sensitivity varies widely, so a single universal cut-off time is not supported.Gardiner C, Weakley J, Burke LM, et al. The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Med Rev. 2023;69:101764.
PMID 36870101Systematic review and meta-analysis of caffeine and subsequent sleep. · weight 1.0 · Caffeine taken before sleep lengthens sleep onset latency and reduces total sleep time; effects are dose- and timing-dependent.↑ back to the article
Evidence ledger for this entry
| Source | Type | Weight | PubMed |
| src-caf-03 | randomized controlled trial | 0.8 | 24235903 |
| src-caf-01 | systematic review meta analysis | 1.0 | 36870101 |
| src-caf-02 | systematic review meta analysis | 1.0 | 26899133 |
Verification in this run was record/abstract level via NCBI E-utilities. Full text
was not read and no retraction database was queried. Sources with a recorded verification gap are
flagged in place.