Cut-off times for coffee and pre-workout come from a 2023 meta-analysis of 24 studies (Gardiner et al., Sleep Medicine Reviews). The curve is an estimate using a constant half-life. Not medical advice.
Choose your drink, when you had it and when you plan to sleep. The calculator estimates how much caffeine will still be in your body at bedtime and shows the research-based cut-off time for coffee and pre-workout drinks.
Where the numbers come from
- Cut-off times: a 2023 meta-analysis of 24 studies estimated that a 250 mL coffee (about 107 mg of caffeine) should be finished at least 8.8 hours before bed, and a standard pre-workout serving (about 217.5 mg) at least 13.2 hours before bed. The model found no cut-off for one 250 mL cup of black tea (about 47 mg)1. The researchers describe these times as a starting point, not a fixed rule1.
- The curve: the estimate assumes caffeine leaves your body at a steady half-life. The default is 5 hours, within the typical range of 3 to 6 hours; real half-lives range from about 2 to 10 hours in healthy adults1. Use the slider if you know you’re sensitive.
- Drink amounts: caffeine varies a lot by brand and brewing method. For a 12 fl oz (355 mL) drink, the U.S. FDA lists typical amounts of 113–247 mg for brewed coffee, 71 mg for black tea, 37 mg for green tea, 23–83 mg for a caffeinated soft drink and 41–246 mg for an energy drink2. Enter a custom amount if you know your drink.
Why it matters
Across the studies in the meta-analysis, caffeine reduced total sleep by about 45 minutes on average and reduced deep sleep1. In a separate small study, a high 400 mg dose taken six hours before bed cut device-measured sleep by more than an hour, while participants’ sleep diaries showed a smaller drop that wasn’t statistically significant3.
Read the full guide: Caffeine and sleep: how long before bed should you stop?
Caveats
- This is an estimate, not a medical tool. Medications (including certain antidepressants and oral contraceptives), smoking, liver function and age can all change how fast you clear caffeine1.
- In pregnancy, the American College of Obstetricians and Gynecologists considers under 200 mg a day moderate intake4. If you’re pregnant, trying to become pregnant or breastfeeding, the FDA advises asking your health care provider whether to limit caffeine2.
Sources (4)
- Gardiner C, Weakley J, Burke LM, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev. 2023;69:101764. https://pubmed.ncbi.nlm.nih.gov/36870101/ · Open-access full text: https://eprints.leedsbeckett.ac.uk/id/eprint/9625/
- U.S. Food and Drug Administration. Spilling the beans: how much caffeine is too much? Consumer Update, content current as of August 28, 2024. https://www.fda.gov/consumers/consumer-updates/spilling-beans-how-much-caffeine-too-much
- Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013;9(11):1195–1200 (funded by an investigator-initiated grant from Zeo Inc.). https://pmc.ncbi.nlm.nih.gov/articles/PMC3805807/
- American College of Obstetricians and Gynecologists. Committee Opinion No. 462: Moderate caffeine consumption during pregnancy. 2010, reaffirmed 2026. https://www.acog.org/clinical/clinical-guidance/committee-opinion/articles/2010/08/moderate-caffeine-consumption-during-pregnancy