By Nico Jae · ✓ Based on published sleep research · Updated July 2026
Quick answer: Caffeine has a half-life of about 5 hours for most adults, so half of your last coffee is still circulating 5 hours later. A 95 mg cup drops below the sleep-safe 25 mg level after roughly 9 to 10 hours. Use the calculator below to find your personal caffeine cutoff time.
Not sure about your metabolism? Most adults clear caffeine at the average rate; smokers clear it faster, and some medications slow it down.
🔒 Calculations happen in your browser. Nothing you enter is stored or sent anywhere.
Caffeine leaves your body on a predictable curve: every half-life, the amount in your bloodstream drops by half. Published clinical research puts the average adult half-life near 5 hours, with fast metabolizers around 3.5 hours and slow metabolizers at 7 hours or more. The calculator applies that decay curve to your drink, your timing, and your metabolism, then compares the bedtime amount against a sleep-safe target of under 25 mg.
The 25 mg target comes from controlled sleep studies. Research in the Journal of Clinical Sleep Medicine found that 400 mg of caffeine taken even 6 hours before bed measurably cut sleep time by about an hour. A 2023 meta-analysis concluded coffee should end roughly 8.8 hours before bed, and high-dose pre-workout supplements about 13 hours before, to leave sleep undisturbed.
| Drink | Typical caffeine |
|---|---|
| Drip coffee (8 oz) | 95 mg |
| Espresso (single shot) | 63 mg |
| Cold brew (12 oz) | 155 mg |
| Black tea (8 oz) | 47 mg |
| Green tea (8 oz) | 28 mg |
| Cola (12 oz) | 40 mg |
| Energy drink (8.4 oz) | 80 mg |
| Energy drink (16 oz) | 160 mg |
| Pre-workout (1 scoop) | 150 – 300 mg |
Values from FDA and USDA published averages; brands vary, so check labels. The FDA considers up to 400 mg per day safe for most healthy adults, and 200 mg during pregnancy per ACOG guidance.
The enzyme CYP1A2 in your liver clears most of your caffeine, and its speed is largely genetic. Fast metabolizers feel a 4 pm coffee fade by evening, while slow metabolizers can still feel a lunchtime cup at midnight. If caffeine late in the day reliably wrecks your sleep, model yourself as a slow metabolizer to stay on the safe side.
Caffeine clearance slows with age. Older adults often process caffeine noticeably slower than they did in their twenties, so a coffee habit that never used to touch sleep can start to. If you are over 65, the slow setting is often closer to reality.
Smoking roughly doubles the speed of caffeine clearance, which is why heavy smokers can drink coffee late without noticing. Some medications, including certain antibiotics and oral contraceptives, slow clearance down. During pregnancy the half-life can more than double, which is one reason ACOG recommends staying under 200 mg per day; this calculator does not model pregnancy.
A double espresso at 3 pm and a single drip coffee at 3 pm are very different bedtime stories. Dose matters as much as timing: 160 mg from a large energy drink needs almost two extra half-lives to fall below 25 mg compared with a 47 mg cup of black tea.
Set a personal cutoff and keep the morning routine you love. For an average metabolizer, finishing coffee 9 to 10 hours before bed keeps bedtime levels below 25 mg. Switch to green tea or half-caf after lunch: at 28 mg, green tea clears below the sleep-safe line in under one half-life. Save pre-workout supplements for morning sessions, since their 200 mg or more doses need half a day to clear. And if you sleep badly despite an early cutoff, track it for a week; consistent poor sleep is worth discussing with a doctor rather than masking with more caffeine.
The half-life of caffeine averages about 5 hours in healthy adults, with a typical range of 3.5 to 7 hours depending on genetics, age, smoking, medications, and liver function. That means half of the caffeine you drank is still in your bloodstream 5 hours later, a quarter after 10 hours, and so on.
Caffeine takes roughly 5 half-lives to effectively clear, which is about 25 hours for an average adult after a single dose. What matters for sleep is not full clearance but dropping below about 25 mg, which a standard 95 mg coffee reaches in roughly 9 to 10 hours at an average metabolism.
Research supports stopping coffee about 8 to 9 hours before bed. A controlled study found 400 mg taken 6 hours before bed still cut sleep by about an hour, and a 2023 meta-analysis put the ideal coffee cutoff at 8.8 hours before bedtime, and about 13 hours for high-dose pre-workout supplements.
Yes. Caffeine clearance slows with age, so the same afternoon coffee lingers longer in a 70-year-old than in a 25-year-old. Older adults are also more prone to fragmented sleep, so sleep specialists often suggest an earlier caffeine cutoff, or modeling yourself as a slow metabolizer.
Half-life is the time your body needs to remove half of the caffeine in your blood. The decay repeats each cycle: a 95 mg coffee becomes about 48 mg after one half-life, 24 mg after two, and 12 mg after three. This calculator runs that same exponential decay math for your exact drink and timing.
For your safety
Estimate disclaimer: This calculator provides an educational estimate based on published average half-life values. It is not medical advice, and it does not model pregnancy, liver conditions, or medication interactions. If caffeine affects your heart rhythm, anxiety, or sleep despite an early cutoff, talk to your physician.
Disclaimer: These statements have not been evaluated by the Food and Drug Administration. This content is not intended to be a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition.