- Potionkeep
- Caffeine calculator
Free tool
When will your caffeine wear off?
Add what you drank today. See how much caffeine is still in your system, hour by hour, how much is left at bedtime, and the latest time for another cup. It runs in your browser: nothing is sent anywhere.
An estimate from a standard pharmacokinetic model, not a measurement and not medical advice. Your own metabolism may differ.
Potionkeep app
Watch every coffee wear off, live.
Log a coffee with one tap and Potionkeep counts it down on your phone: kicking in, active, wearing off, ready. Free, no account.
How the calculator works
Caffeine is absorbed quickly and cleared slowly. After you finish a drink, the amount in your body climbs for about 30 to 60 minutes, then falls by half every half life. The calculator adds up that curve for every drink you enter, so two afternoon coffees stack on top of each other the way they do in real life.
For each drink it uses a standard one compartment model with first order absorption and elimination:
amount(t) = dose × kₐ ⁄ (kₐ − kₑ) × (e−kₑt − e−kₐt), kₑ = ln 2 ⁄ half life
The absorption rate is set so a drink peaks about 45 minutes after you finish it. The half life is yours to choose: about 5 hours is typical for healthy adults, but it varies widely between people.
Rule of thumb: the 5 hour half life
| Hours after a 95 mg coffee | Caffeine left (5 h half life) |
|---|---|
| 1 hour (near peak) | about 85 mg |
| 5 hours | about 50 mg |
| 8 hours | about 32 mg |
| 10 hours | about 25 mg |
| 15 hours | about 12 mg |
So a 3 PM coffee still leaves about a third of its caffeine at 11 PM. A 2013 sleep study found that a moderate dose (400 mg) taken even 6 hours before bed still disrupted sleep significantly compared with placebo, which is why the curve after bedtime matters more than how alert you feel at dinner.
Caffeine in common drinks
| Drink | Typical caffeine |
|---|---|
| Brewed coffee, 8 oz / 240 ml | ~95 mg |
| Espresso, single shot | ~64 mg |
| Cold brew, 16 oz / 475 ml | 150 to 250 mg |
| Instant coffee, 8 oz | ~62 mg |
| Black tea, 8 oz | ~47 mg |
| Green tea, 8 oz | ~28 mg |
| Cola, 12 oz | ~33 mg |
| Energy drink, 8.4 oz | ~80 mg |
Typical values compiled from the Mayo Clinic caffeine chart; brands vary, so check the label. The FDA cites 400 mg a day as an amount not generally associated with negative effects for most healthy adults.
More on timing: when to stop drinking caffeine for better sleep. Also free: the creatine calculator for loading and maintenance doses.
FAQ
Caffeine timing questions
How long does caffeine last?
Caffeine's half life averages about 5 hours in healthy adults, so roughly half of a cup is still in your body 5 hours later and a quarter after 10 hours. It varies a lot between people: from under 2 hours to more than 9. Smoking tends to speed it up; pregnancy, some medications and liver conditions can slow it down a lot.
When does caffeine peak?
Blood levels usually peak 30 to 60 minutes after you finish a drink, and sometimes up to two hours later, depending on what else is in your stomach. That is why a coffee right before bed can still be rising when you lie down.
When should I stop drinking caffeine before bed?
A frequently cited sleep study (Drake et al., 2013) found that a moderate dose taken even 6 hours before bed still disrupted sleep significantly, which is where the common advice to stop at least 6 hours before bedtime comes from. Use the calculator to see your own estimated curve and pick a cutoff you are comfortable with.
How much caffeine is in a cup of coffee?
About 95 mg in an 8 oz (240 ml) cup of brewed coffee, about 64 mg in a single espresso shot, and 150 to 250 mg in a 16 oz cold brew. Tea has roughly 25 to 50 mg per cup and a 12 oz cola about 33 mg. Real drinks vary, so the calculator lets you type the exact amount from the label.
How much caffeine is too much?
For most healthy adults the FDA cites 400 mg a day (about two to three 12 oz cups of coffee) as an amount not generally associated with negative effects, while noting wide variation in sensitivity. That is general information, not personal advice: if you are pregnant, take medication or have a health condition, ask a professional.
How accurate is this caffeine calculator?
It is an estimate. It uses a standard one compartment model with first order absorption and elimination and the half life you choose. Real metabolism differs from person to person and day to day, so treat the curve as a guide to timing, not a measurement.