Experiment templates → Caffeine cutoff
When should you have your last coffee?
Quick answer: research puts the average cost of caffeine at about 45 minutes of total sleep per night, and a standard cup of coffee needs roughly 8.8 hours to clear before bedtime to leave sleep untouched. But those are averages across studies — caffeine metabolism varies widely between people. The honest way to find your number is a two-week cutoff experiment.
"I will have my last caffeine by 13:00 for 14 days."
What the research says
Even a 6-hour gap isn't neutral. In a double-blind, placebo-controlled trial, Drake and colleagues gave healthy sleepers 400 mg of caffeine (roughly four cups of coffee) either 0, 3, or 6 hours before bed. Even at 6 hours, objectively measured total sleep dropped by more than an hour — and notably, participants' own estimates barely registered the loss. You can be sleeping worse without feeling it (Drake et al., 2013).
The averages, quantified. A 2023 systematic review and meta-analysis in Sleep Medicine Reviews pooled the available trials: caffeine reduced total sleep time by 45 minutes and sleep efficiency by 7%, while adding 9 minutes to how long it took to fall asleep and 12 minutes of waking during the night. From the dose–timing data, the authors estimated a standard cup of coffee (107 mg) should be finished about 8.8 hours before bed — and a standard pre-workout serve (217.5 mg) about 13.2 hours before — to avoid cutting total sleep (Gardiner et al., 2023).
What this evidence doesn't say
These are group averages, mostly from lab settings. Caffeine clearance differs several-fold between individuals (genetics, liver enzymes, pregnancy, some medications), so an 8.8-hour rule can be too strict for fast metabolizers and too lenient for slow ones. That spread is exactly why this works better as a personal experiment than as a universal rule.
Run it as an experiment
- Pick your cutoff time. Count 8–10 hours back from your usual bedtime. In bed at 23:00? Cut off at 13:00–15:00. Pick one time — don't negotiate with it daily.
- Log a 3-day baseline first. Before changing anything, rate your sleep for three mornings (1–5) and estimate how long it took to fall asleep. This is your control data.
- Make the pact. "I will have my last caffeine by 13:00 for 14 days." Keep your total intake the same — this experiment moves timing, not dose, so you're changing one variable.
- Check in daily. Each morning: held the cutoff or not, sleep rating 1–5, and a one-line note when something stands out ("woke at 4, mind racing" is data).
- Retro and verdict. After 14 days, compare against baseline. Better sleep? Persist. No difference? Pivot to a later cutoff and re-test, or drop it and enjoy your afternoon espresso with a clear conscience. Every outcome is a result.
What to expect
If caffeine timing was costing you sleep, the difference typically shows up within the first week — mornings feel less groggy, and your time-to-sleep estimate shrinks. If nothing changes in 14 days, that's not a failed experiment; it's evidence that your current timing is fine. Since you're not lowering your dose, withdrawal effects shouldn't confound the result.
Frequently asked questions
Does an afternoon coffee really affect sleep?
The trial above says it can: 400 mg at a 6-hour gap still cost over an hour of measured sleep — largely without the sleepers noticing. Smaller doses need smaller gaps; the 2023 meta-analysis put a single cup at about 8.8 hours.
Will I get withdrawal headaches?
Unlikely: you keep your total caffeine and only move it earlier. Withdrawal comes from cutting the dose, which this template deliberately doesn't do.
Why 14 days and not just a few nights?
Single nights are noisy. Two weeks of mornings against a baseline lets a pattern emerge — and the defined end date means the experiment concludes with a verdict instead of drifting into a vague forever-rule.
Related experiments
Sources
- Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine. 2013;9(11):1195–1200. PubMed 24235903
- Gardiner C, Weakley J, Burke LM, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Medicine Reviews. 2023;69:101764. PubMed 36870101
Track this experiment in N of 1
Pact, daily check-ins, field notes, and a four-way verdict — no streaks, no guilt. Your first experiment is free.
Downloadon the App StoreThis page is general information about published research, not medical advice. If you have a sleep disorder, are pregnant, or take medication that interacts with caffeine, talk to your doctor before changing your routine.