Caffeine Timing and Sleep
By John Wenhold, D.O. · Published November 4, 2026
Caffeine works by sitting in the receptor that adenosine is supposed to use. Adenosine builds up in the brain across the day and is the main signal of sleep pressure. Block the receptor and you feel alert, but the adenosine is still there, piling up behind the door. That mechanism explains why coffee works and why timing matters as much as dose.
The half life
Caffeine has a half life of roughly 5 to 6 hours in a typical adult. That is the time it takes the body to clear half of it. Take a 16 ounce coffee with about 200 milligrams at 2 pm. By 7 or 8 pm, around 100 milligrams is still in the blood. By midnight, roughly 50, close to a shot of espresso still circulating at lights out.
The half life also varies a lot. The liver enzyme that breaks caffeine down runs fast in some people and slow in others, set largely by genetics. Pregnancy, some medications and the birth control pill slow clearance. Smoking speeds it up. Two people can drink the same cup and carry very different amounts to bed, so one person's "coffee at 9 pm never bothers me" is no guide for anyone else.
Falling asleep is not the test
The common defense is "I can fall asleep fine." That is often true and beside the point. In a well known trial, a strong dose of caffeine taken six hours before bed cut measured sleep by about an hour, and the people in the study reported little difference in how they slept. The loss showed up on the recording, not in their impression of the night.
What caffeine does inside sleep is the part worth caring about. It tends to reduce deep sleep, the slow wave stage early in the night when growth hormone is released. It also makes sleep lighter and more fragmented, with more brief awakenings you do not remember. You spend seven hours in bed, feel like it was five, and reach for coffee to fix it. That loop is common and easy to miss because each piece of it feels normal.
The 2 pm line
For a 10 pm bedtime, we suggest the last caffeine by about 2 pm. That gives roughly 8 hours, so about a third of the dose is left at bedtime, little enough that most people sleep through it. Slow metabolizers, light sleepers and many older adults do better with a noon cutoff.
The morning cup is fine. Caffeine in the first few hours after waking does not interfere with the night ahead for most people. The question is never whether to drink it. It is when the last one lands.
If you sleep seven hours and still wake up tired, the afternoon coffee is one of the first things we ask about. That's the kind of detail we look at before anything gets prescribed.
This article is educational and is not medical advice.
Want care built around your data?
HYBRD Health is a physician-led membership practice in San Antonio.
Become a member