Adult sleep · Lifestyle
Review pending

Caffeine and your sleep architecture.

If you fall asleep fine but wake up feeling like you didn't really sleep, caffeine is the most common explanation people miss. It doesn't always block sleep — it shortens deep sleep and REM by interfering with adenosine, the molecule that builds up sleep pressure during the day.

A cup of coffee in soft morning light
Photo by Janesca on Unsplash

The half-life that catches everyone out

Caffeine's average half-life is 5 hours, but it varies between 3 and 8 hours per person. That means a 3pm coffee at the median half-life leaves a quarter of the dose still in your system at 3am.

The half-life is genetic — the CYP1A2 enzyme determines how fast you clear caffeine — and pretty much fixed for a given adult. If you've always been "fine drinking coffee at 5pm," you're probably a fast metabolizer. If a single cup at noon disrupts you, you're a slow metabolizer. Neither is a problem; the cutoff time just has to match your half-life.

What caffeine actually does to sleep

Adenosine is the neurotransmitter that accumulates during waking hours and signals "you've been awake long enough — sleep now." Caffeine binds to adenosine receptors and blocks the signal, which is why you feel alert.

The catch: even after you fall asleep, residual caffeine continues to suppress deep slow-wave sleep. Studies measuring polysomnography after evening caffeine show 7-10% reductions in slow-wave sleep duration even when total sleep time is unchanged. That's the "I slept eight hours but feel groggy" experience.

How to find your real cutoff

The textbook answer is "stop after 2pm" or "8 hours before bed." Both are wrong for most people because they ignore the half-life variation.

Use our caffeine cutoff calculator — plug in your usual bedtime, dose, and metabolism estimate, and it returns the latest time you can have your last cup without the residual exceeding the threshold for sleep disruption (~50mg of remaining caffeine, conservatively).

For most people the answer is earlier than they think — typically 6 to 10 hours before bed depending on metabolism. Tolerance doesn't help; tolerance changes how alert you feel, not how the caffeine affects sleep architecture.

Related tools

Related tools

How this was written

Built from peer-reviewed pharmacokinetic literature on CYP1A2 and adenosine receptor antagonism. Reviewed by Logan Foley, CSSC. The half-life ranges cited are population averages — your personal value can fall outside them and that's normal. We re-review this article when new sleep-architecture studies on caffeine are published.

FAQ

FAQ

Does decaf affect sleep?

Slightly. Decaf still contains 2-15mg of caffeine per cup vs 80-120mg for regular. For very slow metabolizers, an evening decaf can still nudge sleep. For most people it's fine.

What about caffeine in chocolate or tea?

Tea has 30-50mg per cup; dark chocolate has 10-25mg per square. Both count toward your daily total and toward the cutoff time math. Green tea is roughly half the dose of black tea.

Why do I feel fine if I drink coffee late?

You probably fall asleep fine — caffeine doesn't always block sleep onset. What it changes is the depth. The quality drop shows up the next morning as fatigue rather than as a sleep-onset problem.

Related

Keep going

Reviewed by Logan Foley, CSSCreview pending