How much caffeine have you had today?
This caffeine calculator adds up the drinks of your day and compares the total with the guidance of the European Food Safety Authority. It draws a curve of the caffeine still in your body and estimates how much is left when you go to bed. Everything is calculated in your browser: nothing is sent. The result is an estimate, not medical advice.
How to use it
- Under “Add a drink”, pick a “Drink (typical average)” or “Other (amount in mg)”.
- Set the “Time”, adjust “Caffeine (mg)” if needed, then press “Add”. The drink appears under “Today's drinks”, where the time and the mg can still be edited.
- Choose your “Profile”: “Healthy adult”, “Pregnant or breastfeeding” or “Teenager” (then enter the “Weight (kg)”).
- Adjust the “Half-life (hours)” (5 by default) and your “Bedtime”.
To keep your day on this device, tick “Keep my day and settings on this device”. The box starts unchecked.
The guidelines used
- Healthy adult: up to 400 mg a day, and no more than 200 mg in a single dose.
- Pregnancy and breastfeeding: 200 mg a day.
- Teenagers: about 3 mg per kg of body weight a day, so 150 mg for a 50 kg (110 lb) teen.
Above the guideline, a warning appears. The suggested amounts are averages: a 200 mL cup of filter coffee holds 90 to 120 mg, an espresso 60 to 80 mg, a cup of black tea 40 to 50 mg. A large coffee-shop cup can hold two or three times as much, so enter its real amount when you know it.
Half-life: why your afternoon coffee still counts at night
Your body clears caffeine at a steady rate: after one half-life, half of it is gone. The tool uses the formula C(t) = C0 × 0.5^(t/T½), where C0 is the dose, t the time elapsed and T½ the half-life, then adds up every drink.
Example: two coffees of 95 mg, one at 8 a.m. and one at 1 p.m., a half-life of 5 hours and bedtime at 11 p.m. The total is 190 mg, or 47.5% of the 400 mg guideline. At 11 p.m., the 8 a.m. coffee has had 15 hours, three half-lives: 95 × 0.5³ = 11.875 mg. The 1 p.m. coffee has had 10 hours: 95 × 0.5² = 23.75 mg. That leaves 35.6 mg at bedtime. With a 3-hour half-life it would be 12.4 mg; with 7 hours, 56.8 mg.
Another day: filter coffee of 100 mg at 7 a.m. and 11 a.m., then an energy drink of 80 mg at 3 p.m. to beat the afternoon slump. Total: 280 mg. At 10 p.m., with a 5-hour half-life, 64.6 mg are still there.
Half-life differs from person to person, often between 3 and 7 hours. It can be longer during pregnancy or with some medicines.
Caffeine and sleep
According to the European authority, a 100 mg dose taken close to bedtime can delay sleep and shorten it in some adults. To be safe, avoid caffeine in the hours before bed, especially if you are sensitive to it. Caffeine can also interact with some treatments: ask your doctor or pharmacist.
Frequently asked questions
How many cups of coffee a day is that?
At 400 mg a day for a healthy adult, that is about four 100 mg cups of filter coffee or five 70 mg espressos, counting nothing else. Tea, sodas and energy drinks add to the total.
Why does the remaining amount never reach zero?
Each half-life halves the amount, so it keeps falling without quite reaching zero. After five half-lives, about 3% of the dose is left.
Does decaf contain caffeine?
A few milligrams per cup. Choose “Other (amount in mg)” and enter the figure, for example 3 mg.
Are my drinks saved?
No, unless you tick the memory box: they then stay on your device only, for the current day.