How Long Caffeine Stays in Your Body — and Why the Alertness Wears Off First
By bedtime the afternoon coffee has long stopped feeling like anything, yet much of its caffeine may still be in your blood. In healthy adults, half a dose is typically cleared in roughly three to six hours, but pregnancy, some contraceptive pills, liver disease and certain medicines can stretch that several-fold, while smoking shortens it. And the alertness was never extra energy: caffeine hides the build-up of sleep pressure rather than removing it.
When to see a doctor
Right away (999 in the UK, 911 in the US, 112 in the EU): chest pain, a seizure, or a racing or irregular heartbeat with fainting — call whatever amount of caffeine you think you had. Pure caffeine powder and tablets carry the biggest risk: the FDA (US) reports seizures after about 1,200 mg taken quickly, less than half a teaspoon of powder. In a child, a racing or irregular heartbeat, fast breathing or shaking they cannot control after caffeine or an energy drink needs medical help at once (American Academy of Pediatrics).
Soon: you are pregnant or breastfeeding, regularly go over the limits below and are worried — talk to your midwife or doctor. Palpitations, anxiety or tremor that persist after you cut caffeine out: the cause may lie elsewhere, so see a doctor.
Routinely: sleepy in the day despite enough hours in bed, especially with loud snoring or pauses in breathing — possible sleep apnoea (NHS, UK); insomnia lasting months (NHS); tiredness for weeks — coffee will not fix it, and it is worth checking your thyroid.
What is happening
Why the speed varies. About 95% of caffeine is broken down in the liver by one enzyme, CYP1A2, whose activity depends on genes, age, hormones, liver health, smoking, diet and medicines (Nehlig, 2018). Average half-lives in studies of healthy adults run from about 3.5 hours in smokers to 6 in non-smokers (Parsons & Neims, 1978; Knutti et al., 1981). What slows it:
- Pregnancy: about 8 hours on average and around 10 in the last weeks, back to usual within about a month of birth (Knutti et al., 1981).
- Combined contraceptive pills: noticeably longer — 7.9 versus 5.4 hours in one study (Abernethy & Todd, 1985).
- Liver disease: much slower clearance (Joeres et al., 1988).
- Some medicines: with the antidepressant fluvoxamine, the median half-life rose from 5 to 31 hours in eight volunteers (Jeppesen et al., 1996). Ask a pharmacist about yours.
- Stopping smoking: clearance fell markedly within three weeks (Joeres et al., 1988), so the same cup may linger longer in the first weeks.
Why alertness fades first. Adenosine builds up in the brain while you are awake and falls during sleep — shown in animal studies — and is thought to be one of the signals of sleep pressure (Porkka-Heiskanen et al., 1997). Caffeine blocks its receptors (Nehlig, 2018): it does not clear the pressure, it stops you feeling it. With regular use, caffeine mostly restores performance lowered by sleepiness or overnight withdrawal rather than lifting it above normal (Roehrs & Roth, 2008).
Sleepy is not the same as tired. Sleepiness is a tendency to fall asleep; fatigue is a lack of energy without it (Shen et al., 2006). Caffeine acts on the first. Fatigue that coffee does not touch is a different problem.
Falling asleep does not mean it had no effect. In a meta-analysis of 24 studies, caffeine cut total sleep by about 45 minutes, reduced deep sleep and added time awake in the night (Gardiner et al., 2023). At home, a large dose (400 mg) disrupted sleep even when taken 6 hours before bed (Drake et al., 2013).
Withdrawal. Headache, tiredness, low mood and poor concentration start 12–24 hours after the last dose and last 2–9 days, even at around 100 mg a day (Juliano & Griffiths, 2004). The weekend headache when coffee comes late is often just this.
What to do
- Set a cutoff. The NHS (UK) advises no tea or coffee for at least 6 hours before bed; the 2023 meta-analysis suggests about 9 hours for a cup of coffee and longer for a high-dose pre-workout. If you are pregnant, on the pill or sensitive, go earlier.
- Count milligrams, not cups. The FDA (US) gives 113–247 mg for 12 fl oz (355 ml) of brewed coffee, 71 for black tea, 23–83 for caffeinated soda, 41–246 for energy drinks.
- Know the limits. Up to 400 mg a day for most healthy adults (FDA, US; EFSA, EU; Health Canada), single doses up to 200 mg (EFSA). In pregnancy: 200 mg a day (NHS, UK; EFSA), 300 mg (Health Canada). While breastfeeding: 200 mg (NHS), 300 mg (Health Canada).
- Children and teens. The American Academy of Pediatrics says avoiding caffeine is the best choice for all children (2025); the US Dietary Guidelines 2025–2030 tell children aged 5–10 to avoid caffeinated drinks and teenagers to sharply limit energy drinks.
- Cut down gradually to soften withdrawal (FDA).
- Drowsy at the wheel: first stop somewhere safe (UK Highway Code, rule 91). There, caffeine plus a short nap reduced impairment in a simulator study (Horne & Reyner, 1996) — a stopgap, not a substitute for sleep; see the 20-minute nap.
- Fix the sleep, not the symptom: sleep is not a luxury, focus after a poor night.
When this is not the case
- Slow clearance — pregnancy, the pill, liver disease, interacting medicines — makes the general limits and cutoffs too generous for you.
- Alcohol: coffee does not lower blood alcohol — how alcohol leaves the body; alcohol and sleep are covered in alcohol, honestly.
- Insomnia that persists after cutting caffeine: can't fall asleep within 20 minutes.
Sources
- FDA — Spilling the beans: how much caffeine is too much?
- EFSA — Caffeine
- Health Canada — Caffeine in foods
- NHS — Foods to avoid in pregnancy
- NHS — Breastfeeding and diet
- American Academy of Pediatrics — The effects of caffeine on kids, 2025
- Dietary Guidelines for Americans 2025–2030
- NHS — Insomnia
- NHS — Sleep apnoea
- UK Highway Code — rules 91–102
- Gardiner et al., 2023 — Caffeine and sleep: a meta-analysis
- Drake et al., 2013 — Caffeine 0, 3 or 6 hours before bed
- Nehlig, 2018 — Interindividual differences in caffeine metabolism
- Knutti et al., 1981 — Caffeine half-life in pregnancy
- Parsons & Neims, 1978 — Smoking and caffeine elimination
- Abernethy & Todd, 1985 — Oral contraceptives and caffeine
- Joeres et al., 1988 — Smoking, quitting and cirrhosis
- Jeppesen et al., 1996 — Fluvoxamine and caffeine
- Porkka-Heiskanen et al., 1997 — Adenosine and sleep pressure
- Roehrs & Roth, 2008 — Caffeine: sleep and daytime sleepiness
- Shen et al., 2006 — Distinguishing sleepiness and fatigue
- Juliano & Griffiths, 2004 — Caffeine withdrawal
- Horne & Reyner, 1996 — Caffeine and a nap for sleepy drivers
Checked: 24 September 2026
Living experience
no stories yetSign in to leave a comment.
No stories yet — be the first to share your experience.