Caffeine Cutoff Calculator
The latest time you can drink coffee without wrecking tonight’s sleep.
Caffeine has a half-life of about 5-6 hours in most adults, meaning if you drink a coffee at 3 PM containing 100mg of caffeine, you still have 50mg in your system at 9 PM and 25mg at 2 AM. That residual caffeine does not prevent you from feeling sleepy, but it measurably reduces deep sleep even when you do not notice it. Studies have found that caffeine consumed 6 hours before bed reduced total sleep time by an hour. This calculator gives you a personalized cutoff time based on your intended bedtime, your sensitivity to caffeine, and the typical caffeine content of your usual drinks. Use it as a rule of thumb - genetic variation in caffeine metabolism is large. But for most people, following this cutoff time will meaningfully improve deep sleep quality and total sleep duration.
The Science
Caffeine’s half-life is 5-6 hours on average, with variation from 1.5 to 9.5 hours based on genetics (the CYP1A2 gene is the main metabolizer). A 2013 study in the Journal of Clinical Sleep Medicine found that 400mg of caffeine taken even 6 hours before bed significantly reduced total sleep time. The effect on deep sleep (slow-wave sleep) is particularly pronounced. This calculator uses the 8-hour cutoff recommended by most sleep researchers as a practical middle ground.
How It Works
Enter your intended bedtime.
Estimate your caffeine sensitivity (low, medium, high).
Note your typical caffeine source.
Get a cutoff time that works for tonight.