Wellness · Sleep & rest
Caffeine & sleep, the timing that actually matters.
You do not need to quit coffee — just watch the clock. Here is what the evidence says about half-life, hidden sources and cut-off times.
Why trust this guide
- 01
Clinically reviewed
Written by our editorial team and reviewed by a registered UK clinician before publication.
- 02
Sourced from EFSA and sleep-medicine consensus
Every number is checked against EFSA, the American Academy of Sleep Medicine and current NHS guidance.
- 03
Practical, not preachy
A short guide focused on the one or two changes that actually move the needle on sleep.
Key facts
Caffeine and sleep at a glance.
The essentials, in plain English — how caffeine works, how long it lasts, and where the hidden doses hide.
-
What caffeine does
Blocks adenosine, an alertness-suppressing brain signal that builds through the day.
-
Half-life
5-6 hours on average; longer for slow metabolisers (CYP1A2), during pregnancy, and on some medications.
-
Cut-off time
Most adults should stop caffeine 8-10 hours before bed to protect sleep quality.
-
Common sources
Coffee ~95 mg, tea 25-50 mg, cola 30-40 mg, energy drinks 80-300 mg, dark chocolate 20-50 mg per serving.
-
The evening problem
Even if you fall asleep, late caffeine reduces deep and REM sleep.
-
When to escalate
Palpitations, anxiety flares or persistent insomnia despite reducing intake — see a GP.
Why this guide matters
Timing beats total intake, almost every time.
Three points that shape everything else on this page — the difference between coffee helping you and coffee stealing your sleep.
-
Cut-off > amount
When you stop matters more than how much you drink. A 10am double espresso is not the problem — the 3pm top-up is.
-
Even good sleepers lose depth
You may fall asleep fine, but late caffeine still cuts deep and REM sleep. You feel it the next afternoon, not that night.
-
Hidden caffeine is real
Painkillers, pre-workouts, cola, dark chocolate and decaf all count. Most people underestimate their daily mg.
The evidence, step by step
From honest audit to a settled routine.
The seven steps we suggest to anyone worried caffeine is affecting their sleep — in the order that works.
Phase 1 · Audit
Add up intake and last-dose time
Phase 2 · Check
Sensitivity and metaboliser factors
Phase 3 · Adjust
Experiment and taper if needed
- 01
Audit
Add up your real intake
Coffees, teas, cola, chocolate, pre-workouts and painkillers all count.
- 02
Audit
Note your last dose time
Not the first — the last one.
- 03
Audit
Track sleep alongside for 2 weeks
Onset time, awakenings and how rested you feel.
- 04
Check
Look at sensitivity signs
Palpitations, anxiety, GI upset, headaches or tremor point to too much or too late.
- 05
Check
Consider slow-metaboliser factors
Pregnancy, hormonal contraception, some SSRIs and antibiotics extend half-life.
- 06
Adjust
Try a 2-week cut-off experiment
No caffeine after 1-2pm for 2 weeks and compare sleep.
- 07
Adjust
Taper if reducing overall
Halve intake weekly to avoid rebound headache and fatigue.
Typical timeline: 2-4 weeks from first audit to a settled routine.
Signs it affects you
What caffeine-disrupted sleep actually looks like.
The tell-tale signs your caffeine intake is affecting your sleep or nervous system — and when to take one seriously.
-
Trouble falling asleep
Sleep onset takes longer even if you feel tired.
-
Less deep sleep
Fewer restorative slow-wave and REM episodes.
-
More night awakenings
Especially in the second half of the night.
-
Palpitations
Racing or fluttering heart, especially in the evening.
-
Anxiety flares
Caffeine sensitivity looks a lot like generalised anxiety.
-
Rebound headaches
Common in the first week of cutting back.
-
Tolerance drift
Needing more coffee for the same alertness effect.
-
When to escalate
Persistent palpitations, chest pain, or panic attacks — see a GP.
How to do it
Practical changes that actually move the needle.
Eight small levers — in rough order of impact — that protect sleep without asking you to quit coffee.
-
Set a cut-off time
1-2pm for most adults; earlier for slow metabolisers.
-
Halve your peak intake
Small, measurable step — one fewer cup a day.
-
Switch afternoon coffee to decaf
Same ritual, minus the sleep debt.
-
Check hidden caffeine
Painkillers (Excedrin), pre-workouts, chocolate.
-
Taper, do not stop cold
Halve weekly for 2-3 weeks to avoid rebound headache.
-
Hydrate
Adequate water reduces caffeine-headache risk.
-
Replace with a habit
Herbal tea or a short walk plugs the mid-afternoon dip.
-
Sleep + morning light before more coffee
Fix the fundamentals so caffeine is not the crutch.
What this guide is based on
The sources behind every number on this page.
European and UK safety guidance plus current sleep-medicine consensus, current at the time of last review.
Key references
Guidelines and consensus we relied on.
A quiet reminder
This guide is for information, not medical advice.
Your GP knows your history and can tell you which parts apply to you. If in doubt, get symptoms checked.
-
European Food Safety Authority (EFSA). Scientific opinion on the safety of caffeine.
-
American Academy of Sleep Medicine. Consensus statements on sleep and stimulants.
-
NHS. Caffeine guidance for adults.
-
Royal College of Obstetricians and Gynaecologists (RCOG). Caffeine in pregnancy.
Red flags
When caffeine crosses the line to a medical issue.
Most caffeine problems are lifestyle problems. These are the situations where they are not — and you should escalate.
-
Palpitations that persist
Beyond a brief energy-drink episode — see a GP.
-
Chest pain with caffeine
Call 999 for severe or new chest pain.
-
Anxiety escalating on high intake
Especially with panic — cut back and see a GP.
-
Pregnancy
NHS advises under 200 mg caffeine a day.
-
Breastfeeding
Small amounts pass into breast milk — moderate intake.
-
Combining with medication
Some drugs (theophylline, some antibiotics, some antidepressants) interact.
-
Insomnia despite reducing
Rule out other causes — see a GP.
-
Rebound headaches lasting > 1 week
Not typical — see a GP.
-
Under-16 consumption
UK guidance suggests limiting caffeine in adolescents.
Making it stick
A small habit change, kept up for months.
Four things that make the biggest difference day to day — timing, consistency, awareness and fundamentals.
A quiet reminder
Consistency beats intensity, every time.
A steady 1pm cut-off kept for a month does more than a heroic week of no caffeine that does not last.
- 01 Timing
Cut-off is the single biggest lever
Stopping caffeine 8-10 hours before bed protects deep and REM sleep more reliably than reducing total intake.
- 02 Consistency
Steady mornings beat spikes
A steady morning intake beats erratic peaks and troughs across the day.
- 03 Awareness
Count the mg for a week
Track total mg for a week — including hidden sources — you may be surprised.
- 04 Fundamentals
Sleep, light, hydration first
Sleep, morning light and hydration reduce reliance on caffeine to get through the afternoon.
Frequently asked
Everything we get asked about caffeine and sleep.
Quick answers on half-life, pregnancy, decaf, energy drinks and when to see a GP.
-
How long does caffeine last?
Half-life is 5-6 hours; effects last 8-10 hours for many.
-
Is 200 mg safe in pregnancy?
Yes, per NHS/RCOG guidance — one strong coffee is close to the limit.
-
Coffee vs tea for sleep?
Tea has less caffeine per cup and L-theanine, so many find it less disruptive later.
-
Does decaf still have caffeine?
Yes, about 2-15 mg per cup — usually negligible for sleep.
-
Are energy drinks worse?
Usually higher caffeine plus sugar and other stimulants — treat them as a different beast.
-
Can I train tolerance?
Partially — but tolerance to sleep disruption is weaker than tolerance to alertness.
-
Coffee for jet lag?
Strategic timed doses can help — but avoid at destination bedtime.
-
When to see a GP?
Palpitations, chest pain, panic attacks or persistent insomnia.
-
Is caffeine addictive?
Physically dependent, yes; classical addiction, no. Rebound headache and fatigue are the main withdrawal features.
-
Do I really need to quit?
Rarely. Cutting late intake is usually enough.
Related content
Keep reading.
-
Sleep hygiene
The fundamentals — light, timing, environment and wind-down.
Learn more -
Insomnia
When sleep problems persist — how it is diagnosed and treated.
Learn more -
Anxiety
The overlap with caffeine sensitivity, and how to tell them apart.
Learn more -
All wellness
Browse the full library of evidence-based wellness guides.
Learn more