DozeClock › Tools › Last-coffee calculator
Last-coffee calculator
Pick a drink, when you had it (or plan to), and your bedtime. You get the caffeine still circulating at lights out, and the latest time that keeps it under 25 mg.
Updated October 3, 2026 · FDA · USDA · IOM 2001 · Drake 2013
Short answer
A 96 mg cup of brewed coffee takes about 9.7 hours to fall under 25 mg at a 5-hour half-life: finish it by 2 pm and you are under the line around 11:40 pm; at 4 pm, around 1:40 am. A 64 mg espresso needs about 6.8 hours. Several drinks add up, so for your own day list each one below and the time you finished it.
Caffeine tonight: every drink you've had today
Add each coffee, tea, soda or energy drink with the time you finished it. The total updates against the clock, so you can see what is in you now and the earliest bedtime with under 25 mg left.
Half-life 5 h (IOM 2001); shaded = FDA 4–6 h
How to read the result
Caffeine leaves the body by halves — about every five hours for a typical adult (the FDA cites four to six). The 25 mg line is a planning threshold used on this site, roughly a quarter cup of coffee, not a medical limit. The third figure is the six-hour cutoff from the only controlled trial on timing, in which a 400 mg dose six hours before bed still cut sleep by over an hour.
Pages by drink and by bedtime: caffeine by drink · cutoff by bedtime.
Sources
- Caffeine content for coffee, tea, soda and more — Mayo Clinic
- Spilling the Beans: How Much Caffeine is Too Much? — U.S. Food and Drug Administration
- FoodData Central — U.S. Department of Agriculture
- Caffeine Effects on Sleep Taken 0, 3, or 6 Hours before Going to Bed — J Clin Sleep Med 9(11):1195-1200, 2013 (Drake C. et al.)
- Caffeine for the Sustainment of Mental Task Performance: Formulations for Military Operations — National Academies Press, 2001
General information from population studies (NIH, CDC, NSF, AASM). It is not medical advice and does not replace a clinician who knows you.