Caffeine Half-Life Sleep Impact Calculator
Estimate how much caffeine remains in your body, per kg of body weight, at any point after you drink it. Ideal for planning your last coffee of the day without ruining your sleep.
Last updated: September 2026
Caffeine per kg Body Weight
1.24 mg/kg
This calculator gives an estimate for general information only. It is not medical advice and does not replace a doctor, pharmacist or other qualified health professional. Always check with them before acting on the result, especially for medication doses, children, pregnancy or a medical condition, and follow the guidelines of your local health authority.
Formula below · 2 sources (fda.gov, doi.org) · Updated Sep 2026
Compare with similar
About this calculator
Caffeine's concentration in your blood decays exponentially following a standard pharmacokinetic half-life model. The formula used is: remaining caffeine (mg/kg) = (caffeineAmount × 0.5^(hoursElapsed / halfLife)) / bodyWeight. The half-life of caffeine — how long it takes for half to be eliminated — averages about 5–6 hours in healthy adults but ranges from 3 to 9 hours depending on genetics, liver enzymes (CYP1A2), smoking status, and medications. Dividing by body weight converts the result to mg per kg, giving a body-size-adjusted measure of stimulant load. Even when you feel alert, residual caffeine suppresses adenosine receptors and reduces deep (slow-wave) sleep quality. Knowing your personal half-life lets you identify a caffeine curfew that keeps sleep-time levels low enough to avoid disruption.
How to use
Example: You drank a 200 mg coffee 6 hours ago, weigh 70 kg, and have an average metabolism (half-life = 5 hours). Step 1: exponent = 6 / 5 = 1.2. Step 2: remaining caffeine = 200 × 0.5^1.2 = 200 × 0.435 = 87.1 mg. Step 3: per-kg load = 87.1 / 70 = 1.24 mg/kg. At that level, meaningful adenosine suppression is still occurring. To drop below 0.5 mg/kg (35 mg) you would need about 6.6 more hours (log₂(87.1 / 35) × 5). Enter your own values to find your personal sleep-safe caffeine window.
Frequently asked questions
How many hours before bed should I stop drinking coffee to protect my sleep?
A 2023 meta-analysis (Gardiner et al.) estimated that a cup of coffee (about 107 mg) should be finished at least 8.8 hours before bed, and a large pre-workout dose (about 217 mg) at least 13 hours before, to avoid losing total sleep time. However, if you are a slow metaboliser (half-life up to 9 hours), you may need to cut off caffeine 8–10 hours before bed to reach negligible blood levels. A common guideline is a 2 PM caffeine curfew for people who sleep at 10–11 PM, though this varies by individual metabolism. Using this calculator with your actual consumption and half-life gives a personalised curfew rather than a one-size-fits-all rule.
What factors affect how fast my body metabolises caffeine?
The primary enzyme responsible for caffeine metabolism is CYP1A2 in the liver, and its activity varies widely between individuals due to genetics. Smokers typically metabolise caffeine about 50% faster than non-smokers because tobacco induces CYP1A2. Certain medications — including hormonal contraceptives, some antibiotics like ciprofloxacin, and antidepressants — can slow caffeine clearance significantly. Pregnancy dramatically extends caffeine half-life, sometimes to 15 hours or more in the third trimester. Caffeine half-life can therefore range from under 3 hours in fast metabolisers to over 9 hours in slow ones.
Does caffeine really reduce deep sleep even if I fall asleep easily after drinking coffee?
Yes — this is one of the most important and least understood effects of caffeine on sleep. Even if residual caffeine does not prevent sleep onset, it suppresses slow-wave (deep) sleep, the most physically restorative stage. Studies using EEG monitoring show that caffeine consumed 6 hours before bed reduces slow-wave sleep time measurably, even when subjects report sleeping normally. This means you can feel like you slept fine while your body did not fully recover. Over time, chronic mild sleep disruption from evening caffeine can contribute to daytime fatigue, making you reach for more caffeine and perpetuating the cycle.
Related calculators
Sources & references
Think a result is wrong? Report a problem with this calculator.