Calculator
When should I have my last coffee of the day?
A Goodstead protocol sets your last caffeine at nine hours before your target bedtime, and your target bedtime at eight hours before you get up. Studies found that caffeine taken even six hours before bed measurably shortens sleep, so the cutoff leaves a margin.
Last reviewed 16 November 2026
This runs only in your browser. Nothing you enter is sent anywhere or stored.
The equation
target bedtime = wake time - 8 hours last caffeine = target bedtime - 9 hours, rounded to the nearest 30 minutes daily limit = 400 mg, or 200 mg when pregnant, breastfeeding or trying to conceive
The result is an estimate for planning, not a judgement. It does not say whether anything about you is healthy or unhealthy.
Sources
- 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. https://doi.org/10.5664/jcsm.3170
- 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://doi.org/10.1016/j.smrv.2023.101764
- Watson NF, Badr MS, Belenky G, et al. Recommended amount of sleep for a healthy adult: a joint consensus statement of the American Academy of Sleep Medicine and Sleep Research Society. Sleep. 2015;38(6):843-844. https://doi.org/10.5665/sleep.4716
Your protocol works out numbers like these from your own answers, with everything else in one plan. Build my protocol.