Lifestyle

    What Time Should You Stop Drinking Coffee? The Science of Caffeine Cutoff

    By Sleep Calculator

    10 min read
    Last updated: January 2026

    Reviewed for medical accuracy by sleep health researchers. (What does this mean?)

    The question isn't whether caffeine affects sleep — it does, measurably and significantly. The question is how late you can drink it before the effects become problematic. The answer depends on caffeine's half-life, your personal metabolism, and what time you need to sleep. Here's the science.

    The Four Caffeine Timing Scenarios

    Before noon: Optimal timing

    Stopping caffeine before noon gives your body 10-12 hours to metabolize it before a typical 10-11 PM bedtime. With a 5-6 hour half-life, noon caffeine is less than 10% active by midnight. This is the most conservative and most sleep-protective approach.

    There's an additional benefit to morning-only caffeine: cortisol peaks naturally in the first 90 minutes after waking, providing alertness without caffeine. Drinking coffee during this cortisol peak reduces caffeine's effectiveness and accelerates tolerance development. Delaying your first coffee to 90-120 minutes after waking — and stopping by noon — maximizes caffeine's benefits while minimizing its sleep costs.

    Before 2 PM: The standard recommendation

    The 2 PM cutoff is the most widely recommended guideline, and for good reason. With a 5-6 hour half-life, coffee at 2 PM is approximately 25% active at midnight and less than 15% active at 2 AM. For most people with a 10-11 PM bedtime, this level of residual caffeine has minimal impact on sleep onset.

    However, "minimal impact on sleep onset" doesn't mean "no impact on sleep quality." A 2013 study in the Journal of Clinical Sleep Medicine found that caffeine consumed 6 hours before bedtime (equivalent to 4 PM for a 10 PM bedtime) reduced total sleep time by more than 1 hour — even when subjects reported no subjective difficulty falling asleep. The sleep disruption was measurable on polysomnography despite the subjects not noticing it.

    Between 2–6 PM: Measurable sleep disruption

    Caffeine consumed between 2-6 PM is still significantly active at bedtime for most people. At 6 PM, with a 5-hour half-life and a 10 PM bedtime, you still have 50% of that caffeine active when you try to sleep. This level of caffeine:

    • Increases sleep latency (time to fall asleep)
    • Reduces total sleep time
    • Decreases slow-wave (deep) sleep
    • Increases nighttime awakenings

    Many people in this category don't connect their afternoon coffee to their sleep problems because the effects are delayed by several hours. The coffee at 4 PM that "doesn't affect my sleep" is often the reason you're lying awake at 11 PM.

    After 6 PM or close to bedtime: Significant sleep impairment

    Caffeine consumed after 6 PM is substantially active at bedtime. An 8 PM coffee with a 5-hour half-life is still 50% active at 1 AM. This level of caffeine will measurably delay sleep onset, reduce sleep depth, and fragment sleep architecture — even if you feel like you can fall asleep normally.

    The subjective experience of "caffeine doesn't affect my sleep" is often a sign of caffeine tolerance — your brain has upregulated adenosine receptors to compensate for chronic caffeine blockade. You may fall asleep despite the caffeine, but your sleep quality is measurably worse than it would be without it.

    The Half-Life Math

    Caffeine's half-life is 5-6 hours in most adults (range: 3-9 hours depending on genetics, liver function, and medications). Here's what that means for common coffee times:

    • 8 AM coffee: 6% active at 10 PM — negligible impact
    • 12 PM coffee: 12% active at 10 PM — minimal impact
    • 2 PM coffee: 25% active at 10 PM — modest impact
    • 4 PM coffee: 50% active at 10 PM — significant impact
    • 6 PM coffee: 50% active at midnight — major impact
    • 8 PM coffee: 50% active at 1 AM — severe impact

    Individual Variation

    Caffeine metabolism varies significantly between individuals:

    • Fast metabolizers (CYP1A2 gene variant): Half-life of 3-4 hours. Can tolerate later caffeine with less sleep impact.
    • Slow metabolizers: Half-life of 7-9 hours. Need to cut off caffeine much earlier — sometimes by noon.
    • Pregnancy: Dramatically slows caffeine metabolism (half-life can reach 15+ hours).
    • Oral contraceptives: Slow caffeine metabolism by approximately 50%.
    • Smoking: Accelerates caffeine metabolism.

    What to Drink Instead

    • Herbal teas — chamomile, valerian, passionflower (sleep-promoting)
    • Decaf coffee — contains 2-15mg caffeine vs 95mg in regular (still some caffeine)
    • Tart cherry juice — natural melatonin source, improves sleep quality
    • Warm milk — contains tryptophan and casein, mildly sleep-promoting
    • Water — dehydration disrupts sleep; adequate hydration supports it

    Is Your Caffeine Timing Hurting Your Sleep?

    Caffeine timing is one of the key lifestyle factors in our Sleep Quality Assessment. Find out your score and get personalized recommendations.

    Get your personalized Sleep Score — including lifestyle factors like caffeine, alcohol, and stress, plus 6 evidence-based recommendations.

    ✦ Take the Sleep Quality Assessment

    Sources: Drake et al. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine. Nehlig (2018). Interindividual differences in caffeine metabolism and factors driving caffeine consumption. Pharmacological Reviews.

    Ready to Optimize Your Sleep?

    Use our free Sleep Calculator to find your perfect bedtime based on 90-minute sleep cycles.

    Calculate optimal bedtime
    Based on sleep cycles
    Wake up refreshed
    Try the Sleep Calculator

    Frequently Asked Questions