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

Your protocol works out numbers like these from your own answers, with everything else in one plan. Build my protocol.