Caffeine wear-off calculator
Add each coffee, tea, energy drink or STAT bar you had, and when. We'll estimate how much caffeine is still in your body at the time you plan to sleep. It's built for night shift, where "bedtime" is 8 AM.
Working nights? Use the time you plan to fall asleep after your shift.
Estimated caffeine still in your body at 8:00 AM: 35 mg (typical clearance)
Your last dose is 6 hours before sleep.
A 2023 review of 24 studies suggests at least 8.8 hours between a coffee (about 107 mg) and bedtime to avoid losing sleep.
Total today: 100 mg. For most adults, FDA has cited 400 mg a day as an amount not generally associated with negative effects.
For each dose: remaining(t) = mg × 0.5^(hours since dose ÷ half-life), counted from the time taken.
Total at time t = sum over doses taken before t.
The model starts at full dose at the time taken. Absorption actually takes 30 to 120 minutes, so the early hours are slightly overstated. We round displayed caffeine amounts to the nearest 5 mg and never show decimals.
How to use it
- 01
Add every caffeine source and the time you had it.
- 02
Set the time you plan to fall asleep.
- 03
Pick your clearance. Leave it on Typical if you're not sure.
How the estimate works
Caffeine is absorbed within 30 to 120 minutes. After that, your body clears about half of it in each half-life. EFSA reports a typical half-life of about 4 hours in healthy adults, with a range of about 2 to 8 hours. We show all three so you can see the spread. People vary, and pregnancy and some medications can make clearance much slower.
FAQ
How long does 100 mg of caffeine last?
With a 4-hour half-life, about 50 mg is left after 4 hours and about 25 mg after 8 hours. With a slower 8-hour half-life, about 50 mg is still left after 8 hours.
How long before sleep should I stop caffeine?
A 2023 review of 24 studies suggests at least 8.8 hours between a regular coffee (about 107 mg) and bedtime, and at least 13.2 hours for a standard pre-workout serving (about 218 mg). In a 2013 sleep lab study, 400 mg taken 6 hours before bed still cut total sleep by more than an hour.
I work nights. How do I use this?
Enter your doses with the times you had them, then set sleep to the time you plan to lie down after your shift, for example 8 AM. If your first dose was before midnight, switch on "previous day".
How much caffeine is in a STAT bar?
Every STAT bar has 100 mg, printed on the wrapper. Chocolate gets its caffeine from coffee fruit extract. Peanut Butter Espresso and Salted Caramel Coffee use real coffee plus coffee fruit extract.
How much caffeine is too much in a day?
For most adults, the FDA has cited 400 mg a day as an amount not generally associated with negative effects. If you're pregnant, nursing, take medications or are sensitive to caffeine, ask your healthcare provider.
Sources
- EFSA NDA Panel, Scientific Opinion on the safety of caffeine, EFSA Journal 2015;13(5):4102. doi:10.2903/j.efsa.2015.4102. Plasma half-life about 4 hours in healthy adults, range about 2 to 8 hours; absorption tmax 30 to 120 minutes; single doses of 100 mg may increase sleep latency and reduce sleep duration in some adults when taken close to bedtime; up to 400 mg a day raises no safety concerns for adults in the general population except pregnant women. Plain-language version.
- U.S. FDA, "Spilling the Beans: How Much Caffeine is Too Much?" FDA has cited 400 mg a day for most adults as an amount not generally associated with negative effects, and there is wide variation in how fast people eliminate caffeine. Typical 12 fl oz amounts: brewed coffee 113 to 247 mg, black tea 71 mg, green tea 37 mg, energy drink 41 to 246 mg.
- Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med 2013;9(11):1195-1200. doi:10.5664/jcsm.3170. In this study, 400 mg taken 6 hours before bed still reduced total sleep time by more than 1 hour.
- Gardiner C, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Medicine Reviews, 2023 (PubMed 36870101). 24 studies. To avoid reductions in total sleep time, coffee (107 mg per 250 mL) should be consumed at least 8.8 hours before bedtime, and a standard pre-workout serving (217.5 mg) at least 13.2 hours before.