Mentally Jacked

Recovery

Caffeine and Sleep: How Late Is Too Late for Coffee?

8 min readDinesh DudejaSeptember 23, 2026
A small white espresso cup with a faint wisp of steam on a dark surface, representing how late-day caffeine affects sleep

You had a coffee at four in the afternoon. You fell asleep at eleven without trouble. So the coffee did not affect your sleep.

That conclusion feels reasonable and the research says it is often wrong. Caffeine can shorten and lighten your sleep without making it any harder to fall asleep, and you will not notice unless you measure.

How caffeine works

Through the day, a compound called adenosine builds up in the brain. The more of it there is, the sleepier you feel. It is one of the main ways your body tracks how long you have been awake.

Caffeine blocks adenosine receptors. The adenosine is still there, still accumulating, but caffeine stops it registering. That is why coffee makes you feel alert, and why the tiredness comes back, sometimes all at once, when it wears off.

The half-life that decides everything

The average half-life of caffeine in a healthy adult is around five hours. Five hours after a coffee, half the caffeine is still in your system. Ten hours after, roughly a quarter.

From a 200 mg coffee:

  • 5 hours later — about 100 mg still active
  • 10 hours later — about 50 mg
  • 15 hours later — about 25 mg

A 200 mg coffee at 3 pm leaves roughly 50 mg on board at 1 am. That is about the same as drinking a cup of tea right before bed.

Your half-life is not the average

The five-hour figure is an average across a wide range, roughly two to ten hours depending on the person. Several things move it:

  • Genetics. Variation in the CYP1A2 liver enzyme makes some people fast metabolisers and others slow. Slow metabolisers can feel a lunchtime coffee at midnight.
  • Smoking speeds caffeine clearance considerably.
  • Oral contraceptives roughly double the half-life.
  • Pregnancy slows clearance substantially, especially later on.
  • Liver function matters, since the liver does the clearing.

If a morning coffee still affects your sleep, you are probably a slow metaboliser, and the advice below should be applied more strictly.

What the research shows

A frequently cited 2013 study in the Journal of Clinical Sleep Medicine gave participants 400 mg of caffeine at bedtime, three hours before, or six hours before. Even the dose taken six hours before bed reduced total sleep by more than an hour, measured objectively.

The striking part: participants often did not report the effect. They felt they had slept normally. Their measured sleep said otherwise.

Caffeine also tends to reduce deep sleep, the slow-wave stage most associated with physical recovery. So even when total sleep time looks fine, the quality can be lower.

Why this matters if you train

Deep sleep is when growth hormone is released in its largest pulses and when much physical recovery happens. Short or shallow sleep impairs next-day performance, raises hunger and cravings, and makes fat loss harder.

A common pattern among people who train in the evening: a pre-workout with 200 to 300 mg of caffeine at 6 or 7 pm, training done by 8, bed at 11, and a mystery about why recovery is poor and appetite is high. The pre-workout is still largely active at bedtime.

If you suspect sleep is what is holding your progress back, the progress bottleneck engine weighs it against training, food and recovery to find the constraint that actually matters.

How much caffeine is in what

Content varies widely with brewing strength and portion. These are rough ranges:

  • Indian chai, one cup — 30 to 50 mg
  • Instant coffee, one cup — 60 to 80 mg
  • South Indian filter coffee — 80 to 120 mg
  • Espresso, one shot — 60 to 75 mg
  • Energy drink, 250 ml — about 80 mg
  • Pre-workout, one scoop — 150 to 350 mg

Pre-workout is where people get caught out. A single scoop can contain as much caffeine as three or four cups of coffee.

How much is too much

For healthy adults, European and American food safety authorities consider up to around 400 mg per day unlikely to cause problems, with single doses up to around 200 mg. During pregnancy the commonly given limit is 200 mg per day.

People with anxiety, heart rhythm problems or high blood pressure often do better with less, and should follow their doctor's advice.

Setting your own cut-off

A practical rule for most people: no caffeine within 8 to 10 hours of bedtime. For an 11 pm bedtime, that means nothing after 1 to 3 pm.

Slow metabolisers, people on oral contraceptives and anyone whose sleep is already struggling should move that earlier. If you train in the evening, consider a low-caffeine or caffeine-free pre-workout on those days.

The caffeine calculator models how much caffeine is still active at your bedtime from what you drink and when, which turns the cut-off into a number rather than a guess.

Cutting back without the headaches

If you decide to reduce caffeine, stopping abruptly is the hard way. Regular users who stop suddenly often get withdrawal: headache, tiredness, low mood and poor concentration, typically starting 12 to 24 hours after the last dose and peaking over the following day or two. It can last anywhere from two days to over a week.

Tapering avoids most of it. Reduce your daily intake by roughly a quarter every few days, or swap one coffee at a time for a half-strength or decaffeinated version. Moving your last caffeine earlier in the day is often a better first step than cutting the total, because it is the timing that affects sleep.

Most people find the first week the hardest, and energy often improves once sleep does.

The short version

Caffeine's average half-life is about five hours, and it can reduce sleep quantity and depth even when you fall asleep easily. Stop 8 to 10 hours before bed, earlier if you are sensitive, and watch the caffeine in pre-workout if you train in the evening.

Related tools

Frequently asked questions

How long does caffeine stay in your system?

The average half-life is about five hours, meaning half remains after five hours and around a quarter after ten. Individual half-life ranges from roughly two to ten hours depending on genetics, smoking, medication and pregnancy.

What time should I stop drinking coffee?

For most people, 8 to 10 hours before bedtime. With an 11 pm bedtime, that means stopping by early afternoon. Sensitive people should stop earlier.

Can caffeine affect sleep even if I fall asleep easily?

Yes. Research shows caffeine can reduce total sleep and deep sleep without making it harder to fall asleep, and people frequently do not notice the effect.

How much caffeine is in Indian chai?

Roughly 30 to 50 mg per cup, depending on how strong it is brewed and how much tea is used. That is less than a typical cup of coffee.

How much caffeine per day is safe?

For healthy adults, up to about 400 mg per day is generally considered safe, with single doses up to about 200 mg. During pregnancy the usual limit is 200 mg per day.

Does pre-workout affect sleep?

Often, yes. Many pre-workouts contain 150 to 350 mg of caffeine per scoop, and taken in the evening a large share can still be active at bedtime.

This article is educational and is not medical advice. See the medical disclaimer.

Want a programme built around your own numbers?

Work With Dinesh

Related Articles

View All

Newsletter

New Guides
Straight To Your Inbox.

One email when a new guide, calculator or breakdown goes live. Nothing else.