Caffeine Calculator
How much caffeine is actually in the cup
| Drink | Caffeine | The honest range |
|---|---|---|
| Brewed coffee, 8 oz | ~95 mg | Roughly 70–140 mg by bean, roast and brew |
| Espresso, 1 shot | ~63 mg | Per ounce it is strong; per drink, less than a mug of filter coffee |
| Black tea, 8 oz | ~47 mg | Steeping time moves it widely |
| Green tea, 8 oz | ~28 mg | Plus L-theanine, which is why it feels calmer |
| Cola, 12 oz | ~34 mg | Less than tea; the sugar is the bigger story |
| Energy drink, 8 oz | ~80 mg | 16 oz cans double it — read the can, not the brand |
The figures are the standard USDA-style reference values, and the range column is the truth the single number hides: two cafés' 'same' coffees can differ by a factor of two. The US Food and Drug Administration's widely cited guidance is that 400 mg a day — about four ordinary cups — is an amount not generally associated with negative effects in healthy adults. That is a population guideline, not a personal clearance: sensitivity varies severalfold between people, and the dose that leaves one person pleasantly alert leaves another anxious and awake at 3 a.m.
The half-life is why the afternoon coffee finds you at midnight
Caffeine leaves the body exponentially: the liver removes about half of what is present every half-life, roughly five hours in a typical healthy adult. Exponential decay has a long tail, and the tail is the story. Two morning coffees are 190 mg; eight hours later, 62.7 mg is still circulating — the equivalent of two-thirds of an espresso shot, at four in the afternoon's distance. Even a single 8 a.m. coffee still has about 11.9 mg aboard at 11 p.m. Whether that matters is personal, but sleep researchers' rule of thumb — no caffeine within eight to ten hours of bed — is just this arithmetic worn as advice. The half-life itself is not fixed: smoking roughly halves it, while pregnancy and some medicines (including oral contraceptives) can stretch it toward ten hours, which is why the calculator lets you choose yours and why the same coffee can be a non-event for one person and a ruined night for another.
Frequently asked questions
How long does caffeine stay in your system?
Longer than the buzz suggests. With a typical half-life of about five hours, half of a dose is still present five hours later, a quarter after ten, and an eighth after fifteen — a 200 mg morning dose is 100 mg at midday, 50 mg in the evening and 25 mg around midnight. Complete clearance takes roughly a day. The range matters as much as the average: half-lives run from about three hours in smokers to nine or more in pregnancy, which is why this calculator lets you pick the half-life that fits you and shows the whole decay table rather than one reassuring number.
Is 400 mg of caffeine a day safe?
That is the figure the US Food and Drug Administration cites as an amount not generally associated with dangerous effects in healthy adults, and the European Food Safety Authority's review lands in the same place: up to 400 mg a day, and up to 200 mg in a single dose, for the general adult population. Treat it as a ceiling for the average person, not a target or a guarantee — both agencies carve out pregnancy (200 mg a day is the usual guidance there), and individual sensitivity varies enormously. If your current intake leaves you jittery, reflux-prone or sleeping badly at 250 mg, your personal ceiling is 250 mg whatever the guideline says.
Does decaf coffee contain caffeine?
Yes — decaffeination removes most of it, not all. A cup of decaf typically carries 2 to 15 mg, against roughly 95 mg in a regular cup, so three evening decafs can quietly total a green tea's worth. For most people that residue is irrelevant; for someone eliminating caffeine entirely — for sleep testing, anxiety management or a medical reason — it is exactly the kind of hidden source that keeps the experiment from working, alongside chocolate (about 30 mg in an ounce of dark), some painkillers and many 'energy' products that list guarana, which is simply caffeine by another name.
Why does coffee stop working for regular drinkers?
Tolerance. Within a week or two of daily use the brain adapts to caffeine's blocking of adenosine receptors by growing more of them, so the same dose produces less alertness — much of the morning coffee's 'boost' in a habitual drinker is actually the relief of overnight withdrawal, which is a less cheerful way to describe the same cup. The decay arithmetic on this page does not change with tolerance; the caffeine is present in the same amounts, you just feel less of it. A reset takes a week or two of abstinence or a serious cutback, and the headaches in the first days are the withdrawal that proves the adaptation was real.
What time should I stop drinking coffee for good sleep?
Work backwards from your bedtime with your own half-life. The research rule of thumb is eight to ten hours, and the arithmetic shows why: a 95 mg coffee at 2 p.m. still has about 24 mg present at midnight on a five-hour half-life, and more if yours is slower. For a midnight bedtime, a last coffee around 2 p.m. is the boundary for an average metaboliser, noon if you know you are sensitive, and earlier still in pregnancy. Use the calculator above with your actual last drink and bedtime gap — enter the hours between them — and the number it shows is the amount you will be trying to sleep on.
Related tools
Reference values and decay figures last verified: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.