Our admissions team is available now, 24/7
Caffeine guide · How long it stays

How long caffeine stays in the body

Reviewed by: Dr. Mahmoud El-Sawy Last updated: October 1, 2026 6-minute read
The short answer

The half-life of caffeine in adults is about 5 hours on average according to the official caffeine citrate leaflet, meaning that half of what you drank remains in your blood after about five hours, and a quarter after ten hours. The body clears most of it within about a day. The speed varies greatly between people because a single liver enzyme converts about 95% of it, and it is affected by genetics, hormones, smoking, liver disease, and medications. That is why it is advised to drink coffee at least about 8.8 hours before bedtime.

  • Feeling less alert does not mean the caffeine has left your blood.
  • Newborns clear it very slowly compared with adults.
  • Caffeine is not looked for in the usual drug tests.

How is caffeine processed in the body?

You drink the cup, feel its effect within a short time, and then the effect fades after a few hours. But what happens inside the body lasts longer than that. According to the MedlinePlus encyclopedia, caffeine is absorbed quickly and reaches the brain, is not stored in the body, and leaves in the urine many hours after it is taken.

The liver does most of the work; a scientific review published in 2018 explains that a single enzyme called CYP1A2 converts about 95% of caffeine. The official caffeine citrate leaflet states that only about 1% of it leaves in urine unchanged in adults, meaning the kidneys mainly clear its breakdown products, not caffeine itself.

Caffeine in your body, hour by hour

Assuming an average half-life of five hours in a healthy adult, the amount falls roughly as follows:

  1. Shortly after drinking
    Reaching the brain

    Caffeine is absorbed quickly and the feeling of alertness begins.

  2. After about 5 hours
    Half the amount

    About half of what you drank remains in the blood.

  3. After about 10 hours
    A quarter of the amount

    About a quarter is still in your body, which may be enough to spoil sleep in sensitive people.

  4. After about a day
    Mostly gone

    After about five half-lives, the body has cleared most of it.

Infographic of a cup of coffee hour by hour: reaching the brain, then half the amount, then a quarter, then mostly gone
The approximate course of caffeine falling in the body according to the average half-life

These are rough calculations based on an average half-life; the actual figure varies from person to person.

A practical example: the afternoon cup and bedtime

A cup of filter coffee containing about 90 mg, drunk at 4 pm
TimeApproximate amount remaining
4 pmAbout 90 mg
9 pmAbout 45 mg
2 amAbout 22 mg
7 amAbout 11 mg

That is why a person may sleep “normally” in their own view and yet sleep lighter and shorter; a pooled analysis of 24 studies found that caffeine reduces deep sleep and total sleep time. The 90 mg figure is an estimate according to EFSA.

Why does how long caffeine stays differ from person to person?

The US Food and Drug Administration says people differ greatly in how fast they clear caffeine, and a 2018 review lists the factors that affect this:

  • Genetics: genetic variations in the CYP1A2 enzyme make some people “slow metabolizers.”
  • Age, sex, and hormones: the rate of clearance changes with age and hormonal changes, including pregnancy.
  • Smoking: it changes the activity of the enzyme responsible for converting caffeine.
  • Liver disease and obesity: they may slow its clearance.
  • Medications: caffeine interacts with many medications, so ask your doctor or pharmacist.

Infants and newborns

According to the official caffeine citrate leaflet, the half-life of caffeine in newborns is about 3 to 4 days because liver and kidney function is not yet mature, and their clearance rate does not approach that of adults until about nine months of age. This is one more reason for pregnant and breastfeeding women to stick to the 200 mg daily limit that EFSA recommends.

When should you have your last cup of coffee to sleep well?

The pooled analysis published in 2023 in the journal Sleep Medicine Reviews concluded that a standard cup of coffee should be drunk at least about 8.8 hours before bedtime to avoid a loss of sleep time, and that a standard serving of pre-workout supplements needs 13.2 hours. EFSA notes that just 100 mg close to bedtime may affect sleep in some adults. So if you go to bed at midnight, the last cup would be around 3 pm.

Does caffeine show up on a drug test?

The usual drug tests do not look for caffeine; it is a legal substance that is not part of their panels. But it can be measured in blood or saliva when there is a medical or research need; the randomized trial on caffeine reduction used a measurement of its level in saliva to confirm participants' adherence. It is also measured in blood when poisoning is suspected. You can find an explanation of what tests actually look for in drug testing.

Common myths about clearing caffeine

Myths and facts
The mythThe truth
Coffee sobers you upMedlinePlus states that caffeine does not reduce the effects of alcohol, even though many people believe it does.
Drinking a lot of water flushes out caffeine quicklyThe liver converts most of it, and only about 1% leaves in urine unchanged.
As long as I fall asleep quickly, coffee doesn't affect meCaffeine can reduce deep sleep and sleep time even if sleep seems normal.
When the buzz is gone, the caffeine has leftHalf of it may remain in the blood for hours after you stop feeling its effect.

How long caffeine's effect lasts compared with how long it stays

Most people feel the stimulant effect shortly after drinking, and the feeling fades within hours, but the substance itself stays longer. So the question that matters to you is “how much of it is left when I go to sleep?” more than “when do I feel the coffee?” If you notice that you cannot do without the late cup despite its effect on your sleep, look into the symptoms of coffee addiction, and the cutting-down plan in caffeine withdrawal symptoms.

Frequently asked questions

Frequently asked questions about how long caffeine stays in the body

Didn’t find your answer?

Ask an advisor directly. The reply is confidential and carries no commitment.

Ask on WhatsApp
How long does caffeine stay in the body?

Its half-life in an adult is about five hours on average, and the body clears most of it within about a day, with large differences between people.

When does the effect of coffee wear off?

The feeling of its effect fades within hours, but half the caffeine may remain in the blood for about five hours, and a quarter for about ten hours.

How many hours before bed should I stop drinking coffee?

A pooled analysis found that a standard cup of coffee should be drunk at least about 8.8 hours before bedtime to avoid a loss of sleep time.

Does caffeine show up on a urine drug test?

No, the usual drug tests do not look for it, but it can be measured in blood or saliva for medical or research purposes.

Does smoking affect how long caffeine stays?

Yes, smoking is one of the factors that change the activity of the enzyme responsible for converting caffeine, along with genetics, pregnancy, liver disease, and medications.

How long does caffeine stay in an infant's body?

Newborns clear it very slowly; its half-life in them is about three to four days, and it does not approach that of adults until about nine months of age.

Need help with caffeine?

Your information is confidential and is not shared with anyone

Call WhatsApp Consultation