How Long Caffeine Stays in Your System

Naomi Carr
Brittany Ferri
Written by Naomi Carr on 20 February 2026
Medically reviewed by Brittany Ferri on 23 February 2026

Caffeine is a legal and approved substance that occurs naturally and is commonly added to food and beverages. It is widely consumed and often used to promote alertness and energy. Caffeine can stay in the body for several hours, and its elimination from the body may depend on many factors.

Key takeaways:
  • Caffeine is a naturally occurring substance that is often consumed in food and beverages.
  • Caffeine has an average half-life of around 5 hours, which can vary significantly from person to person.
  • Caffeine use can result in tolerance and dependence, and people may experience unpleasant withdrawal symptoms when stopping consumption, although this is unlikely to be dangerous.
A close up photo of a cup of coffee and scattered coffee beans on top of a cloth-covered surface

How long does caffeine stay in your system?

After consuming a cup of coffee or another caffeinated product, the onset of effects can occur within minutes, and almost complete absorption is achieved within 45 minutes. The effects will typically peak within 15 to 120 minutes and can last several hours.

Caffeine has a half-life of around five hours, although this can vary from person to person and depends on several factors. A half-life refers to the amount of time it takes for the body to eliminate half of a substance. Typically, it takes five half-lives for complete elimination. As such, it can take a full day or longer for caffeine to be completely gone from the system.

Caffeine is metabolized primarily in the liver, where around 95% of caffeine breakdown occurs. It is converted into three metabolites: paraxanthine, around 80%, theobromine, around 11%, and theophylline, around 4%. Caffeine and these metabolites are then eliminated by the kidneys through urine.

What foods and drinks contain caffeine?

There are various products available that contain caffeine, and in varying amounts. For example:

  • Soft drinks such as Coca-Cola or Dr. Pepper contain 34-50 mg.
  • A regular cup of brewed coffee contains 100-250 mg.
  • A caffeine pill contains 100-200 mg.
  • A large 20 oz cup of coffee can contain 250 mg to over 400 mg.
  • Black tea contains around 30-70 mg.
  • Energy drinks, such as Bang, Accelerator, and Celsius, contain 200-300 mg.
  • Energy bars, such as GU, Clif Bar, and Verb, contain 20-80 mg.
  • Decaffeinated coffee can contain 2-15 mg.

Timeline of effects: From jitters to sleep effects

The effects of caffeine can emerge within 5-45 minutes and tend to peak at around 30-120 minutes. During this time, effects include increased alertness and energy, improved focus and reaction time, restlessness, jitters, increased heart rate, and increased need to urinate.

These effects tend to last around 4-6 hours, although they will gradually reduce after around two hours. Some residual effects may continue for longer.

How long before sleep can I drink coffee?

People may differ in their response to caffeine, and some may feel able to sleep after consuming caffeine late in the day. However, it is advised to avoid caffeine for at least 6 hours before bedtime to ensure it does not disrupt sleep.  

How much caffeine is safe to consume?

It is recommended for adults to consume up to a maximum of 400 mg of caffeine per day, which equates to around three cups of regular coffee. However, each person needs to be aware of their vulnerability to the effects of caffeine, as this amount may not be safe for some. For example, during pregnancy, the effects of caffeine can be prolonged up to three times, which may increase the risk of adverse effects.

Reports indicate that a dosage of 1200 mg of caffeine, consumed in a short period, can cause the onset of toxic effects, which can include seizures.

Factors that affect how long caffeine lasts

Various factors can impact the half-life, metabolism, and effect profile of caffeine, including:

  • Genetics: Caffeine is metabolized in the liver, mostly via the CYP1A2 enzyme. Genetic variations in the activity of this enzyme can impact the speed of caffeine metabolism and may cause increased sensitivity to caffeine effects.
  • Pregnancy and hormones: Pregnancy can increase caffeine half-life up to three times, particularly in the third trimester, due to reduced CYP1A2 enzyme activity and slowed metabolism.
  • Medications: Some medications can impact the speed of caffeine metabolism in the CYP1A2 enzyme. For example, some oral contraceptives and antidepressants can slow metabolism, while omeprazole can speed up metabolism.
  • Liver health: Impaired liver functioning can slow metabolism due to reduced enzyme activity, causing a prolonged half-life.
  • Smoking: Smokers may experience a reduced half-life of up to 50% due to increased enzyme activity.

Caffeine dependence and withdrawal

Repeated use of caffeine can lead to the development of tolerance and dependence. When tolerance develops, the usual dose no longer creates the same effects, and can lead to increased use in order to experience the desirable effects.

When dependence develops, the body becomes accustomed to the effects of caffeine, requiring continued use to maintain a ‘normal’ state. If use is stopped, withdrawal symptoms can occur, particularly if use is stopped abruptly. Common caffeine withdrawal symptoms include:

  • Headaches
  • Fatigue
  • Low energy
  • Mood changes, including irritability, anxiety, and low mood
  • Impaired concentration and attention

For some people, withdrawal symptoms might include nausea and vomiting, and pain and stiffness in the muscles, although these symptoms are less common.

Caffeine addiction may develop, although it may not have the same severity of impact as other substance addictions. Caffeine addiction, or caffeine use disorder, may include signs such as:

  • Attempting to reduce or stop caffeine intake with little or no success.
  • Cravings and urges to consume caffeine.
  • Continued caffeine use despite known psychological or physical issues as a result.

Caffeine withdrawal timeline

Caffeine withdrawal symptoms are typically mild, do not require professional intervention, and resolve within a number of days. Symptoms can emerge within 12 to 24 hours, becoming their most unpleasant between 20 to 51 hours, and alleviating within 2 to 9 days.

Is there a way to get caffeine out of your system faster?

Like any substance, there is no way to speed up the metabolism and excretion of caffeine. However, certain strategies may help reduce the unpleasant effects of caffeine, such as:

People who stop caffeine consumption will likely experience withdrawal symptoms in the days following cessation. The above strategies can also help manage these symptoms.

Was this page helpful?

Your feedback allows us to continually improve our information

Resources:

  1. Institute of Medicine (US) Committee on Military Nutrition Research. (2001). Chapter 2, Pharmacology of Caffeine. In Caffeine for the Sustainment of Mental Task Performance: Formulations for Military Operations. Washington, DC: National Academies Press (US). Retrieved from
  2. Reddy, V.S., Shiva, S., Manikantan, S., & Ramakrishna, S. (2024). Pharmacology of Caffeine and its Effect on the Human Body. European Journal of Medicinal Chemistry Reports, 10, 100138. Retrieved from
  3. Food and Drug Administration. (2024). Spilling the Beans: How Much Coffee Is Too Much? FDA. Retrieved from
  4. Center for Science in the Public Interest. (Updated 2025). Caffeine Chart. CSPI. Retrieved from
  5. Evans, J., Richards, J.R, & Battisti, A.S. (Updated 2024). Caffeine. In: StatPearls [Internet]. Treasure Island, FL: StatPearls Publishing. Retrieved from
  6. Drake, C., Roehrs, T., Shambroom, J., & Roth, T. (2013). Caffeine Effects on Sleep Taken 0, 3, or 6 Hours Before Going to Bed. Journal of Clinical Sleep Medicine: JCSM: Official Publication of the American Academy of Sleep Medicine9(11), 1195–1200. Retrieved from
  7. Meredith, S.E., Juliano, L.M., Hughes, J.R., & Griffiths, R.R. (2013). Caffeine Use Disorder: A Comprehensive Review and Research Agenda. Journal of Caffeine Research3(3), 114–130. Retrieved from
  8. Rocha Cabrero, F., & Hamilton, R.J. (Updated 2025). Caffeine Withdrawal. In: StatPearls [Internet]. Treasure Island, FL: StatPearls Publishing. Retrieved from

Activity History - Last updated: 23 February 2026, Published date:


Reviewer

Brittany Ferri

PhD, OTR/L

Brittany Ferri holds a PhD in Integrative Mental Health and is an occupational therapist, health writer, medical reviewer, and book author.

Activity History - Medically Reviewed on 20 February 2026 and last checked on 23 February 2026

Medically reviewed by
Brittany Ferri

Brittany Ferri

PhD, OTR/L

Reviewer

Recovered Branding BG
Ready to talk about treatment? Call today. (833) 840-1202
Helpline Information

Calls to numbers marked with (I) symbols will be answered or returned by one of the treatment providers listed in our Terms and Conditions, each of which is a paid advertiser.

In calling the helpline you agree to our Terms and Conditions. We do not receive any fee or commission dependent upon which treatment or provider a caller chooses.

There is no obligation to enter treatment.

Access State-Specific Provider Directories for detailed information on locating licensed service providers and recovery residences in your area.

For any specific questions please email us at info@recovered.org

More like this

Caffeine Pills

6 minutes read