Caffeine cut-off calculator: when to stop drinking coffee

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.

How the caffeine cut-off is calculated

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).

How much caffeine is in common drinks?

DrinkTypical caffeine
Brewed coffee, 8 oz (240 ml)80–100 mg
Espresso, single shotabout 64 mg
Black tea, 8 ozabout 47 mg
Green tea, 8 ozabout 28 mg
Energy drink, 8.4 oz (250 ml)about 80 mg
Cola, 12 oz can30–40 mg
Decaf coffee, 8 oz2–15 mg
Dark chocolate, 1 ozabout 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).

Frequently asked questions

What time should I stop drinking coffee?
At least 6 hours before bed. If you go to bed at 10:30 PM, that means no coffee after about 4:30 PM, or earlier for a large coffee or if caffeine affects you strongly.
How long does caffeine stay in your system?
It varies a lot between people. With a half-life of 5 hours, the typical value the calculator uses, about half of a 95 mg coffee is still in your body 5 hours later, and a quarter after 10 hours.
Does decaf coffee have caffeine?
A little, usually 2 to 15 mg per cup, which is unlikely to affect sleep for most people.
Can caffeine affect sleep if I fall asleep fine?
Yes. Studies show caffeine can reduce deep sleep and total sleep time even when people fall asleep easily and don’t notice any difference.

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.

Sources

More sleep tools