Free tool · caffeine
Caffeine cutoff calculator
Choose your bedtime and caffeine half-life to calculate your last coffee time. Add any drink and clock time below to see how many milligrams remain active when you go to bed.
Evidence Strong that late caffeine shortens sleep (a meta-analysis of 24 studies). The cutoff rule here is a stated rule of thumb, not a medical threshold, and your own half-life can be much faster or slower.
A caffeine cutoff calculator estimates how much caffeine is still in your body at bedtime. This one sets your last cup two half-lives before bed, and never less than six hours: ten hours for a typical five-hour half-life. A 2023 meta-analysis estimated that a 107 mg coffee had to be at least 8.8 hours before bed to avoid losing sleep, on average.
The half-life rule this caffeine cutoff calculator uses
Caffeine leaves the bloodstream by first-order exponential decay: after one half-life, 50% of the dose remains; after two half-lives, 25% remains. Rather than giving everyone a generic “no coffee after 2 p.m.” rule that ignores whether you sleep at 9:30 p.m. or 1:00 a.m., this caffeine cutoff calculator places your last cup two half-lives before your actual bedtime — with a minimum six-hour floor.
For an 11:00 p.m. bedtime and a typical five-hour half-life, two half-lives puts your cutoff at 1:00 p.m. At bedtime, about 24 mg of a 95 mg brewed coffee is still active. The six-hour floor comes from a home study by Drake and colleagues (funded by the monitor’s maker): in 12 healthy sleepers, 400 mg taken six hours before bed still cut measured sleep by more than an hour, while their sleep diaries showed about 41 minutes less, which was not statistically significant. The cutoff here is a rule of thumb for planning.
How it compares with the research: across 24 studies, caffeine cut total sleep by 45 minutes and deep sleep by about 11 minutes, and the authors estimated that a 107 mg coffee had to be at least 8.8 hours before bed, and a 217.5 mg dose at least 13.2 hours, to avoid losing sleep on average (Gardiner and colleagues, 2023). The calculator’s ten hours for a typical half-life sits a little beyond the first estimate. Its time does not change with the drink, though; in the meta-analysis a bigger dose needed a longer gap. With a large drink, look at how much the result says is still active at bedtime, not just the time.
To read why caffeine masks tiredness without clearing sleep pressure — by blocking adenosine receptors — see why your last coffee has a time. Whether you should delay your first morning cup is a separate, weakly supported claim covered in the 90-minute coffee rule.
Caffeine cutoff times by bedtime and metabolism speed
Because clearance speed differs widely between people, your ideal last-coffee clock time depends on both when you go to bed and how quickly your liver clears caffeine:
| Usual bedtime | Fast clearance (3 h → 6 h min) | Typical clearance (5 h → 10 h) | Slow clearance (8 h → 16 h) |
|---|---|---|---|
| 21:30 | 15:30 | 11:30 | 05:30 |
| 22:30 | 16:30 | 12:30 | 06:30 |
| 23:00 | 17:00 | 13:00 | 07:00 |
| 00:00 | 18:00 | 14:00 | 08:00 |
| 01:00 | 19:00 | 15:00 | 09:00 |
How much caffeine is in common drinks?
Portion size matters as much as the clock. A large café pour-over or cold brew at 2:00 p.m. can leave more active caffeine at bedtime than a single espresso at 4:00 p.m.:
- Green tea (240 ml / 8 oz): ~28 mg (leaves ~7 mg after two half-lives).
- Black tea (240 ml / 8 oz): ~47 mg (leaves ~12 mg after two half-lives).
- Single espresso (30 ml): ~63 mg (leaves ~16 mg after two half-lives).
- Small energy drink (250 ml): ~80 mg (leaves ~20 mg after two half-lives).
- Brewed drip coffee (240 ml / 8 oz): ~95 mg (leaves ~24 mg after two half-lives).
- Large coffee-shop coffee (470 ml / 16 oz): ~200 mg+ (leaves ~50 mg+ after two half-lives).
Why your caffeine half-life varies
- Genes (CYP1A2). The liver enzyme CYP1A2 handles about 95% of caffeine metabolism, and its activity varies about 5- to 6-fold between people. In a twin study cited by that review, 89% of the variation in caffeine levels (in non-smokers not taking the pill) was down to genes.
- Smoking speeds clearance and shortens the half-life.
- Oral contraceptives slow clearance and can double the half-life. Pregnancy slows it too.
- Some medications and liver disease slow it. If you take regular prescriptions or are pregnant, ask your doctor or pharmacist for personal limits.
The three settings, three, five and eight hours, sit inside the 1.5-to-9.5-hour range reported for healthy adults; the mean is about five. If you are unsure where you sit, start with “typical”, then shift your last cup one hour earlier for seven nights and notice how easily you fall asleep and how rested you feel. That personal test beats any population average.
The last coffee has a clock time. It is half-life arithmetic anchored to bedtime, not willpower.
In the Owlark app
Owlark computes your caffeine cutoff directly from your sleep window and chronotype, placing one clear time on today’s energy curve — “coffee by 1:40p” — alongside your peak focus hours and quiet hour. Want to map a cutoff alongside a coffee-nap slot? Try the coffee timing calculator. The daily loop is free.
Questions people ask about the caffeine cutoff calculator
What time should I stop drinking coffee?
With a five-hour caffeine half-life, this caffeine cutoff calculator sets your last cup ten hours before bedtime — for an 11:00 p.m. bedtime, that is 1:00 p.m. Its rule uses at least six hours and allows about two half-lives for the dose to fall to a quarter. For comparison, a 2023 meta-analysis of 24 studies estimated that a 107 mg coffee had to be at least 8.8 hours before bed, and a 217.5 mg dose at least 13.2 hours, to avoid losing sleep on average.
How long does caffeine stay in your body?
Its mean half-life in healthy adults is about five hours, with a reported range of about 1.5 to 9.5 hours. Smoking speeds clearance; oral contraceptives can double the half-life; pregnancy, some medications and liver problems slow it down too.
How much caffeine is in coffee, tea and energy drinks?
Roughly 95 mg in an 8 oz (240 ml) cup of brewed coffee, about 63 mg in a single espresso, 47 mg in black tea, 28 mg in green tea, and around 80 mg in a small 250 ml energy drink. Coffee-shop sizes can contain 200 to 300 mg or more.
Does the caffeine cutoff apply to tea, matcha and soda too?
Yes. The active molecule is identical across coffee, black tea, green tea, matcha, cola and energy drinks — only the dose per serving changes. Add every caffeinated drink together when checking your bedtime total.
Why does this caffeine cutoff calculator use a quarter of the dose?
It is a simple, stated rule: two half-lives. It is not a medical threshold. Some people sleep fine with more caffeine on board; some feel less. Use it as a starting point and move it by an hour for a week to see what changes.
Is my data sent anywhere?
No. Every calculation runs in your browser, and nothing you enter is sent or stored.
Gardiner C, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev. 2023. Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013. Grzegorzewski J, et al. Pharmacokinetics of caffeine: a systematic analysis of reported data. Front Pharmacol. 2021. Nehlig A. Interindividual differences in caffeine metabolism. Pharmacol Rev. 2018. Institute of Medicine. Pharmacology of caffeine. 2001. Caffeine content per serving: typical values from USDA FoodData Central; real cups vary widely.
Owlark is a wellness app, not a medical device. It does not diagnose or treat any sleep disorder.