Caffeine has a half-life of roughly five to six hours in most adults, meaning a coffee at three in the afternoon can leave a meaningful amount of caffeine in the system by nine at night — even for people who do not feel noticeably stimulated at that point.
Feeling fine is not the same as sleeping well
Sleep studies have found that caffeine consumed several hours before bed can reduce deep sleep and total sleep time even in people who report falling asleep without difficulty, suggesting the subjective feeling of being unaffected does not fully capture caffeine’s effect on sleep architecture.
Individual variation is substantial
- Genetic differences in caffeine metabolism mean some people clear it considerably faster or slower than others.
- Regular caffeine users may develop some tolerance to its stimulant effects, though this does not fully eliminate its impact on sleep architecture.
- Age can slow caffeine metabolism somewhat, extending its effects later into the evening.
It is not just coffee
Tea, chocolate, many soft drinks, energy drinks and some pain medications contain meaningful amounts of caffeine, and their cumulative effect across a day is easy to underestimate if only coffee consumption is being tracked.
How to test your own sensitivity
Shifting a normal caffeine intake earlier in the day for one to two weeks, while otherwise keeping the same schedule, is a reasonably practical way to notice whether sleep quality improves, particularly for anyone who has never directly tested how timing affects their own sleep.
Genetic differences in caffeine metabolism
A specific liver enzyme, CYP1A2, is largely responsible for metabolising caffeine, and genetic variation in this enzyme produces meaningfully different metabolism speeds between individuals. Some people are classified as “fast metabolisers” who clear caffeine considerably quicker than “slow metabolisers,” which partly explains why identical caffeine habits produce very different sleep effects between two people.
Caffeine tolerance and what it does and does not change
Regular caffeine consumption leads to some tolerance to its alerting, stimulant effects over time, which is why habitual coffee drinkers often report not feeling noticeably more awake after their usual cup. Importantly, several sleep studies suggest this subjective tolerance does not fully extend to caffeine’s effect on sleep architecture, meaning habitual users can still experience measurable sleep disruption from evening caffeine even without feeling stimulated by it.
A short experiment worth trying if sleep quality is a concern
- Track your usual caffeine intake and timing for one week without changing anything.
- For the following one to two weeks, shift your last caffeinated drink to before midday.
- Note any changes in how quickly you fall asleep and how rested you feel on waking.
- Adjust based on what you observe, since individual sensitivity varies considerably.
Caffeine withdrawal if you decide to cut back
People who reduce caffeine intake suddenly, particularly from a high baseline, commonly experience headaches, fatigue and irritability for several days, a recognised withdrawal pattern. Tapering gradually rather than stopping abruptly tends to reduce the severity of these symptoms considerably.
Caffeine and anxiety, a related but distinct effect
Beyond its effect on sleep, caffeine can independently increase feelings of anxiety or jitteriness in sensitive individuals, an effect that operates through similar stimulant pathways but is worth distinguishing from its sleep effects specifically, since someone might notice one without the other depending on their individual sensitivity profile.
People managing anxiety conditions are sometimes advised by clinicians to moderate caffeine intake as part of a broader management approach, independent of any sleep-related concerns, which is a useful reminder that caffeine’s effects extend beyond the sleep-timing focus of this article.
As with sleep effects, anxiety-related sensitivity to caffeine varies considerably between individuals, and the same self-experimentation approach — adjusting intake and timing, then observing the results over one to two weeks — is a reasonable way to assess personal sensitivity in this area as well.
Caffeine sources people commonly overlook
Beyond the obvious sources discussed earlier, some over-the-counter pain relievers and cold medications contain added caffeine, intended to counter drowsiness or enhance the effect of the primary medication, which can meaningfully add to daily intake for anyone taking these products regularly without realising the caffeine content involved.
Pre-workout supplements and some flavoured waters or “energy” branded products also frequently contain substantial caffeine, sometimes in amounts comparable to or exceeding a standard cup of coffee, making product labels worth checking specifically for caffeine content for anyone trying to accurately track and adjust their total daily intake.
Anyone genuinely struggling with sleep despite adjusting caffeine timing carefully should not assume caffeine is necessarily the primary cause; a range of other factors, several covered elsewhere in our sleep reporting, may be contributing and are worth exploring alongside any caffeine-related changes.
Frequently asked questions
How long does caffeine actually stay in your system?
Caffeine has an average half-life of five to six hours in most adults, meaning roughly half the dose remains in the system that long after consumption, with individual variation based on genetics, age and regular use.
Can caffeine affect sleep even if I fall asleep fine?
Yes. Research shows caffeine consumed several hours before bed can reduce deep sleep and total sleep time even in people who do not report difficulty falling asleep.
What time should I stop drinking caffeine?
A commonly suggested general guideline is to avoid caffeine within six to eight hours of bedtime, though individual sensitivity varies and may require personal adjustment.
Will cutting caffeine give me withdrawal symptoms?
Reducing caffeine suddenly, especially from a high baseline, commonly causes headaches, fatigue and irritability for a few days. Tapering gradually rather than stopping abruptly tends to reduce these effects.
Does decaf coffee still contain some caffeine?
Yes, decaffeinated coffee typically contains a small amount of residual caffeine, though considerably less than regular coffee, which is generally not enough to affect sleep for most people.



