Why use this calculator
Caffeine is the most widely used stimulant in the world and the easiest one to lose track of, because it arrives in half a dozen different formats across a day. A flat white at breakfast, a mug at the desk, an afternoon tea and a can with dinner is an unremarkable day and still lands close to the adult guideline.
Sleep is where the cost shows up first: caffeine blocks adenosine, the molecule that builds sleep pressure, and because it fades exponentially rather than all at once, a mid afternoon coffee can still have meaningful amounts circulating at midnight. Totalling your intake turns a vague feeling of being wired or sleeping badly into a number you can act on, and shows which drink is actually responsible.
How to use it
- Count the cups of brewed or filter coffee you drank, using a 240 mL cup as the unit.
- Add espresso shots separately, remembering that a latte or flat white usually holds one and a double shot holds two.
- Enter cups of black tea, and count two cups of green tea as one cup of black since green carries roughly half the caffeine.
- Add cans of energy drink at 250 mL each, so a 500 mL can counts as two.
- Add cans of cola or other caffeinated soft drink at 355 mL each.
- Anything else with a label, such as pre workout powder, caffeine tablets or dark chocolate, goes into the other field in milligrams straight off the packet.
- Then choose how quickly you clear caffeine and which daily guideline applies to you, because the pregnancy ceiling is half the adult one.
What each result means
- Total caffeine today
- Everything you entered, added up in milligrams, and expressed as an equivalent number of filter coffees.
- Share of your daily guideline
- Your total against the ceiling for your group. Above 100 per cent means you have passed the published guideline.
- Your daily guideline
- The daily figure health authorities suggest for the group you selected, in milligrams of caffeine.
- Headroom left today
- How much more caffeine fits under the guideline, or by how much you have already gone past it.
- Still in your system after 8 hours
- What remains eight hours after the last drink, using the half-life you selected for yourself.
- Hours until it drops below 50 mg
- Time for the dose to fall under 50 mg, a level most people find does not interfere with falling asleep.
- From brewed coffee
- The share of today's total contributed by drip or filter coffee at 95 mg a cup.
- From espresso
- The share contributed by espresso shots at about 63 mg each, before any milk is added.
- From tea
- The share contributed by black tea at roughly 47 mg a cup, which depends heavily on steeping time.
- From energy drinks
- The share contributed by energy drinks at about 80 mg per 250 mL can, before any added guarana.
- From soft drink
- The share contributed by cola and other caffeinated soft drinks at about 34 mg per 355 mL can.
- From other sources
- Whatever you entered manually, such as pre workout powder, caffeine tablets, chocolate or medication.
The formula
Total caffeine = cups x 95 + espresso shots x 63 + tea x 47 + energy drinks x 80 + cola cans x 34 + other milligrams, using average contents in milligrams per serve
Share of guideline = total divided by the daily limit for your group, times 100
Clearance follows first order decay: remaining = total x 0.5 raised to the power of hours divided by the half-life in hours
Rearranged, the time to fall to 50 mg is half-life x log base 2 of total divided by 50. Half-life is around 5.5 hours for a typical healthy adult but ranges from about 3 to 9 hours, and runs far longer in later pregnancy.
How this number is used in practice
The figures in this calculator are averages and the real spread is enormous. A 240 mL filter coffee runs roughly 70 to 140 mg depending on roast, grind and brew time, and a single espresso shot ranges from about 50 to 75 mg. Cafe cups are also bigger than the reference serving: a large takeaway cup is often 450 mL, which is closer to two of the units used here.
Tea depends almost entirely on how long the bag sat in the water, with a three minute brew carrying well over twice the caffeine of a thirty second dunk. Treat the total as an order of magnitude, not a laboratory measurement, and lean on the trend across days rather than one figure.
Guidelines differ by group for good reasons. Health authorities including the FDA and EFSA suggest healthy adults can drink up to about 400 mg a day without expected harmful effects, with single doses kept under roughly 200 mg. During pregnancy the ceiling drops to about 200 mg a day, partly because caffeine crosses the placenta and partly because clearance slows dramatically, with half-life stretching past ten hours in the third trimester.
Some medications, including certain antibiotics and the combined oral contraceptive pill, roughly double how long caffeine hangs around, while smoking speeds clearance up. Sensitivity is also partly genetic through the liver enzyme that metabolises caffeine, which is why one person sleeps fine after an evening espresso and another lies awake.
Worked examples
A normal office day: two filter coffees, one espresso and a cup of tea
300 mg in total, 75% of the 400 mg adult guideline, with about 110 mg still circulating eight hours later.
Pregnancy: one coffee and two cups of tea, with a slower clearance
189 mg against the 200 mg pregnancy guideline, so 95% of the ceiling with only 11 mg of headroom left.
A heavy day: four coffees, a double espresso, two teas and two energy drinks
760 mg, which is 190% of the adult guideline and 360 mg past it.
Gym session: a double espresso, two energy drinks and a 200 mg pre workout
486 mg in total, 122% of the adult guideline, and still above 50 mg for about eighteen hours.
When people use it
- Finding out why you are lying awake at midnight after an afternoon coffee
- Staying under the 200 mg a day guideline during pregnancy
- Checking a pre workout supplement against everything else you drank that day
- Working out a caffeine cutoff time before an early start or a night shift
- Tapering down gradually rather than quitting cold and getting withdrawal headaches
Tips
- Set a cutoff time rather than a cup limit. Working back from bedtime by the hours shown is more effective than counting cups.
- A large takeaway cup is often 450 mL, closer to two of the 240 mL units used here, so count it as two.
- Decaf is not caffeine free. A cup still carries roughly 2 to 15 mg, which matters if you are extremely sensitive.
- Steeping time drives tea caffeine more than the leaf does, so a quick dunk is a genuinely lighter drink.
- Energy drinks often add guarana, which is itself caffeine and is not always counted in the caffeine line on the label.
- If you want to cut back, reduce by about one serving every three days. Abrupt withdrawal brings headaches and low mood for a few days.
What it assumes, and where it stops being accurate
- Serving contents are averages: 95 mg per 240 mL filter coffee, 63 mg per espresso shot, 47 mg per cup of black tea, 80 mg per 250 mL energy drink and 34 mg per 355 mL cola. Real products vary by a factor of two.
- Clearance is modelled as simple first order decay from a single point in time, whereas a real day spreads doses across many hours.
- Absorption is treated as instant. In practice caffeine peaks in the blood roughly 30 to 60 minutes after drinking.
- The 50 mg threshold used for the sleep estimate is a rule of thumb, not a clinical cutoff, and sensitivity differs widely.
- Guidelines are general population advice and are not a substitute for advice from your doctor, especially in pregnancy or with heart conditions.
Terms used on this page
- Half-life
- The time it takes your body to clear half of a dose. Caffeine's is about five to six hours in a healthy adult.
- Adenosine
- The molecule that builds sleep pressure through the day. Caffeine works by blocking its receptors rather than adding energy.
- CYP1A2
- The liver enzyme that metabolises most caffeine. Genetic variation in it explains much of the difference between fast and slow clearers.
- Guarana
- A plant extract added to energy drinks that is itself a source of caffeine, sometimes listed separately from the caffeine content.
- Tolerance
- The reduced effect of the same dose after regular use, which raises the amount needed for the same alertness but not the sleep disruption.
Questions people ask
- How much caffeine is safe in a day?
- Health authorities including the FDA and EFSA point to about 400 mg a day for most healthy adults as an amount not generally associated with harmful effects, with single doses kept under roughly 200 mg. That is about four cups of filter coffee. The figure is population guidance, so people with heart conditions, anxiety or caffeine sensitivity may need considerably less.
- What is caffeine's half-life?
- Around five to six hours in a healthy adult, meaning half the dose is gone in that time and half of the remainder in the next. The real range across healthy adults runs from about three to nine hours. It stretches much longer in later pregnancy and with some medications, and shortens in smokers, which is why the same coffee affects two people so differently.
- How much caffeine can I have in pregnancy?
- Guidance in the UK, Australia and the United States converges on about 200 mg a day, roughly two cups of filter coffee or one small takeaway cup. The limit is lower partly because caffeine crosses the placenta and partly because clearance slows sharply, with half-life reaching ten hours or more by the third trimester. Talk to your midwife or doctor about your own situation.
- When should I stop drinking coffee before bed?
- Use the hours shown to fall below 50 mg as your cutoff. For a typical adult who has had 300 mg, that is about fourteen hours, which points to finishing caffeine by late morning. If that sounds impossible, aim for at least eight hours of clearance and see whether sleep quality shifts over a week.
- Does an energy drink have more caffeine than coffee?
- Usually less per millilitre than coffee. A 250 mL can carries around 80 mg against 95 mg in a 240 mL filter coffee. The catch is the format: 500 mL cans are common, they are cold and easy to drink quickly, and many add guarana, which contributes further caffeine that may not appear on the caffeine line.
- Is decaf actually caffeine free?
- No. Decaffeination removes most but not all of the caffeine, leaving roughly 2 to 15 mg in a cup against 95 mg for regular coffee. For almost everyone that is negligible, but if you are unusually sensitive or drinking several cups in the evening it can still add up to a meaningful dose.
Use this with
Caffeine Intake Calculator answers one part of the question. These pick up where it stops: Water Intake Calculator, Sleep Calculator, Sleep Cycle Calculator and BAC Calculator.
Where these figures come from
This calculation is jurisdiction-neutral arithmetic. No country-specific rules are applied.
- FDA: how much caffeine is too much. The 400 mg a day figure for healthy adults and typical drink contents
- EFSA: caffeine. European safety assessment of single and daily caffeine doses
- NHS: foods to avoid in pregnancy. The 200 mg a day caffeine limit during pregnancy
- USDA FoodData Central. Reference composition and caffeine figures for foods and drinks
Caffeine Intake Calculator produces an estimate for general information. It is not financial, tax, medical, legal or engineering advice. read the full disclaimer. Spotted a wrong number? Report it and it gets fixed. The form picks up this calculator and the inputs you used.