Caffeine Half-Life: Why Your 3 PM Coffee Hits at Midnight
Caffeine's five-hour half-life means a mid-afternoon brew can still be circulating at midnight. Here's what the science says — and how to fix your cutoff time.
Caffeine's average half-life is about five hours, so a 200 mg coffee at 3 pm leaves roughly 100 mg in your blood at 8 pm and about 50 mg at 1 am. Controlled trials show caffeine taken even six hours before bed cuts objectively measured sleep by more than an hour. For most people, a caffeine cutoff 8-10 hours before bedtime is the practical fix.
The five-hour clock behind your afternoon coffee
Drink a 200 mg coffee at 3 pm and roughly 100 mg is still in your bloodstream at 8 pm. By 1 am, about 50 mg remains — and controlled trials show that caffeine taken six hours before bed measurably reduces sleep. That is not a metaphor; it is arithmetic based on caffeine's average elimination half-life of about five hours, and it explains a pattern millions of people misdiagnose as "bad sleep genetics" or stress.
The stakes are concrete. In a trial published in the Journal of Clinical Sleep Medicine, 400 mg of caffeine taken six hours before bedtime reduced total sleep time by more than one hour as measured by polysomnography — yet participants did not subjectively notice the difference. You can lose sleep to caffeine and never feel it happening.
What the numbers say
Pharmacology references maintained through the National Institutes of Health put caffeine's half-life at roughly five hours in healthy adults, with a wide individual range of about 1.5 to 9.5 hours. The US Food and Drug Administration cites a similar 4-6 hour window and advises that up to 400 mg per day — about four or five 8-ounce cups of brewed coffee — is not generally associated with dangerous effects in healthy adults.
The mechanism is well mapped. Caffeine is an adenosine receptor antagonist: it blocks the A1 and A2A receptors that adenosine — the molecule that builds "sleep pressure" across your waking hours — uses to signal tiredness. Critically, caffeine does not remove adenosine. It masks it. When the drug is cleared, accumulated adenosine floods those receptors, one reason heavy afternoon drinkers report an evening crash and groggy mornings.
Timing interacts with dose. In the 2013 trial by Drake and colleagues, 400 mg taken at bedtime, three hours before bed, or six hours before bed each significantly reduced total sleep time; even the six-hour dose cut sleep by over an hour. Subjective ratings told a different story: participants given caffeine six hours out believed they slept the same. Objective measurement disagreed.
Why this matters to you
If your bedtime is 11 pm, a 3 pm coffee is only eight hours out — leaving roughly a third of the original dose active at lights-out, and more for slow metabolizers. The practical consequence is not always obvious insomnia. It is often subtler: lighter sleep, more awakenings, less restorative depth, and a morning that feels like it needs another coffee. That next cup restarts the cycle.
There is also a hidden-dose problem. Caffeine is not only coffee. Common sources beyond your mug include:
- Black tea: roughly 40-50 mg per cup
- Cola: roughly 30-35 mg per 12-ounce can
- Dark chocolate (70-85% cacao): about 80 mg per 100 g
- Energy drinks: 80-160 mg per can; some pre-workout powders reach 300 mg
- Certain over-the-counter pain relievers: about 65 mg per tablet
People who "only had one coffee" often double their real intake without realizing it.
The honest counterpoint
Some sleep researchers argue the timing panic is overstated. The Drake trial used 400 mg — a large dose, closer to four cups than one — and individual metabolism varies enormously, driven partly by the CYP1A2 liver enzyme and its genetic variants. Fast metabolizers clear caffeine in three to four hours, and some regular drinkers report no measurable harm from an evening espresso. Habitual use also builds partial tolerance.
That objection has merit, but it does not rescue the midnight latte. Tolerance blunts subjective jitters more reliably than it protects sleep architecture, and the six-hour finding above was objectively measured, not self-reported. The fair reading of the evidence is this: timing is not everything, but it is the cheapest, most controllable lever most people have. In our editorial view, the right move is not a universal rule but a personal experiment — which is what the next section gives you.
Finding your cutoff: a beginner protocol
1. Do the half-life math for your bedtime
Work backwards. If you sleep at 11 pm and want caffeine mostly cleared, stop 8-10 hours before bed — around 1-3 pm for most schedules. Sensitive metabolizers or poor sleepers should start with the longer window and expand only if sleep holds steady.
2. Audit your total intake
For one week, log every source: coffee, tea, cola, energy drinks, chocolate, supplements, medications. Compare your total against the 400 mg daily ceiling. Most people underestimate by 50-100 mg.
3. Taper, don't quit abruptly
Dropping from 300 mg to zero overnight invites withdrawal headaches and fatigue for one to two days, because adenosine receptors have adapted to regular blocking. Reduce by roughly 25% every few days, or swap one cup for decaf — which still contains 2-7 mg per cup but rarely enough to affect sleep.
4. Test and adjust
Hold your new cutoff for two weeks. If sleep improves, you have your answer. If nothing changes and you are a fast metabolizer, a slightly later cutoff may be tolerable — the data allows for that.
When the math changes
Several conditions stretch the five-hour figure. In late pregnancy, half-life can extend to roughly 15 hours, which is why health agencies across the US, UK, Canada and Australia advise pregnant women to cap intake — 200 mg per day under NHS guidance. Oral contraceptives can roughly double the half-life. Smoking does the opposite, roughly halving it. Liver disease slows clearance substantially. If any of these apply to you, the standard cutoffs above are too generous.
One final clarification: caffeine never reaches zero. Half of a remainder is always a remainder. The goal is not elimination but getting below the threshold where your sleep measurably suffers — and for most people, that threshold arrives far closer to lunchtime than to 3 pm.
FAQ
How long does caffeine stay in your system?
Caffeine's half-life averages about five hours, so half of any dose remains after that time; most of it clears within roughly 24 hours, though trace amounts can linger longer.
What time should I stop drinking coffee?
A practical starting point is 8-10 hours before bedtime — early afternoon for most people — then adjust based on how your sleep responds over two weeks.
Does decaf coffee affect sleep?
Decaf contains only about 2-7 mg of caffeine per cup, far below doses shown to disrupt sleep, so it is generally fine in the evening.
Fontes / Sources

Especialista em Tecnologia e IA com 12 anos de experiência criando e gerindo empresas. Criador de fintechs e plataformas digitais que unem tecnologia, dados e inteligência artificial para gerar valor real.