sleepcaffeine.com

How caffeine affects your sleep — science-backed guides, tips, and energy alternatives.


© 2026 Sleep Caffeine. All rights reserved.

What Is the Best Time to Stop Drinking Coffee? A Sleep Expert Breakdown

You love your coffee — but you also love a good night’s sleep. The question millions of people ask is simple: when exactly should you have your last cup? The answer depends on several factors unique to you.

The General Rule: 8 Hours Before Bed

Most sleep researchers agree that caffeine should be avoided for at least 6-8 hours before bedtime. Since caffeine has a half-life of about 5-6 hours, an 8-hour buffer ensures that most of the stimulant has been processed by your body before you try to sleep.

For someone with a 10 PM bedtime, this means your last coffee should be around 2 PM at the latest. But if you’re particularly sensitive to caffeine, pushing that cutoff to noon — or even earlier — may be necessary.

Factors That Affect Your Ideal Cutoff Time

1. Your Genetic Caffeine Metabolism

The CYP1A2 gene determines how quickly your liver processes caffeine. About 50% of the population are “fast metabolizers” who clear caffeine relatively quickly. The other half are “slow metabolizers” who may feel the effects for much longer. If coffee in the early afternoon still keeps you up, you’re likely a slow metabolizer.

2. Your Age

As we age, our ability to metabolize caffeine slows down. Someone in their 20s might handle a 3 PM espresso without issue, while someone in their 50s might need to stop by noon.

3. Your Total Daily Caffeine Intake

If you’re consuming 400mg+ of caffeine per day (about 4 cups of coffee), even an early cutoff time might not be enough. The cumulative effect means your body is processing caffeine constantly, which can impair sleep quality even if you stop early.

How to Find Your Personal Cutoff Time

The best approach is to experiment systematically. Try moving your last coffee 30 minutes earlier each week and track your sleep quality. Many people find their sweet spot is between 12 PM and 2 PM for a 10 PM bedtime.

  1. Start with a 2 PM cutoff for one week
  2. Track how long it takes you to fall asleep and how rested you feel
  3. If sleep doesn’t improve, try 1 PM the next week
  4. Continue until you find the time that gives you consistent, quality sleep

What to Drink After Your Cutoff Time

Missing your afternoon coffee ritual? Try these alternatives that won’t disrupt your sleep: herbal tea (chamomile, peppermint, or rooibos), decaf coffee (still contains 2-15mg of caffeine, so be mindful), golden milk (turmeric latte), or warm water with lemon.