Most people think about caffeine in terms of quantity — how much is too much, how many cups a day. The more important variable is timing. The same amount of caffeine, consumed at different times of day, produces dramatically different effects on alertness, focus, and sleep quality. Getting the timing right is one of the highest-leverage, lowest-effort adjustments you can make to your daily energy.

A note from NR: I tested the 90-minute rule on myself for six weeks before writing this post. I logged sleep latency, morning alertness, and my afternoon energy crash with a basic spreadsheet — nothing fancy, just first-coffee timing as the independent variable. The result was not magic, but it was clear: shifting from 6:30am espresso to 8:00am espresso reduced my 2pm slump from a daily event to roughly twice a week. That matches what the adenosine-cortisol literature predicts. As a statistician I would not generalise an n=1 self-experiment to a recommendation, but the underlying physiology is consistent enough that the timing rule is worth trying.

How Caffeine Actually Works

Caffeine's primary mechanism is adenosine receptor blockade. Throughout the day, your brain produces adenosine — a metabolic byproduct of neural activity — that progressively binds to receptors and makes you feel sleepy. Caffeine is structurally similar to adenosine and fits into the same receptors without activating them, blocking the sleepiness signal.

Critically, caffeine doesn't clear adenosine — it just masks it. Adenosine continues accumulating behind the blockade. When caffeine is metabolised and clears the receptors, that accumulated adenosine binds all at once — producing the familiar afternoon crash. The severity of the crash is proportional to how much adenosine accumulated while caffeine was blocking its effects.

The 90-Minute Morning Delay

The most counterintuitive finding in caffeine research — and one of the most practically impactful — is that drinking coffee immediately upon waking is suboptimal.

For the first 60 to 90 minutes after waking, cortisol is rising to its natural morning peak. Cortisol is your body's primary alerting hormone — its morning spike is one of the most powerful biological mechanisms for transitioning from sleep to wakefulness. When you take caffeine during this window, two things happen: you partially suppress the cortisol response (your body senses high alertness and partially downregulates its own production), and you build caffeine tolerance faster because you're using it when cortisol alone would have provided most of the alertness benefit.

The result is that regular morning-coffee drinkers tend to need caffeine just to feel normal, rather than using it as a genuine performance enhancer. Waiting 60 to 90 minutes lets cortisol peak naturally, then caffeine extends and augments the alertness window rather than substituting for it. Most people who make this shift report sustained afternoon energy rather than the sharp mid-morning peak and early crash of immediate-upon-waking coffee.

The Afternoon Cutoff

Caffeine has a half-life of approximately 5 to 6 hours in most adults. This means:

  • A 200mg coffee (one strong cup) at 2pm still has ~100mg active caffeine at 7–8pm
  • That same cup at 4pm has ~100mg active at 9–10pm — right at your target bedtime

Matthew Walker's sleep research at UC Berkeley consistently shows that afternoon caffeine — even when it doesn't prevent sleep onset — significantly reduces slow-wave (deep) sleep, the most physically restorative sleep stage. You may sleep 8 hours but wake feeling unrefreshed because the architecture of your sleep was disrupted by caffeine that was still active.

For most people targeting a 10–11pm bedtime, the last caffeine should be around 1–2pm. If you're a slow caffeine metaboliser (certain genetic variants slow the CYP1A2 enzyme that breaks down caffeine), you may need to cut off even earlier. A practical test: if you have afternoon or evening caffeine and notice lighter, less refreshing sleep, you're a slow metaboliser — move your cutoff earlier.

The Optimal Caffeine Window

Based on the cortisol awakening response and half-life calculations, the practical optimal window for most people is:

  • First dose: 90 minutes after waking (e.g., if you wake at 7am, first coffee at 8:30am)
  • Second dose (if needed): around midday, no later than 1–2pm
  • Cutoff: 1–2pm for most people, earlier if you're a slow metaboliser or have sleep problems

Caffeine Dose for Cognitive Performance

The research on caffeine and cognitive performance consistently shows an inverted-U relationship: too little has no effect, the right amount improves attention and working memory, too much causes anxiety, jitteriness, and degraded performance. The effective dose for cognitive enhancement is approximately 1 to 3mg per kilogram of body weight — for a 70kg person, that's 70 to 210mg, or roughly one to two standard cups of filter coffee.

Higher doses produce diminishing cognitive returns and increasing side effects. The common productivity culture habit of drinking 5 to 6 cups of coffee per day to "stay alert" typically produces more anxiety and worse sleep than it recovers in alertness.

Managing Tolerance

Regular caffeine consumption leads to adenosine receptor upregulation — the brain creates more receptors to compensate for the blockade, requiring progressively more caffeine to achieve the same effect. Periodic breaks reset tolerance significantly. A 1 to 2 week abstinence period every few months is enough to restore most of the sensitivity that daily use erodes. The first few days are unpleasant (withdrawal headaches are real and predictable), but the payoff is caffeine working as well as it did when you first started drinking it.

Frequently Asked Questions

Why should I wait 90 minutes before my first coffee?

Cortisol rises naturally for the first 60–90 minutes after waking as your primary alerting mechanism. Taking caffeine during this window competes with cortisol, builds tolerance faster, and produces a sharper crash. Waiting lets cortisol peak naturally, then caffeine extends the alertness window rather than substituting for it.

What is the caffeine half-life?

Approximately 5–6 hours in most adults. A coffee at 2pm still has significant active caffeine at 7–8pm. Even when it doesn't prevent sleep onset, afternoon caffeine measurably reduces slow-wave sleep quality.

What is the latest I should have caffeine?

For most people targeting a 10–11pm bedtime: around 1–2pm. Slow caffeine metabolisers (a genetic variation) may need to cut off earlier. A practical test is whether afternoon caffeine correlates with lighter, less refreshing sleep.

How does caffeine actually work?

By blocking adenosine receptors. Adenosine accumulates throughout the day and causes sleepiness when it binds its receptors. Caffeine fits those receptors without activating them, masking the sleepiness signal. When caffeine clears, accumulated adenosine binds all at once — producing the crash.

Does caffeine tolerance reduce its effectiveness?

Yes. Regular use upregulates adenosine receptors, requiring more caffeine for the same effect. Periodic 1–2 week breaks every few months reset tolerance significantly and restore caffeine's effectiveness.

What is the optimal caffeine dose for focus?

Around 1–3mg per kg of body weight — for a 70kg person, 70–210mg, or one to two standard cups of filter coffee. Higher doses produce diminishing cognitive returns and increasing anxiety and jitteriness.

References

  1. Walker MP. (2017). Why We Sleep: Unlocking the Power of Sleep and Dreams. Scribner.
  2. Lovallo WR, et al. (2005). Caffeine stimulation of cortisol secretion across the waking hours. Psychosomatic Medicine, 67(5), 734-739.
  3. McLellan TM, et al. (2016). A review of caffeine's effects on cognitive, physical, and occupational performance. Neuroscience & Biobehavioral Reviews, 71, 294-312.
  4. Drake C, et al. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 9(11), 1195-1200.
Build better daily habits with TaskXP Track your caffeine cutoff habit, morning routine, and more. Earn XP, build streaks, and let the system keep you consistent.
Try TaskXP free