What this result means
Enter the labelled caffeine for up to three servings. Use clock times for the most recent serving times before bedtime, or type elapsed hours directly. Choose an assumed half-life to see what the model leaves in total and from each serving. [1][2]
Start with milligrams per serving
Choose clock times or elapsed hours
Treat half-life as an assumption
Read each serving alongside the total
Can the result tell me whether I will sleep well?
Formula and assumptions
- Formula
- For each serving, remaining mg = serving mg × 2 raised to −(elapsed hours ÷ assumed half-life hours). Add all remainders. Divide by the entered caffeine total to get the share remaining, when the total is positive. [1][2]
- Version
- Caffeine at Bedtime Calculator, 1.0
- Rounding
- Keep full precision until the servings are added. Milligrams and percent are displayed to one decimal place. A positive amount that would round to zero is shown as less than 0.1 mg.
Who this is for — and when not to use it
Intended use
Illustrate remaining caffeine mass at a chosen time using a simple half-life model.
Not intended for
The model assumes immediate absorption and a constant elimination rate. It does not measure your blood concentration, establish your own half-life, predict whether you will fall asleep or show how much caffeine you can safely have.
Exclusions
- Measurements or units that do not match the selected method.
Evidence sources
- 1. Scientific memorandum: Caffeinated alcoholic beverages, pharmacokinetics of caffeine — U.S. Food and Drug Administration. Accessed Nov 20, 2026.
- 2. Caffeine Effects on Sleep Taken 0, 3, or 6 Hours before Going to Bed — Journal of Clinical Sleep Medicine. Accessed Nov 20, 2026.
