Caffeine and Sleep: When to Stop Drinking Coffee

Updated: 2026-06-30

Caffeine blocks adenosine receptors — the same ones that build up "sleep pressure" across the day. That's why even an afternoon coffee can quietly shorten and degrade your night, often without you noticing: what suffers is usually not falling asleep but the depth and continuity of sleep. The key number is caffeine's half-life, on average 5–6 hours. Below: when to take your last cup, why "I sleep fine after coffee" is an illusion, and how to check the effect in your own data.

Half-life and the 8–10 hour rule

For most people caffeine's half-life is 5–6 hours: half the dose remains in your blood after that, and a quarter after one more interval. An espresso (~80 mg) at 4 PM still leaves a meaningful amount circulating by midnight, blunting your brain's ability to feel the sleep pressure it built up all day.

A practical rule is no caffeine within 8–10 hours of bedtime. If you go to bed at 11 PM, set the cutoff around 1–3 PM. This is a starting point, not dogma — caffeine metabolism varies widely between people (see below).

Why sleep suffers even if you "fall asleep fine"

A common myth: "coffee doesn't bother me, I fall asleep instantly." Sleep latency is only one signal. Caffeine reduces the share of deep (slow-wave) sleep and raises the number of awakenings even when you drop off quickly. In controlled studies a dose taken 6 hours before bed measurably cut total sleep time — while participants didn't subjectively complain.

So judge by your sleep score and deep-sleep share in the morning, not by the feeling of "fell asleep fast." That's where the hidden cost of an evening coffee is paid.

Individual metabolism and tolerance

Caffeine is broken down by the liver enzyme CYP1A2, whose activity is strongly genetic. "Fast" metabolizers tolerate late coffee with few consequences; "slow" ones get disrupted sleep even from a morning cup. Smoking speeds clearance, while pregnancy and some medications slow it dramatically.

Tolerance to the alerting buzz builds over days, but sleep is slower to adapt — the body partly adjusts, yet deep sleep stays under pressure. "I'm used to it" does not mean "my sleep is fine."

How to test this on your own data

Don't guess — measure. Log the time of your last cup and compare nights: sleep score, sleep latency, and deep-sleep share on days with late versus early caffeine. Two weeks is enough to find your personal threshold.

Change one thing at a time: move your caffeine cutoff a couple of hours earlier, hold it for two weeks, then look at the trend. Account for hidden sources — tea, cola, dark chocolate, pre-workouts, and caffeinated painkillers.

FAQ

What time should I stop drinking coffee if I go to bed at 11 PM?

Aim for a cutoff around 1–3 PM — that's 8–10 hours before bed given a 5–6 hour half-life. If you're a slow metabolizer or caffeine-sensitive, move it earlier and verify with your sleep score.

I fall asleep instantly after an evening coffee — so it's fine, right?

Not necessarily. Falling asleep fast isn't the same as sleeping well: caffeine trims deep sleep and adds awakenings even when latency looks normal. Watch your deep-sleep share and sleep score in the morning.

Are decaf and green tea safe in the evening?

Decaf still contains a little caffeine (usually a few mg per cup), which is normally negligible. Green tea has less caffeine than coffee but it's still there; sensitive people are better off with a caffeine-free herbal tea at night.

Related metrics

References