Sleep · Guide

Caffeine and sleep — the science of timing

The afternoon coffee is still doing work at midnight. Why caffeine wrecks deep sleep even when you fall asleep fine.

Caffeine is the most-used psychoactive substance on earth. Most adults consume it daily, most underestimate its effect on sleep, and almost everyone has heard the line "coffee doesn't affect me." Here is what the data actually says.

How caffeine works

Adenosine is a neurotransmitter that builds up in your brain throughout the day. The longer you've been awake, the more adenosine binds to its receptors, and the sleepier you feel. This is called sleep pressure.

Caffeine is structurally similar to adenosine. It binds to the same receptors but doesn't activate them — it just blocks them. Your brain still has the same adenosine load; it just can't feel it. When the caffeine clears, the backed-up adenosine floods in all at once. This is the caffeine crash.

The half-life problem

Caffeine has an average half-life of about 5 hours in healthy adults. Half-life means: after this many hours, half the dose is still in your system. So:

  • A 200mg coffee at 8am leaves 100mg at 1pm, 50mg at 6pm, 25mg at 11pm
  • A 200mg coffee at 2pm leaves 100mg at 7pm, 50mg at midnight

The 2pm coffee is still doing work when you go to bed.

Half-life varies hugely: 1.5–9.5 hours depending on genetics (CYP1A2 enzyme), smoking status, hormonal contraceptives (extends it), pregnancy (extends to 10+ hours), and certain medications. Roughly 25% of adults are "slow metabolisers" with half-lives of 8+ hours.

Use the Caffeine Half-Life Calculator to see what's left at your bedtime.

Why "I sleep fine on coffee" is misleading

The most damaging part of caffeine on sleep isn't whether you fall asleep — it's what your sleep looks like. Even when you fall asleep on schedule, caffeine in your system:

  • Reduces total slow-wave (deep) sleep by 10–30%
  • Reduces REM sleep modestly
  • Increases the number of brief night-time arousals (you don't remember them)
  • Increases the time it takes to fall asleep
  • Reduces total sleep time, on average, by about 1 hour

You wake up "rested" by your own report and a little less rested by every objective measure.

The cutoff

For most adults, the safest cutoff is noon to 2pm. If you are a slow metaboliser or on hormonal contraceptives, push to 10am.

This includes:

  • All caffeinated coffee (espresso ~75mg, drip ~95–165mg, cold brew much higher)
  • Tea (black ~50mg, green ~30mg)
  • Energy drinks (~80–200mg)
  • Pre-workout supplements (often 200–400mg)
  • Dark chocolate (small amounts, but it adds up)
  • Many sodas and "energy" waters

The dependency loop

Daily caffeine use increases the number of adenosine receptors your brain expresses. Skip a day and the receptors are still there, with no caffeine to block them — you feel terrible. The loop:

  1. Caffeine masks sleep pressure → you sleep less or worse
  2. Worse sleep → more sleep pressure the next day
  3. More sleep pressure → you need caffeine to function
  4. Repeat

Breaking the loop requires 7–10 days off, which feels worse before it feels better.

A pragmatic compromise

Most people don't need to quit. They need to:

  • Stop caffeine by noon (12 hours before bed)
  • Keep doses moderate (≤200mg per occasion)
  • Not drink caffeine within 90 minutes of waking — let your natural cortisol rise first; you'll need less coffee
  • Take a 7-day break twice a year to reset receptor sensitivity

Sleep, the foundation pillar, is what coffee borrows from. The bill comes due eventually.

Want a personalised view of your week?

Take the 8-8-8 Balance Audit →
The Sunday essay

One reflection a week.

A short essay on work, life, or sleep, sent Sunday morning. No spam. Unsubscribe anytime.

A note on the philosophy

Work is contribution to others — paid or unpaid. Life is receiving from others — paid or unpaid. Sleep is restoration. The triangle holds when each side is honoured.

Take the Balance Audit →