Caffeine Cutoff Calculator: When to Stop Coffee for Better Sleep
Enter your bedtime and this calculator shows the time to stop caffeine. A second part estimates how much of a drink is still in your body when you go to bed. Both give estimates, because people clear caffeine at very different speeds.
Caffeine cutoff calculator
Find your last-caffeine time, and estimate how much is left at bedtime.
How much is left at bedtime?
Adjust assumptions
Estimates only. Real clearance varies a lot between people, and the amount of caffeine in a drink varies too.
How to use it
- Enter the time you usually plan to go to bed.
- Choose the cutoff gap you want to test, such as 8 or 10 hours before bedtime.
- For the estimate of caffeine remaining, enter the amount of caffeine in your drink and the time you consumed it.
- Adjust the half-life assumption if you have a reason to use a different estimate; the default is an average, not your personal metabolism.
- Compare the estimates and test a change with a short sleep diary rather than assuming one cutoff works for everyone.
What the research says
A 2013 study in the Journal of Clinical Sleep Medicine gave 12 healthy adults 400 mg of caffeine (about two to three cups of coffee) at 0, 3 or 6 hours before bedtime. All three timings disrupted sleep. Six hours before bed, objectively measured total sleep time dropped by more than an hour, and the volunteers were unaware of it. This is a small study on one large dose, so it is a warning that timing matters, not an exact rule.
The US Food and Drug Administration says up to 400 mg a day is an amount not generally associated with negative effects for most adults. It also notes that people vary widely in both how sensitive they are to caffeine and how fast they clear it. A regular brewed coffee of 12 fluid ounces is listed at 113 to 247 mg, so check your own drink rather than assuming a number.
StatPearls, a medical reference, gives the average adult half-life of caffeine as about 5 hours. That is the default in the second calculator. It also lists things that change it: smokers can clear caffeine up to 50% faster, and pregnant women, especially in the last trimester, can have a half-life of up to 15 hours. People with liver disease, or taking medicines that inhibit the liver enzymes involved, clear it more slowly.
What it cannot do
- It cannot measure the caffeine in your drink unless you enter an accurate amount.
- It uses an estimated half-life; caffeine clearance varies between people and can be affected by medicines, pregnancy, smoking and other factors.
- It cannot predict exactly how caffeine will affect your sleep or guarantee that a cutoff time will prevent sleep problems.
- It does not assess medical conditions or medication interactions. Ask a clinician or pharmacist if you have a relevant health concern.
- The calculator is not a recommendation to consume a particular amount of caffeine.
A 14-day sleep diary is the best way to see whether an earlier cutoff changes your sleep. For more, read why you can wake up tired after eight hours.
When to see a doctor
Talk to a doctor if you sleep badly most nights for several weeks even after changing your caffeine, feel very sleepy in the day, or snore loudly and gasp in your sleep. Seek urgent help for chest pain, fainting or serious breathing difficulty.
Frequently asked questions
What time should I stop drinking coffee?
It depends on your bedtime. Using an 8-hour gap, a 11 PM bedtime gives 3 PM. A 10-hour gap gives 1 PM. Count back from your actual bedtime, not from the time you wake up.
How long does caffeine stay in your body?
The average adult half-life is about 5 hours, so about half is left after 5 hours and about a quarter after 10. The range between people is wide.
Does tea or an energy drink count?
Yes. Enter the caffeine amount from the label or the maker’s website. Drinks differ a lot, so use the actual figure for your drink.
Sources
- Drake et al., Journal of Clinical Sleep Medicine (2013): Caffeine effects on sleep at different times before bedtime
- U.S. Food and Drug Administration: How much caffeine is too much?
- NCBI Bookshelf: Caffeine
This tool is for general information and is not medical advice. Our editorial policy explains how we research and review our content.
