CaffeineTime

Caffeine cutoff calculator

Sources checked claim by claim by an AI review. Approved for publishing by Oleksii Y. on 2026-10-19.

Caffeine's half-life averages about 4 hours in healthy adults and ranges from about 2 to 8 hours (EFSA), so part of an afternoon coffee can still be in your body at bedtime. Pick a drink and your bedtime to estimate the latest time to have it.

Calculate your cutoff time

Latest time to have it, by metabolism

Fast
7:28 PM
3.5 h before bed
Average
5:37 PM
5.4 h before bed
Slow
2:51 PM
8.2 h before bed

Studies at their own doses (these are not the dose above)

  • Gardiner et al. 2025 (randomized trial): In 23 healthy young men, 100 mg taken 12, 8 or 4 hours before bed had no significant effect on measured or self-rated sleep.
  • Gardiner et al. 2023 (meta-analysis): To avoid losing sleep time, the authors suggest a coffee (107 mg per 250 ml) at least 8.8 hours before bed.
How this is estimated

Our model assumes caffeine peaks 45 minutes after you drink it, then halves every 3 h (fast), 5 h (average) or 8 h (slow), and aims for 50 mg or less at bedtime. These numbers are modelling choices, not published limits; studies report peaks from about 30 minutes to 2 hours.

More than one drink a day? Plan them with the timing calculator →

Estimated cutoffs by drink

The calculator's estimates for an 11:00 PM bedtime. A 2023 meta-analysis is more cautious (at least 8.8 hours before bed for a 107 mg coffee), so treat these times as a starting point.

How these times are estimated

The model uses a 45-minute allowance to peak, then a 5-hour half-life (average) or 8-hour half-life (slow), aiming for 50 mg or less at bedtime. The 45 minutes and the 5 and 8 hours are our modelling choices: studies report peaks from about 30 minutes to 2 hours, and EFSA gives an average half-life of about 4 hours. The 50 mg target is our modelling choice, not a published threshold: at the model's 5-hour average half-life, 100 mg falls to about 57 mg four hours later, and 100 mg four hours before bed is a dose and timing that had no significant effect on sleep in a 2025 trial in 23 healthy young men (Gardiner et al. 2025). A 2023 meta-analysis by the same group is more cautious (at least 8.8 hours for a 107 mg coffee), so treat these times as a starting point.

BeverageCaffeineAverage metabolismSlow metabolism
Espresso (1 shot)63 mg8:35 PM (2.4 h)7:35 PM (3.4 h)
Energy Drink (250ml can)80 mg6:52 PM (4.1 h)4:50 PM (6.2 h)
Brewed Coffee (8oz)95 mg5:37 PM (5.4 h)2:51 PM (8.2 h)
Cold Brew (Starbucks Tall, 12oz)155 mg2:05 PM (8.9 h)9:12 AM (13.8 h)
Pre-Workout (1 serving)217.5 mg11:39 AM (11.4 h)5:17 AM (17.7 h)

The drink amounts are typical servings, rounded to whole mg, except the pre-workout serving, which is the 217.5 mg used by Gardiner et al. 2023. Each drink's data page shows where its number comes from: Espresso (1 shot), Brewed Coffee (8oz), Cold Brew (Starbucks Tall, 12oz), Energy Drink (250ml can), Black Tea (8oz), Green Tea (1 cup), Matcha Latte (Starbucks Grande), Cola (12oz can), Pre-Workout (1 serving) (Gardiner et al. 2023), Dark Chocolate (1oz).

Looking for a specific brand? See the latest time for 30 popular drinks →

Why does cutoff timing matter for deep sleep?

The adenosine system

Adenosine is widely accepted as one of the body's own sleep-regulating substances. Caffeine reduces sleepiness mainly by blocking the receptors adenosine acts on (Reichert et al. 2022; McLellan et al. 2016). That is a simplified picture of a complex system.

Less deep sleep

In a 2025 trial with 23 healthy young men, 400 mg of caffeine cut deep (N3) sleep by about 30, 15 and 21 minutes when taken 4, 8 and 12 hours before bed; 100 mg had no significant effect (Gardiner et al. 2025). Across studies, caffeine cut total sleep by about 45 minutes on average (Gardiner et al. 2023).

Factors influencing your personal cutoff

  • Your body: Caffeine's half-life averages about 4 hours in healthy adults and ranges from about 2 to 8 hours (EFSA). Smoking, pregnancy and some birth-control pills change it further (below).
  • Estrogen-containing birth-control pills: in a small study of women who had taken low-dose (under 50 µg) estrogen pills for more than 3 months, caffeine's half-life averaged 7.88 hours, against 5.37 hours in 9 controls (Abernethy & Todd 1985).
  • Pregnancy: lengthens caffeine's half-life (about 8.3 hours in pregnant women against 3.4 hours in other adults in one study), so caffeine stays in the body longer (Knutti et al. 1981). If you are pregnant, ask your clinician how much caffeine is right for you.
  • Smoking: speeds caffeine clearance (Temple et al. 2017), so the same cup can wear off sooner.
  • Your own sleep: these times are model estimates. If you still sleep badly, an earlier cutoff or a smaller dose is worth trying.

General information, not medical advice

  • This tool provides educational estimates only.
  • Caffeine's half-life averages about 4 hours in healthy adults and ranges from about 2 to 8 hours (EFSA). Your actual clearance may differ.
  • This tool does not diagnose sleep disorders or caffeine sensitivity.

If you feel unwell after caffeine — for example chest pain, a fast or irregular heartbeat that does not settle, fainting, confusion or trouble breathing — get urgent medical help. If you are pregnant or breastfeeding, under 18, take medication, or have a heart, liver or anxiety condition, high blood pressure or a sleep disorder, ask a doctor or pharmacist what amount is right for you.

Sources

  1. Gardiner CL, Weakley J, Burke LM, et al. (2025). Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial. Sleep, 48(4), zsae230. doi:10.1093/sleep/zsae230 ↗
  2. Gardiner C, Weakley J, Burke LM, et al. (2023). The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews, 69, 101764. doi:10.1016/j.smrv.2023.101764 ↗
  3. Drake C, Roehrs T, Shambroom J, Roth T. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 9(11), 1195–1200. PMID 24235903 ↗
  4. European Food Safety Authority (2015). EFSA explains risk assessment: Caffeine. European Food Safety Authority. efsa.europa.eu (PDF) ↗
  5. Blanchard J, Sawers SJ. (1983). Comparative pharmacokinetics of caffeine in young and elderly men. Journal of Pharmacokinetics and Biopharmaceutics, 11(2), 109–126. PMID 6886969 ↗
  6. Blanchard J, Sawers SJ. (1983). The absolute bioavailability of caffeine in man. European Journal of Clinical Pharmacology, 24(1), 93–98. PMID 6832208 ↗
  7. Reichert CF, Deboer T, Landolt HP. (2022). Adenosine, caffeine, and sleep-wake regulation: state of the science and perspectives. Journal of Sleep Research, 31(4), e13597. PMID 35575450 ↗
  8. McLellan TM, Caldwell JA, Lieberman HR. (2016). A review of caffeine's effects on cognitive, physical and occupational performance. Neuroscience & Biobehavioral Reviews, 71, 294–312. PMID 27612937 ↗
  9. Abernethy DR, Todd EL. (1985). Impairment of caffeine clearance by chronic use of low-dose oestrogen-containing oral contraceptives. European Journal of Clinical Pharmacology, 28(4), 425–428. PMID 4029248 ↗
  10. Knutti R, Rothweiler H, Schlatter C. (1981). Effect of pregnancy on the pharmacokinetics of caffeine. European Journal of Clinical Pharmacology, 21(2), 121–126. PMID 7341280 ↗
  11. Temple JL, Bernard C, Lipshultz SE, et al. (2017). The Safety of Ingested Caffeine: A Comprehensive Review. Frontiers in Psychiatry, 8, 80. PMID 28603504 ↗
  12. European Food Safety Authority. Caffeine | EFSA. EFSA topic page (summary of the 2015 Scientific Opinion on the safety of caffeine). efsa.europa.eu ↗

An app for better sleep is on the way

We’re working on a mobile app to help you sleep better. It isn’t out yet. Leave your email and we’ll let you know when it launches.