Afternoon Coffee and Sleep: Why 6 Hours Before Bed May Not Be Enough
Sleep & NighttimeArticleIn a sleep study, a large dose of caffeine taken 6 hours before bedtime still cut total sleep by more than an hour. People vary widely in how fast they clear caffeine, and some medicines and conditions make it linger. Here is how to time your last cup.

Many of us follow a “no coffee after lunch” rule, or think a 3 p.m. latte is fine if bedtime is at 10. A well-known sleep study tested what caffeine at different times does to sleep at home.
The study
Researchers gave 12 healthy adults 400 milligrams of caffeine, or a placebo, at bedtime, 3 hours before bed or 6 hours before bed, and measured sleep with a home sleep monitor.1
- Caffeine at all three times disrupted sleep compared with placebo.1
- Even 6 hours before bed, caffeine cut sleep by more than an hour.1
The authors suggested avoiding substantial caffeine for at least 6 hours before bedtime and, for big doses like those in large coffee-shop drinks, stopping before 5 p.m.1
Keep in mind it was a small study of adults aged 19 to 48 who took a large single dose.1
How much is 400 milligrams?
The FDA2 says about 400 milligrams a day, roughly two to three 12-ounce cups of coffee, isn’t generally linked to harmful effects in most adults.2 In the study, that full amount came at once, which is more than many people drink in one sitting.12
Why your cutoff may need to be earlier
- People clear caffeine at very different speeds.12 That’s why advice on when to stop ranges from 4 to 11 hours before bed.1
- Some health conditions and medicines make people more sensitive to caffeine.2 Ask your pharmacist about yours.
- Hidden caffeine in tea, cola, chocolate, energy drinks and some pain relievers adds up. Our guide to decaf coffee explains why decaf isn’t caffeine-free.
Too much caffeine can cause sleep problems, a racing heart, palpitations and anxiety.2 It can also stir up urgency for some women. Our article on caffeine and bladder leaks covers that.
Try this
- Track your caffeine and sleep for two weeks.
- Move your last cup earlier by an hour or two and see what changes.
- Swap the afternoon cup for herbal tea or water.
Our guides to alcohol and sleep and CBT for insomnia cover other common sleep disruptors.
Try: “I have two coffees before noon and a latte at 3 p.m. Could that be why I’m lying awake at 11?”
Did I Do That in My Sleep? includes a 14-Night Lights-Out Record and a Visit Brief. Use them to log caffeine timing next to how long it takes you to fall asleep. See the book.
This article is for general educational purposes only and is not medical advice. It isn't a substitute for diagnosis or treatment from a qualified healthcare professional who knows your health history. Please don't ignore professional advice or delay getting care because of something you read here. A racing or irregular heartbeat, chest pain or fainting needs prompt medical care. Ongoing insomnia should be discussed with a clinician. If you think you may be having a medical emergency, call 911 or your local emergency number right away. This article discusses published research and federal health information. Girl Playbook does not endorse any specific product, test, or provider.
Girl Playbook sells this book. It provides education and worksheets, not individualized medical care.
Sources
The research behind this article, in the order it’s cited. How we source our articles.
- Journal of Clinical Sleep Medicine (full text via PubMed Central), 2013Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed (opens in a new tab)abcdefgh
- U.S. Food and Drug AdministrationSpilling the Beans: How Much Caffeine is Too Much? (opens in a new tab)abcdef
Spotted something out of date? Tell us and we’ll check it.


