Caffeine Cutoff Calculator

"No coffee after 2 PM" is a decent rule of thumb, but your actual cutoff depends on your bedtime, your dose, and how fast your body clears caffeine — which varies enormously between people. This calculator runs the half-life math for your numbers and tells you your personal last-coffee time, plus how much caffeine is still circulating at lights-out.

Tap a drink to set its dose:

Your caffeine cutoff

    Math: remaining caffeine = dose × 0.5^(hours elapsed ÷ half-life). The cutoff is the latest drink time that leaves ≤ 25 mg in your system at bedtime — about a small sip of coffee, low enough that most people sleep undisturbed.

    How the math works

    Caffeine clears exponentially: every half-life, the amount in your blood halves. The average half-life is about 5 hours, but the real range is roughly 3–9 hours — fast metabolizers clear a cup before dinner; slow metabolizers are still buzzing at midnight. The formula is remaining = dose × 0.5^(hours ÷ half-life).

    This calculator solves it backwards: given your bedtime and a 25 mg "clear enough" threshold, it finds the latest drink time. That's why the generic "8–10 hour rule" exists — 95 mg with a 5-hour half-life needs about 9.6 hours to decay to 25 mg. Your numbers may be earlier or later than the rule of thumb.

    The honest caveats

    The 25 mg threshold is conservative — sensitive sleepers feel less. Half-life isn't fixed: genetics (the CYP1A2 gene), oral contraceptives, pregnancy, and some medications slow it; smoking speeds it. And caffeine hides in tea, chocolate, pre-workout, and some headache pills — they all count toward the same cutoff.

    More tools: Nap Optimizer · Sleep Cycle Calculator

    Keep reading