Caffeine calculator

Enter your drinks, their caffeine amounts and your bedtime. Estimate caffeine remaining, compare half-life scenarios and find a modeled cutoff for your next drink.

Your day

Choose a drink to fill its default caffeine amount, or enter the total milligrams from its label. The amount is for the whole drink, not per 100 ml. Changing it models a larger serving or a custom recipe.

Drinks today

At 23:00 you are 21 mg under the threshold.

Caffeine at bedtime20 mgPeak today 81 mg · 125 mg listed
Model threshold41 mgWaterChamp model setting, scaled to weight; not a safe-sleep limit.
Next-drink cutoff11:20Latest modeled start for a 95 mg drink.
0255075100Model threshold 40.7 mgBed 23:0020 mg06:0009:0012:0015:0018:0021:0000:00mg of caffeine

The brown line is your caffeine level. The dashed green line is the model threshold. The blue line is bedtime. The small ticks on the bottom axis are the drinks you listed.

How caffeine half-life works

Your body removes caffeine at a steady percentage rate, not at a steady number of milligrams. One half-life is the time your body needs to remove half of the caffeine. For most adults that is about five hours. Try one 95 mg coffee at 15:00 in the model above. It peaks near 74 mg at about 16:50. It is still around 53 mg at 20:00, 26 mg at 01:00, and 13 mg at 06:00. What is left at bedtime comes from that tail.

Absorption matters too. Caffeine does not enter your blood all at once. The level climbs for the first hour or two after you drink. The calculator models the climb and the decline with the same equation the app uses. A drink from 40 minutes ago counts for less than the same drink from two hours ago.

Caffeine clearance varies by person

Half-life is not the same for everybody. Clearance depends mostly on the liver enzyme CYP1A2. Measured half-lives in healthy adults span roughly two to ten hours. Smoking makes clearance faster. Oral contraceptives, pregnancy and some medicines make it slower.2 Two people can drink the same flat white at the same hour and hold very different amounts at midnight. The 3-, 5- and 8-hour settings are scenarios to compare, not a test of your metabolism. Try more than one if you do not know your half-life.

Caffeine also matters later in the day than most people think. In a controlled trial, 400 mg of caffeine taken six hours before bed still cut total sleep time by a measurable amount.1 Self-reports miss the loss: most participants in the study did not notice it. The disruption shows in the sleep recording first.

How the threshold and cutoff are calculated

WaterChamp uses 0.83 µg/mL as a model threshold, converted to milligrams with an assumed distribution volume of 0.7 litres per kilogram. That gives about 35 mg at 60 kg and 52 mg at 90 kg. The cited sleep study provides context for caffeine effects;3 it does not validate this setting as a universal safe-sleep cutoff. Being below the line does not guarantee unaffected sleep.

The next-drink cutoff searches from 04:00 until before bedtime, adding the caffeine amount you entered to your listed drinks. It finds a start time within five minutes of the latest modeled time below the threshold. The default is a 95 mg black coffee; the app reminder uses a 63 mg espresso, so their default cutoff times can differ. A result earlier than the current time is a planning result, not permission for another drink now.

The caffeine values in the drink list are the app’s defaults for one standard serving. A real cup varies with preparation; enter a label amount when you have one. The output is an estimate, not a measurement. Drinks still absorbing at bedtime can peak later, so a low bedtime value alone does not establish low exposure through the night.

Check the caffeine in your drink

Compare the serving examples for espresso, black coffee, cold brew, matcha latte and energy drinks. The drink guide lists the app's serving sizes and values together.

To work out your daily drinking target as well, use the water intake calculator.

In the app

The WaterChamp app runs the same curve on your phone from the drinks you log. It warns you before your last chance for coffee passes. It also tracks water, alcohol and calories from 102 pickable drinks. It writes your water intake to Apple Health and Health Connect.

Not medical advice. This is a general model, not a measurement of you. Half-life estimates vary widely between people and change with pregnancy, liver conditions, smoking and medicines. Talk to a doctor about caffeine if you are pregnant, taking medication, or having ongoing trouble sleeping.

1. Drake C, Roehrs T, Shambroom J, Roth T. "Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed." Journal of Clinical Sleep Medicine, 2013;9(11):1195-1200. pubmed.ncbi.nlm.nih.gov/24235903

2. Nehlig A. "Interindividual differences in caffeine metabolism and factors driving caffeine consumption." Pharmacological Reviews, 2018;70(2):384-411. pubmed.ncbi.nlm.nih.gov/29514871

3. Baur DM, Dornbierer DA, Landolt HP. "Concentration-effect relationships of plasma caffeine on EEG delta power and cardiac autonomic activity during human sleep." Journal of Sleep Research, 2024;33:e14140. pubmed.ncbi.nlm.nih.gov/38221756

Hydration figures elsewhere on this site come from the Beverage Hydration Index: Maughan RJ, Watson P, Cordery PA, et al. "A randomized trial to assess the potential of different beverages to affect hydration status." American Journal of Clinical Nutrition, 2016;103(3):717-723. pubmed.ncbi.nlm.nih.gov/26702122

The WaterChamp mascot drinking boba tea

WaterChamp for iPhone & Android

A water, caffeine and alcohol tracker. It counts 102 drinks toward your daily goal, shows a live hydration level, and tells you your last chance for coffee.

Download on the App Store Get it on Google Play