CortexLit · caffeine

Afternoon Caffeine and Sleep: How Late Is Too Late

What the trials say about cut-off times, and one rule you can actually keep

6 min readUpdated 2026-10-11 AI-drafted · not medically reviewed

What the evidence actually supports

1. Caffeine taken six hours before bed still reduced objective sleep time in a controlled trial, so 'I drink it early in the afternoon' is not automatically safe. [C01]

2. Across studies, caffeine close to bedtime delays sleep onset and shortens total sleep; the size of the effect is dose- and timing-dependent. [C02]

3. People clear caffeine at very different rates, which is why the evidence supports a personal cut-off tested against your own sleep rather than one universal hour. [C03]

One next step: Pick a caffeine cut-off at least six hours before your usual bedtime and keep it for two weeks before judging it.

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]

Make it one decision

Turn the evidence into one number: the latest time you will have caffeine today.

Companion tools

Both run entirely in your browser. Nothing is uploaded, and no account is needed.

free tool
Caffeine Cut-off Calculator
Convert your bedtime and how slowly you clear caffeine into a personal latest-caffeine time, instead of guessing from someone else's rule.
free tool
Daily Caffeine Load Tracker
Add up what you actually consume in a day so you are reacting to a number rather than a feeling.

Cautions and limits

Read this before trying anything

This page is not written for

Talk to a clinician if

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-01

A 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 24235903
Randomized, 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-02

Across 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 36870101
Systematic 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 26899133
Systematic 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-03

Individual 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 26899133
Systematic 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 36870101
Systematic 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

SourceTypeWeightPubMed
src-caf-03randomized controlled trial0.824235903
src-caf-01systematic review meta analysis1.036870101
src-caf-02systematic review meta analysis1.026899133

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.