Coffee and Sleep: When Should You Have Your Last Cup?
Share
A practical guide to enjoying your coffee while making room for a good night’s rest.

Morning coffee can be a small pleasure worth slowing down for: fresh grounds, a favorite mug, and a few quiet minutes before the day begins.
Finding the right balance with sleep starts with three things: how much caffeine you drink, when you drink it, and how sensitive you are to it. Your bedtime matters more than a universal afternoon cutoff.
01 / TimingWork backward from bedtime.
A practical starting point is to finish caffeinated coffee around eight to ten hours before bed, then adjust earlier if needed.
That window is informed by a 2023 review of 24 studies. Its analysis estimated that coffee containing approximately 107 mg of caffeine would need to be consumed about 8.8 hours before bedtime to avoid a predicted reduction in total sleep time. That estimate is a starting point—not a personal guarantee. [1]
Your last cup starts
with your bedtime.
An example for a 10 PM bedtime
An illustrative starting point, not a guaranteed sleep-safe cutoff. Larger caffeine doses or greater sensitivity may call for an earlier finish.

Pay attention to the dose.
“One cup” can mean very different amounts of caffeine. Serving size and preparation vary, so check the café’s published information or the product label when available.
The FDA cites 400 mg per day as an amount not generally associated with negative effects for most adults. That figure is general safety guidance; it does not guarantee undisturbed sleep. Remember to count caffeine from tea, energy drinks, supplements, and other sources too. [2]
Dose also changes the timing conversation. In a small randomized trial involving 23 men, a 400 mg dose affected some sleep measures even when taken 12 hours before bed. The study’s size and male-only sample limit how broadly its findings apply. [3]
Keep the ritual.
Adjust the coffee.
If you love an afternoon brewing break, try a smaller serving, half-caf, or decaf.
Decaf still contains some caffeine, so people who are particularly sensitive may prefer a caffeine-free drink later in the day. If you regularly consume a lot of caffeine, reduce it gradually to make withdrawal symptoms less uncomfortable. [2]
You can still enjoy choosing a cup, warming the water, and stepping away from your screen. The pause can remain part of your day as your caffeine intake changes.
Find a routine that fits.
For a week, keep a simple record of:
- Your last caffeine intake and approximate amount.
- Your bedtime and estimated time to fall asleep.
- Nighttime awakenings and how rested you feel in the morning.
Use the notes to guide a small adjustment, such as moving your last coffee earlier or reducing the serving. This is a practical observation exercise, not a medical test.
Build your coffee routine around the bedtime you want to protect—and leave yourself room to adjust.
