How Long Does Coffee Caffeine Last?
Caffeine from coffee peaks in your blood about 30–60 minutes after you drink it, and its effects last roughly 4–6 hours. That's the half-life: after 5 hours, about half the caffeine is still in your system. Most people feel the alertness for 3–5 hours, but the total time it takes to clear your body is longer, closer to 8–10 hours.
Caffeine's Timeline: Peak, Half-Life, and Full Clearance
The effects of caffeine follow a predictable curve. You feel the first lift within 15–20 minutes, the peak hits around 45 minutes, and the half-life (the time for your body to eliminate half of the caffeine) is about 5 hours for most adults. That means if you drink a coffee with 200 mg of caffeine at 8 a.m., you'll still have about 100 mg in your system at 1 p.m., and 50 mg at 6 p.m. It takes about 10 hours for your body to clear nearly all of it, though some caffeine can linger even longer.
Your individual timing depends on several factors: your metabolism, your liver enzymes, whether you smoke (smokers clear caffeine faster), pregnancy (slows clearance), and certain medications. For most people, the practical takeaway is: a morning coffee is mostly gone by early afternoon, but an afternoon coffee can still be affecting you at bedtime.
How to Estimate When Caffeine Will Keep You Awake
If you want to sleep well, stop caffeine about 8–10 hours before bedtime. That's the standard rule of thumb, and it works because the half-life means a meaningful amount of caffeine is still in your system at that point. For example, if you go to bed at 10 p.m., your last coffee should be around noon or 1 p.m.
But the half-life varies. For some people it's 3 hours, for others it's 7–8 hours. If you're sensitive, you might need to stop even earlier—12 hours before bed. A simple way to test your own tolerance: on a day off, have a coffee at 2 p.m. and see how you sleep that night. If you notice restlessness or trouble falling asleep, push your cutoff earlier.
What Affects How Long Caffeine Lasts for You
Your body's caffeine clearance is influenced by genetics, age, and habits. The enzyme CYP1A2, which your liver uses to break down caffeine, varies from person to person. Some people are "fast metabolizers" and clear caffeine in 2–3 hours; others are "slow" and take 6–8 hours. Age also matters: older adults often metabolize caffeine more slowly.
Other factors: oral contraceptives and some antibiotics can slow caffeine clearance, while smoking speeds it up. Pregnancy significantly extends the half-life, sometimes to 10–15 hours. If you're concerned about how caffeine interacts with your medications or health, check with your doctor—this isn't medical advice, but it's worth asking.
How Much Caffeine Is in Your Coffee?
The amount of caffeine in a cup varies widely, which directly affects how long the effects last. A standard 8-ounce (240 ml) cup of brewed coffee has about 95 mg of caffeine, but a 12-ounce (355 ml) Starbucks-style coffee can have 150–200 mg. Espresso has about 63 mg per 1-ounce (30 ml) shot, and a 16-ounce (480 ml) energy drink can have 160 mg or more.
To estimate how long your coffee will last, multiply the caffeine dose by the half-life. For a 200 mg coffee with a 5-hour half-life, you'll have 100 mg at 5 hours, 50 mg at 10 hours. If you're sensitive, even 50 mg can affect sleep. A good rule: the more caffeine you drink, the longer it takes to clear, so a large coffee in the afternoon is more likely to keep you up than a small one in the morning.
Does Caffeine Tolerance Change How Long It Lasts?
Regular coffee drinkers build tolerance, but that doesn't change the half-life—it changes how your brain responds to the caffeine. A habitual drinker may feel less alertness from the same dose, but the caffeine is still in their system for the same duration. That's why a daily coffee drinker can have a cup at 4 p.m. and still sleep, while a non-drinker would be wide awake.
Tolerance also means that if you stop drinking coffee, you may experience withdrawal headaches and fatigue, but those are separate from the caffeine's duration. If you want to cut back, do it gradually—reduce by half a cup every few days—to minimize withdrawal.
What to Do If Caffeine Is Still Keeping You Awake
If you've had coffee too late in the day and you're lying in bed wired, you can't speed up caffeine elimination, but you can manage the side effects. Drink water to stay hydrated, and do some gentle stretching or deep breathing. Avoid screens and bright light, which can further delay sleep. Some people find that a small snack with carbohydrates helps, but there's no proven way to flush caffeine out faster.
For next time, plan your last coffee earlier. If you're a slow metabolizer, treat 8 hours as a minimum, not a guarantee. And if you're using caffeine to stay awake for a night shift, remember that the effects will last well into your next sleep window—so time your doses carefully.
The Half-Life Rule in Practice
The simplest way to remember: caffeine's half-life is about 5 hours, so plan your last cup 8–10 hours before bed. If you're sensitive, use 10–12 hours. If you're a fast metabolizer, you might get away with 6–8 hours, but it's safer to start with the longer window and adjust based on your sleep quality.
One common misconception is that caffeine "wears off" after 2–3 hours. That's the duration of the noticeable boost, not the full effect. The alertness may fade, but the caffeine is still in your system, which is why an afternoon coffee can disrupt sleep even if you don't feel jittery. Pay attention to your own body—if you have trouble sleeping after a late coffee, your half-life is probably on the longer side.