The science of caffeine & sleep
Caffeine works by blocking adenosine receptors — the brain's natural "sleepiness" signal. Its half-life is about 5.5 hours, meaning half of the caffeine you consume is still active 5.5 hours later. To sleep soundly, you want caffeine levels below 25% of peak — which takes about 11 hours.
⏱️
5.5-hour half-life
Half of your caffeine is still active 5.5 hours after drinking. A 3pm coffee means significant caffeine remains at 11pm — prime sleep time for most people.
🧠
It blocks sleepiness signals
Caffeine doesn't give you energy — it blocks adenosine, the chemical that makes you feel sleepy. When it wears off, all that accumulated sleepiness hits at once.
😴
It harms sleep quality silently
Even if you fall asleep fine, late caffeine reduces slow-wave (deep) sleep by up to 20%. You sleep the hours but miss the restoration — and wonder why you're still tired.
🧬
Genetics plays a role
The CYP1A2 gene controls how fast you metabolize caffeine. Fast metabolizers clear it in 3-4 hours; slow metabolizers take 8-10 hours. This explains why some people sleep fine after evening coffee.
Caffeine content by drink
| Drink | Serving | Caffeine | Amount |
| Cold Brew Coffee | 16 oz | ~240mg |
|
| Espresso | 1 shot (1oz) | ~150mg |
|
| Drip Coffee | 8 oz | ~95mg |
|
| Energy Drink (Red Bull) | 8.4 oz | ~80mg |
|
| Black Tea | 8 oz | ~47mg |
|
| Green Tea | 8 oz | ~29mg |
|
| Decaf Coffee | 8 oz | ~5mg |
|
Common questions
What time should I stop drinking coffee?
For most people, the general rule is no caffeine after 2pm. But this depends on your sleep time and sensitivity. If you sleep at 11pm, your cutoff for average sensitivity is around 12:30pm–1pm. Use the calculator above to get your personal cutoff based on your exact sleep time.
How long does caffeine stay in your system?
Caffeine has a half-life of about 5.5 hours in most adults. This means after 5.5 hours, half the caffeine remains active. After 11 hours, about 25% remains. Full elimination takes 24+ hours, but levels become negligible (under 10%) after about 18 hours.
Why do I feel tired even after coffee?
Caffeine blocks adenosine receptors but doesn't eliminate adenosine — it just delays its effect. When caffeine wears off, all the accumulated adenosine floods in at once, causing that "crash." Also, if you're sleep-deprived, caffeine can't fully compensate for the cognitive impairment caused by lack of sleep.
Does decaf coffee affect sleep?
Decaf still contains a small amount of caffeine — typically 2–15mg per cup. For most people this is negligible, but those with high sensitivity or who drink multiple cups may notice an effect. The bigger concern with decaf is often the ritual — drinking a hot beverage can increase alertness through temperature and habit cues.
Can I build tolerance to caffeine's sleep effects?
You can build tolerance to some of caffeine's alerting effects, but research shows the sleep-disrupting effects are more persistent. Regular caffeine users often don't feel alert from coffee anymore but still experience reduced sleep quality — they've adapted to feeling worse without realizing it.