Caffeine Calculator

Add your drinks to calculate total daily caffeine intake. See if you're within safe limits, when caffeine will leave your body, and how different sources compare.

Tap drinks to add them, or enter a custom amount. Compares your total against the FDA's 400mg/day guideline (or 200mg/day if pregnant, per ACOG) and estimates a clearance timeline from caffeine's half-life.

Add your drinks today FDA safe limit: 400mg
No drinks added
Or enter a custom amount:
mg
lbs

Caffeine is the most widely used psychoactive substance in the world, consumed by most adults daily without a second thought — which makes it easy to lose track of an actual daily total once coffee, tea, soda, energy drinks, and chocolate are all added up. This calculator tracks your intake across common sources, compares it to the relevant safety guideline, and shows a clearance timeline based on caffeine's half-life.

How much caffeine is safe per day

GroupGuidelineSource
Healthy adults400 mg/dayFDA
Pregnant / planning pregnancy200 mg/dayACOG
Adolescents~100 mg/day (or 2.5 mg/kg)Health Canada
Acute single-dose concern~6 mg/kg/day, adverse effects more likelyGeneral clinical guidance

400 mg/day for healthy adults — roughly four 8oz cups of brewed coffee — remains the standard, current FDA guideline and the default this calculator compares against. It’s calibrated as a level not generally associated with adverse effects in healthy adults, not a target to reach or a minimum recommendation; plenty of people function well on far less, and many people don’t consume caffeine at all.

It’s worth being clear about what “safe” means in this context: these are general population guidelines describing intake not associated with adverse effects for most healthy people, not a precise line where harm definitely begins at one milligram over. Individual response varies substantially (covered in more detail below), and several health conditions — heart arrhythmias, anxiety disorders, and certain liver conditions among them — can lower an individual’s appropriate limit well below these population figures. Anyone with a relevant health condition is better served getting personalized guidance from a doctor than relying on the general 400mg figure.

How this calculator works

Add drinks from the grid (each pre-loaded with a typical caffeine content) or enter a custom amount, and the calculator totals everything, compares it to your active guideline (400mg by default, or 200mg if you toggle the pregnancy option), and estimates a clearance timeline using caffeine’s average half-life.

Clearance mathRemaining caffeine at time t = current total × 0.5^(t ÷ half-life)
Half-life: ~5.7 hours (non-pregnant average) · ~12 hours (pregnancy, substantially extended)

The per-kg-bodyweight figure shown alongside your total is a useful secondary check, since sensitivity and recommended limits scale somewhat with body size, particularly for the “6 mg/kg/day” threshold sometimes cited as where adverse effects become more likely — a number that means something very different for a 110 lb adult than a 250 lb adult at the same total mg intake.

Worked example

Using this calculator’s own default example — one 8oz brewed coffee (95mg), 154 lb body weight, not pregnant:

Step by stepTotal: 95mg · % of 400mg limit: 95 ÷ 400 × 100 ≈ 24%
Per kg: 95 ÷ (154 ÷ 2.20462) ≈ 1.4 mg/kg
Hours until cleared (below 5mg): 5.7 × log₂(95 ÷ 5) ≈ 24.6 hours

At the 6-hour mark, roughly half the original 95mg — about 48mg — is still circulating, consistent with one half-life having passed. This is a big part of why an afternoon coffee can still measurably affect sleep that night: even 8+ hours after drinking it, a meaningful fraction of the caffeine may still be active in the body.

Adding a second drink changes the math in a way that’s easy to underestimate: two coffees three hours apart don’t simply “add and decay together” in an intuitive way — the first coffee has already started decaying by the time the second is consumed, so the peak total in the body is lower than the simple sum of both amounts, but the tail end of clearance stretches out longer than either drink alone would produce, since there’s more total caffeine that needs to decay through successive half-lives. This calculator’s timeline shows total remaining caffeine at fixed time points from when you calculate, which captures this compounding effect correctly rather than the simpler (and less accurate) “add them up and pick one decay curve” approach.

Caffeine and pregnancy

Caffeine guidance changes meaningfully during pregnancy, for two compounding reasons. First, the recommended limit itself drops — from 400mg to 200mg/day, per ACOG (the American College of Obstetricians and Gynecologists), based on research suggesting higher intakes may be associated with increased risk of complications including low birth weight. The World Health Organization’s guidance is somewhat less conservative at 300mg/day, but 200mg is the more commonly cited, more conservative figure in U.S. clinical guidance, and the one this calculator uses for its pregnancy toggle.

Why the limit drops further in effectPregnancy hormones (progesterone in particular) inhibit the liver enzyme (CYP1A2) that metabolizes caffeine
Half-life extends from ~5 hours to as long as 10–18 hours by the third trimester

This second factor compounds the first: not only is the recommended daily amount lower during pregnancy, but each cup of coffee also stays active in the body for roughly two to three times as long, meaning caffeine from an earlier drink is more likely to still be circulating when a later one is consumed. This calculator’s pregnancy toggle applies both effects — the lower 200mg guideline and a substantially longer half-life (12 hours, reflecting a reasonable mid-pregnancy estimate) — when selected, rather than only mentioning the pregnancy limit as a side note while calculating everything else the same way.

How caffeine leaves your body

Caffeine’s half-life — the time for half of a given amount to be metabolized — averages around 5–6 hours in healthy adults, though it varies fairly widely between individuals (a commonly cited range is 1.5–9 hours), influenced by genetics, liver function, smoking status, and certain medications. Oral contraceptives and some antibiotics can extend caffeine’s half-life meaningfully, similar in direction (though smaller in magnitude) to the pregnancy effect described above.

Decay by half-life multiplesAfter 1 half-life (~5-6 hrs): 50% remains · After 2 (~10-12 hrs): 25% remains
After 3 (~15-18 hrs): ~12.5% remains · After 4 (~20-24 hrs): ~6.25% remains

This is why “I only had coffee in the morning” doesn’t fully rule out caffeine as a factor in that night’s sleep trouble — a morning cup’s caffeine hasn’t necessarily fully cleared by bedtime, particularly for people on the slower end of the half-life range or anyone taking a medication that extends it.

It’s worth distinguishing half-life from “feeling the effects,” since the two aren’t the same thing. The subjective alertness boost from caffeine tends to peak within 30–60 minutes of consumption and noticeably fade well before the caffeine itself is actually cleared from the body — someone might feel entirely back to baseline within a few hours while still carrying a meaningful amount of circulating caffeine, which is exactly the gap that causes sleep disruption without an obvious, felt cause. This is one of the more counterintuitive aspects of caffeine, and a good reason to think in terms of the half-life math rather than how alert or “caffeinated” a particular moment feels.

Caffeine and sleep

Caffeine works by blocking adenosine receptors in the brain — adenosine is a compound that builds up through the day and promotes sleepiness, so blocking its receptors is literally caffeine’s mechanism for feeling alert. This is also directly relevant to sleep timing: caffeine consumed too close to bedtime blocks the same receptors that would otherwise be helping signal sleepiness at exactly the time that signal is needed most.

Many sleep experts recommend stopping caffeine intake by early-to-mid afternoon (commonly cited as by 2 PM, or at least 6 hours before bedtime) specifically because of the half-life math above — even caffeine that doesn’t consciously feel like it’s “keeping you awake” can still measurably reduce sleep quality (less deep sleep, more nighttime awakenings) at levels well below what would cause noticeable jitteriness. This is a case where subjective feeling and physiological effect can diverge — someone who doesn’t feel wired from a late afternoon coffee may still be experiencing worse sleep architecture than they’d have otherwise.

Individual sensitivity and tolerance

Caffeine sensitivity varies substantially between people, driven significantly by genetic differences in the CYP1A2 liver enzyme responsible for metabolizing it — some people are genetically “fast metabolizers” who clear caffeine quickly and can tolerate more without effects, while “slow metabolizers” experience stronger and longer-lasting effects from the same dose. This genetic variation is a meaningful part of why caffeine tolerance anecdotes vary so widely between individuals, beyond simple habituation.

Regular consumption also builds tolerance to some of caffeine’s effects (particularly the alertness boost) faster than others (the sleep-disrupting potential doesn’t diminish nearly as much with regular use) — which is part of why a long-time daily coffee drinker might not feel especially “wired” from their usual intake while still experiencing measurably worse sleep quality than they would caffeine-free, especially if timing runs later in the day.

Stopping caffeine after regular use often produces genuine withdrawal symptoms — most commonly headache, fatigue, and irritability, typically starting 12–24 hours after the last dose and peaking around day one to two before resolving over roughly a week. This is a real physiological response (not simply “missing the habit”) and is a reasonable thing to plan around when reducing intake — tapering gradually over one to two weeks tends to produce a much milder withdrawal experience than stopping abruptly, similar in principle to how gradual reduction is generally easier to sustain than an abrupt cutoff for many habitual substances.

Signs you've had too much

Common signs of excessive caffeine intake include jitteriness, anxiety, a noticeably rapid heartbeat, insomnia, headache, and irritability — symptoms that can appear well below 400mg for sensitive individuals, and might not appear at all for others even above that threshold, reflecting the wide individual variation described above. These are typically uncomfortable rather than dangerous at moderate excess levels, resolving as caffeine clears from the system over the following hours.

At significantly higher intakes — particularly from concentrated sources like caffeine powder or pills rather than beverages, where it’s much easier to consume a large amount quickly — more serious effects become possible, including a dangerously rapid heart rate. This calculator is built around beverage-based, everyday intake tracking; anyone consuming caffeine from concentrated powder or pill sources should be especially cautious, since these are far easier to over-consume than beverages, where volume and taste provide a natural limiting factor.

If tracking a day’s intake with this calculator reveals a consistently higher total than expected, the most common culprits are sources that don’t feel like “caffeine drinks” in the moment: pre-workout supplements (which can contain 200mg or more per scoop, comparable to two full cups of coffee), certain over-the-counter pain relievers and cold medications that include caffeine as an ingredient, and chocolate-based desserts or drinks, which contribute smaller amounts individually but can add up across a day. Reading labels on anything caffeinated beyond the obvious coffee-and-tea categories is the most reliable way to catch a total that’s higher than it feels like it should be.

Frequently asked questions
How much caffeine is safe per day?
The FDA considers 400mg/day safe for healthy adults (roughly 4 cups of brewed coffee). For pregnant women, ACOG recommends 200mg/day. For adolescents, guidance is around 100mg/day (or 2.5mg/kg). Energy drinks can contain 80–300mg per can. Caffeine sensitivity varies by genetics, medications, and liver health. Signs you've had too much: jitteriness, anxiety, rapid heartbeat, insomnia, headache, irritability.
How long does caffeine stay in your system?
Caffeine has a half-life of about 5–6 hours in most adults (range: 1.5–9 hours). Half of your morning coffee's caffeine is still in your system about 5-6 hours later; a quarter remains after about 10-12 hours. To minimize sleep disruption, many sleep experts recommend stopping caffeine at least 6 hours before bedtime, or by early-to-mid afternoon. Pregnancy, oral contraceptives, and some antibiotics can extend caffeine's half-life significantly.
How much caffeine is safe during pregnancy?
ACOG recommends limiting caffeine to 200mg/day during pregnancy — lower than the standard 400mg adult guideline. Caffeine's half-life also extends substantially during pregnancy (from ~5 hours to as long as 10–18 hours by the third trimester, since pregnancy hormones slow the liver enzyme that metabolizes it), meaning caffeine stays active in the body considerably longer than usual.
Why does my caffeine take longer to clear during pregnancy?
Progesterone and other pregnancy hormones inhibit CYP1A2, the liver enzyme primarily responsible for metabolizing caffeine. This extends caffeine's half-life from roughly 5 hours to as long as 10–18 hours by the third trimester, meaning caffeine from an earlier drink is more likely to still be circulating when a later one is consumed — part of why the recommended daily limit is also lower during pregnancy.
What's the difference between feeling caffeine's effects and it actually clearing your system?
The subjective alertness boost from caffeine typically peaks within 30–60 minutes and noticeably fades well before the caffeine is actually cleared from your body. You can feel back to normal within a few hours while still carrying a meaningful amount of circulating caffeine — this gap is a common reason caffeine can disrupt sleep even when it doesn't feel like it's "still working."
What foods and drinks have hidden caffeine?
Beyond obvious sources like coffee and tea, caffeine hides in pre-workout supplements (200mg+ per scoop), some over-the-counter pain relievers and cold medications, chocolate and chocolate-flavored products, and some sodas. These smaller, less obvious sources can add up across a day and push a total higher than it feels like it should be — checking labels on anything caffeinated is the most reliable way to catch this.

This calculator provides general health information only and is not a substitute for professional medical advice, diagnosis, or treatment. If you have health concerns, please speak with a qualified healthcare provider.