How long does caffeine stay in your system?
You finished your coffee hours ago and feel completely normal — so it’s gone, right? Not quite. Caffeine often lingers far longer than its effects, and understanding why is the key to drinking it on your terms.
How long do the effects of caffeine last?
Two different durations hide behind that question, and mixing them up is exactly what ruins nights.
- The felt duration — the lift usually runs three to five hours, strongest near the peak (30 to 60 minutes after the cup) and fading after.
- The actual duration in your body — much longer. Hours more pass before the caffeine has genuinely left your blood.
That gap is the whole point: by the time you feel nothing, a good share of your cup is still circulating. A 4 p.m. coffee you’d forgotten about by 8 p.m. can still sit on your ability to fall asleep. If what you want is how fast it arrives, that’s the other end of the curve: how long caffeine takes to kick in.
What “half-life” actually means
A substance’s half-life is the time your body takes to clear half of it. For caffeine, that’s commonly cited around five hours, but research puts the real range anywhere from about two to ten hours depending on the person (Stanford and others).
Say you have 100 mg of caffeine at 8 a.m. with a five-hour half-life:
- 1 p.m. — about 50 mg left
- 6 p.m. — about 25 mg left
- 11 p.m. — about 12 mg left
That last cup isn’t really “gone” at bedtime — a measurable amount is still circulating.
When is caffeine completely out of your system?
Half-lives stack, and each one halves what’s left. After five of them roughly 97% is gone, which is the point where pharmacology stops counting.
At an average five-hour half-life, that’s about 25 hours — a full day. At the slow end of the range, closer to two days. Your Monday morning coffee is only genuinely gone on Tuesday morning.
That sounds alarming and isn’t. What matters is not whether caffeine is present but whether enough is present to do something, and the curve falls fastest early. The practical question is where you are on it at bedtime, not whether you have hit zero.
Does the drink change how long it lasts?
Not the duration — the dose. Your half-life is a property of you, not of the cup. An espresso and a large energy drink clear at exactly the same rate.
What changes is where the curve starts, and therefore how long until you drop under any given level:
- A 63 mg espresso at 4 p.m. is down to roughly 16 mg by midnight.
- A 160 mg energy drink at the same hour still leaves around 40 mg — about two and a half times as much, from one drink instead of one shot.
Same clearance, very different bedtime. Which is why “just one” means little on its own, and why the caffeine per drink chart is more useful than counting cups.
Can you flush caffeine out faster?
Essentially, no — and this is the most persistent myth on the topic.
Water, food, a cold shower, a walk, a nap: all of them change how you feel, none of them change how fast your liver works. Clearance runs almost entirely through a single liver enzyme, CYP1A2, and its speed is set by your genetics and a handful of durable factors — not by anything you can do in the next hour.
Exercise is the one people are most sure about, and the evidence does not support it. You will feel more alert; the caffeine is on the same schedule it was before.
The things that genuinely move your clearance move it over weeks or months, not minutes: smoking, pregnancy, oral contraception, some medications. The only lever available tonight is the one you had this afternoon — the timing of the cup.
What makes your number different
Caffeine clearance varies enormously — by some estimates up to fortyfold between individuals. The main factors:
- Genetics — variations in liver enzymes change how fast you metabolize caffeine.
- Smoking — speeds clearance up, roughly doubling it.
- Pregnancy — slows it down, and increasingly so as pregnancy progresses; by the third trimester the half-life can be several times longer than usual.
- Oral contraception — oestrogen slows the same enzyme, and can roughly double the half-life.
- Age, liver health, and some medications — all play a role.
This is exactly why generic advice falls short: your half-life is yours.
When does it stop touching your sleep?
There is no official milligram threshold below which caffeine is harmless to sleep, and anyone quoting one is rounding. What the research gives you instead is a useful anchor: in one frequently cited study, 400 mg taken six hours before bed still measurably reduced sleep (Drake et al., 2013).
Six hours, not one or two. And that was a measurable effect in people who did not necessarily notice one — which is the recurring theme of this whole page.
The workable version: count back from your target bedtime, treat six hours as a starting line rather than a rule, and slide it earlier if you sleep lightly or wake at 3 a.m. When to stop drinking coffee before bed works through it properly.
Why “I feel fine” is misleading
Tolerance can mask the buzz long before caffeine has left your bloodstream. You can feel alert and steady while there’s still enough on board to quietly delay your sleep — which is why timing, not just total amount, matters. (More on that in when to stop drinking coffee before bed.)
See your own curve
Instead of averages, CaffIQ estimates a personalized half-life from your profile and shows your caffeine rising and falling in real time — so you know what’s actually in your system right now.
CaffIQ provides general estimates, not medical advice. For any health question, consult a qualified professional.
Want this worked out for your body, in real time?
Download on the App Store