Contact, if you are interested in this website / domain name / Sponsorship / Advertisement / Partnership

Sleep

Caffeine and sleep: timing is everything

How long caffeine lasts, why the afternoon cup costs more than you notice, and how to keep the benefits.

By the Healthy.Life editorial team. 4 minute read. Last reviewed 19 November 2026.

How it works

Through the day a chemical called adenosine builds up in your brain and creates sleep pressure. Caffeine blocks adenosine's receptors, so you feel alert. The adenosine is still there; when caffeine wears off, the tiredness returns.

How long it lasts

Caffeine peaks in the blood 30 to 60 minutes after you drink it. Its half-life averages about 5 hours and ranges from under 3 to over 9, depending on genes, liver function, smoking (shorter), pregnancy and some medicines (longer).

Hours after a 200 mg coffeeCaffeine remaining (5-hour half-life)
5100 mg
866 mg
1050 mg
1525 mg

What it does to sleep

In a sleep-laboratory study, 400 mg of caffeine taken 6 hours before bed reduced sleep by more than an hour. Participants did not perceive much difference, which is the trap: you can sleep "fine" and still lose deep sleep.

Later reviews suggest stopping ordinary coffee about 9 hours before bed and large doses, such as pre-workout supplements, about 13 hours before.

Keeping the benefits

Coffee and tea are not the villains. In moderate amounts they are linked with lower risk of type 2 diabetes, heart disease and some other conditions, and caffeine reliably improves alertness and exercise performance.

  • Daily ceiling: up to 400 mg for most healthy adults; under 200 mg if pregnant.
  • Front-load it: have most of your caffeine before noon.
  • Delay the first cup 60 to 90 minutes after waking if you get an afternoon crash; some people find it helps.
  • Switch after lunch to decaf, herbal tea or water.
  • Watch hidden sources: energy drinks, cola, dark chocolate, some pain relievers and pre-workout powders.

Cutting down

Stopping suddenly can bring headaches, tiredness and irritability for a few days. Reduce by about a quarter each week, or swap one cup at a time for decaf.

Who should be more careful

People with anxiety, reflux, heart-rhythm problems or insomnia, anyone pregnant or breastfeeding, and teenagers. Energy drinks are not recommended for children.

Questions people ask

How long before bed should I stop caffeine?

At least 8 hours for a normal coffee; longer for large doses or if you are sensitive.

Does caffeine affect everyone the same way?

No. Genes that control how fast the liver clears caffeine vary widely, which is why one person sleeps after an espresso and another is awake until 2 am.

Sources

Checked against these sources on 19 November 2026.

Turn this into a plan

Answer five short questions and get a free 30-day plan built around your numbers. No account needed.

Build my free plan

This guide is general education, not medical advice. It may not fit your circumstances. Talk to a qualified health professional before changing treatment, medication, diet or exercise if you have a health condition.