Caffeine calculator
When is your last coffee?
See how much of today’s caffeine is still in your system when you go to bed.
Your estimate at 22:00
58 mg
Target at bedtime
30 mg or less
28 mg above target
May make sleep lighter or slower to come, more so for people who are sensitive to caffeine.
Why 30 mg? It matches the cut-off times that protected sleep time across 24 studies. It is a guide, not a clinical threshold.
- Faster to slower clearance
- 24–98 mg
- Total for the day
- 250 mg
Moving your last drink earlier is not enough to reach the target. Without it you would have about 27 mg at 22:00. Swapping it for rooibos, which is naturally caffeine-free, has the same effect.
General estimate for healthy adults. It is not medical advice. It counts each drink in full from the time it is taken and leaves out caffeine from the day before. Pregnancy, liver conditions and some medicines slow caffeine clearance well beyond these settings, so ask your doctor or pharmacist. Nothing you enter is saved. A link you share carries your entries in the link itself.
Caffeine in your system
Milligrams, from your first drink to eight hours after bedtime.
- Your estimate
- Faster to slower clearance
- Target at bedtime: 30 mg or less
View as a table
| Time | Your estimate | Faster to slower |
|---|---|---|
| 06:00 | 0 mg | 0–0 mg |
| 07:00 | 90 mg | 90–90 mg |
| 08:00 | 78 mg | 71–83 mg |
| 09:00 | 68 mg | 57–76 mg |
| 10:00 | 59 mg | 45–69 mg |
| 11:00 | 126 mg | 107–140 mg |
| 12:00 | 110 mg | 85–129 mg |
| 13:00 | 96 mg | 67–118 mg |
| 14:00 | 83 mg | 53–108 mg |
| 15:00 | 153 mg | 122–179 mg |
| 16:00 | 133 mg | 97–164 mg |
| 17:00 | 116 mg | 77–151 mg |
| 18:00 | 101 mg | 61–138 mg |
| 19:00 | 88 mg | 49–127 mg |
| 20:00 | 76 mg | 39–116 mg |
| 21:00 | 66 mg | 31–107 mg |
| 22:00 (bedtime) | 58 mg | 24–98 mg |
| 23:00 | 50 mg | 19–90 mg |
| 00:00 | 44 mg | 15–82 mg |
| 01:00 | 38 mg | 12–75 mg |
| 02:00 | 33 mg | 10–69 mg |
| 03:00 | 29 mg | 8–63 mg |
| 04:00 | 25 mg | 6–58 mg |
| 05:00 | 22 mg | 5–53 mg |
| 06:00 | 19 mg | 4–49 mg |
Research behind this estimate
- Caffeine by mouth is absorbed quickly and almost completely, so each drink counts in full from the time it is taken. Half-lives in ten healthy adults ranged from 2.7 to 9.9 hours. Blanchard & Sawers, European Journal of Clinical Pharmacology (1983)
- Typical uses a 5-hour half-life, the middle of the 3–7 hours reported for adults. Temple et al., Frontiers in Psychiatry (2017)
- Faster uses 3 hours. Smokers averaged 3.5 hours against 6.0 hours in non-smokers. Parsons & Neims, Clinical Pharmacology & Therapeutics (1978)
- Slower uses 8 hours. Women on oestrogen-containing oral contraceptives averaged 7.9 hours against 5.4 hours in matched controls. Abernethy & Todd, European Journal of Clinical Pharmacology (1985)
- In pregnancy the half-life averaged 8.3 hours and ranged from 3 to 16, which is why this estimate does not apply. Knutti et al., European Journal of Clinical Pharmacology (1981)
- A meta-analysis of 24 studies found caffeine cut total sleep time by 45 minutes on average. To avoid that, a 107 mg coffee needed 8.8 hours before bed and a 217.5 mg pre-workout 13.2 hours. At a 5-hour half-life those leave 32–35 mg at bedtime. Our 30 mg target is a working figure based on that, not a clinical threshold. Gardiner et al., Sleep Medicine Reviews (2023)
- The typical amount in each drink, the 100 mg high mark (a single dose that may affect sleep in some adults near bedtime) and the 400 mg daily guide come from EFSA. European Food Safety Authority, Scientific Opinion on the safety of caffeine (2015)
- A 400 mg dose taken 6 hours before bed still disrupted sleep. Drake et al., Journal of Clinical Sleep Medicine (2013)
Keep going
More guides and calculators
- Start the Finder
Supplement Finder
Answer a few questions about your training and goals. We’ll suggest an ATP routine and explain why each product may be relevant.
- Calculate my protein
Protein calculator
Estimate your daily protein target from your sex, body weight and activity level.
- Read the guide
Sleep guide
What sleep does for training and recovery, the habits that protect it, and when to see a doctor.