Lotuvex is reader-supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you.

Caffeine and Sleep — When to Have Your Last Coffee

Research summary · Updated 2026 · Not medical advice

Lotuvex is reader-supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you.

“Caffeine doesn’t affect me — I can have a coffee after dinner and sleep fine.” Possibly. But falling asleep and sleeping well are different things, and caffeine is quietly good at breaking the second one.

The half-life problem

Caffeine’s half-life is roughly 5 hours in a typical adult — meaning half of it is still circulating five hours later. A 3 pm coffee still has about a quarter of its caffeine in you at 1 am. Some people clear it far more slowly, which is why the same cup wrecks one person and not another. MedlinePlus has a general overview of caffeine.

A practical cutoff

Target bedtimeReasonable last coffeeCautious cutoff
10 pm2 pm12 pm
11 pm3 pm1 pm
Midnight4 pm2 pm

Use the cautious column if you are caffeine-sensitive, over 60, pregnant, or taking medication that slows caffeine clearance (some antibiotics and oral contraceptives do).

What it does even when you do fall asleep

Caffeine blocks adenosine, the molecule that builds sleep pressure through the day. Even when you drop off normally, evening caffeine tends to reduce deep sleep — so you wake feeling like you slept badly despite “sleeping fine.” That is the effect people miss when they say it does not affect them.

Hidden sources

Green and black tea, dark chocolate, some sodas, pre-workout formulas, and plenty of “energy” and weight-loss supplements — including green tea extract. If you take an evening supplement stack, check the labels; see our note on green tea extract.

Smooths caffeine jitters

L-Theanine (look for Suntheanine®)

  • 100–200 mg, often paired with morning coffee
  • Does not cancel caffeine — it takes the edge off the jitteriness
  • No help with caffeine still in your system at bedtime

Vegan-friendly · inexpensive

Check Price →

Cutting back without the headache

Withdrawal headaches are real and usually peak in the first couple of days. Reducing gradually over a week or two — one cup at a time, or half-decaf blends — avoids most of it. For the wider picture, see sleep basics.