Caffeine Half-Life: Why Your 3PM Coffee Is Still In You at Midnight

Caffeine has a ~5-hour half-life, so a quarter of that afternoon cup is circulating at bedtime. The decay math, the adenosine mechanism, and the cutoff that fixes sleep.
Caffeine Half-Life: Why Your 3PM Coffee Is Still In You at Midnight

You drink a 200 mg coffee at 3pm and fall asleep fine at 11pm — no problem, right? The chemistry disagrees. Caffeine's half-life averages about 5 hours, so at 11pm roughly 60 mg is still circulating: about two-thirds of an espresso, quietly holding your brain's sleep signal at arm's length all night. You'll sleep — just worse, in ways you'll blame on something else tomorrow.

Half-Life: The Decay Curve in One Table

Half-life is the time for half a substance to be eliminated. It's exponential decay — the mirror image of the doubling described in our exponential growth guide. Starting from 200 mg at 8am:

TimeHours elapsedCaffeine remaining
8:00 am0200 mg
1:00 pm5100 mg
6:00 pm1050 mg
11:00 pm1525 mg
4:00 am2012.5 mg

The formula is simply remaining = dose × (1/2)^(hours ÷ 5). Two consequences fall straight out. First, caffeine stacks: same coffee every morning and you never fully clear yesterday's before adding today's, settling at a persistent baseline. Second, the tail is long — full elimination takes about 5 half-lives, i.e. a day. (Run the powers yourself on the Scientific Calculator.)

What It's Actually Doing Up There

Caffeine doesn't create energy — it hides fatigue. All day, a molecule called adenosine accumulates in your brain as a byproduct of cellular activity; docking into its receptors is what "sleepy" feels like. Caffeine is shaped enough like adenosine to occupy those receptors without activating them: the pressure is still building, you just stop receiving the memo. Which explains two familiar experiences — the crash, when caffeine clears and a queue of adenosine floods the now-empty receptors at once, and tolerance, as your brain grows extra receptors to be heard over the noise, so the old dose stops working while withdrawal headaches appear without it.

Your Personal Half-Life Varies — A Lot

FactorEffect on half-life
CYP1A2 gene variant"Fast" metabolizers ~2–4 h; "slow" ~8+ h — the reason your friend sleeps after espresso and you don't
PregnancyRises dramatically, up to ~15 h in the third trimester (hence the ~200 mg/day guidance — see our pregnancy guide)
Oral contraceptivesRoughly doubles half-life
SmokingCuts it nearly in half (quitting can cause accidental over-caffeination)
Liver conditions, some medicationsCan extend it substantially

How Much Is In What

  • Brewed coffee (240 ml): 95–165 mg — varies more by brew method than people assume
  • Espresso shot: 60–75 mg (less than a mug of drip, despite the reputation)
  • Energy drink (250–500 ml): 80–160 mg
  • Black tea: 40–70 mg · Green tea: 25–45 mg · Cola: 30–40 mg
  • Dark chocolate (50 g): ~25 mg
  • Decaf coffee: 2–7 mg — small, but not zero

Healthy adults: up to 400 mg/day is generally considered safe; pregnancy guidance is ~200 mg. Above ~600 mg most people meet jitters, elevated heart rate and anxiety; genuine toxicity requires very large doses, but concentrated caffeine powders have caused deaths and deserve real caution.

The Practical Rules That Come Out of the Math

  1. Set a cutoff 8–10 hours before bed. Sleeping at 11pm? Last cup by 1–2pm. This single change is the most reliable sleep upgrade available to a coffee drinker — and studies find caffeine reduces deep slow-wave sleep even when it doesn't delay sleep onset. You don't notice it; your recovery does.
  2. Delay the first cup 60–90 minutes after waking. Morning cortisol is already doing the job, and letting overnight adenosine clear first blunts the mid-morning crash.
  3. The 20-minute "coffee nap" is real: caffeine takes ~20–45 minutes to peak, so drinking then immediately napping lets sleep clear adenosine while the caffeine arrives to an empty field.
  4. Reset tolerance periodically — 1–2 weeks off restores sensitivity. Taper 25% every few days to dodge the withdrawal headache (peaks 24–48 h; gone within a week).
  5. Watch the calories, not just the caffeine: a large flavored latte can run 300–400 kcal — a meaningful slice of the daily budget in the Calorie Calculator, and quietly relevant if you're following an eating window (fasting guide). Black coffee is ~5 kcal and breaks nothing.

One Ordinary Day, Added Up: Elena's Bedtime Total

Elena works in an office, goes to bed at 11pm, and would tell you she "doesn't really drink that much coffee." Here is her Tuesday, with every source run through remaining = dose × (1/2)^(hours ÷ 5):

TimeSourceDoseHours to 11pmStill present at 11pm
7:30 amMug of drip coffee120 mg15.514 mg
10:00 amDouble espresso140 mg13.023 mg
1:30 pm500 ml energy drink160 mg9.543 mg
4:00 pmBlack tea55 mg7.021 mg
8:30 pm50 g dark chocolate25 mg2.518 mg
Totals500 mg—≈ 119 mg

Four things the decay curve exposes that a cup count never would:

  • She lies down with a full mug of coffee still on board. 119 mg at 11pm is roughly a fresh 240 ml brew, arriving at exactly the moment her brain is trying to read the adenosine meter.
  • Recency beats size, decisively. The 25 mg square of chocolate at 8:30pm leaves 18 mg at bedtime; the 120 mg breakfast coffee leaves 14 mg. A dose one-fifth the size contributes more, purely because it is late.
  • The energy drink is a third of the problem by itself. At 43 mg it is the largest single bedtime contributor, because it is both big and after lunch — the two multipliers that stack.
  • Her total intake is over the guideline. 500 mg exceeds the 400 mg generally considered safe for healthy adults, and she would honestly describe the day as "two coffees, a drink and a tea."

Here is the fix that costs her nothing: keep all 500 mg, but finish the last of it by 1pm. The bedtime load drops to about 76 mg — a 36% reduction with not one drop of coffee sacrificed. And here is the variation that reframes the whole article. If Elena happens to carry the slow CYP1A2 variant and clears caffeine with an 8-hour half-life rather than 5, that same unchanged Tuesday leaves her with roughly 197 mg at bedtime — a strong coffee's worth, at 11pm, from a day she considers moderate. Two people, identical drinks, one sleeps. Recalculate your own totals on the Scientific Calculator; the exponent does not negotiate.

Common Mistakes People Make With Caffeine

  1. Counting cups instead of milligrams. Brewed coffee runs 95–165 mg per 240 ml, and a large café cup can carry 250–300 mg on its own. "Two coffees" is anywhere from 190 mg to over 500 mg depending entirely on vessel and brew, which makes the cup a useless unit for anyone trying to stay under 400.
  2. Ignoring the small late sources. Chocolate, iced tea, cola and even decaf at 2–7 mg per cup all land on the ledger, and the decay math weights them heavily for arriving late. An evening square of dark chocolate can matter more at bedtime than the coffee you had before work.
  3. Answering the crash with more caffeine. The 3pm slump is queued adenosine flooding receptors as the morning dose clears; another 150 mg hides it again and pushes your cutoff four hours later, which costs sleep depth, which produces a bigger slump tomorrow. Caffeine covers the meter, it does not reset the debt — the only thing that clears adenosine is sleep.
  4. Stacking a pre-workout on top of the day. A single scoop commonly carries 150–300 mg, so a 6pm session added to a normal coffee day can push intake past 600 mg and leave 100 mg or more at bedtime. It also inflates heart rate during the session, which quietly distorts the zones described in our heart rate training guide.
  5. Quitting all at once and blaming the flu. Withdrawal headache peaks at 24–48 hours and can come with fatigue, irritability and poor concentration for up to a week. Cutting roughly 25% every few days makes the taper nearly symptom-free, and one to two weeks off is usually enough to restore sensitivity.
  6. Assuming your half-life is fixed. Starting oral contraceptives roughly doubles it, pregnancy can stretch it toward 15 hours in the third trimester, and quitting smoking slows clearance sharply — which is why newly ex-smokers often feel over-caffeinated on their usual order. If you take regular medication or have a liver condition, the interaction is a question for your doctor rather than a calculation.

The Bottom Line

Caffeine works by masking fatigue, not removing it, and it leaves on an exponential schedule: half gone in 5 hours, a quarter still present at 10, a tail into the small hours. Match the timing to that curve — cutoff by early afternoon, first cup delayed, occasional tolerance reset — and you get the alertness without mortgaging the night. Do the decay math anytime on the Scientific Calculator, and let 3pm coffee be the deliberate choice it should be.

Frequently Asked Questions

The average half-life is about 5 hours, so a 200 mg coffee leaves roughly 100 mg after 5 hours, 50 mg after 10 and 25 mg after 15. Practically complete elimination takes about five half-lives, or roughly a full day. Individual half-lives range from about 2 hours in fast metabolisers to 8 hours or more in slow ones.

A cutoff 8 to 10 hours before bed is the usual recommendation, so an 11pm bedtime means finishing caffeine by around 1pm to 3pm. The reason is arithmetic rather than caution: a 200 mg cup at 3pm still leaves about 60 mg circulating at 11pm. Shifting the same total intake earlier can cut your bedtime caffeine level by a third without drinking any less.

Up to 400 mg a day is generally considered safe for healthy adults, and around 200 mg is the common guidance during pregnancy. Above roughly 600 mg most people encounter jitters, elevated heart rate and anxiety. Concentrated caffeine powders are a genuine hazard and have caused deaths, so they warrant real caution rather than casual measurement.

Mostly genetics. Variants of the CYP1A2 gene split people into fast metabolisers, who clear caffeine with a half-life near 2 to 4 hours, and slow metabolisers at 8 hours or more. Oral contraceptives roughly double the half-life, smoking nearly halves it, and pregnancy can extend it toward 15 hours. The same espresso can therefore be trivial for one person and sleep-wrecking for another.

No, it masks tiredness. Adenosine builds up in the brain through the day and docking into its receptors is what sleepiness feels like; caffeine occupies those receptors without activating them, so the pressure keeps accumulating while you stop noticing it. That is why the crash arrives when caffeine clears and a backlog of adenosine reaches the receptors at once.

Withdrawal headache typically peaks 24 to 48 hours after the last dose and can be accompanied by fatigue, irritability and poor concentration, usually resolving within a week. Reducing intake by about 25% every few days makes the process far more comfortable than stopping abruptly. One to two weeks off is generally enough to restore sensitivity, so the old dose works again.

Written by

Calculator research and content

The QuickCalcify editorial team researches, writes and maintains the guides and calculators on this site. Every formula we publish is checked against its published source and worked through with real numbers before it goes live, and we correct errors as soon as readers report them. We are not licensed financial advisors or medical professionals, and our articles are educational rather than personal advice.

0 Comments

No comments yet — be the first to share your thoughts.

Leave a comment

Your email is never published. Comments are reviewed by a human before they appear.