Caffeine Cutoff Calculator: When to Stop Drinking Coffee
Quick answer
To protect your sleep, have your last caffeine about 8 to 10 hours before bed, because caffeine has a half-life of roughly 5 to 6 hours. For an 11 p.m. bedtime, that means stopping by mid-afternoon. Enter your bedtime below to get your personal cutoff time.
Key takeaways
- Caffeine has a half-life of about 5 to 6 hours, so a lot is still active many hours later.
- A safe rule for most people is to stop caffeine 8 to 10 hours before bed.
- Sensitivity varies widely with genetics, pregnancy, smoking, and medications.
- Even a mid-afternoon coffee can leave enough caffeine to lighten your sleep.
Already had caffeine today? (optional)
Your caffeine cutoff
Have your last caffeine by
3:00 PM
About 8 hours before bed (Average profile).
Caffeine has a half-life of roughly 5 to 6 hours, but it varies a lot with genetics, pregnancy, smoking, and medications. Treat this as a guide and adjust to how caffeine actually affects your sleep.
How long does caffeine stay in your system?
Caffeine has a half-life of about 5 to 6 hours, which means roughly half of what you drink is still in your bloodstream that many hours later. After a single cup of coffee at 3 p.m., a quarter of the caffeine can still be circulating near midnight. That lingering caffeine blocks the adenosine that builds up your drive to sleep, so even if you fall asleep, your sleep tends to be lighter with less deep sleep.
How much caffeine is in common drinks?
| Drink (typical serving) | Caffeine |
|---|---|
| Brewed coffee (8 oz) | about 95 mg |
| Espresso (1 shot) | about 63 mg |
| Energy drink (8 oz) | about 80 mg |
| Black tea (8 oz) | about 47 mg |
| Green tea (8 oz) | about 28 mg |
| Cola (12 oz) | about 34 mg |
| Decaf coffee (8 oz) | about 2 mg |
When should you stop drinking coffee?
For most people, stopping caffeine 8 to 10 hours before bed is enough to keep it from interfering with sleep. If you are sensitive, go earlier; if caffeine genuinely never affects you, 6 hours may be fine. The calculator above works backward from your bedtime, and if you tell it how much you have already had and when, it estimates how much is still in your system at lights-out. To time the other end of your night, pair this with our sleep cycle calculator.
Simple ways to cut back without the headache
- Set a daily caffeine curfew and switch to decaf or herbal tea after it.
- Taper rather than quitting cold turkey to avoid withdrawal headaches.
- Watch hidden sources like tea, cola, energy drinks, pre-workout, and chocolate.
- If you need an afternoon lift, try a short walk or a 10 to 20 minute nap instead.
Frequently Asked Questions
A good rule is 8 to 10 hours before bed for most people. Because caffeine's half-life is about 5 to 6 hours, a meaningful amount is still circulating several hours after your last cup.
Caffeine has a half-life of roughly 5 to 6 hours, so about half is gone after that time and a quarter after 10 to 12 hours. Clearing it fully can take most of a day, which is why afternoon coffee can still affect sleep.
No. Genetics, pregnancy, smoking, liver health, and some medications can roughly halve or double how fast you clear caffeine. If coffee never bothers your sleep you may metabolize it quickly; if it does, an earlier cutoff helps.
It can be. A 3 p.m. coffee still leaves caffeine in your system at a typical bedtime. If you are sensitive or struggling with sleep, switch to decaf or caffeine-free drinks after lunch.
Yes, a small amount, usually around 2 to 5 mg per cup versus about 95 mg in regular coffee. For most people that is low enough not to affect sleep.
Sources
- Caffeine Effects on Sleep Taken 0, 3, or 6 Hours Before Going to Bed, Journal of Clinical Sleep Medicine
- Caffeine and Sleep, Sleep Foundation
- Caffeine, StatPearls, NCBI Bookshelf
Get Better Sleep Tips Weekly
Get a short, science-backed sleep tip and any genuinely good product deals in your inbox. One email a week, no spam.
No spam, ever. Unsubscribe anytime.
Related sleep guides
How Caffeine Affects Your Sleep, and When to Cut It Off
How caffeine blocks sleep pressure, why its long half-life means timing matters, how much is in your drinks, and the science-backed cutoff for your last cup.
How to Fall Asleep Faster: 10 Science-Backed Tips
Can't fall asleep? Here are 10 evidence-based ways to fall asleep faster, from your wind-down routine to light, temperature, and what to do when your mind won't switch off.
Blue Light and Sleep: What the Science Actually Says
Separating fact from hype: how blue light from screens affects melatonin, sleep quality, and what you can actually do about it.