How Late Can You Drink Coffee Without Affecting Your Sleep?
For most adults, the safest rule is to have your last normal cup of coffee (about 100 mg of caffeine) at least 9 hours before you go to sleep, and a bigger dose such as a pre-workout (about 200 mg) at least 13 hours before. So if you sleep at 11pm, that means your last coffee by about 2pm. This is stricter than the old "no coffee after 5pm" rule, because caffeine stays in your body far longer than most people think.
This article is general education for healthy adults aged 18 and over. It is not medical advice.
Why caffeine lasts so long
Caffeine reaches its peak in your blood somewhere 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, and in healthy adults it ranges from roughly 2 to 8 hours.
Take a middle figure of 5 hours. If you drink a 200 mg coffee at 2pm:
- at 7pm, about 100 mg is still in your body
- at midnight, about 50 mg is still there
- at 5am, about 25 mg is left
At midnight you are carrying roughly the same caffeine as a small cup of tea. If your half-life is nearer 8 hours, you are carrying much more. That is the maths behind an early cut-off.
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 below, so it is only useful here because it shows how long the effect lasts.
The Playbook for Using Caffeine on Purpose. £217.50 one-time, instant download.
Find your own cut-off time
Work back from the time you actually fall asleep, not the time you would like to.
- Bed at 10pm: last normal dose by 1pm, last bigger dose by 9am
- Bed at 11pm: last normal dose by 2pm, last bigger dose by 10am
- Bed at midnight: last normal dose by 3pm, last bigger dose by 11am
- Bed at 1am: last normal dose by 4pm, last bigger dose by midday
Add another hour or two if you know you are sensitive to caffeine or your sleep is already poor. This also shows why an evening pre-workout is rarely compatible with good sleep.
"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:
- Pick a cut-off from the list above.
- Stick to it every day for two weeks, weekends included.
- 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.
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 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 far 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 usually 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.
Caffeine Leverage turns this into a full system, with a personal cut-off worksheet, timing by chronotype and a 30-day plan to get more focus from less caffeine.
Key takeaways
- Last normal coffee (about 100 mg) at least 9 hours before bed; bigger doses at least 13 hours before.
- Caffeine's half-life is roughly 2 to 8 hours, so a 2pm coffee can still be in your body 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, and never use caffeine powders or mix caffeine with alcohol.
FAQ
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 for you.
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.
The Playbook for Using Caffeine on Purpose. £217.50 one-time, instant download.