How long does caffeine really last? Half-life, sleep quality, and the last cup of the day
You have an espresso at 3 pm, feel fine in the evening, and then wonder why you're staring at the ceiling at 2 am. Pharmacokinetics are to blame: caffeine has a surprisingly long half-life, and most people underestimate how much of it is still in their bloodstream by bedtime.
What does half-life mean?
The half-life of a substance is the time after which exactly half of the original active dose has been broken down by the body. For caffeine in a healthy adult, it ranges from 4 to 6 hours — studies often cite 5 hours as the average. So after 5 hours, half of your coffee is still active; after 10 hours, a quarter; after 15 hours, an eighth.
Concretely: if you have a cup with 100 mg of caffeine at 3 pm, you still have 50 mg in your blood at 8 pm — roughly half a cup. By midnight, 25 mg remain, comparable to a sizable cola. That's enough to measurably degrade sleep architecture, even if you subjectively fall asleep without trouble.
How caffeine works in the body
Caffeine doesn't make you alert directly — it blocks your sleep pressure. Throughout the day your brain accumulates adenosine; the more of it binds to A1 and A2A receptors, the more tired you feel. Caffeine fits almost perfectly into the same receptors, binds without activating them, and so blocks the tiredness signal.
The catch: adenosine doesn't disappear, it keeps accumulating. When caffeine's effect fades, a flood of adenosine molecules suddenly hits the freed receptors all at once — hence the infamous afternoon slump after a lunch coffee. You haven't removed the tiredness, you've postponed it.
Why the half-life varies so much between people
The 5-hour rule of thumb is an average, not a law of nature. Factors that can shift the half-life significantly:
- Genetics: variants of the enzyme CYP1A2 determine how fast the liver breaks down caffeine — fast metabolizers need 2 to 3 hours, slow ones over 8.
- Pregnancy: during the third trimester, the half-life can rise to as much as 15 hours. This is why midwives usually recommend a maximum of 200 mg per day.
- Smoking: induces CYP1A2 and therefore shortens the half-life. Smokers metabolize caffeine faster — and notice it immediately when they quit.
- Medications: hormonal contraception, some antibiotics, and SSRIs can extend the half-life considerably, often without anyone mentioning it.
What caffeine really does to your sleep
A widely cited study by Drake et al. (2013) gave participants 400 mg of caffeine right before bed, 3 hours before, and 6 hours before. Even the 6-hour group lost more than an hour of total sleep compared to placebo — with no subjective change in sleep quality. In other words: you don't notice it, but your recovery suffers anyway.
Slow-wave sleep, which is responsible for physical recovery, is especially affected. Caffeine also shortens REM phases, where the brain consolidates learning. So if you still drink espresso in the evening, you'll fall asleep eventually, but less restoratively — and you'll probably blame the smartphone or stress instead.
Practical rule of thumb: when to stop drinking coffee
A rough rule: take your planned bedtime and subtract 8 to 10 hours — no caffeinated drink after that. Going to bed at 11 pm? Last coffee by 2 pm (better, 1 pm). Fast metabolizers can move closer to the 6-hour mark; slow metabolizers need 10 to 12 hours of buffer.
Don't forget: caffeine is also in green and black tea (30–70 mg per cup), cola (30–50 mg), maté, energy drinks (often 80–160 mg), and even dark chocolate (about 20 mg per 50 g). If you struggle with sleep and already drink your coffee in the morning, try logging everything else caffeinated for a week.
How I recalibrated my own caffeine intake
I was for years the person who believed the 'I tolerate caffeine well' fable. Three espressos a day, the last one at 5 pm before training — I'd fall asleep eventually, so it must be fine, I thought. Until I ran a two-week test in 2024 where I only drank caffeine before noon. The morning of day 14 felt like somebody else woke up: no leaden first hour, no urgency for the 'first cup', noticeably less irritability around 10 am. I'd thought I had 'normal' sleep — what I actually had, for years, was a mildly degraded one.
What the test showed me: 'I don't notice anything' is exactly the symptom. Caffeine doesn't just block tiredness — it blocks your perception of being tired. Anyone who has never tried a week without afternoon caffeine has no honest comparison baseline. That's also scientifically well documented: participants in the Drake study rated their sleep after 400 mg of caffeine as 'unchanged', while polysomnography showed over an hour of lost sleep time.
Since then I drink two espressos per day, both before 11 am. When I hit an afternoon slump, I take a 20-minute walk or have a peppermint infusion. What I'll admit: the first three days were rough — headache from 4 pm onward, a sense that somebody had pulled my batteries. By day four it was gone, by day seven I felt clearer and more rested than I had in years. The mini-withdrawal was worth it.
How much caffeine is actually in what?
Most people underestimate how unevenly caffeine is spread across everyday drinks. A cup of 'tea' can contain more or less caffeine than an espresso depending on type and steeping time. Here is a rough overview of typical values — not milligram-exact, but good enough for mental accounting:
- Espresso (30 ml): 60–80 mg. A double espresso 120–160 mg. The concentration is high, the total amount moderate — espresso isn't the heavy hitter it looks like.
- Filter coffee (250 ml): 80–120 mg. The underrated champion — a large mug with lunch is by volume not far from a double espresso.
- Black tea (250 ml): 40–70 mg depending on steeping time. Longer steeping isn't stronger, just more bitter — caffeine extraction is largely done after 3 minutes.
- Green tea (250 ml): 25–40 mg. Sencha and Gyokuro sit at the upper end, Bancha and Hojicha at the lower. Matcha is a special case: 60–80 mg per bowl.
- Energy drink (250 ml): 80 mg is standard, but 'extra strong' versions reach 160 mg in the same volume. Two cans and you're past the EFSA daily limit.
- Cola (330 ml): 35 mg classic, 50 mg in some 'Zero' variants. Cola feels harmless, but is one reason why family dinner routines with 'one Coke on pizza night' measurably worsen children's sleep.
- Dark chocolate (50 g, 70% cocoa): 20–25 mg. Sounds small, but 100 g in the evening = 50 mg, plus theobromine, which is similarly stimulating.
- Yerba mate (250 ml): 50–80 mg per infusion. A calabash is often infused several times — by the end of an afternoon you've quietly consumed 150–200 mg.
Honestly counted: a day with 'just' a morning filter coffee, a mate infusion at lunch, a black tea in the afternoon and 80 g of dark chocolate after dinner lands at around 240 mg — and half of that came after 6 pm. For many people that is exactly the unnoticed source of their sleep problems.
When the caffeine plan breaks in practice
The 'no caffeine after 2 pm' rule is solid — and guaranteed to collapse three times a year. Classic triggers: a late-afternoon business meal with espresso afterwards, meeting friends at a café at 4 pm, a long drive where you have to 'stay awake', a concert or play that runs late. Exactly in those moments you notice how deeply caffeine is embedded in social rituals.
What sensibly works: have a Plan B before the meeting starts. At café meet-ups I order a decaf cappuccino or a herbal tea — both are now standard, nobody says 'oh, you too?'. At business dinners 'I'll stick with water, long day' is enough. On long drives, a short break with movement is much more effective than a third espresso — it kicks in after 30 minutes, lasts 90, and costs you your night.
When you do break it: no escalation. One late cup once a month doesn't undo years of discipline. What truly wrecks sleep is the chronic version — espresso every afternoon, not espresso once a quarter. Anyone who marks a bad sleep day with 'back to baseline tomorrow morning', rather than throwing out the whole plan, gets much further long term.
My concrete caffeine routine (June 2026)
Just as an example, because something concrete beats theory — what my routine looks like in 2026:
- 07:30 first espresso — right after waking, sometimes with a glass of water beforehand. About 70 mg.
- 10:00 second espresso — the actual work booster, before the first deep-work block. Another 70 mg.
- 12:30 green tea — with lunch, mostly for the taste. Maximum 30 mg.
- 15:30 walk — when the slump hits. Twenty minutes of movement beat any third espresso, and the daylight stabilises the sleep rhythm.
- 21:00 herbal tea — camomile, peppermint, or rooibos. Zero caffeine, just the ritual of holding something warm.
Daily total: about 170 mg of caffeine, all before 1 pm. With a half-life of 5 hours that means: at 11 pm (bedtime) about 11 mg are still in the bloodstream — negligible. Deep-sleep proportions in the first half of the night have measurably risen since, per Garmin data — no huge jump, but consistent.
Frequently asked questions
Does decaf coffee help?
Yes, but not as much as you'd think. Depending on the process, decaf still contains 2 to 15 mg of caffeine per cup — three evening cups quickly add up to 30 to 45 mg. For highly sensitive people, that can already be enough to delay sleep onset.
Is caffeine actually addictive?
A real physical tolerance and mild dependence does develop. Regular coffee drinkers who suddenly stop typically get headaches, irritability, and tiredness 12 to 24 hours later — lasting 2 to 9 days. Clinically, caffeine appears in DSM-5 as a substance-related disorder, but it's far less problematic than nicotine or alcohol.
How much caffeine per day is OK?
The EFSA considers up to 400 mg per day safe for healthy adults, and 200 mg at once. Pregnant people should stay under 200 mg per day. 400 mg is about four cups of filter coffee, three double espressos, or one decent energy drink — surprisingly little once you start counting honestly.
Cold turkey or gradual reduction — what works better?
Gradual reduction works better for most people because the headache stays milder. Anyone drinking 4 cups a day wanting to cut to 1 should take about two weeks (4 → 3 → 2 → 1). Anyone going cold turkey should start on a quiet weekend — the peak of headaches usually comes 24–48 hours in, and tapers off afterwards.
Does caffeine affect younger people differently?
In teenagers under 18, caffeine lasts longer (half-life often 6–8 hours instead of 5), and the developing brain reacts more sensitively to sleep-architecture disruption. Most health authorities recommend a maximum of 100 mg per day for under-18s — already a large mug of filter coffee. For children under 12 caffeine should practically be avoided.
How accurate is the CalcSI caffeine calculator?
Our calculator uses a standard 5-hour half-life and an exponential decay model. That's a good approximation for about 70 % of the population. Fast metabolisers (CYP1A2 'fast' variant) clear caffeine in 3–4 hours; slow metabolisers in 6–8 hours. Anyone with chronic sleep issues despite a clean calculator balance should consider a CYP1A2 gene test — via 23andMe or a clinical lab.
Comments
Comments are powered by Disqus. Before they load, we need your consent — Disqus is a third-party service and sets its own cookies.