The practical cut-off for most adults is eight to ten hours before bedtime — for a 10 p.m. sleeper, roughly 2 p.m. — because caffeine's elimination half-life averages five to six hours in healthy adults, meaning a quarter of a 4 p.m. coffee can still be circulating at midnight. The FDA's guidance puts healthy intake at up to 400 milligrams a day, about four 8-ounce cups of coffee; the timing question, sleep researchers argue, matters nearly as much as the total.
This site publishes information, not medical advice. Pregnancy, heart conditions, anxiety disorders, and prescription interactions change caffeine's arithmetic and belong in a conversation with a clinician.
How long does caffeine actually stay in the body?
Longer than most coffee drinkers intuit. Caffeine is metabolized in the liver by the CYP1A2 enzyme, and its half-life — the time blood levels take to fall by half — averages five to six hours but ranges widely, roughly from two to ten hours across individuals. Genetics largely set the pace: variants in the CYP1A2 gene make some people "fast metabolizers" who clear an afternoon espresso by dinner, while slow metabolizers carry measurable caffeine into the night.
Half-life math does the rest. A 12-ounce coffee with about 150 milligrams of caffeine at 4 p.m. leaves roughly 75 milligrams at 10 p.m., 37 at 1 a.m., and a still-active trace toward dawn. Those residuals are below the threshold a person notices as alertness — and well above the threshold sleep architecture can register.
Does afternoon caffeine really change sleep quality?
Yes, even when sleep feels normal. The cleanest answer came from a 2013 randomized trial in the Journal of Clinical Sleep Medicine by Christopher Drake and colleagues, which found that 400 milligrams taken zero, three, or six hours before bed each disrupted sleep relative to placebo — and that the six-hour dose, taken a full six hours before lights out, reduced total sleep by more than one hour as measured objectively, even though participants did not notice the difference on subjective reports.
The unsettling part of that finding is not that caffeine keeps people awake. It is that it can shrink sleep by an hour without the sleeper registering any change at all.
Related stories: The Walking Commute: New York's Unplanned Health Bonus, Measured · Skincare Order, Explained: The Morning Sequence That Actually Matters.
So what is the right cut-off time?
Sleep researchers generally converge on two thresholds, and the conservative one is worth knowing:
- The common recommendation: no caffeine within six hours of bedtime, following the Drake trial's design and the American Academy of Sleep Medicine's consumer guidance.
- The conservative version, supported by later modeling: double the window. A widely cited 2015 study by Burke and colleagues in Science Translational Medicine found that a double espresso even six hours before bed advanced the circadian clock and shifted sleep timing — arguing for ten or more hours of clearance before bed when sleep is fragile.
Translated to a clock: an 11 p.m. bedtime puts the standard cut-off around 4 p.m., the conservative one around noon to 2 p.m. Slow metabolizers, people with insomnia, and anyone whose wearable or morning fatigue suggests fragmented sleep have reasons to choose the earlier line.
| Bedtime | Standard cut-off (6 h) | Conservative cut-off (10 h) |
|---|---|---|
| 10 p.m. | 4 p.m. | Noon |
| 11 p.m. | 5 p.m. | 1 p.m. |
| Midnight | 6 p.m. | 2 p.m. |
Do tea, soda, and decaf count?
They do, in different denominations. Black tea runs roughly 40 to 50 milligrams per cup, green tea 25 to 35, colas 30 to 40 per 12 ounces — the FDA's consumer materials list these figures — and dark chocolate adds a small dose on top. Decaf is not caffeine-free: an 8-ounce cup carries about 2 to 15 milligrams, negligible for most people, though a slow metabolizer drinking four late-evening decafs is not drinking zero.
The afternoon pile-up is where totals slip. A morning coffee, a lunchtime latte, and a 3 p.m. iced tea can add to 350 milligrams — inside the FDA's 400-milligram ceiling, but with the last third of it still half-present at bedtime.
What about caffeine's half-life if you drink coffee every day?
Regular use builds tolerance to some effects but does not meaningfully speed clearance — the liver's pace is set by genetics and factors like smoking, which roughly doubles caffeine metabolism, and oral contraceptives, which slow it. Adjusting the cut-off for a couple of bad nights works better than trusting tolerance; the Drake trial's disruption appeared in habitual coffee drinkers, not just novices.
Why does caffeine delay sleep in the first place?
The mechanism is adenosine blockade. Adenosine is the molecule that accumulates in the brain across waking hours and produces sleep pressure; caffeine binds to the same receptors without activating them, which is why it blunts drowsiness rather than removing its cause. When the drug clears, the accumulated adenosine is still waiting — which is why late caffeine does not merely delay falling asleep but can compress and fragment the sleep that follows. Morning light, movement, and a consistent wake time lower sleep pressure the honest way; a second latte borrows against it.
The bottom line
The evidence supports a simple rule with a personal margin: keep total caffeine under 400 milligrams a day per FDA guidance, and finish the last dose eight to ten hours before bed — noon to 2 p.m. for most evening sleepers. If sleep stays fragmented at that line, the honest next step is moving the cut-off earlier, not adding a second espresso to compensate.
