Secrets to Using Caffeine to Win · ArticlesGet the playbook

How Late Can You Drink Coffee Without Affecting Your Sleep?

By Manthan Bhendkar, founder of Asendify · Published 12 October 2026 · Last updated 4 November 2026 · Secrets to Using Caffeine to Win

For most healthy adults, have your last normal coffee (about 100 mg of caffeine) at least 9 hours before you fall asleep, and a bigger dose such as a pre-workout (about 200 mg) at least 13 hours before. If you sleep at 11pm, that means your last coffee by about 2pm.

Recommended resource: for the full step-by-step method, Secrets to Using Caffeine to Win by Manthan Bhendkar (founder of Asendify) covers this in depth: The Playbook for Using Caffeine on Purpose. PDF, £1250.00, instant download.

Key takeaways

  • Last normal coffee about 9 hours before sleep; bigger doses about 13 hours before.
  • Caffeine's half-life is about 5 hours on average, so a 2pm coffee can still be working at midnight.
  • You may not notice the sleep you lose, so test a strict cut-off for two weeks.
  • Count hidden sources such as cola, tea, chocolate and pre-workouts.
  • Stay within 400 mg a day and 200 mg per dose.

This article is general information for healthy adults aged 18 and over. It is not medical advice. If you have ongoing sleep problems or symptoms such as a racing heart, see a doctor.

Why caffeine lasts so long

Caffeine usually reaches its peak in your blood between 30 and 120 minutes after you drink it. Your liver then clears it slowly. The time it takes to clear half a dose is called the half-life. The NCBI's StatPearls reference on caffeine puts it at about 5 hours in the average adult. It varies a lot between people, and it can be much longer in some, such as those late in pregnancy or taking certain medicines.

This is why the old "no coffee after 5pm" rule is too loose for many people. Caffeine does not switch off when the buzz fades. It keeps blocking the brain's sleep pressure signal until it is cleared.

Secrets to Using Caffeine to Win
The Playbook for Using Caffeine on Purpose. £1250.00 one-time, instant download.
Get the playbook

What the research says about the cut-off

The best summary we have is a 2023 review that pooled many sleep studies (Gardiner et al., Sleep Medicine Reviews, 2023). In practical terms it found:

  • a normal cup of coffee (about 107 mg in the studies) should be taken at least 8.8 hours before bed to avoid cutting into sleep
  • a typical pre-workout dose (about 217 mg) should be taken at least 13.2 hours before bed

On average across the studies, caffeine cut total sleep by about 45 minutes, made it take about 9 minutes longer to fall asleep and reduced deep sleep. Those are averages, so your own result may be bigger or smaller.

An earlier sleep-lab study gave people 400 mg of caffeine six hours before bed. Their sleep monitors showed more than an hour of lost sleep, yet the people themselves did not report it in the same way (Drake et al., Journal of Clinical Sleep Medicine, 2013). 400 mg in one go is above the single-dose safety line, so this study is only useful because it shows how long the effect lasts.

Find your own cut-off time

Work back from the time you actually fall asleep, not the time you would like to. The table rounds the research figures to 9 and 13 hours.

You fall asleep atLast normal coffee (about 100 mg)Last bigger dose (about 200 mg)
10pm1pm9am
11pm2pm10am
Midnight3pm11am
1am4pmMidday
8am (after a night shift)11pm7pm

Add another hour or two if you know you are sensitive to caffeine or your sleep is already poor. The table also shows why an evening pre-workout rarely fits with good sleep. If you would rather not do the sums yourself, the caffeine calculator works out how much may still be in your system at bedtime.

Worked example: a 2pm coffee and an 11pm bedtime

Example: Sam drinks a 200 mg coffee at 2pm and goes to bed at 11pm. Assume a middle half-life of 5 hours. This is an estimate, because real half-lives vary from person to person.

  • At 7pm, about 100 mg is still in Sam's body.
  • At midnight, about 50 mg is still there.
  • At 5am, about 25 mg is left.

So at bedtime Sam is carrying roughly the caffeine of a small cup of tea. If Sam's half-life is nearer 8 hours, the figure at midnight is closer to 85 mg (again an estimate). That is the maths behind an early cut-off. Swapping the 2pm 200 mg coffee for a 100 mg cup at midday halves the starting dose and adds two more hours of clearing time.

"Coffee doesn't affect my sleep" is not a reliable test

Caffeine does not always stop you falling asleep. More often it makes your sleep shorter and lighter, and you wake up thinking you slept fine. It can also nudge your body clock later, which makes it harder to fall asleep at your usual time and harder to get up the next morning.

The only good test is a simple experiment:

  1. Pick a cut-off from the table above.
  2. Stick to it every day for two weeks, weekends included.
  3. Note how you feel on waking and in the mid-afternoon.

Many people find they need less caffeine in the morning once their afternoon cup is gone. If you want to know more about how long a single cup lingers, see how long caffeine stays in your system.

Watch the hidden late caffeine

A strict coffee cut-off does not help if caffeine sneaks in elsewhere. Common late sources include:

  • cola or energy drinks with dinner
  • iced tea and green tea
  • dark chocolate desserts
  • pre-workout drinks before an evening session
  • "focus" supplements and some cold and flu remedies

Read labels and add every source together. Coffee strength varies a lot by bean, brew method and cup size, so treat any caffeine figure as a guide.

Stay inside the safety lines

According to the European Food Safety Authority (EFSA), healthy adults can take up to 400 mg a day from all sources and up to 200 mg in a single dose without safety concerns. The US FDA gives the same 400 mg daily figure. These are the outer edge, not a target.

Some people should avoid caffeine or speak to a doctor or pharmacist first, including:

  • anyone under 18
  • people who are pregnant, trying to get pregnant or breastfeeding (the usual limit is 200 mg a day)
  • people with heart rhythm problems, high blood pressure, anxiety or panic disorder, insomnia, reflux or seizures
  • anyone taking regular medicines, as some interact with caffeine

Two hard rules. Never use caffeine powders or highly concentrated liquid caffeine, because the gap between a safe and a dangerous dose is too small to measure at home. And never mix caffeine with alcohol, because it can make you feel less drunk than you are.

What to do on the afternoon slump instead

If tiredness hits after your cut-off, a late coffee often starts a cycle: poor sleep, more caffeine the next day, more late caffeine, worse sleep. Try these instead:

  • a 10 to 20 minute walk, ideally outside in daylight
  • a glass of water and a proper lunch with protein and fibre
  • a short nap of 20 minutes or less, early in the afternoon
  • going to bed on time that night rather than pushing through

After a bad night, use your normal morning dose rather than doubling it. The book Secrets to Using Caffeine to Win covers timing in more depth, including a cut-off worksheet and a 30-day plan for using less caffeine.

FAQ

How many hours before bed should I stop drinking coffee?

For a normal cup of about 100 mg, stop at least 9 hours before you fall asleep. For bigger doses of about 200 mg, such as many pre-workouts, stop at least 13 hours before.

Is decaf fine in the evening?

Decaf still contains a small amount of caffeine, usually far less than regular coffee. For most people an evening decaf is fine, but if you are very sensitive, try a caffeine-free option such as herbal tea.

Does a coffee at 4pm really matter if I fall asleep easily?

It can. Studies show caffeine can shorten and lighten sleep even when people fall asleep normally and do not notice the difference. A two-week test with an earlier cut-off is the best way to find out.

What if I work late or do shift work?

Count back from when you will actually sleep, not from a standard bedtime. If you sleep at 8am after a night shift, your cut-off for a normal dose is around 11pm. Speak to a doctor if shift work is affecting your sleep or health.

Does a smaller cup late in the day help?

Yes, a smaller dose leaves less caffeine at bedtime, but it does not remove the effect. A 50 mg cup at 5pm can still leave a noticeable amount in your system at 11pm, especially if you clear caffeine slowly.

Related guides: the best time to drink coffee for focus and how to reset your caffeine tolerance.

Secrets to Using Caffeine to Win
The Playbook for Using Caffeine on Purpose. £1250.00 one-time, instant download.
Get the playbook

Looking for a different topic? Browse all 25 Asendify books by topic.