Home / What affects sleep

How late is too late for coffee?

Last updated

How late is too late for coffee?

Last checked 2026-11-07. Research moves — always confirm on the official pages linked below.

Short answer

Work out what six hours means for your own bedtime with the calculator on this page, and set the coffee cut-off from that rather than from a habit (Drake et al., 2013).

What the study actually did

This is worth knowing, because the numbers only mean what the design says they mean.

Researchers gave a fixed dose of 400 mg of caffeine at 0, 3 and 6 hours before each participant's habitual bedtime. They measured sleep in a lab rather than asking people how they felt, and they compared each condition against a placebo (Drake et al., 2013).

The size of the dose matters here: 400 mg is a substantial amount. The study tested one dose, so a smaller cup should mean a smaller effect — but that is an inference, not something this study measured.

What it found

The total-sleep figures below are the range across all three conditions, not a separate value for each (Drake et al., 2013):

Caffeine takenEffect on total sleepEffect on falling asleep
6 hours before bedreduced by 1.1 to 1.2 hours (measured)+24.1 min, not statistically significant
3 hours before bedreduced by 1.1 to 1.2 hours (measured)+17.2 min, significant
At bedtimereduced by 1.1 to 1.2 hours (measured)+22.4 min, not statistically significant

Read the middle column twice. The six-hour condition was not a mild case. The objective measurement showed more than an hour of sleep lost, even though the participants' own diaries recorded less — 41 minutes rather than an hour, and the 41-minute figure was not statistically significant (p = 0.08) (Drake et al., 2013).

That gap between what the lab measured and what people noticed is the single most useful thing in the study. You can lose an hour of sleep and not report it.

One more detail matters: the dose was identical for everyone. Real afternoons are not like that. A coffee in the early afternoon, another later, an energy drink in the evening — each one changes the starting number, and the arithmetic below then runs from a higher line.

Why six hours, and not two

Caffeine does not leave the body on a schedule you can feel. It is cleared at a roughly fixed proportion per hour, which is what a half-life means: the amount halves with each half-life.

Published half-lives run from 3 to 7 hours in adults (Temple et al., 2017); the CDC's figure is 5 to 6 hours (CDC/NIOSH).

Run the arithmetic on a 5-hour half-life. A 200 mg coffee at 2 p.m. leaves: (CDC/NIOSH)

So by midnight, an hour after an 11 p.m. bedtime, roughly 50 mg is still in you — and about 25 mg is there at 5 a.m. That is the mechanism behind the study's finding, and it is why the cut-off lands in the afternoon rather than in the evening (CDC/NIOSH).

The proportion does not depend on the dose. With a 6-hour half-life, 100 mg at 4 p.m. is 50 mg at 10 p.m. and 25 mg at 4 a.m. — the same halving, from a smaller starting point. A smaller cup does not move the clock; it lowers the line (Temple, 2017).

That is also why six hours is a floor and not a ceiling. Someone at the slow end of the published range — a 7-hour half-life — still has a meaningful fraction of a 4 p.m. coffee in them at 4 a.m. If you are the person who notices caffeine, you are not imagining it (Temple, 2017).

"But I fall asleep fine"

This is the objection worth answering, because it is the one most people raise.

The three-hour condition was the only one that significantly slowed falling asleep. The six-hour condition did not — statistically — delay sleep onset (Drake et al., 2013). What it did was reduce how much sleep you got and lower sleep efficiency.

So the honest version of "coffee doesn't affect me" is: "coffee does not stop me falling asleep." That is a different claim, and the study does not support it as a reason to drink coffee at 8 p.m. (Drake et al., 2013).

What the official sources don't say yet

What to do tonight

  1. Decide the bedtime you are actually aiming for — not the one you would like to have.
  2. Count back six hours. That is your cut-off for coffee, and it is earlier than almost everyone expects (Drake et al., 2013).
  3. If you want a margin, count back further. Seven hours gives you room for a slower metabolism (Temple et al., 2017).
  4. Expect the difference to show up in how much you sleep, not in how fast you fall asleep. That is the measure the study actually took.

The caffeine calculator on this site takes an amount, a time and a half-life, and shows how much is still in your body when you get into bed. Put in what you actually drink, not what you think you should.

Official sources

Updated

Updated 2026-11-07 · Sources retrieved 2026-11-07.

Disclaimer

This is a summary of published research on averages, not medical advice. Caffeine affects people very differently, and if you have a heart condition, are pregnant, or take medication, ask a doctor rather than a website.

Spotted a mistake?

We check every report against the official source and update the page. See how on our Corrections.

More in this section

Melatonin dosage: why the small dose is the one that is recommended→ Shift work and sleep: what the CDC counts as a shift, and what it costs→ Which direction is worse for jet lag?→