Caffeine and sleep — how coffee is affecting your night
Caffeine is the world's most widely used psychoactive substance, and a common sleep thief. Here's the mechanism, the half-life, and what to change.
Contents
Coffee isn’t just a drink. It’s the world’s most widely used psychoactive substance — legal, socially accepted, and built into the morning routine of much of the planet. And for many people, it’s a quiet saboteur of the very sleep quality they’re otherwise working hard to improve.
Not because coffee is dangerous. But because most people dramatically underestimate how long caffeine actually stays active in the body.
What caffeine does in the brain
Caffeine works by blocking adenosine receptors in the brain. Adenosine is a byproduct of cellular energy use that accumulates throughout the day — the more adenosine, the sleepier you get. It’s the body’s natural sleep-pressure system.
Caffeine binds to adenosine receptors without activating them — it just blocks the signal. The adenosine keeps building up; you simply stop noticing it. When the caffeine is metabolized and lets go, all that accumulated adenosine hits at once. That’s the “caffeine crash.”
The half-life — much longer than you think
The average half-life of caffeine in adults is 5–7 hours. That means:
A cup of coffee at 2 p.m. → half the caffeine is still active at 8 p.m.
A cup at 5 p.m. → half is still active at 11 p.m.
Many people drink coffee after lunch and go to bed at 11 p.m. “without a problem.” But even when they fall asleep just fine, sleep recordings show deep sleep reduced by as much as 20 percent compared to caffeine-free nights. You don’t notice it directly, but the sleep quality is worse.
The half-life varies between individuals — genetic factors (the CYP1A2 gene) determine how quickly you metabolize caffeine. Some people are “fast metabolizers” (half-life of 3–4 hours); others are “slow metabolizers” (8–10 hours). That difference can explain why some people sleep fine after an evening coffee while others can’t tolerate coffee after noon.
Caffeine and sleep architecture
Caffeine affects sleep stages differently:
Deep sleep is the most sensitive — even moderate caffeine levels markedly reduce the proportion of deep sleep (NREM stage 3). Deep sleep is essential for physical restoration, immune function, and the brain’s self-cleaning process.
REM sleep is somewhat more resilient but is disrupted at high caffeine levels.
Total sleep time is often only mildly affected — you might sleep roughly the same number of hours, but the sleep is shallower and less restorative.
Hidden sources of caffeine
Most people know coffee contains caffeine. Fewer realize:
- A cup of strong tea: 40–70 mg of caffeine
- A can of cola: 35–45 mg
- An energy drink (250 ml): 80 mg
- Dark chocolate (50 g): 25–50 mg
- Cocoa drink: 10–30 mg
- Some pain relievers (caffeine-combination tablets): 50 mg per tablet
Caffeine and your dreams
Caffeine reduces deep sleep and can disrupt REM sleep at higher doses. The consequence for dreaming is that sleep becomes more fragmented and shallow — and the dreams you do remember tend to be the short, restless fragments from light awakenings, not the full, narrative REM dreams.
Many people who cut coffee after 2 p.m. report that after a few weeks, they start remembering their dreams again — something they hadn’t done in a long time.
What you should do
Set a caffeine cutoff. For most people, 2 p.m. is a reasonable cutoff. For slow metabolizers or people with sleep problems: noon.
Morning coffee is optimal. Caffeine in the first one to two hours after waking is fully metabolized long before bedtime. One caveat: the cortisol awakening response is naturally high in the first 30–45 minutes — coffee during that window adds less benefit and may, over time, blunt the natural cortisol response. Waiting 60–90 minutes after waking is a reasonable compromise.
Taper gradually. Quitting abruptly causes headaches and fatigue for two to four days — that’s adenosine rebound. Reducing gradually over one to two weeks is easier to sustain.
Respecting the half-life
Caffeine is an effective sleep thief because its half-life is much longer than most people think:
- It blocks adenosine receptors and masks sleep pressure — which hits with full force once the caffeine wears off
- Half-life averages 5–7 hours, with substantial individual variation
- It markedly reduces deep sleep even when consumed in early afternoon
- A 2 p.m. cutoff is a solid starting point for most people
- Cutting caffeine leads to more continuous REM sleep and better dream recall
Sources and further reading
- Sleep Medicine Reviews (Gardiner et al., 2023) — “The effect of caffeine on subsequent sleep: A systematic review and meta-analysis”
- NHS — Sleep and tiredness
- CDC — About Sleep
- Sleep Foundation — How Sleep Works
