Enter your bedtime and drink to see the latest time to have it, and how much caffeine will still be in your body when you go to bed.
Last reviewed November 7, 2026 by the Editor, Handy Free Tools, against the sources linked on this page and listed at the end. How we check our pages.
Example: for a 10:30 PM bedtime and a regular cup of coffee (about 95 mg), the latest time to drink it is about 4:30 PM. With an average 5-hour half-life, about 41 mg would still be in your body at bedtime. Change the bedtime and drink above to see your own cut-off.
Your body breaks caffeine down steadily. The time it takes to remove half of it is called its half-life. The calculator uses 5 hours as a typical adult value, with 3 and 7 hours as fast and slow options. The FDA notes that people vary widely in how sensitive they are to caffeine and how fast they clear it, and that some conditions and medicines make people more sensitive (FDA). If you are pregnant or take regular medicines, ask your doctor or pharmacist how caffeine affects you.
We recommend whichever is earlier: at least 6 hours before bed, or the time it takes for the caffeine from your drink to drop below 50 mg (our own rule of thumb, about half a cup of coffee, not an official limit). For a strong drink, that can be 10 hours or more. The 6-hour rule comes from a 2013 study in the Journal of Clinical Sleep Medicine: 400 mg of caffeine taken 6 hours before bed still cut sleep by more than an hour, even though participants didn’t notice it (Drake et al., 2013).
| Drink | Typical caffeine |
|---|---|
| Brewed coffee, 8 oz (240 ml) | 80–100 mg |
| Espresso, single shot | about 64 mg |
| Black tea, 8 oz | about 47 mg |
| Green tea, 8 oz | about 28 mg |
| Energy drink, 8.4 oz (250 ml) | about 80 mg |
| Cola, 12 oz can | 30–40 mg |
| Decaf coffee, 8 oz | 2–15 mg |
| Dark chocolate, 1 oz | about 12 mg |
Amounts vary a lot by brand and how the drink is made. The US Food and Drug Administration says up to 400 mg a day is not generally linked to harmful effects for most healthy adults (FDA).
For general information only, not medical advice. If you often feel tired despite enough sleep, snore loudly, or have trouble sleeping most nights, talk to a doctor.
Thanks, your idea was sent.