How Long Does Caffeine Last? Peak, Half-Life & Sleep (2026)
Quick Answer: Caffeine kicks in within 15–45 minutes, peaks around 30–60 minutes, and has a half-life of about 5–6 hours for most adults — meaning half of it is still in your system 5–6 hours after your last cup. Full clearance takes roughly 10 or more hours. That’s why an afternoon coffee can still affect sleep. Your exact timing depends on genetics, tolerance, pregnancy, medications, and liver function.
I used to swear that afternoon coffee didn’t affect my sleep — until I actually paid attention. On the days I had a 3 p.m. cup, I’d lie awake at 11 wondering why my brain wouldn’t shut off. It wasn’t a coincidence. Caffeine sticks around a lot longer than the “buzz” you feel, and once I understood the timeline, I finally fixed my sleep by moving my last coffee earlier.
So let’s break down exactly how long caffeine lasts in your body — when it hits, when it peaks, when it fades, and why it lingers longer than most people realize. Understanding the timeline is the key to enjoying coffee without wrecking your sleep.
This post contains affiliate links. Purchases made through these links support my research and writing at no extra cost to you. Thank you for your support! Please read my Disclosure for more details.

The Caffeine Timeline
Here’s the typical journey of a cup of coffee through your system:
- 15–45 minutes: onset. Caffeine is absorbed quickly and you start to feel more alert.
- 30–60 minutes: peak. Blood caffeine levels reach their highest point. This is when you feel the strongest effect.
- 5–6 hours: half-life. Half the caffeine has been cleared. The other half is still active in your body.
- 10+ hours: near-full clearance. After two half-lives, roughly a quarter remains; after several, it’s mostly gone.
The big takeaway is that the felt effect (a couple of hours) is much shorter than the chemical presence (many hours). Caffeine is quietly working in the background long after the alertness fades.
What Is Caffeine’s Half-Life?
Half-life is the time it takes your body to eliminate half of a substance. For caffeine, that’s about 5 to 6 hours in a typical healthy adult. So if you drink a coffee with 100 mg of caffeine at noon, you’ll still have roughly 50 mg in your system around 5–6 p.m., and about 25 mg by 10–11 p.m.
That lingering quarter-dose is small, but for sensitive people it’s enough to delay sleep or make it lighter. It’s the reason “I had my last coffee hours ago” doesn’t always mean you’re in the clear.
Why It Varies So Much From Person to Person
The 5–6 hour half-life is an average. Yours could be shorter or much longer depending on several factors:
- Genetics. Some people are “fast metabolizers” and clear caffeine quickly; others are “slow metabolizers” and feel it for much longer.
- Tolerance. Regular coffee drinkers process caffeine somewhat more efficiently and feel less of a jolt.
- Pregnancy. Caffeine’s half-life can lengthen dramatically during pregnancy, so it stays in the system much longer.
- Medications. Certain drugs (including some birth control pills and antibiotics) slow caffeine breakdown.
- Liver function and age. Caffeine is processed by the liver, so liver health and age affect clearance.
- Smoking. Smoking speeds up caffeine metabolism, while quitting slows it back down.
This is why the same afternoon coffee leaves one person wired at midnight and does nothing to another.
How It Affects Your Sleep
Caffeine works by blocking adenosine, the chemical that builds up during the day and makes you sleepy. Even when you don’t feel “buzzed,” lingering caffeine can reduce how much deep sleep you get and make it harder to fall asleep in the first place.
Research suggests that consuming caffeine even 6 hours before bed can measurably disrupt sleep. So a 4 p.m. coffee for a 10 p.m. bedtime is cutting it close for many people. If you’re sensitive, an earlier cutoff makes a real difference.
When Should You Have Your Last Coffee?
A safe general rule: stop caffeine at least 6–8 hours before bed. For a 10 p.m. bedtime, that means wrapping up coffee by early-to-mid afternoon (around 2–4 p.m.), and earlier if you’re caffeine-sensitive.
- If you sleep fine: an early-afternoon cutoff is usually plenty.
- If you sleep poorly: try moving your last coffee to noon or switching to decaf in the afternoon.
- If you love an afternoon ritual: a half-caf or decaf cup lets you keep the habit without the sleep hit.
Curious how much caffeine you’re actually getting? A shot of espresso, a drip coffee, and a cold brew all differ. My guide on caffeine in an espresso shot breaks the numbers down.
How to Clear Caffeine Faster (Sort Of)
There’s no magic switch to instantly flush caffeine — your liver processes it at its own pace. But a few things help you cope while it wears off:
- Drink water. Staying hydrated helps you feel better, even if it doesn’t dramatically speed clearance.
- Move around. Light activity can help burn off jittery energy.
- Eat something. Food can slow absorption if you catch it early and soften the peak.
- Wait it out. Honestly, time is the only real cure. Knowing the half-life helps you plan around it.
Frequently Asked Questions
How long does caffeine stay in your system?
Caffeine has a half-life of about 5–6 hours, so half remains that long after your last cup. It takes roughly 10 or more hours to clear most of it, and traces can linger longer in slow metabolizers, during pregnancy, or with certain medications.
How long does it take for caffeine to kick in?
You’ll usually feel it within 15–45 minutes, with blood levels peaking around 30–60 minutes after drinking. That’s why drinking coffee about 30–45 minutes before you need to be sharp (or before a workout) works well.
Will an afternoon coffee keep me up at night?
It can, especially if you’re caffeine-sensitive or a slow metabolizer. Because of the 5–6 hour half-life, a mid-to-late-afternoon coffee often still has active caffeine at bedtime, which can delay sleep and reduce deep sleep. An earlier cutoff usually helps.
Does decaf have any caffeine?
Yes, a small amount — decaf isn’t completely caffeine-free, but it has far less than regular coffee (typically just a few milligrams per cup). For most people that’s low enough to enjoy in the afternoon without affecting sleep.
Final Thoughts
Caffeine lasts a lot longer than the buzz it gives you. It peaks within an hour but hangs around for many more, with a half-life of 5–6 hours that varies widely from person to person. Once you understand that timeline, you can enjoy coffee fully and still protect your sleep — mostly by paying attention to when you drink that last cup.
If your sleep has been off, try moving your final coffee earlier for a week and see what changes. And if you have health conditions, are pregnant, or take medications that interact with caffeine, check with your doctor about what’s right for you. Want to fine-tune your caffeine intake by drink type? Start with my guide to caffeine in an espresso shot.