Sleep · Updated November 2026

How Long Does Caffeine Stay in Your System? An Hour-by-Hour Timeline

How long does caffeine stay in your system? For most healthy adults, caffeine peaks in the blood 30 to 60 minutes after a drink, has a half-life of roughly 4 to 6 hours, and takes 10 hours or more to mostly clear. So half of a 2 p.m. coffee can still be active around 7 or 8 p.m., and a meaningful amount may remain at bedtime. Pregnancy, medications and genetics can stretch that much longer.

That's why caffeine is so easy to underestimate. The buzz fades after a few hours, but the molecule doesn't leave on the same schedule. Below is an hour-by-hour picture, what changes it, and how to use that knowledge to protect your sleep.

What "half-life" actually means

Half-life is the time it takes your body to clear half of a substance from the blood. If caffeine's half-life in your body is five hours, a 100 mg coffee leaves about 50 mg after five hours, 25 mg after ten, and about 12 mg after fifteen. The curve flattens, so the last bits take a long time to disappear.

The catch is that half-life isn't a fixed number. A systematic analysis that pooled caffeine pharmacokinetic data from 141 publications showed large variation between people and identified factors such as smoking and oral contraceptive use that clearly change how quickly caffeine is cleared. MedlinePlus also notes that caffeine's effects and side effects vary from person to person.

Hour-by-hour timeline for one regular coffee

This example assumes a 100 mg coffee at 8 a.m. and a five-hour half-life, which is typical for many healthy adults. Your numbers may be faster or slower.

TimeApprox. caffeine leftWhat you might notice
8:00 a.m.Drinking itTaste, warmth, ritual
8:30–9:00 a.m.Near peak (~100 mg absorbed)Peak alertness and focus
11:00 a.m.~65 mgStill alert; effect starting to fade
1:00 p.m.~50 mgBuzz mostly gone, caffeine still working
6:00 p.m.~25 mgRarely noticeable
11:00 p.m.~12 mgUsually minor for most sleepers

Now run the same coffee at 3 p.m.: about 50 mg would remain at 8 p.m. and about 25 mg at 1 a.m. That's the reason afternoon cups are the ones that matter for sleep, even when the morning cup is larger.

Caffeine in your system vs caffeine affecting your sleep

You don't need to clear caffeine completely for it to matter. Caffeine blocks adenosine, the chemical that builds sleep pressure while you're awake. Even modest leftover amounts can make it harder to fall into deep sleep.

The research reflects this. In a controlled trial, 400 mg of caffeine taken six hours before bed reduced total sleep by more than an hour. A 2023 meta-analysis of 24 studies found that caffeine shortened sleep by about 45 minutes and reduced deep sleep, and suggested finishing a standard coffee at least 8.8 hours before bed. For practical bedtime math, see our guide to the best time to stop caffeine for sleep.

What makes caffeine stay longer

Slows clearance (stays longer)Speeds clearance (leaves sooner)
Pregnancy, especially later trimestersSmoking tobacco
Oral contraceptivesSome genetic variants of the liver enzyme CYP1A2
Certain medications that compete for the same liver enzymeRegular heavy intake may modestly change clearance in some people
Liver disease
Some genetic variants

A few practical notes:

  • Pregnancy. Caffeine clearance can slow dramatically. If you're pregnant or trying to conceive, talk with your clinician about intake, as the FDA and Mayo Clinic both advise.
  • Medications. Some antibiotics, antidepressants and other drugs interact with caffeine. Ask your pharmacist if you're unsure.
  • Quitting smoking. Because smoking speeds caffeine clearance, people who quit often find their usual coffee hits much harder. Cutting back on caffeine during a quit attempt can help with sleep and jitteriness.

How much caffeine are you starting with?

The size of the starting dose matters as much as the half-life. Mayo Clinic's caffeine content chart lists typical amounts per 8 ounces: about 96 mg for brewed coffee, 62 mg for instant, 48 mg for black tea and 29 mg for green tea. An 8-ounce energy drink lists about 79 mg, and a 2-ounce energy shot about 200 mg.

Coffee-shop sizes can double or triple those numbers. A large cold brew at 2 p.m. can easily leave more caffeine at midnight than a small morning coffee had to begin with.

The FDA describes about 400 mg a day as an amount not generally associated with negative effects for most healthy adults, but that's a daily ceiling, not a timing guide.

Does tolerance change how long caffeine lasts?

Tolerance changes how caffeine feels, not so much how long it stays. Daily coffee drinkers often stop noticing the jolt, so they assume an afternoon cup is harmless. But the caffeine is still in the blood, still blocking adenosine, and still able to lighten sleep. That mismatch is exactly why the controlled sleep trials above found people losing sleep they didn't notice.

Tolerance also explains why skipping your usual coffee can bring a headache and fog the next day. Those withdrawal symptoms are a sign your body has adapted, and they usually fade within a few days to a week if you cut back gradually.

Can you flush caffeine out faster?

Not really. Water, exercise and food don't meaningfully speed up how your liver clears caffeine. Water may help with jittery feelings if you're also dehydrated, and a walk can burn off some restless energy, but the caffeine still leaves on your liver's schedule.

If you've had too much and feel shaky, these help you feel better while you wait:

  1. Stop all caffeine for the rest of the day.
  2. Drink water and eat a balanced snack.
  3. Take a slow walk or do gentle stretching.
  4. Try slow breathing; our breathing exercises for anxiety work well for caffeine jitters too.

Seek urgent care for chest pain, fainting, a very fast or irregular heartbeat, confusion or vomiting, which can signal caffeine toxicity, most often from energy shots, powders or pills.

Using the timeline to protect your sleep

  • Front-load your caffeine. Have most or all of it before late morning.
  • Shrink later doses. If you want an afternoon drink, make it small and light, such as green tea or half-caf.
  • Count all sources. Cola, iced tea, chocolate, pre-workouts and some pain relievers add up.
  • Test for two weeks. Move your last cup two hours earlier and watch how fast you fall asleep and how you feel on waking.

For more habits that help, see our sleep hygiene checklist and the Humantra Sleep hub.

Frequently asked questions

How long does it take caffeine to wear off?

The noticeable buzz usually fades within three to five hours, but caffeine's half-life is about four to six hours in many adults, so it can take 10 hours or more to mostly clear.

Will a coffee at noon affect my sleep?

For most people with average sensitivity and a 10 or 11 p.m. bedtime, a regular coffee at noon is unlikely to cause major problems. Sensitive people, pregnant people and those on certain medications may still notice an effect.

How long does caffeine stay in your system during pregnancy?

Caffeine clears much more slowly during pregnancy, especially later on, so it can stay active far longer. Talk with your healthcare provider about safe amounts and timing.

Does drinking water flush out caffeine?

No. Water doesn't speed up how your liver breaks down caffeine, though staying hydrated may help you feel less jittery.

Why does coffee affect me more than it used to?

Changes such as quitting smoking, starting oral contraceptives, new medications, pregnancy or simply aging can slow how you clear caffeine or increase your sensitivity.

How long does an energy drink stay in your system?

It follows the same half-life as coffee, but because many energy drinks and shots contain more caffeine, more remains in your system hours later.

Medical disclaimer: This article is for general educational purposes only and is not medical advice, diagnosis, or treatment. Persistent trouble sleeping, loud snoring, gasping at night, or heavy daytime sleepiness can signal a sleep disorder; talk with a qualified healthcare professional, especially if you have a health condition, take medication, or are pregnant. Never drive or operate machinery while drowsy.

Sources

  1. Grzegorzewski J, et al. Pharmacokinetics of caffeine: a systematic analysis of reported data. Front Pharmacol, 2022 (PubMed)
  2. MedlinePlus (NIH) – Caffeine
  3. Drake C, et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med, 2013 (PubMed)
  4. Gardiner C, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev, 2023 (PubMed)
  5. Mayo Clinic – Caffeine content for coffee, tea, soda and more
  6. U.S. FDA – Spilling the Beans: How Much Caffeine Is Too Much?