← All articles

Caffeine calculator: when does caffeine leave your system?

4 min read

A caffeine calculator estimates how much caffeine is still in your body at any moment — and how long until it’s low enough to let you sleep. It works from one simple idea: caffeine leaves your body on an exponential decay curve, set by its half-life of about five to six hours. Tell it what you drank and when, and it projects that curve forward. The catch is accuracy: a generic calculator uses one average half-life, but yours depends on your body. The more it’s personalized — weight, genetics, smoking, hormones — the closer the estimate. CaffIQ is a caffeine calculator that does exactly this, in real time, tuned to you.

What does a caffeine calculator compute?

It turns “what you drank and when” into a number you can act on. It answers practical questions: How much caffeine is in me right now? How late can I have a coffee and still sleep? Will my morning coffee be out of my system by bedtime?

Some calculators are one-shot web forms — you type a dose, you get an estimate. The most useful ones run continuously through the day, adding up every drink and updating as time passes.

How does the half-life model work? (with an example)

The half-life is the time it takes to clear half of what’s in you — roughly five hours for a typical adult. Every half-life, the amount halves again. Here’s a single 95 mg cup of coffee at 8 a.m., assuming a 5-hour half-life:

TimeCaffeine still in your system
8:00 a.m.95 mg
1:00 p.m.~48 mg
6:00 p.m.~24 mg
11:00 p.m.~12 mg

So even from one morning coffee, about 12 mg is still circulating at bedtime — and that’s before any afternoon cups, which stack their own decay curves on top. A good calculator adds up every drink, each one fading from its own start time, to give you a running total.

Why does personalization change the result?

The whole model hinges on the half-life it uses. Assume five hours for everyone and you get a rough average. But real clearance shifts with body weight, genetics (CYP1A2), smoking (which speeds it up), pregnancy and oral contraception (which slow it down), and some medications.

The difference is not small. Take that same 8 a.m. coffee: a slow metabolizer with a longer half-life could still have around 24 mg at bedtime instead of 12 — twice as much. Personalization is what separates a ballpark guess from a number you can actually trust. It also depends on accurate inputs: the calculator can only be as right as the milligrams you feed it.

Can you calculate caffeine by hand?

Roughly, yes — halve each dose every five hours or so. But in real life you’ve had several drinks at different times, your half-life isn’t exactly the average, and the answer keeps changing as the day goes on. Doing that math in your head, over and over, isn’t realistic. That’s precisely the kind of small, constant calculation a phone is good at.

What can (and can’t) a caffeine calculator tell you?

Used well, a calculator helps you make small, practical decisions before they cost you a night. You can spot your last coffee that still clears in time for sleep, check whether a 4 p.m. espresso will still be active at midnight, decide between a second cup now versus later, or see at a glance why last Tuesday’s late flat white wrecked your sleep. It’s most powerful as a prospective tool — answering “what can I still enjoy today?” rather than logging regret after the fact. That forward-looking angle is the whole point: you keep the coffee you love and simply place it where it won’t tax your night.

What a calculator can’t do is read your experience. It estimates the milligrams in your system, not how sensitive you feel to them — two people with the same 30 mg at bedtime can react very differently, and tolerance, stress, and other factors all play a part. It’s a helpful guide, not a medical device, and it doesn’t replace professional advice for a health condition, pregnancy, or medication. It’s also only as accurate as what you put in: honest milligrams in, useful numbers out.

CaffIQ: a real-time caffeine calculator on your iPhone

CaffIQ logs each drink, applies a pharmacokinetic model personalized to your body — weight, age, sensitivity, and factors like smoking, hormones, and genetics — and shows your live caffeine level plus a personal cutoff time, updated in real time. Instead of guessing, you see exactly how late you can still enjoy your next cup tonight, on a widget or at a glance.

It’s free on iOS — so you keep your coffee and your nights.

CaffIQ provides general estimates, not medical advice. For any health question, consult a qualified professional.

Want this worked out for your body, in real time?

Download on the App Store