Skip to content
InnovaLabWorks
On the App StoreIn developmentGuidesNewsAbout usContactAppsPrivacyTerms of Service
English (US)
English (US)EspañolPortuguês (BR)Français (CA)Deutsch
Home › Guides › Caffeine half-life: how long caffeine stays in your system and when to have your last coffee

Caffeine half-life: how long caffeine stays in your system and when to have your last coffee

Updated November 29, 2026 · InnovaLabWorks

Caffeine does not switch off at a set time. Your body clears it gradually, so part of the coffee you had at lunch is still there at bedtime. Knowing roughly how much is left can help explain a restless night, and it lets you choose a cutoff time from numbers rather than guesswork.

This guide explains the half-life idea, shows the math with worked examples and lists general reference values. It is general information, not medical advice, and your own sensitivity may be quite different.

1. What caffeine half-life means

Half-life is the time your body takes to clear half of the caffeine in it. For healthy adults it is commonly cited at about 3 to 7 hours, with 5 hours a typical middle value, and it varies a lot between people. Smoking tends to shorten it, while pregnancy, some oral contraceptives, some medications and liver problems can lengthen it considerably.

Caffeine is usually absorbed within about an hour of drinking it, then cleared at a roughly proportional rate. That is why the amount left is halved again and again, instead of disappearing all at once.

2. Estimate how much caffeine is left

The formula is: caffeine remaining = amount consumed × 0.5^(hours elapsed ÷ half-life).

Example: you have 200 mg of caffeine at 2 pm and go to bed at 11 pm, 9 hours later. With a 5-hour half-life, 200 × 0.5^(9 ÷ 5) = 200 × 0.5^1.8, which is about 57 mg still in your system at bedtime, more than a quarter of the original amount.

Drinks add up. If you have 100 mg at 8 am and another 100 mg at 1 pm, by 11 pm the first has had 15 hours (three half-lives, so 12.5 mg left) and the second 10 hours (two half-lives, so 25 mg left), for about 38 mg in total.

3. Work back to your cutoff time

To find the latest time for a drink, choose the most caffeine you want left at bedtime, then solve for the hours you need: hours needed = half-life × log2(amount ÷ amount you want left).

Example: a 100 mg drink, a 5-hour half-life and a target of 25 mg or less at an 11 pm bedtime. 100 ÷ 25 = 4, and log2(4) = 2, so you need 2 half-lives, or 10 hours. Your cutoff is 1 pm. With a 4-hour half-life it moves later, to 3 pm; with a 7-hour half-life it moves earlier, to 9 am.

The target is a personal choice, and the same amount affects people differently. A widely cited sleep study found that a large dose taken six hours before bedtime still disrupted sleep, so a useful cutoff is often earlier than people expect.

4. Know roughly what is in your drinks

Caffeine content varies widely by brand, brew method and serving size, so treat these as rough figures from Health Canada (coffee and tea) and the U.S. Food and Drug Administration (decaf, soft drinks and energy drinks):

  • Brewed coffee: about 135 mg per 237 mL (8 oz) cup, and often more for drip coffee.
  • Black or green tea: about 30 to 50 mg per 237 mL cup.
  • Decaffeinated coffee: usually about 2 to 15 mg per 8 oz cup.
  • Caffeinated soft drinks: about 23 to 83 mg per 355 mL (12 oz) can.
  • Energy drinks: about 54 to 328 mg per 473 mL (16 oz) can.

Large coffee-shop sizes and extra espresso shots can hold far more than a standard cup, so check the label or the shop’s nutrition information when you can.

5. Compare your daily total with general reference values

Health Canada lists 400 mg a day as the maximum for healthy adults, and the U.S. Food and Drug Administration cites 400 mg a day as an amount not generally associated with negative effects. Health Canada lists a lower maximum of 300 mg a day for people who are pregnant, planning to become pregnant or breastfeeding, and 2.5 mg per kilogram of body weight a day for children and teens under 18.

These are general references, not personal targets. People with heart conditions, anxiety, sleep problems or certain medications may need less, so ask a health professional about your own intake.

Where CaffCutoff helps

CaffCutoff: Caffeine Clock

CaffCutoff does this math across every drink you log. You pick drinks from a built-in database of coffee, espresso, tea, energy drinks, soda and more, and it shows the caffeine still on board right now, a decay curve for the rest of your day and your daily total against a general safe-limit reference, with an under, close or over reading. You can set your own daily limit, bedtime, sleep sensitivity and the half-life the math uses. Everything you log stays on your device, with no account.

The free version covers logging, the live amount on board, the decay curve, your daily total and your full history. A one-time Lifetime purchase adds your bedtime cutoff time, the caffeine projected at bedtime, an optional cutoff reminder, custom drinks and a PDF and CSV caffeine report. CaffCutoff is a caffeine tracker, not a medical device, and its numbers are estimates.

View on the App Store · App details and screenshots

Questions and answers

How long does caffeine stay in your system?

For healthy adults, caffeine’s half-life is commonly cited at about 3 to 7 hours. With a 5-hour half-life, about a quarter of a dose is still in your body 10 hours later.

How do I calculate how much caffeine is left?

Multiply the amount you had by 0.5 raised to the power of the hours elapsed divided by your half-life. For 200 mg after 9 hours with a 5-hour half-life, that is about 57 mg.

How do I work out my coffee cutoff time?

Pick the most caffeine you want left at bedtime and multiply your half-life by log2 of the drink’s amount divided by that target. A 100 mg drink, a 25 mg target and a 5-hour half-life need 10 hours, so a 1 pm cutoff for an 11 pm bedtime.

How much caffeine is too much in a day?

Health Canada lists 400 mg a day as the maximum for healthy adults and 300 mg for people who are pregnant, planning a pregnancy or breastfeeding. Your own limit may be lower, so check with a health professional.

Does CaffCutoff tell me my cutoff time?

Yes, with the Lifetime purchase. You set your bedtime and sleep sensitivity, and CaffCutoff calculates the latest time for your next drink that keeps you under your threshold at bedtime.

This guide is general information, not medical advice. Caffeine sensitivity varies, and the reference values above are general, not personal limits. If you are pregnant, breastfeeding, under 18, have a health condition or take medication, talk to a health professional about your caffeine intake.

Lire en français · All guides

InnovaLabWorks
StudioAbout usGuidesNewsContact & feature requestsAll InnovaLabWorks apps
LegalPrivacyTerms of Service
© 2026 InnovaLabWorks. All rights reserved.Cookie notice