Caffeine Half-Life Calculator
Enter when you had each coffee, tea or energy drink and estimate how much caffeine remains at a query time and at bedtime, using a half-life you choose.
Today's intake entries
Remaining at the query time
Enter intake entries or load the example, then press “Calculate remaining caffeine”.
Total remaining at —: — mg
None of the entries has been consumed yet at the query time, so the total is 0.0.
| Time | mg | Elapsed (min) | Remaining (mg) |
|---|
Next 6 hours
Bedtime
Half-life varies by person (roughly 3–8 hours). This tool estimates with the half-life you set; values are for reference only and are not medical advice.
How it works and limits
- Each entry decays exponentially from its intake moment with the same half-life: after t minutes, mg × 2^(−t / half-life minutes) remains. An entry later than the query time contributes nothing (no wrap to the previous day).
- The total is rounded to one decimal after summing the unrounded per-entry contributions; each entry is rounded separately, so the displayed total can differ from the sum of the displayed entries by 0.1 mg.
- Drink presets are a fixed table: Espresso (30 ml) 63, Brewed coffee (240 ml) 95, Black tea (240 ml) 47, Green tea (240 ml) 28, Cola (355 ml) 34, Energy drink (250 ml) 80.
- Single-day clock model only: no absorption delay, no multi-day tracking, no sleep prediction. Data stays in this page — nothing is uploaded or stored, and leaving the page discards it. This tool has no download or export.
What if the query time is earlier than a drink?
It contributes nothing before its intake time; the hourly series starts counting it once its time passes.
Can this predict my sleep?
No. It is a decay estimate with a single half-life; individual metabolism varies widely.