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.

Updated 30 November 2026 · Written by Valentyn Yakovliev

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.

If the cup and bedtime show the same time, the result is for a cup taken at bedtime. A later clock time is treated as the previous day.

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 decay across 10 hours95 mg coffee at 13:00 with a 5-hour half-life leaves 48 mg at 18:00 and 24 mg at 23:00
Caffeine cutoff calculator decay curve showing 95 mg coffee dropping to 48 mg after 5 hours and 24 mg at bedtime

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.:

Why your caffeine half-life varies

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.

Download on the App Store Get it on Google Play Open in yourBrowser

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.