How It WorksPublished 9 min read

How Long Does Caffeine Stay in Your System? Half-Life Math and When It Drops by Half

Will the coffee you had in the late afternoon be gone by bedtime? Caffeine peaks in your body about an hour after you drink it, and then drops by half every “half-life.” This guide uses concrete numbers to explain how caffeine moves through your body, how to calculate what remains using the half-life, how long each drink takes to fall to a target level, and how several cups stack up into the night.

Caffeine goes “absorbed → peak → halves every half-life”

Caffeine you swallow is almost 100% absorbed from the stomach and small intestine. The amount in your blood peaks about 30–60 minutes after drinking, and then it is broken down, mainly by the liver, and gradually decreases. That is why you feel coffee “kick in” 30 minutes to an hour later.

The way it decreases is distinctive. The liver doesn’t break down a fixed amount like “so many mg per hour”; it breaks down a fixed proportion of what is currently in your body. So when there is a lot, a lot is removed, and when there is little, it decreases slowly. The half-life describes this: the time it takes for the amount in your body to halve. The average for healthy adults is about 5 hours.

  1. 1

    Drink (0 min)

    Absorption begins as it moves from the stomach to the small intestine. It is faster on an empty stomach and a little slower after a meal.

  2. 2

    Peak (about 45–70 min later)

    The amount in your body is at its highest. With a 5-hour half-life this is about 52 minutes after drinking, when about 89% of what you drank is in your body (the rest has already begun to be broken down).

  3. 3

    Decline (from then on)

    It halves every half-life. After 5 hours it is about half the peak, and after 10 hours about a quarter.

Half-lifeTime to peakAmount in body at peak
3 hours (fast metabolism)About 45 minAbout 84% of the amount consumed
5 hours (typical)About 52 minAbout 89% of the amount consumed
8 hours (slow metabolism)About 59 minAbout 92% of the amount consumed
10 hours (e.g., taking the pill)About 62 minAbout 93% of the amount consumed
15 hours (e.g., late pregnancy)About 68 minAbout 95% of the amount consumed

These values come from a standard calculation that considers absorption and elimination together (a one-compartment model with first-order absorption at a rate of 4 per hour). The slower your metabolism, the slightly later the peak and the higher the peak amount.

How to calculate how many mg remain after a given number of hours

Once absorption is complete, the remaining amount can be calculated easily with the formula below. Using a calculator’s power key (x^y), you can work it out for any time.

Time elapsed3-hour half-life5-hour half-life8-hour half-life10-hour half-life
1 hour79%87%92%93%
3 hours50%66%77%81%
5 hours31%50%65%71%
8 hours16%33%50%57%
10 hours10%25%42%50%
15 hours3%13%27%35%
24 hours0.4%4%13%19%

Multiply the amount you drank by the percentage in this table. For someone with a 5-hour half-life, coffee drunk at 8 a.m. still leaves about 13% at 11 p.m. (15 hours later). With a 10-hour half-life, about 35% remains at the same time.

This formula simplifies things by assuming everything is absorbed the instant you drink. In reality absorption takes about an hour, so for the first few hours the actual amount is slightly less than the formula gives, and after that it follows the formula closely. The caffeine calculator’s graph includes absorption in its calculation.

It never “fully” leaves, so think in terms of mg thresholds

Because it keeps halving, mathematically it never reaches zero. Even after five half-lives (25 hours for a typical person), about 3% remains. So it is more practical to think of “how long caffeine lasts” as “how long until it drops to a level that no longer matters.”

  • 50 mg or less: a commonly used bedtime guideline. Less than a cup of black tea (45 mg) or a can of cola (about 39 mg), and an amount that has little effect on sleep for most people.
  • 25 mg or less: a more cautious guideline for people who have trouble falling asleep or sleep lightly. About the same as a cup of sencha green tea (about 24 mg).
  • 100 mg or less: a guideline for times like after a night shift, when you just need to be able to sleep even if there is some effect.

The 50 mg and 25 mg figures here are reference values for thinking about sleep, not official standards. People who are sensitive to caffeine may have trouble sleeping with smaller amounts, so choose a threshold that fits your own experience.

Time to drop below 50 mg, by drink

This is how long it takes for the amount in your body to fall to 50 mg or less after one serving, including absorption time. Drinks that start at 50 mg or less (black tea, sencha, cola, etc.) are below the threshold from the moment you drink them.

Drink (one serving)Caffeine3-hour half-life5-hour half-life8-hour half-life
Matcha (one bowl of usucha, 2 g powder)About 64 mg1 h 18 min2 h 2 min3 h 7 min
Energy drink 250 mlAbout 80 mg2 h 18 min3 h 39 min5 h 41 min
One shot of espressoAbout 80 mg2 h 18 min3 h 39 min5 h 41 min
Drip coffee 150 mlAbout 90 mg2 h 49 min4 h 30 min7 h 3 min
Gyokuro 60 mlAbout 96 mg3 h 5 min4 h 58 min7 h 47 min
One caffeine tablet (100 mg)100 mg3 h 16 min5 h 16 min8 h 16 min
Canned coffee 185 gAbout 102 mg3 h 20 min5 h 23 min8 h 28 min
Energy drink 355 mlAbout 142 mg4 h 47 min7 h 48 min12 h 18 min
Two cups of drip coffee (300 ml)About 180 mg5 h 49 min9 h 30 min15 h 3 min

When the amount doubles, the time needed grows by exactly one half-life. One cup of drip coffee takes about 4.5 hours for a typical person, but a mug holding two cups’ worth takes about 9.5 hours. The same applies if you lower the threshold to 25 mg: for one cup of drip coffee to fall to 25 mg or less takes about 9.5 hours for a typical person and about 15 hours for a slow metabolizer.

Half-life varies widely between people, from 2.5 to 10 hours

It is not your imagination that some people can drink coffee at night and sleep fine while others can’t sleep if they have it after lunch. Even among healthy adults, caffeine’s half-life ranges from about 2.5 to 10 hours, so the same cup can leave several times more caffeine at night for one person than for another.

ConditionTypical half-lifeReason
SmokingAbout 3 hours (shorter)Smoking boosts the liver enzyme that breaks down caffeine
Typical adultAbout 5 hoursAverage value
Slow metabolizer or older ageAbout 8 hoursIndividual differences in enzyme activity and decline with age
Taking low-dose birth control pillsAbout 10 hours (about double)Oral contraceptives slow breakdown
Late pregnancyAbout 15 hoursHormonal effects gradually slow breakdown during pregnancy

Liver disease and some medications (including certain antidepressants and antibiotics) can also slow breakdown. Conversely, quitting smoking slows breakdown, so some people find they suddenly can’t sleep after their usual amount of coffee once they quit. Pregnancy and the pill are covered in caffeine during pregnancy, breastfeeding, and while on the pill.

Several cups add up into the night

Even if a single cup clears in a few hours, drinking several a day adds new caffeine while the previous dose is still there. For example, here is the calculation for one cup of drip coffee each at 8:00, 12:30, and 15:00 (about 270 mg in total).

Half-lifeAmount in body at 23:00Time it falls below 50 mgAmount left at 7:00 next morning
3 hoursAbout 27 mg20:15About 4 mg
5 hoursAbout 64 mg0:48 next dayAbout 21 mg
8 hoursAbout 108 mg7:55 next dayAbout 54 mg
10 hoursAbout 129 mg12:42 next dayAbout 74 mg

Even for a typical person, with the last cup at 15:00, 64 mg remains at an 11 p.m. bedtime and doesn’t fall below 50 mg until after midnight. For slow metabolizers, a considerable amount is still there the next morning, and the morning coffee is added on top. The amount at night depends not only on the time of your last cup but also on how many cups you had that day. Working backward to the latest time you can drink and still sleep is explained in how many hours before bed to stop drinking coffee.

Calculate how long caffeine lasts for your own habits

With the caffeine calculator, you just enter what you drank today and it does all of the calculations above for you.

  1. 1

    Enter what you drank and when

    Choose from 20 drinks such as drip coffee, gyokuro, and energy drinks, then enter the amount and time. The “Add at current time” button lets you log a drink as you have it.

  2. 2

    Choose your wake-up time, bedtime, and half-life

    Besides the standard 5 hours, you can switch the half-life to smoker (3 hours), slow (8 hours), on the pill (10 hours), late pregnancy (15 hours), or enter a value directly.

  3. 3

    Choose a threshold

    Choose how much may remain at bedtime: 25, 50, or 100 mg. If unsure, 50 mg is recommended.

  4. 4

    See the results and graph

    You get the amount remaining at bedtime, the time it falls below your threshold, and an hourly table and graph.

In the “Calculate Remainder by Half-Life” tab, just enter the mg you drank and the half-life to get a table of how many mg and what percentage remain after each hour. Use it instead of working the formula above by hand.

FAQ

How many hours does it take for caffeine to wear off?
It halves every half-life, so it never fully reaches zero. Thinking in terms of time to reach a threshold, if someone with a 5-hour half-life drinks one cup of drip coffee (about 90 mg), it takes about 4.5 hours to fall to 50 mg or less and about 9.5 hours to fall to 25 mg or less. If the amount doubles, the time grows by one half-life (about 5 hours).
What is caffeine’s half-life?
It is the time it takes for the amount of caffeine in your body to halve. The average for healthy adults is about 5 hours, but it varies from about 2.5 to 10 hours. It is shorter for smokers, about twice as long for people on low-dose birth control pills, and is said to lengthen to around 15 hours in late pregnancy.
How many minutes after drinking does caffeine kick in?
It is almost entirely absorbed in the stomach and small intestine, and the amount in your body peaks after about 30–60 minutes. To stay awake, drink it 30 minutes to an hour before you need it. Absorption is faster on an empty stomach and a little slower after a meal.
Does coffee from the morning stay in my system until night?
If someone with a 5-hour half-life drinks one cup of drip coffee (about 90 mg) at 8 a.m., about 12 mg still remains at 11 p.m. One cup has little effect, but drinking more at lunch and in the afternoon adds up: one cup each at 8:00, 12:30, and 15:00 leaves about 64 mg at 23:00.
Does drinking lots of water flush caffeine out faster?
Caffeine is broken down mainly by the liver, so drinking more water barely changes how fast it is broken down. Exercise or a bath won’t clear it faster either, so the reliable approach is to adjust how much you drink and when.

Tools in this article

Related articles

How-to Guide9 min read

How Many Hours Before Bed Should You Stop Drinking Coffee? Work Back From Your Bedtime

You often hear “no coffee within 6 hours of bedtime,” but whether 6 hours is really enough depends on how much you drink, how many cups you've had that day and your own metabolism. This guide first explains how caffeine affects sleep, then gives a chart that works back from your bedtime to the latest time for your last cup, guidelines for green tea, energy drinks and other drinks, how to think about it on days you've already had a few cups in the morning, and what to watch out for when you use caffeine for night shifts or late-night studying.

Read article →
How It Works8 min read

What Is the Daily Caffeine Limit? | How Many Cups of Coffee Is 400 mg, and Limits by Body Weight

“How many cups of coffee a day is safe?” can be answered using the guidance published by public health agencies. Healthy adults should stay within 400 mg a day and 200 mg at a time, but for children the limit depends on body weight, and during pregnancy it is halved. This guide covers the daily limit for each group, how many cups of coffee, tea or energy drinks 400 mg and 200 mg represent, how to work out your own limit from body weight, the symptoms of too much caffeine, and the hidden sources people tend to overlook.

Read article →
How It Works8 min read

How Many Cups of Coffee a Day During Pregnancy and Breastfeeding? The 200 mg Guideline and Caffeine Half-Life on the Pill

Many people who are pregnant or breastfeeding wonder whether to give up coffee entirely, or how many cups are fine. Health authorities abroad give 200 mg a day (about 2 cups of drip coffee) as a guideline, but in pregnancy caffeine takes longer to leave the body, so it helps to think about timing as well as amount. This article sets out, with numbers, the guidelines for pregnancy and breastfeeding and the reasons behind them, how a longer half-life in pregnancy changes the amount left at night, and how taking low-dose birth control pills or quitting smoking changes the half-life.

Read article →