Caffeine Half-Life Calculator: When to Stop Drinking Coffee for Sleep

Calculate your real caffeine half-life based on weight, smoking, hormonal birth control and pregnancy. Find out if that 4 PM coffee will wreck your sleep. Free.

Medically reviewed by Dr. Ivan IbáñezNº Col. 17/05487May 10, 2026

CalcVita. (2026). Caffeine Half-Life Calculator: When to Stop Drinking Coffee for Sleep. CalcVita. Retrieved November 14, 2026, from https://calcvita.com/en/calculators/caffeine-half-life

Caffeine and Sleep: When to Stop Drinking Coffee for Perfect Sleep

Suggested article

Caffeine and Sleep: When to Stop Drinking Coffee for Perfect Sleep

Why a 4 PM espresso and a 9 AM espresso aren't the same molecule. Inside the pharmacokinetics that decide whether your last cup will wreck your sleep — and how to time it.

Read the full article →

How this calculator works

Caffeine half-life is not the same for everyone. It varies between 2 and 15 hours depending on your genetics, habits, medication and pregnancy. This calculator applies the Bateman pharmacokinetic model with PubMed-documented modifiers to estimate the caffeine plasma concentration at your bedtime.

Pharmacokinetic model

We use a single-compartment Bateman model with first-order absorption. The formula computes plasma concentration C(t) in mg/L from dose (mg), body weight (volume of distribution 0.5 L/kg) and effective half-life. Absorption rate ka ≈ 5/h is typical for oral caffeine. Baseline half-life 5 h in a healthy adult (Arnaud 2011), modified by personal factors such as smoking, hormonal contraceptives, pregnancy and liver function.

Factors that change your half-life

How to read the bedtime concentration

In Drake et al. (2013), 400 mg of caffeine taken 6 h before bed still reduced objectively measured total sleep time by more than 1 hour; in this model that dose leaves about 5 mg/L at bedtime in a 70 kg adult. The bands used here are this calculator’s own guide scale: below 0.5 mg/L, minimal impact; 0.5–1.5 mg/L, mild; 1.5–3 mg/L, moderate; above 3 mg/L, impact comparable to the Drake study.

More calculators

Keep exploring helpful tools

Browse all