Caffeine Calculator

That 3pm coffee is still with you at midnight. Here is exactly how much of it.

Runs in your browser Free, no sign-up Updated 2026-08-21

Your details

Please enter a valid value.

Please enter a valid value.

Please enter a valid value.

h

Please enter a valid value.

Fill in the form to see your result.

Half-life is why the afternoon coffee matters

Exponential decayremaining = dose × 0.5(hours ÷ half-life) Average adult half-life ≈ 5 hours

A five-hour half-life means that five hours after a 200 mg coffee you still have 100 mg on board — a full cup's worth. After ten hours, 50 mg. After fifteen, 25 mg. Caffeine does not switch off; it fades.

This is why a 3pm coffee is a sleep problem even for people who insist it is not. At 11pm you still have around a quarter of it circulating, and research consistently shows caffeine reduces slow-wave sleep even when it does not stop you falling asleep. You sleep, but worse — and you do not notice, which is precisely the trap.

Your half-life is not everybody's

Five hours is an average that hides enormous variation. Caffeine is metabolised mainly by the liver enzyme CYP1A2, and both genetics and circumstance change how fast it works:

  • Smoking roughly halves the half-life — which is why people often feel over-caffeinated after quitting.
  • Pregnancy can extend it to 15 hours or more in the third trimester.
  • Oral contraceptives can roughly double it.
  • Genetics. "Fast metabolisers" clear caffeine in 2–3 hours; slow metabolisers can take 8–10.
  • Liver conditions and some medications, including certain antibiotics, slow clearance substantially.

If coffee at noon keeps you awake, you are probably a slow metaboliser. Set the half-life field to 8 and the picture will make a lot more sense.

How much is too much

The FDA and EFSA both put the general adult limit at around 400 mg a day — about four filter coffees. Pregnancy guidance is 200 mg. Adolescents are usually advised to stay under 100 mg.

Caffeine in common drinks
DrinkServingCaffeine
Filter coffee240 ml95 mg
Espressosingle shot63 mg
Instant coffee240 ml62 mg
Black tea240 ml47 mg
Green tea240 ml28 mg
Energy drink250 ml80 mg
Cola355 ml34 mg
Decaf coffee240 ml2–5 mg

Tolerance to the alerting effect builds within days, but tolerance to the sleep disruption is much weaker — so regular drinkers often feel no buzz while still sleeping badly. A practical rule: nothing caffeinated within eight hours of bed.

Frequently asked questions

Does caffeine actually give me energy?

Not directly. It blocks adenosine, the molecule that builds up through the day and makes you feel sleepy. The adenosine keeps accumulating while it is blocked, which is why the tiredness arrives all at once when the caffeine wears off. It postpones fatigue rather than creating energy.

What are the symptoms of too much caffeine?

Jitteriness, a racing heart, anxiety, upset stomach, headache and trouble sleeping. Above roughly 600 mg in a day these become common; much higher doses can cause heart rhythm disturbances. Powdered caffeine is genuinely dangerous because a teaspoon can hold a lethal dose.

How long does caffeine stay in your system?

The half-life averages about five hours, so half remains after five hours and a quarter after ten. Full clearance takes roughly 24 hours, though the amount left is negligible well before that.

When should I stop drinking coffee before bed?

At least eight hours before, and ten if you are sensitive. Enter your bedtime above and the calculator shows exactly when your last dose should be to fall below 50 mg.

How much caffeine is safe per day?

Around 400 mg for most healthy adults, roughly four cups of filter coffee. Pregnancy guidance is 200 mg, and adolescents are generally advised to stay under 100 mg.

Why does caffeine affect some people more than others?

Mainly genetics affecting the liver enzyme CYP1A2. Fast metabolisers clear caffeine in two to three hours, slow metabolisers in eight to ten. Smoking, pregnancy and some medications shift it further.

Does caffeine still disturb sleep if I fall asleep fine?

Yes. Studies show caffeine reduces slow-wave (deep) sleep even when sleep onset appears normal. You sleep, but less restoratively — and usually without noticing.