Skip to main content

Brew Lab

Caffeine Half-Life Calculator

Time your last cup, love your sleep. Chart your caffeine curve through the day, see what's still with you at bedtime, and find your own last-call cutoff — a population-average estimate, so you can plan more coffee, not less.

Your drinks

Drink
Caffeine
mg
Time 15:00
Espresso (double) Row 1
mg
mg
Time 07:30
Drip coffee (12 oz) Row 2
mg
mg
Time 13:00
Metabolism

How long caffeine tends to stay with you — a generic elimination-speed estimate, not a personal or medical setting.

Bedtime 23:00

The curve

49.7 mg

left at bedtime

13:04

last call for tonight

266 mg

total today

5 h

active half-life

Educational estimate based on population-average caffeine half-life (~5 hours). Individual responses vary widely. This is not medical advice — for guidance about caffeine and your health, talk to a qualified professional.
49.7 mg

at bedtime

13:04 last call

How the math works

One formula runs the whole curve — first-order elimination, the same model used for most drugs the body clears at a steady proportional rate:

C(t) = Σ D⁢· 2−(t−t₀)/h

Every drink you add is its own decaying dose, D mg taken at time t₀; the curve above is just those doses stacked on top of each other at every point in time. h is your half-life in hours — Gentle (7 h), Typical (5 h) or Fast (3.5 h). Worked example: a 126 mg double espresso at 07:30, Typical metabolism, is down to 63 mg by 12:30 (exactly one half-life later) and about 14.7 mg by a 23:00 bedtime.

Worked examples

One double espresso, 07:30

At 23:00 bedtime
14.7 mg
Last call
16:20
Total today
126 mg

Double espresso 07:30 + drip 12oz 13:00

At 23:00 bedtime
49.7 mg
Last call
13:04
Total today
266 mg

Three drinks, Fast metabolism, 22:30 bedtime

At bedtime
91.3 mg
Last call
10:42
Total today
496 mg

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:

DrinkCaffeineLast call for a 23:00 bedtime*
Espresso (single)63 mg21:20
Espresso (double)126 mg16:20
Drip coffee (8 oz)95 mg18:22
Drip coffee (12 oz)140 mg15:34
Cold brew (12 oz)230 mg12:00
Latte (double shot)126 mg16:20
Black tea47 mgAny time
Decaf5 mgAny time
Energy drink80 mg19: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.

Educational estimate based on population-average caffeine half-life (~5 hours). Individual responses vary widely. This is not medical advice — for guidance about caffeine and your health, talk to a qualified professional.

Frequently asked questions

How long does caffeine stay in your system?
Caffeine's half-life — the time your body takes to clear half of it — averages 5 to 6 hours in healthy adults, with a population range of roughly 1.5 to 9.5 hours depending on genetics and other factors (that's exactly why the calculator above has a metabolism speed control). Because elimination is first-order — it keeps halving rather than switching off — there's no single clean "gone" moment. After about five half-lives (roughly a day, for a typical dose) less than 5% remains; caffeine is generally considered fully cleared after about ten half-lives, close to two days for a typical 5-6 hour half-life.
How much caffeine is in an espresso shot?
A single shot averages about 63 mg; a double — the more common café pour, and this tool's default — comes in around 126 mg. That's comparable to or higher than an 8 oz cup of drip coffee (about 95 mg), because drip's bigger serving size doesn't fully offset espresso's concentrated extraction. A full 12 oz drip, though, typically outdoses even a double shot at around 140 mg, simply by volume — see the full preset table below.
When should I stop drinking coffee before bed?
The calculator above derives your own last-call time from your metabolism speed, bedtime and everything you've already had — that's the whole point of the tool. As a general heuristic derived from the same formula, six to eight hours before bed is a reasonable cutoff for a typical-sized coffee at an average half-life; a double espresso at a 23:00 bedtime, for example, works out to roughly 16:20 for most people.
How much caffeine per day is OK?
The U.S. Food and Drug Administration cites 400 mg a day as an amount not generally associated with negative effects for healthy adults. That's about 400 mg, or roughly four to five 8 oz cups of drip coffee, or three double espressos. It's a population-average guideline, not a personal limit — individual responses vary, so if you have questions about what's right for you, talk to a doctor or other qualified healthcare professional.
Why does coffee affect me more than other people?
Individual half-life varies across roughly a 1.5 to 9.5 hour range, driven mostly by genetic variation in CYP1A2, the liver enzyme that does most of the work breaking caffeine down. A handful of other factors can shift metabolism further, including pregnancy, certain medications and smoking — each has research behind exactly how it moves the half-life, and a healthcare professional can speak to your specific situation. None of that changes the everyday math for most people, but it's why "one cup" can feel very different from one person to the next.
Does decaf have caffeine?
Yes, a small amount — commercially decaffeinated coffee typically carries about 2 to 7 mg per cup (our preset above uses 5 mg as a representative figure), roughly 3-5% of a regular cup. That's low enough that decaf's contribution to your curve is close to negligible, which is exactly why it's the ritual we suggest for an afternoon cup you still want to enjoy without moving your bedtime number.
Does cold brew have more caffeine than espresso?
Per serving, yes — a 12 oz cold brew (about 230 mg in our table) typically carries more total caffeine than a single or even double espresso shot, simply because it's a much larger serving brewed at a higher coffee-to-water ratio and steeped for hours. Per milliliter, though, espresso is far more concentrated — a 1 oz shot packs more caffeine per drop than almost any other coffee format. Which comparison matters depends on whether you're asking "how much is in my cup" or "how strong is this coffee."