Caffeine Half-Life Calculator

Discover how much caffeine follows you to bed.

Add today's coffee, tea or energy drinks and see an estimate of how much caffeine may still be in your system when you turn out the lights.

  • 100% free
  • Instant results
  • No account required

Add a drink, and I'll show you how much caffeine might still be around at bedtime.

These are illustrative estimates, not measurements of caffeine levels or predictions of sleep quality. Individual caffeine metabolism varies.

Add what you drank
More drinks

Amounts are typical, not exact. Caffeine varies by brand, size and how a drink is made, so check the label when you can and change the number to match.

Tap a drink to add it. It starts at the current time, and you can change the time and amount.

    When do you go to bed?

    Times after midnight count as tonight, the same as drinks.

    Caffeine half-life: 5 hoursChange
    Half-life, 2 to 10 hours 5h

    The half-life is how long your body takes to clear half the caffeine. Five hours is a common average for healthy adults, but people differ a lot: smoking tends to shorten it, and pregnancy and some medicines can make it much longer. Real half-lives can fall outside this range. If you're not sure, leave it at 5.

    What Is Caffeine Half-Life?

    Caffeine's half-life is the time your body takes to clear half of the caffeine in it. The other half doesn't vanish at the same moment: it halves again over the next half-life, and again after that, fading a little more each time.

    With a 5-hour half-life, a 200 mg energy drink at noon works out like this:

    200 mg of caffeine at noon, with a 5-hour half-life.
    TimeHours since the drinkCaffeine left (mg)
    12:00 PM0200
    5:00 PM5100
    10:00 PM1050
    3:00 AM next day1525
    8:00 AM next day2012.5

    The calculator uses the same sum for every drink: caffeine left = amount × 0.5 ^ (hours since the drink ÷ half-life). It then adds up what is left of each drink.

    Your body takes in caffeine quickly. Harvard's Nutrition Source notes that it is absorbed within about 45 minutes and peaks in the blood somewhere between 15 minutes and 2 hours. To keep things simple, the calculator counts each drink as fully absorbed the moment you have it.

    How Long Does Caffeine Stay in Your System?

    Longer than most people expect. For healthy adults the average half-life is about 5 hours, but a National Academies report puts the range anywhere from 1.5 to 9.5 hours. Smoking tends to speed caffeine up, while pregnancy and oral contraceptives slow it down. In the last months of pregnancy, caffeine can stay in the body for up to 15 hours.

    Because it halves rather than running out, there is no exact moment when caffeine is gone. After five half-lives, about 3% of a dose is left. With a 5-hour half-life, that is a little over a day.

    That is why the calculator lets you set the half-life from 2 to 10 hours. If you know caffeine stays with you for ages, try a longer one. If you're not sure, the 5-hour default is a reasonable middle.

    How Much Caffeine Is in Your Favorite Drinks?

    These are the starting amounts the calculator uses. You can change any of them.

    Typical caffeine per serving. Real amounts vary by brand, size and how the drink is made.
    DrinkServingCaffeine (mg)
    Brewed coffee8 fl oz95
    Espresso1 shot63
    Cold brew12 fl oz150
    Latte1 espresso shot63
    Black tea8 fl oz47
    Green tea8 fl oz28
    Matcha1 serving70
    Energy drink16 fl oz can160
    Soda12 fl oz can40
    Pre-workout1 scoop200
    Decaf coffee8 fl oz5

    The coffee, espresso and tea amounts are close to the Mayo Clinic's caffeine chart. The FDA gives wide ranges for others: 23 to 83 mg in a 12-ounce caffeinated soft drink, and 40 to 250 mg in 8 ounces of energy drink. Cold brew, matcha and pre-workout vary a lot between brands, so the label is your best guide.

    For daily totals, the FDA has cited 400 mg a day as an amount not generally linked to negative effects in healthy adults, while noting that sensitivity varies. This calculator looks at timing, not at whether a daily amount is right for you.

    How Does Caffeine Affect Sleep?

    Through the day, a chemical called adenosine builds up in your brain and helps make you feel sleepy. Caffeine blocks adenosine from doing its job, which is why it keeps you alert, and why it can get in the way when you're trying to wind down.

    In a 2023 review of 24 studies, caffeine reduced total sleep time by 45 minutes on average. People took about 9 minutes longer to fall asleep, spent about 12 more minutes awake during the night and got a little less deep sleep.

    The effect can be easy to miss. In a 2013 study, a large dose of caffeine taken 6 hours before bed cut measured sleep by more than an hour, but the participants didn't report much change.

    Everyone is different, and an estimate of caffeine can't tell you how you'll sleep. It can show you how much of the day's caffeine you may be taking to bed.

    When Should You Stop Drinking Caffeine Before Bed?

    There isn't one cutoff that suits everyone, because it depends on how much you have and how quickly your body clears it. Research gives some useful markers:

    • At least 6 hours for a large amount. The 2013 study supports avoiding substantial caffeine for a minimum of 6 hours before bed.
    • About 9 hours for a cup of coffee. The 2023 review suggests having a coffee of about 107 mg at least 8.8 hours before bedtime.
    • About 13 hours for a pre-workout. For a typical 217 mg serving, the same review suggests at least 13.2 hours.

    With a 10:30 PM bedtime, 8.8 hours earlier is about 1:40 PM. To see your own numbers, add your usual drinks above and use the what-if to move the last one earlier until the bedtime estimate looks right to you. If you haven't settled on a bedtime yet, find your ideal bedtime with the Sleep Calculator.

    How to Build Better Caffeine Habits

    • Front-load your caffeine. Have your strongest drink early in the day, when it has the most time to fade.
    • Switch the afternoon cup. Decaf, green tea or a smaller size keeps the ritual with much less caffeine.
    • Try a short nap instead. When the afternoon slump hits, a 20-minute power nap is another way to recharge. The Nap Calculator works out when to set your alarm.
    • Watch the hidden sources. Energy drinks, sodas and pre-workouts can add more caffeine than you'd guess.
    • Read the label. Packaged drinks often list their caffeine. Use the real number in the calculator.
    • Look at the bigger picture. If you reach for caffeine because you're short on sleep, calculate your sleep debt to see how the week has gone.

    Small changes are easiest to keep when they become part of a routine. Build better sleep habits with Owluno, where your owl grows as your nights become more regular.

    Frequently Asked Questions

    What is the average half-life of caffeine?

    About 5 hours in healthy adults, but research has measured anything from about 1.5 to 9.5 hours. Smoking tends to shorten it, and pregnancy and oral contraceptives tend to lengthen it.

    How much caffeine is left after 10 hours?

    With a 5-hour half-life, 10 hours is two half-lives, so about a quarter is left: 200 mg becomes about 50 mg. With a 4-hour half-life it would be about 18%, and with a 6-hour half-life about 31%.

    Does caffeine affect everyone the same way?

    No. People clear caffeine at different speeds, and the FDA notes that how much is too much depends on body weight, medicines, health conditions and sensitivity. Two people can drink the same coffee and feel it very differently.

    How does caffeine from several drinks accumulate?

    Each drink fades on its own schedule, and what is left of each one adds up. Two 95 mg coffees at 8 AM and 1 PM give an estimated 143 mg just after the second one, and about 38 mg by 10:30 PM with a 5-hour half-life.

    Can caffeine still affect sleep after the stimulating feeling wears off?

    It can. In a 2013 study, 400 mg of caffeine taken 6 hours before bed cut measured sleep by more than an hour, yet the participants did not report noticing much difference.

    Is decaf coffee completely caffeine-free?

    No. The FDA says decaf coffee typically has 2 to 15 mg of caffeine in an 8-fluid-ounce cup. That is far less than regular coffee, but more than nothing.

    How accurate is a caffeine half-life calculator?

    The sums are exact, but the model is simple. It assumes each drink is absorbed at once, uses one half-life all day, and starts from typical caffeine amounts. Treat the results as illustrative estimates, not measurements of caffeine in your body or predictions of how you will sleep.

    Sources: FDA, Spilling the Beans: How Much Caffeine Is Too Much?; Mayo Clinic, Caffeine content for coffee, tea, soda and more; Institute of Medicine, Caffeine for the Sustainment of Mental Task Performance, 2001; Harvard T.H. Chan School of Public Health, The Nutrition Source: Caffeine; Gardiner and others, Sleep Medicine Reviews, 2023; Drake and others, Journal of Clinical Sleep Medicine, 2013. This page is general information for adults, not medical advice. If you are pregnant, take medicines that interact with caffeine or have a health condition, ask your doctor what is right for you.

    Last updated .