Audited ·Last updated 31 Jul 2026·5 citations·Tier 2·0 uses

Coffee Kick Calculator

See when your caffeine peaks, how much is still in your body at bedtime, and how long before bed to stop drinking coffee.

Coffee Kick Calculator

90 mg is the midpoint of the FDA's published 80–100 mg for an 8 oz cup of brewed coffee. The FDA also gives 30–50 mg for 8 oz of green or black tea, 30–40 mg for a 12 oz caffeinated soft drink, and 40–250 mg per 8 fl oz for energy drinks.
mg
All of them treated as one dose finished at the same moment. If your cups were hours apart, run the calculator once per cup and add the results at the time you care about.
StatPearls gives approximately 5 hours for the average adult. Cappelletti et al. report a human range of 2 to 12 hours. Pregnancy and oral contraceptives lengthen it substantially; smoking shortens it. This is the input that changes the answer most.
h
How fast caffeine moves from gut to bloodstream. 10 minutes is not itself a published figure — it is the value that puts this model's derived peak at 50.8 minutes, inside the 30–60 minute window Cappelletti et al. report. Must be shorter than your elimination half-life.
min
A 3 pm coffee and an 11 pm bedtime is 8 hours. Enter 0 to see the model at the moment you finish drinking, when nothing has been absorbed yet.
h
The amount you are willing to have on board at lights-out. 50 mg is a Quanta default, not a published safety limit — no authority publishes a bedtime caffeine threshold. The sourced comparison is the Drake reference reported beside the result.
mg
Caffeine at the peak
160.0801
The most caffeine in your body at any moment — always slightly less than the dose, because elimination starts before absorption finishes. This is an AMOUNT in the body, not a plasma concentration: a concentration would need a volume of distribution and a body weight, and would imply a precision this model does not have.
Time to the peak
50.7609 min
Total caffeine consumed
180 mg
Peak as a share of the dose
88.93
Caffeine left at bedtime
61.4254 mg
Share of the dose left at bedtime
34.13
Hours until below your threshold
9.4845 h
Still there after 24 hours
6.6842 mg
Elimination rate constant
0.1386 /h
Drake reference level
180.1139 mg
Where bedtime sits
Above your 50 mg threshold but below the 180.1 mg this model leaves from Drake et al.'s sleep-disrupting condition — about 61.4 mg is still in your body at bedtime.
Hour by hour
+1 h 159 mg | +2 h 141 mg | +4 h 107 mg | +6 h 81 mg | +8 h 61 mg | +12 h 35 mg
Summary
2.0 servings of 90 mg is 180 mg of caffeine. It peaks at 160.1 mg about 51 minutes after you drink it, and 8.0 hours later, at bedtime, about 61.4 mg (34.1% of the dose) is still in your body. It falls below 50 mg 9.5 hours after the last cup.

Background.

This calculator answers the two questions people actually have about a cup of coffee: when will I feel it, and will it still be in me at bedtime. It models the amount of caffeine in your body over time using a one-compartment pharmacokinetic model with first-order absorption and first-order elimination — the standard textbook form, sometimes called the Bateman function — and reports the peak, the time to the peak, the residue at whatever hour you go to bed, and how long the whole thing takes to fall below a level you choose.

Two numbers drive everything. The elimination half-life defaults to five hours, which StatPearls gives as the approximate figure for the average adult; Cappelletti and colleagues report a human range of two to twelve hours, and that spread is the reason your friend can drink espresso after dinner and you cannot. Pregnancy and oral contraceptives lengthen caffeine's half-life substantially, smoking shortens it, and liver disease lengthens it further, so the field is editable and it is the input worth thinking hardest about. The absorption half-life defaults to ten minutes. That figure is not itself published, and the page says so rather than dressing it up: it is the value that puts the model's derived peak at 50.8 minutes, inside the thirty-to-sixty-minute window Cappelletti and colleagues report for peak plasma caffeine. The derived peak time is reported as an output precisely so you can see that it lands where the literature says it should.

The result is an amount in milligrams, not a blood concentration. Turning it into a concentration would require a volume of distribution and therefore your body weight, and would suggest a precision that a two-parameter model of a highly variable drug does not have. What the model is good for is shape and ratio: how fast the rise is, where the top is, and how much is left after a given number of hours. Those are the parts that survive the uncertainty in the parameters.

For the bedtime question the page does not invent a safety threshold, because no authority publishes one. Instead it computes what this same model leaves behind from a condition that was actually tested. Drake, Roehrs, Shambroom and Roth gave 400 milligrams of caffeine in pill form at zero, three and six hours before habitual bedtime and measured sleep at home. Total sleep time fell relative to placebo at every one of those times, by between 1.1 and 1.2 hours, and the authors concluded that the result 'provides empirical support for sleep hygiene recommendations to refrain from substantial caffeine use for a minimum of 6 hours prior to bedtime'. Running their 400 milligram dose at six hours through this model gives a reference level, and your own bedtime figure is compared against it. The reference moves with your half-life, which is the correct behaviour: the same dose leaves more behind in someone who clears caffeine slowly.

Three limits, stated here rather than buried. Every serving is treated as one dose finished at the same instant, so three cups spread across a morning are not modelled as three doses — run the calculator per cup and add the results at the hour you care about. Bioavailability is taken as one, which is the standard assumption for caffeine because absorption is essentially complete with no significant first-pass effect. And this page is about timing only: it does not tell you whether your daily total is sensible. The FDA cites 400 milligrams a day as an amount not generally associated with negative effects for most healthy adults, and the Coffee Calculator is the page that compares a day's drinks against it.

What is coffee kick calculator?

A coffee kick calculator models how caffeine rises and falls in your body after a drink. Caffeine is absorbed from the gut into the bloodstream over roughly the first hour and cleared by the liver — about 95 percent of it through the enzyme CYP1A2 — at a first-order rate, meaning a constant fraction disappears per unit time rather than a constant amount. That combination produces a fast rise to a peak somewhere between half an hour and two hours, then a long exponential tail.

The standard description is a one-compartment model with first-order absorption and elimination. Two rate constants define it: ka from the absorption half-life and ke from the elimination half-life, each equal to ln 2 divided by that half-life. The amount in the body at time t is then D × (ka/(ka−ke)) × (e^(−ke·t) − e^(−ka·t)), and the time of the peak follows in closed form as ln(ka/ke)/(ka−ke) with no need for trial and error.

This page reports the amount of caffeine in the body rather than a plasma concentration, and treats a whole sitting as one dose. It is a planning tool for the question 'how late is too late', not a clinical measurement.

How to use this calculator.

  1. Enter the caffeine in one serving. 90 mg is the midpoint of the FDA's published 80 to 100 mg range for an 8 oz cup of brewed coffee; the same source gives 30 to 50 mg for tea and 40 to 250 mg per 8 fl oz for energy drinks.
  2. Enter how many servings you had at that sitting. They are treated as one dose finished at the same moment.
  3. Set your half-life. Start at 5 hours. Move it up towards 9 or 10 if caffeine keeps you awake for hours, or if you are pregnant or taking oral contraceptives; move it down towards 3 if coffee seems to do very little.
  4. Leave the absorption half-life at 10 minutes unless you are experimenting — and check the derived peak time it produces against the 30 to 60 minute window the literature reports.
  5. Enter the hours between this drink and bedtime. A 3 pm coffee before an 11 pm bedtime is 8 hours.
  6. Read the peak and the bedtime residue, then read the band, which compares your bedtime figure against the level Drake et al.'s sleep-disrupting condition leaves in the same model.
  7. To find your cut-off time, read 'hours until below your threshold'. That is how long before bed the last cup has to be for you to reach lights-out under your chosen number.

The formula.

A(t) = D · ka⁄(ka−ke) · (e^(−ke·t) − e^(−ka·t)) · t_max = ln(ka⁄ke)⁄(ka−ke)

Both rate constants come from half-lives by the same relation, ln 2 divided by the half-life. With the defaults, ke = ln 2 / 5 h = 0.1386294361 per hour and ka = ln 2 / (10/60 h) = 4.1588830834 per hour. Because the constants come from half-lives rather than being typed in directly, they stay in units a reader can check.

The amount in the body is then A(t) = D × ka/(ka−ke) × (e^(−ke·t) − e^(−ka·t)). At t = 0 the two exponentials are both 1 and the amount is exactly zero, which is right: nothing has crossed the gut wall yet. As t grows the second term dies away quickly and the first governs, so the tail is pure exponential decay at the elimination half-life. The peak is where the derivative vanishes, which happens at t_max = ln(ka/ke)/(ka−ke) — a closed form, so no iteration and no guessing. With the defaults that is 0.8460 hours, or 50.76 minutes.

For the worked example, two 90 mg cups make a 180 mg dose. The peak is 160.08 mg, which is 88.93 percent of the dose — never 100 percent, because clearance begins before absorption ends. Eight hours later 61.43 mg is left, 34.13 percent of what was drunk. After a full day 6.68 mg is still there, which is the mechanism behind day-to-day caffeine accumulation.

The threshold crossing is the only quantity without a closed form, because A(t) = threshold has no elementary solution. It is found by bisection between the peak and a 500-hour horizon, with a fixed 80 halvings so two runs of the same inputs return identical digits. Eighty halvings leave a bracket about 4×10⁻²² hours wide, far finer than the ten decimal places the answer is rounded to. With the worked example's numbers the crossing is at 9.4845325352 hours, and feeding that time straight back in returns 50 mg, which is the round-trip test on the search.

The reference level in the band is computed rather than chosen. Drake et al. gave 400 mg six hours before bed; running exactly that through this model leaves 180.11 mg at the default half-life, and that becomes the upper band edge. Run the calculator with 400 mg and a 6-hour bedtime and the bedtime output equals the reference output exactly — the self-consistency check on the band.

Nothing is rounded at an intermediate step. Every quantity is carried at forty significant digits and rounded once, at the end, to ten decimal places. The band is decided from the unrounded bedtime amount, so a threshold typed as exactly the displayed figure can still land in the band above.

A worked example.

Example

Two 8 oz cups of brewed coffee at 3 pm, at the FDA range's midpoint of 90 mg each, with an 11 pm bedtime — eight hours later. The dose is 180 mg. The kick arrives fast. The model peaks at 160.08 mg about 50.76 minutes after the last sip, which is 88.93 percent of what was drunk; the missing 11 percent has already been cleared while the rest was still being absorbed. The hour-by-hour trace reads 159 mg at one hour, 141 mg at two, 107 mg at four, 81 mg at six, 61 mg at eight and 35 mg at twelve. At bedtime, 61.43 mg is still on board — 34.13 percent of the original dose. That is above the 50 mg threshold chosen here, so the calculator reports that the amount will not have fallen below 50 mg until 9.48 hours after the coffee, which is around half past midnight rather than eleven. Moving the coffee ninety minutes earlier would fix it. It is well below the Drake reference, though. Running the 400 mg dose that Drake et al. gave six hours before bedtime through the same model leaves 180.11 mg at this half-life, and their subjects lost 1.1 to 1.2 hours of sleep. At 61.43 mg this sitting is roughly a third of that condition. Note also that 6.68 mg of the original 180 mg is still present a full day later, which is why habitual coffee drinkers never actually start from zero.

hours Until Bedtime8
servings2
absorption Half Life Minutes10
half Life Hours5
mg Per Serving90
sleep Threshold Mg50

Frequently asked questions.

How long before bed should I stop drinking coffee?
The best-evidenced answer is at least six hours, and it comes from a trial rather than a rule of thumb. Drake, Roehrs, Shambroom and Roth gave 400 mg of caffeine in pill form at zero, three and six hours before habitual bedtime and measured sleep at home. Total sleep time fell relative to placebo at every one of the three times, by 1.1 to 1.2 hours, and they concluded that this 'provides empirical support for sleep hygiene recommendations to refrain from substantial caffeine use for a minimum of 6 hours prior to bedtime'. Six hours is a floor for a large dose, not a guarantee for everyone: if your half-life is at the long end of the published 2-to-12-hour range, set the field accordingly and read your own crossing time.
Why is the peak less than the amount I drank?
Because your liver starts clearing caffeine the moment the first of it reaches your bloodstream, so by the time absorption is finished some of the dose has already gone. With the default half-lives the peak is 88.93 percent of the dose. A faster metaboliser peaks lower — at a two-hour half-life the peak is under 80 percent of the dose — and a slower one peaks higher, because less has been cleared by the time the gut has finished delivering.
Is this a blood caffeine level?
No, and the distinction matters. The output is the amount of caffeine in your body in milligrams. Converting it to a plasma concentration in mg/L would need a volume of distribution — StatPearls gives roughly 0.6 L/kg in adults — and therefore your body weight, and it would imply that a two-parameter model of a drug whose half-life varies six-fold between healthy people can predict a blood level. It cannot. What the model does reliably give you is the shape: how fast the rise is, when the top is, and what fraction is left after a given number of hours.
What half-life should I use for myself?
Start at 5 hours, which StatPearls gives as approximately the figure for the average adult, then adjust on evidence. Cappelletti and colleagues report a human range of 2 to 12 hours. Pregnancy lengthens caffeine's half-life substantially, and so do oral contraceptives and liver disease; smoking shortens it, because tobacco smoke induces CYP1A2, the enzyme that does about 95 percent of the clearing. A practical calibration: if an afternoon coffee reliably keeps you awake past midnight, your half-life is probably above 5 hours, and setting the field to 8 or 9 will produce numbers that match your experience better than the average does.
Why is the absorption half-life 10 minutes if that is not a published number?
Because the quantity the literature actually publishes is the time to peak, not the absorption rate, and the two are linked. Cappelletti and colleagues report that maximum plasma concentration is reached 30 to 60 minutes after consumption, with values between 15 and 120 minutes reported across individuals. A 10-minute absorption half-life is the value that makes this model's derived peak land at 50.8 minutes, inside that window, and the derived peak time is reported as an output so you can confirm it does. It is honest to say the parameter was fitted to a published outcome rather than pretend it was measured. Across half-lives from 2 to 12 hours the derived peak stays between 39 and 63 minutes, comfortably inside the wider 15-to-120-minute range.
Can I model three coffees spread across the morning?
Not in one pass — the model treats everything you enter as a single dose finished at the same moment, and the page says so beside the servings field. For spread-out drinking, run the calculator once per drink with that drink's own hours-until-bedtime, then add the bedtime figures. Because the model is linear in dose, adding the separate results is exactly right; there is no interaction term to worry about. The 24-hour output shows why this matters for habitual drinkers: a 180 mg sitting still leaves 6.68 mg a day later, so yesterday's coffee is part of today's baseline.
How much caffeine is in my drink?
The FDA's own consumer guidance gives an 8-ounce cup of coffee as closer to 80 to 100 milligrams, an 8-ounce cup of green or black tea as 30 to 50 milligrams, a 12-ounce caffeinated soft drink as 30 to 40 milligrams, and energy drinks as anywhere from 40 to 250 milligrams per 8 fluid ounces. This page defaults to 90 mg, the midpoint of the coffee range, and labels it as a midpoint rather than a measurement. Real cups vary a great deal with bean species, dose and brew method, so if you know your own figure, use it. For a per-drink lookup across a wider list, use the Coffee Calculator.
Does this tell me whether I drink too much coffee?
No — this page is about timing, not totals, and it deliberately stops short of a daily verdict. The FDA cites 400 milligrams a day as an amount not generally associated with negative effects for most healthy adults, and StatPearls likewise says daily doses up to 400 mg are considered safe, but those are population figures and the FDA is explicit that 'too much' varies with body weight, medications, medical conditions and individual sensitivity. The Coffee Calculator is the page that compares a day's drinks against that reference. If caffeine is interacting with a medication or a heart, sleep or anxiety condition, that is a conversation with a clinician rather than with a calculator.

References& sources.

  1. [1]Evans J, Richards JR, Battisti AS. "Caffeine." In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; last update 29 May 2024 — "the half-life of caffeine in the average adult is approximately 5 hours", volume of distribution about 0.6 L/kg in adults, and "daily doses of up to 400 mg are considered safe".
  2. [2]Cappelletti S, Piacentino D, Sani G, Aromatario M (2015). "Caffeine: Cognitive and Physical Performance Enhancer or Psychoactive Drug?" Current Neuropharmacology 13(1):71–88, doi:10.2174/1570159X13666141210215655 — "The maximum plasma concentration is reached after 30-60 minutes from consumption", with "maximum plasma concentrations reached between 15 and 120 min" reported, and "Caffeine's half-life in humans ranges from a minimum of 2 to a maximum of 12 hours".
  3. [3]Drake C, Roehrs T, Shambroom J, Roth T (2013). "Caffeine Effects on Sleep Taken 0, 3, or 6 Hours before Going to Bed." Journal of Clinical Sleep Medicine 9(11):1195–1200, doi:10.5664/jcsm.3170 — 400 mg of caffeine in pill form at 0, 3 and 6 hours before habitual bedtime; "reducing TST between 1.1 to 1.2 hours" at every administration time; "provides empirical support for sleep hygiene recommendations to refrain from substantial caffeine use for a minimum of 6 hours prior to bedtime".
  4. [4]U.S. Food and Drug Administration (Consumer Updates). "Spilling the Beans: How Much Caffeine is Too Much?" — an 8-ounce cup of coffee is "closer to 80 to 100 milligrams", 8 oz green or black tea 30–50 mg, a 12-ounce caffeinated soft drink 30–40 mg, energy drinks 40–250 mg per 8 fl oz; 400 mg a day cited as an amount not generally associated with negative effects for most healthy adults, with "too much" varying by body weight, medications, medical conditions and individual sensitivity.
  5. [5]Grogan S, Preuss CV. "Pharmacokinetics." In: StatPearls [Internet]. StatPearls Publishing; last update 30 July 2023 — first-order kinetics is "the major elimination model of most medications", and half-life is "the amount of time for serum drug concentrations to decrease by 50%". The basis for deriving both rate constants as ln 2 divided by a half-life.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 977 calculators remain free
  • No billing is enabled
Coming soon