Health and Nutrition
When Should You Stop Drinking Coffee? The Surprising Rule That Could Improve Your Sleep
Discover how caffeine affects sleep quality, why some people are more sensitive than others, and simple ways to enjoy coffee without sacrificing a good night's rest
- Yitzchak Eitan
- | Updated
(Photo: shutterstock)Coffee is an integral part of the daily routine for millions of people around the world. It helps maintain alertness and concentration and has even been linked in various studies to a number of health benefits.
However, the timing of your coffee consumption may have a much greater impact on your sleep than you realize.
The 9-Hour Rule for Better Sleep
In an article published by The Washington Post, Dr. Trisha Pasricha, a physician-researcher who specializes in the connection between the digestive system and the brain, explained that anyone hoping to enjoy high-quality, uninterrupted sleep should finish their last cup of coffee about nine hours before bedtime.
In practical terms, if you plan to go to bed at 10:00 p.m., your final sip of coffee should ideally be around 1:00 p.m.
Why Does Coffee Affect Sleep for So Long?
The answer lies in caffeine's long-lasting effect on the nervous system.
A comprehensive 2023 meta-analysis that reviewed 24 studies on caffeine consumption found that drinking the equivalent of a single standard cup of coffee may:
Reduce total sleep time by approximately 45 minutes
Decrease sleep efficiency
Increase the amount of time it takes to fall asleep
Caffeine works by blocking a brain chemical called adenosine, which naturally builds up throughout the day and signals the body that it is time to rest. When adenosine is blocked, the brain remains in a more alert state, even late into the evening.
Why Some People Sleep Fine After Coffee
Not everyone processes caffeine in the same way.
Genetics play an important role in determining how quickly the liver breaks down caffeine. Some people can drink coffee late at night and still fall asleep with ease, while others may struggle to sleep for hours after consuming the same amount.
This difference helps explain why caffeine sensitivity varies so widely from person to person.
How Much Caffeine Is Considered Safe?
According to the U.S. Food and Drug Administration (FDA), healthy adults can generally consume up to 400 milligrams of caffeine per day safely.
That amount is roughly equivalent to:
4–5 cups of brewed coffee
8–10 cups of black tea
Several caffeinated soft drinks, depending on the brand
However, even if your total daily intake falls within recommended limits, the timing of consumption can still significantly affect sleep quality.
Better Alternatives for Late-Day Cravings
If you enjoy the ritual of a warm drink later in the day, consider moving your coffee intake to the morning hours and replacing afternoon or evening coffee with:
Herbal teas
Decaffeinated coffee
Warm lemon water
Caffeine-free beverages
These alternatives allow you to enjoy the experience without increasing the risk of sleep disruption.
Coffee offers many benefits, but when consumed too late in the day, it can quietly interfere with sleep quality, even if you don't immediately notice the effects. Following the simple 9-hour rule may help you fall asleep faster, sleep longer, and wake up feeling more refreshed. For many people, the secret to better sleep is not giving up coffee — it's simply drinking it earlier.

