How to use this caffeine calculator
- Tap what you've had. Every tap of a drink adds one serving — the little badge counts them. Tapped one too many? Right-click (or long-press on mobile) to remove one. Had something that isn't on the grid? Type its milligrams into the "something else" box.
- Tell it about you. Your safe limit isn't a fixed number — it scales with body weight, and drops sharply in pregnancy or for teens. Enter your weight and pick your life stage so the limit is actually yours.
- Read the gauge. The bar shows your total against your personal limit, with a marker at 100%. Green means room to spare, amber means you're close, red means you're over.
- Check the sleep timeline (optional). Pick how fast you clear caffeine, then enter the time of your last cup and your bedtime. The chart shows how much is still in you hour by hour, and the stats tell you when you'll drop below a sleep-safe 50 mg.
- Keep it. Copy the numbers, share a link that reopens the calculator with your exact drinks, or download a one-page PDF summary. Everything recalculates live — there's no Calculate button.
Why this caffeine calculator is different
Most caffeine pages do one of two things. This one does both, and personalizes the part that matters:
- Your limit, not a flat 400 mg. The famous "400 mg a day" is a cap for an average-sized adult. The safe amount actually scales with body weight (about 5.7 mg per kilogram), and it's far lower in pregnancy (200 mg) and for teens. This tool builds the limit around you.
- It answers the sleep question too. Knowing your total is half the story; the other half is when it clears. The decay timeline shows how much caffeine is still on board at bedtime — the thing that actually decides whether that 4 p.m. cup costs you sleep.
- It's a drink builder, not a lookup. Tap real servings — a double espresso, a 16 oz cold brew, an energy shot — with numbers a Q Grader keeps consistent across the whole site, instead of guessing one generic "cup."
- It accounts for how you metabolize. Smokers clear caffeine roughly twice as fast; pregnancy and birth control slow it dramatically. A metabolism toggle re-draws the whole timeline.
- It's shareable, printable, and embeddable — with the math cited to EFSA, the FDA, and ACOG below, and a fixture test that runs on every build so the numbers can't quietly drift.
How it works (the math)
Two calculations sit behind the result. The first is your personal daily limit:
adult limit = min(400 mg, 5.7 mg/kg x body_weight_kg) (EFSA habitual / FDA cap)
pregnant = 200 mg (EFSA / ACOG)
teen 12-18 = min(100 mg, 2.5 mg/kg x body_weight_kg) (Health Canada / AAP)
per serving = 3 mg/kg x body_weight_kg (EFSA single dose) The second is how caffeine leaves your body — a first-order (exponential) decay set by its half-life:
caffeine_remaining(t) = total_mg x 0.5 ^ (t / half_life)
sleep-safe in = half_life x log2(total / 50 mg)
effectively cleared = half_life x log2(total / 10 mg) A half-life is the time to clear half of what's in you. The default is about 5 hours for a healthy adult — so 200 mg at noon is ~100 mg by 5 p.m. and ~50 mg by 10 p.m. That's why an afternoon coffee can still be working at bedtime. The half-life stretches to roughly 10 hours in pregnancy or on the birth-control pill, and shortens to around 4 hours for smokers, which is why the tool lets you set it. Limitation: the timeline assumes your whole day's caffeine peaks at your last drink, so it's a sensible upper bound rather than a per-cup pharmacokinetic model.
Three worked examples
Three mugs of drip coffee, average adult
Three 8 oz mugs of brewed coffee is about 285 mg. For a 154 lb adult the personalized limit lands near 399 mg, so you're at roughly 71% — comfortably in the green. But on a 5-hour half-life it takes about 12–13 hours to fall below the 50 mg sleep-safe line, so an all-morning-into-afternoon habit is fine for your daily total and still worth timing around sleep.
Two energy drinks and a coffee, on the lighter side
Two 16 oz energy drinks plus a coffee is around 415 mg. For a 132 lb adult the limit is closer to 342 mg — so this tips into the red at about 121% of the daily limit, and won't clear to sleep-safe for roughly 15 hours. This is exactly the combination the gauge is built to catch.
Pregnant, two cups, watching bedtime
In pregnancy the limit drops to 200 mg regardless of weight, and clearance slows (a ~10-hour half-life). Two cups at ~190 mg sits at about 95% of the limit — right at the edge — and with slow metabolism, roughly 144 mg is still on board four hours later. If you're expecting, our note on how much caffeine is in espresso breaks down where the milligrams actually come from.
Frequently asked questions
How much caffeine is safe per day?
For most healthy adults, up to 400 mg a day — the FDA's guidance — isn't linked to negative effects. But that's a cap for an average adult; the underlying safe amount scales with body weight at roughly 5.7 mg per kilogram per day (EFSA), so a smaller adult's ceiling is lower. In pregnancy the limit drops to 200 mg (ACOG), and adolescents should stay well under that. The calculator above builds the number around your weight and life stage instead of assuming one figure fits everyone.
How long does caffeine stay in your system?
Caffeine has a half-life of about 5 hours in a typical healthy adult, meaning half is gone in 5 hours, three-quarters in 10, and it's effectively cleared (under ~10 mg) after roughly 4–5 half-lives — often 20 to 25 hours for a big dose. The half-life is highly individual: it can double in pregnancy or on the birth-control pill and roughly halve in smokers, which is why the timeline lets you choose.
When should I stop drinking coffee before bed?
A useful rule of thumb is to be under about 50 mg of residual caffeine by the time you sleep. On a 5-hour half-life, a single 95 mg mug takes about 4–5 hours to fall under 50 mg; a 200 mg cold brew takes closer to 10. Research has found that even 400 mg taken 6 hours before bed measurably disrupts sleep — so if you're sensitive, set your bedtime above and let the tool tell you your personal cut-off time. To time a single cup precisely, our caffeine half-life calculator shows the exact clock time that dose falls under the sleep line.
Does espresso have more caffeine than drip coffee?
Per ounce, yes — but per serving, usually no. A single shot of espresso is about 63 mg in one ounce, while an 8 oz mug of drip is about 95 mg, because you drink eight times the volume. A double espresso (~126 mg) does edge past a single mug. The full breakdown is in our guide to how much caffeine is in espresso.
Is caffeine from tea and chocolate counted the same?
Yes — caffeine is caffeine to your body, wherever it comes from. Tea and chocolate simply carry less per serving (black tea ~47 mg, green tea ~28 mg, an ounce of dark chocolate ~24 mg), and tea also contains L-theanine, which changes how the stimulation feels without changing the milligram count. Add them all on the grid above and the total is what matters for your limit and your sleep.
Related tools
- Caffeine Half-Life Calculator — the sleep-timing companion: enter one dose and see the exact clock time it drops below the sleep line, plus a 50%→99% clearance schedule.
- Coffee to Water Ratio Calculator — dial the strength of the cup that's driving your caffeine number.
- Coffee Grind Size Chart — grind is half of extraction, and extraction affects how much caffeine lands in the cup.
- Cold Brew Coffee Ratio Calculator — cold brew is the most caffeinated way to drink coffee by the glass; size the batch here.
- Browse all free coffee tools by Clara →
Gear that helps you manage caffeine
Controlling caffeine is mostly about controlling the dose. Three things make that easier:
- A single-serve maker brews exactly one cup, so there's no half-carafe pulling you toward a fourth. Our best single-serve coffee makers roundup covers the pod and ground options.
- Beans you can dial down. Brewing half-caf, or simply switching to a lighter afternoon cup, keeps your total in the green — see our best coffee beans picks.
- A consistent brewer. When every mug is the same strength, you actually know what it costs you; our best drip coffee makers guide covers the machines that hold their recipe.
Sources & methodology
- EFSA — Scientific Opinion on the Safety of Caffeine (2015) — the 5.7 mg/kg/day habitual and 3 mg/kg single-dose figures, and the 200 mg pregnancy limit.
- FDA — Spilling the Beans: How Much Caffeine Is Too Much — the 400 mg/day cap for healthy adults.
- ACOG — Moderate Caffeine Consumption During Pregnancy — the 200 mg/day guidance in pregnancy.
- Mayo Clinic — Caffeine content for coffee, tea, soda and more — per-serving caffeine amounts for the drink grid.
Elimination is modeled as first-order decay with an adjustable half-life (typical 5 h; ~10 h for pregnancy or oral contraceptives; ~4 h for smokers), consistent with the published range of 1.5–9.5 hours. A fixture test asserts every worked example on every build. Educational estimate only — not medical advice. Reviewed by Clara Bennett, CQI Q Grader. About Clara · Last reviewed July 26, 2026.
Cite this page
Free to cite or link in coursework, handouts, and articles — no permission needed.
Bennett, C. (2026, July 26). Caffeine Intake Calculator. Brew Gazette. https://brewgazette.com/caffeine-calculator/
Bennett, Clara. "Caffeine Intake Calculator." Brew Gazette, 26 July 2026, brewgazette.com/caffeine-calculator.
Bennett, Clara. "Caffeine Intake Calculator." Brew Gazette. Last modified July 26, 2026. https://brewgazette.com/caffeine-calculator/
<a href="https://brewgazette.com/caffeine-calculator/">Caffeine Intake Calculator</a> by Clara Bennett, CQI Q Grader, SCA Roaster — Brew Gazette
Embed this calculator on your site
Free for coffee blogs, wellness sites, nutrition educators, and r/Coffee or r/decaf posts. Required attribution is baked into the snippet — no fee, no account, no analytics attached to the embed.
<iframe
src="https://brewgazette.com/caffeine-calculator/embed/"
width="100%"
height="860"
loading="lazy"
style="border:1px solid #E4D7C7; border-radius:16px; max-width:680px;"
title="Caffeine Intake Calculator (Brew Gazette)">
</iframe>
<p style="font-size:12px;color:#6B5848;margin-top:8px">
Caffeine intake calculator by
<a href="https://brewgazette.com/caffeine-calculator/">Brew Gazette</a>
· Reviewed by Clara Bennett, CQI Q Grader
</p>