Free tool
Caffeine Calculator: How Much Is Left at Bedtime?
Add your drinks for the day, set your bedtime and see a rough estimate of how much caffeine might still be left when you go to sleep. The slider changes the half-life, because people clear caffeine at very different speeds.
How to use it
- Pick each drink you had and the time you had it. If the label shows milligrams (mg), type that number instead.
- Set the time you plan to go to bed.
- Read the estimate at bedtime. Move the half-life slider if you know you clear caffeine faster or slower than most people.
0 mg
estimated caffeine still in your system at bedtime
How the estimate works
The calculator uses a simple first-order elimination model: every half-life, about half of the remaining caffeine from each drink is assumed to be cleared. The amounts from every drink are added together. It ignores the absorption phase, so right after a drink the curve jumps up at once instead of rising over 30 to 60 minutes.
The default half-life is 5 hours, a value inside the 3 to 5 hours often given by sleep specialists, and the slider covers the 2 to 10 hour range reported for healthy adults in a 2023 sleep meta-analysis. Smoking, pregnancy, some medications and oral contraceptives are known to change how fast caffeine is cleared.
Drink amounts are typical values from the U.S. FDA and published research. The real caffeine content of coffee varies a lot by bean, brew method and cup size, so if the label gives a number, use that.
Sources
- U.S. FDA. Spilling the Beans: How Much Caffeine Is Too Much?
- Gardiner C. et al. (2023). The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Medicine Reviews.