Last updated: July 12, 2026
Caffeine is the world's most widely used stimulant — and the most common self-inflicted reason people struggle to fall asleep. The tricky part is that caffeine's effect on sleep is mostly invisible: you can fall asleep after an evening coffee and still get measurably worse sleep. This guide explains how caffeine actually works, how long it stays in your system, and when to have your last cup.
Through the day, your brain builds up a chemical called adenosine — the molecule responsible for sleep pressure. The longer you're awake, the more adenosine accumulates, and the sleepier you feel. Caffeine works by blocking adenosine receptors: the sleepiness signal is still being sent, but your brain can't hear it.
Crucially, caffeine doesn't remove adenosine — it just mutes it. When the caffeine wears off, all that accumulated adenosine hits at once. That's the classic afternoon "caffeine crash."
Caffeine has a half-life of roughly 5 to 6 hours in the average adult — meaning half of it is still in your bloodstream that many hours later. The practical math surprises most people:
| You drink 200mg (large coffee) at… | Still in your system at 10 PM |
|---|---|
| 8 AM | ~25mg — negligible |
| 12 PM | ~60mg — minor |
| 3 PM | ~90mg — half a coffee |
| 6 PM | ~130mg — most of a coffee |
An evening espresso is effectively drinking half of it in bed. And individual variation is huge: genetics, age, pregnancy, and some medications can double how long caffeine lingers. If you're a "slow metabolizer," even a 2 PM coffee can measurably disturb your night.
Research on evening caffeine consistently shows three effects, even in people who report sleeping "fine":
One frequently cited study found that caffeine taken even six hours before bedtime reduced measured sleep time by over an hour — while participants barely noticed the difference themselves.
A practical, evidence-aligned rule: finish your last caffeinated drink 8–10 hours before bedtime. For a 11 PM bedtime, that means nothing caffeinated after about 1–3 PM. If you're sensitive, sleep poorly, or are over 50 (caffeine clearance slows with age), lean toward the earlier end — or keep caffeine to mornings only.
Want to put this into practice tonight? Our free sleep calculator finds your ideal bedtime or wake-up time based on 90-minute sleep cycles and your age.
Try the Sleep Calculator →Ishaq is the founder of Si Ranker and a digital marketing & SEO professional. He researches, builds, and reviews every tool and article on this site, with a focus on transparent methodology and genuinely useful results.
Connect on LinkedIn → · About Si Ranker