How caffeine moves through you
Caffeine works by blocking adenosine, a molecule that quietly builds up in your brain all day and normally binds to receptors that signal tiredness. Caffeine looks enough like adenosine to occupy those same receptors without triggering the "slow down" message — adenosine antagonism, in the technical term — which is why a cup of coffee doesn't add energy so much as it temporarily mutes your brain's fatigue signal. That effect only lasts as long as caffeine is around to keep occupying the receptors, which is where the clock starts.
After you drink a cup, caffeine takes roughly 45 minutes to fully absorb into your bloodstream — this calculator treats absorption as instant for simplicity (more on that trade-off in the methodology section below), so think of the curve as starting a few minutes ahead of exactly how your body experiences it. From there, your liver — specifically an enzyme called CYP1A2 — steadily breaks caffeine down at a proportional rate: not a fixed number of milligrams per hour, but a fixed fraction of whatever's still in your system. That's first-order decay, the same pattern used to describe most drugs the body clears steadily rather than all at once, and it's the entire engine behind the curve above. Take the calculator's own default: a 126 mg double espresso at 07:30, at a Typical 5-hour half-life, is down to 63 mg by 12:30 — exactly one half-life later — and continues halving every five hours after that, never quite reaching zero, just getting small enough to stop mattering.
That decaying shape is also why the familiar mid-afternoon "crash" isn't really a crash at all — it's the adenosine your body kept producing all along finally getting to bind those receptors again as the caffeine occupying them thins out. Nothing sudden happened to your energy; the coffee simply stopped masking a signal that had been building the entire time. Understanding the curve as a slow fade rather than an on/off switch is the whole key to planning around it well.
The half-life spread
5 to 6 hours is the commonly cited average half-life for healthy adults, and it's what "Typical" uses above. But that average hides a genuinely wide population range — roughly 1.5 to 9.5 hours — driven mostly by genetic variation in how quickly CYP1A2 does its job. Some people are "fast metabolizers" who clear caffeine in a couple of hours; others are "slow metabolizers" for whom an afternoon cup is still meaningfully present at midnight. That's the entire reason this tool has a metabolism speed control instead of a single fixed number — Gentle, Typical and Fast aren't personality types, they're three reasonable points along that documented range, so you can see how differently the same cup behaves at each end.
A handful of other factors are known to shift an individual's half-life further, including pregnancy, certain medications (some antibiotics and hormonal contraceptives among them) and smoking — each has real research behind exactly how much it moves the number. This calculator deliberately doesn't try to model any of that: it has no pregnancy, medication or smoking input, on purpose. Those are genuinely medical questions with genuinely individual answers, and the honest, responsible thing for a coffee brand to do is name them plainly and point you toward a doctor or other qualified healthcare professional rather than guess at a number for you.
Practically, the widest gap most people will ever notice is between themselves and a friend at the opposite end of the range — the "fast metabolizer" who can drink a double espresso after dinner and sleep fine, next to the "slow metabolizer" whose 2 p.m. cup is still meaningfully present at midnight. Both experiences are completely normal; they're just different points on the same well-documented curve. That's precisely why this tool asks you to pick a metabolism speed rather than assuming everyone runs on the population average — the average is a useful starting point, not a promise about your own evening.
Caffeine by drink
Every preset in the drink builder above is sourced from published caffeine-content references and can still be adjusted by hand once added — useful for a stronger pull, a smaller cup, or a house blend that runs differently from the average:
| Drink | Caffeine | Last call for a 23:00 bedtime* |
|---|---|---|
| Espresso (single) | 63 mg | 21:20 |
| Espresso (double) | 126 mg | 16:20 |
| Drip coffee (8 oz) | 95 mg | 18:22 |
| Drip coffee (12 oz) | 140 mg | 15:34 |
| Cold brew (12 oz) | 230 mg | 12:00 |
| Latte (double shot) | 126 mg | 16:20 |
| Black tea | 47 mg | Any time |
| Decaf | 5 mg | Any time |
| Energy drink | 80 mg | 19:37 |
*Typical (5 h) metabolism, that single drink only — adjust the calculator above for your own metabolism, bedtime and full drink list.
The genuine surprise in that table: a full 12 oz drip coffee (about 140 mg) carries more caffeine than a double shot of espresso (126 mg), even though espresso tastes far more intense. That's a serving-size effect, not a strength one — espresso is far more concentrated per milliliter, but drip's larger cup wins on total milligrams. Cold brew tops the whole table for the same reason at an even bigger scale: a 12 oz pour, brewed at a higher coffee-to-water ratio and steeped for hours, lands around 230 mg — nearly twice a double espresso. For a closer look at exactly how these formats compare gram for gram, see our guides on which coffee has the most kick, caffeine levels in popular coffee drinks, and espresso vs drip, head to head.
Black tea and energy drinks round out the table at opposite ends: a cup of black tea (about 47 mg) sits closer to a single espresso than a double, brewed from the same plant but with a gentler steep and a smaller leaf-to-water ratio. Energy drinks, by contrast, are formulated rather than brewed — a typical 8 oz can lands around 80 mg, comparable to a strong drip cup, though serving sizes vary widely by brand, so always check the can if you're stacking one into your own timeline above.
The bedtime math
Afternoon coffee lingers for a simple reason: elimination is proportional, not fixed, so the last few milligrams take just as long to clear as the first. A 3 p.m. cup isn't "used up" by bedtime the way a snack is digested — it's still there, just smaller, following the exact same curve it started on. The six-to-eight-hour last-call heuristic you'll see repeated everywhere falls directly out of the formula: at a Typical 5-hour half-life, a dose needs a bit over 6.5 half-life-hours to fall from a typical serving down to the 50 mg reference line most people start to notice, which is where that number comes from — not a rule of thumb pulled from nowhere, but the same math driving the curve above, solved in reverse for the drink you actually had.
Sleep research consistently finds that caffeine taken too close to bedtime delays how quickly you fall asleep and reduces the deep, slow-wave portion of sleep even when it doesn't consciously keep you awake — which is the whole reason "I fell asleep fine" and "I slept well" can be two different nights. The reference line on the curve above (50 mg) is drawn from that same body of sleep-science literature: not a hard cutoff, just the level where many people start to notice an effect on their night. Your own tolerance may sit comfortably above or below it — the point of the tool is to show you exactly where your own evening lands, not to hand you a rule.
The six-to-eight-hour window also isn't one-size-fits-all across metabolism speeds — it stretches or compresses with your half-life. At the Gentle end (7 h), the same double espresso needs closer to nine hours to fall under the reference line, pushing a reasonable cutoff into the late morning for a normal bedtime. At the Fast end (3.5 h), that same cup clears in under five hours, leaving room for a cup well into the evening. This is exactly the gap the curve above is built to make visible — drag the metabolism control and watch your own last-call time move.
Enjoying more coffee, not less
None of this is an argument for drinking less coffee — it's an argument for sequencing it better. Front-load the cups you love most into the morning and early afternoon, when a full 6-8 hour runway to bedtime means you get the full flavor experience with nothing left to negotiate later. Then make the evening cup a ritual rather than a repeat: a genuinely low-caffeine pour that still tastes like a real coffee moment, not a consolation prize.
That's exactly what a good decaf or low-caffeine bean is for — modern decaf processing preserves far more of the roast's character than it used to, so "evening-proof" doesn't have to mean "flavorless." Browse our evening-proof favorites below for a lineup built for exactly this slot in the day.
Methodology & limitations
Full transparency on how this tool works, because a calculator that hides its assumptions
isn't one you should trust: every point on the curve is C(t) = Σ Dᵢ · 2^(−(t−tᵢ)/h), first-order elimination
summed across every drink you've added, sampled every 15 minutes from 05:00 to 8 hours past
your bedtime. Three assumptions worth naming plainly:
- Instant absorption. The model treats each drink as fully absorbed the moment you log it. Real absorption peaks roughly 30-60 minutes after the cup, so your true curve is a little smoother and a little later-peaking than the chart shows — a deliberate simplification, not an oversight.
- Population averages, not your biology. The three metabolism presets (Gentle 7 h / Typical 5 h / Fast 3.5 h) are reasonable points along the documented 1.5-9.5 hour range, not a measurement of you specifically. Genetics, medications, pregnancy and smoking can all shift your real half-life outside any of these three numbers.
- What it deliberately doesn't model. Tolerance built up from daily use, interactions with other stimulants or medications, food eaten alongside a cup, and any personal health condition are all out of scope on purpose — this is a planning tool for a great cup of coffee, not a health-monitoring instrument, and it was built to stay in that lane.
One more honest note on precision: the curve samples every 15 minutes rather than showing a single decimal-heavy number, on purpose. A caffeine estimate that displays as "49.7 mg" can look more certain than the underlying biology actually is — the formula is exact, but your own half-life within it is an estimate. Treat every readout on this page as a well-reasoned approximation worth planning around, not a lab result.



