How Long Does Caffeine Stay in Your System? The Real Timeline for Sleep
Caffeine's half-life is about 5 hours for the average adult. Five hours after your coffee, half of its caffeine is still in your body, and clearing all of it takes closer to a full day. How fast you clear it depends on your genes, hormones and age,4 and for slow metabolizers the half-life can run 8 to 10 hours.
A cup of coffee at 2 PM leaves roughly 50mg of caffeine still active in your bloodstream at midnight. For 40% of people (the slow metabolizers), it's closer to 100mg. Which is why "I fell asleep fine" doesn't mean your body actually got the sleep it needed.
Most articles answer this question with "5-hour half-life" and move on. That's technically true and practically misleading.
Half-life isn't when caffeine clears. It's when half of it clears. The rest keeps working.
If you've decided you're not willing to give up your afternoon ritual but your sleep is suffering, SUPERBA Coffee and SUPERBA Matcha are two paths that keep the ritual with a fraction of the sleep cost. More on which fits at the end.
For the broader framework of how much caffeine your body can actually handle, see our full guide on personal caffeine limits.
What's Inside
- The Short Answer
- The Real Timeline (Not Just "5 Hours")
- Why "Fell Asleep Fine" Doesn't Mean "Slept Fine"
- Your Personal Cutoff (Not 2 PM for Everyone)
- Are You a Slow Metabolizer?
- Why Women Need an Earlier Cutoff
- The Caffeine Debt You Didn't Know You Were Accruing
- What to Do (Short-Term and Long-Term)
- Two Paths If You Still Want Afternoon Warmth
- Frequently Asked Questions
- When Caffeine-Related Sleep Problems Need a Doctor
The Short Answer
Half of it clears in about 5 hours. All of it takes closer to a day. For sleep, what matters is how much is still there at bedtime.
Half-life: about 5 hours. Five hours after your coffee, half of its caffeine is still in your body.
Fully cleared: about a day. It takes 4 to 5 half-lives, roughly 20 to 25 hours for the average person.
Slow metabolizers: up to twice as long. Their half-life can run 8 to 10 hours, so a 2 PM cup leaves closer to 100mg at midnight.
Your real cutoff depends on how much you drink, how fast you clear it and when you go to bed. Section 03 walks through it.
01The Real Timeline (Not Just "5 Hours")
Here's what half-life actually means. If caffeine has a 5-hour half-life for you (the average), it takes 5 hours for your body to clear half the dose.
Not all of it. Half.
So one 200mg cup of coffee at 8 AM breaks down roughly like this:
| Time | Hours after | Still active |
|---|---|---|
| 1 PM | 5 | 100mg |
| 6 PM | 10 | 50mg |
| 11 PMBedtime | 15 | 25mg |
| 4 AM | 20 | 12.5mg |
Full clearance takes 4 to 5 half-lives, roughly 20 to 25 hours for the average person. For a slow metabolizer (half-life 8 to 10 hours), full clearance can take 32 to 50 hours.

The number that actually matters for sleep isn't "when is it gone." It's "how much is still there at bedtime." Caffeine still in your bloodstream at bedtime means less deep sleep and more night waking, and the more there is, the bigger the effect.2
This is why "5-hour half-life" as a stopping point is misleading.
The caffeine you drank at breakfast is still shaping your sleep tonight.
02Why "Fell Asleep Fine" Doesn't Mean "Slept Fine"
This is the piece that most articles mention but almost nobody explains. Caffeine does more than keep you awake. It changes the quality of your sleep even when you're unconscious.
Three things happen when caffeine is in your system at bedtime.
Deep sleep gets compressed. Less of your deepest, most restorative stage, with more light sleep and brief awakenings.2
REM may shift too. Dream sleep can change as well, though the research here is mixed.
The hours can look normal. Time in bed can look the same while real recovery is lower.
What happens in each stage
Slow-wave sleep gets compressed
Slow-wave sleep (SWS) is deep sleep. It's when your body does the heaviest repair, your immune system does its maintenance, and your brain clears metabolic waste. A healthy adult normally gets 90 to 120 minutes of SWS in a full night.
Caffeine at bedtime cuts into slow-wave sleep and adds more light sleep and brief awakenings.2 You can spend the same hours in bed and still get less of the deepest, most restorative stage. That's how you wake up tired after a full night.
REM may shift too
REM is dream sleep, important for memory and emotional processing. Some studies also see caffeine change the timing or amount of REM, but the findings are mixed. The clearest effect is on deep sleep.
Total sleep time can look normal while actual recovery is lower
Your sleep tracker might say 7 hours. Your body might report 5. The number of hours between going to bed and getting up doesn't capture what actually happened in between.
A landmark 2013 study tested 400mg of caffeine given 0, 3, or 6 hours before bedtime. Even taking caffeine 6 hours before bed reduced total sleep time by 41 minutes and added 8 minutes of wake time during the night.1
Six hours. Not three.

For most people, "fell asleep fine" is still shallow sleep debt accumulating.
03Your Personal Cutoff (Not 2 PM for Everyone)
Most articles give you a single number ("cut off at 2 PM"). That number is wrong for most people in both directions. Some can go later, and many need to stop earlier.
Four variables decide your real cutoff.
- Dose. 100mg (half a cup) clears much faster than 300mg (large coffee).
- CYP1A2 speed. Your genetic metabolism rate. Fast, normal or slow.
- Bedtime. The later you go to bed, the more buffer you have.
- Sleep goal. Just want to fall asleep, or want deep restorative sleep.
Your cutoff time before bed
Hours between your last caffeine and lights out
| Your metabolism speed | |||
|---|---|---|---|
| Your dose | Fasthalf-life 3-4h | Normalhalf-life 5-6h | Slowhalf-life 8-10h |
| 100mghalf cup | 4 hbefore bed | 6 hbefore bed | 10 hbefore bed |
| 200mgone cup | 6 hbefore bed | 8 hbefore bed | 12 hbefore bed |
| 400mglarge / 2 cups | 10 hbefore bed | 13 hbefore bed | 16 hbefore bed |
Slow metabolizer + 400mg + 11 PM bedtime = last sip by 7 AM.
So if you're a slow metabolizer who drinks a large coffee (400mg) and wants to be asleep by 11 PM, your last sip should be by 7 AM. Yes, 7 AM.
If that sounds extreme, it's because the "2 PM cutoff" rule assumes you're a 70kg man with fast metabolism who's okay with mediocre deep sleep. Most people aren't that person.
04Are You a Slow Metabolizer? (Sleep-Specific Self-Check)
If the matrix above feels too conservative, run this check first. Four questions.
1. Does one morning coffee affect your sleep that same night?
Yes = likely slow metabolizer. The caffeine from 8 AM shouldn't still be active at 11 PM for a fast metabolizer.
2. Do you fall asleep okay but wake up between 2 and 4 AM?
Yes = caffeine disrupting your sleep architecture mid-cycle. Fast metabolizers rarely see this.
3. Does it take you longer to fall asleep on days you have caffeine after lunch?
Yes = there's still enough caffeine in your system at bedtime to delay sleep.2
4. Do you sleep 7 to 8 hours and still wake up tired?
Yes = SWS compression. You're getting hours but not depth.
Three or more yes answers means you're metabolizing slowly, and the cutoff numbers in the matrix should be applied as-is or earlier. Don't try to split the difference.
For a broader self-check across all caffeine sensitivity symptoms (not just sleep), see our full guide on caffeine sensitivity symptoms.
05Why Women Need an Earlier Cutoff
Caffeine metabolism is slower in women than in men on average. During parts of your cycle and across life stages, it slows much further. Most generic cutoff advice assumes male biology.
| When | What changes | Your cutoff |
|---|---|---|
| Luteal phase (the two weeks before your period) | Estrogen competes with caffeine for the CYP1A2 enzyme, so caffeine lasts roughly 25 to 40% longer. | If it's normally 2 PM, closer to noon. |
| On the pill or HRT | Combined oral contraceptives slow caffeine clearance by 40 to 65%.3 HRT does similar. | 2 to 4 hours earlier. |
| Perimenopause | CYP1A2 activity declines with age, and sleep itself becomes more fragile. | Many need to move from 2 PM to 10 AM. |
| PMS week | Blood sugar swings, caffeine and hormonal insomnia stack up. | More conservative than usual. |
The details for each stage
Luteal phase
The two weeks before your period, estrogen and progesterone rise. Estrogen competes with caffeine for the CYP1A2 enzyme. Your effective caffeine half-life extends by roughly 25 to 40%.
If your cutoff is normally 2 PM, during the luteal phase it should be closer to noon.
Oral contraceptives and HRT
Combined oral contraceptives slow caffeine clearance by 40 to 65%.3 HRT does similar. The practical implication: your afternoon coffee is metabolically closer to a 1.5x dose.
If you're on either, shift cutoff 2 to 4 hours earlier than non-OCP cutoff recommendations.
Perimenopause
CYP1A2 activity declines with age. Sleep itself becomes more fragile in perimenopause (fewer deep sleep hours, more night waking). Caffeine amplifies both.
Many women in their 40s need to move cutoff from 2 PM to 10 AM to protect sleep they can't afford to lose.
PMS week
Blood sugar instability, caffeine and hormonal insomnia make a triple compound. The week before your period, treat caffeine timing more conservatively than usual.
For a complete picture of how caffeine affects women across cycles and life stages, see our full guide on caffeine sensitivity symptoms. If low iron or chronic dizziness is also part of your picture, see our guide on the caffeine-iron connection.
06The Caffeine Debt You Didn't Know You Were Accruing
Caffeine doesn't reset to zero each morning. If your previous day left residue in your system, today's dose stacks on top.
Here's what actually carries over with one 200mg coffee at 2 PM every day.
| Metabolism | Left at 11 PM, day one | What carries over |
|---|---|---|
| Normal (5-hour half-life) | About 57mg | Only about 7mg by the next afternoon, so day two's bedtime level is barely higher (about 59mg). |
| Slow (10-hour half-life) | About 107mg | Enough that bedtime levels settle around 130mg by day three, roughly 20% higher. |
So for most people the caffeine itself doesn't snowball. What builds up is the sleep you lose each night, and for slow metabolizers the caffeine stacks too.
The other insight most articles skip: timing matters more than total dose. 300mg of caffeine in your day will affect sleep very differently depending on when you drink it.
| Same 300mg | Left at 11 PM |
|---|---|
| Early concentration (300mg all at 8 AM) | About 38mg. Most of it has cleared by evening. |
| Spread throughout the day (100mg at 8 AM, noon and 2 PM) | About 63mg. The 2 PM cup alone accounts for roughly 30mg of it. |
Same total intake. Very different consequences.
If your afternoon coffee feels non-negotiable, moving it to late morning (before 11 AM) often fixes sleep without reducing total caffeine. If Thursday feels worse than Monday on the same amount of coffee, that's mostly the lost sleep adding up.
For why your afternoon crash isn't just today's blood sugar, see our guide on caffeine jitters and the two mechanisms behind them. If your afternoon symptoms include nausea or stomach churn, see our guide on coffee nausea patterns.
07What to Do (Short-Term and Long-Term)
Two timeframes, two different sets of moves.
Short-term (you had late caffeine, want to protect tonight's sleep)
- Accept the night won't be optimal. Don't try to force deep sleep by overcorrecting with sleep aids. They stack problems.
- Hydrate. Caffeine's diuretic effect dehydrates slightly, which fragments sleep further. Drink water with dinner, not right before bed.
- Avoid alcohol as a "sedative." Alcohol knocks you out but destroys REM. Combined with caffeine on board, you get the worst of both.
- Plan a 20-minute nap tomorrow if your day allows. Short naps don't erase sleep debt but help cognitive function.
- Earlier cutoff tomorrow. Don't repeat the mistake.
Long-term (you want this to stop being a weekly problem)
- Move your cutoff 2 hours earlier for 2 weeks. See if sleep improves. If yes, that's your new cutoff.
- Reduce total dose by 25 to 50%. Keep the ritual, just a smaller cup.
- Do a caffeine reset every 2 to 3 months. 7 to 14 days off caffeine lets your adenosine receptors recalibrate. When you return, you'll be more sensitive to lower doses (meaning you need less).
- Consider a lower-caffeine alternative for your daily driver. If you want to keep afternoon warmth without the cost, the honest options are herbal coffee blends or low-caffeine matcha.
For a full comparison of coffee alternatives (and why most fail), see our deep dive on the best coffee alternative for anxiety and stomach pain.
08Two Paths If You Still Want Afternoon Warmth
If moving your cutoff earlier isn't realistic (you genuinely want afternoon warmth), the answer isn't willpower. It's switching the input.
Choose based on what you want to keep, not on what you want to lose.

Keep the coffee ritual
About 75mg of caffeine per serving (Yunnan Arabica and Wuyi oolong together), so a 2 PM cup leaves under 20mg by midnight. Slow metabolizer? It's still a morning drink.
Try SUPERBA Coffee
Afternoon warmth without the coffee
40 to 45mg of caffeine with L-theanine for a calmer lift, plus 20 billion CFU probiotics. A 2 PM cup leaves about 10mg by midnight.
Try SUPERBA MatchaFrequently Asked Questions
How long does one cup of coffee really stay in your system?
A single 200mg cup takes roughly 20 to 25 hours to fully clear for a normal metabolizer. The caffeine's effect on sleep architecture persists 10 to 15 hours. For slow metabolizers, both numbers extend 50 to 100%.
How long does it take for caffeine to kick in?
Usually within 15 to 45 minutes, and it peaks around an hour after you drink it. That first hour is the lift. Everything in this guide is about the long tail that follows.
Does caffeine affect sleep even if you fall asleep?
Yes. Even when you fall asleep normally, caffeine on board reduces slow-wave sleep (your deepest, most restorative stage) and adds more light sleep and brief awakenings. You wake up feeling less rested despite the same total hours.
Is 2 PM really the best coffee cutoff?
Not for most people. For a fast metabolizer with a smaller cup and a late bedtime, 2 PM can work.
If you're a slow metabolizer, on the pill or HRT, in perimenopause, or drinking a large coffee, your cutoff should be earlier. See the matrix in the personal cutoff section for your specific situation.
Why does caffeine affect me differently than my spouse or friend?
CYP1A2 metabolism rate is genetic. Roughly 40% of people are slow metabolizers. Add hormonal variables (menstrual cycle, contraceptives, HRT, perimenopause) and the differences get wider.
Someone else's "I can drink coffee at 6 PM and sleep fine" is not transferable advice.
Does decaf coffee count for the cutoff rule?
Mostly no, but with caveats. Decaf has 2 to 15mg per cup, usually too little to affect sleep. Very sensitive people may still notice an evening decaf.
If that's you, keep decaf to the afternoon and switch to a caffeine-free herbal tea at night.
Can I "catch up" on sleep after a late coffee?
Partially. A single poor night can be partly compensated by an earlier bedtime or short nap the next day. But chronic late caffeine creates chronic sleep debt that doesn't fully recover on weekends.
The right fix is prevention, not catch-up.
When Caffeine-Related Sleep Problems Need a Doctor
Most caffeine-sleep issues are manageable through timing and dose adjustments. Some signs mean the issue is bigger than caffeine.
- Full insomnia (can't fall asleep, can't stay asleep) persisting after 2 weeks of zero caffeine
- Frequent waking between 2 and 4 AM even with no caffeine intake
- Daytime fatigue severely impacting function even when your tracker shows enough hours
- Snoring, gasping, or breathing pauses noticed by a partner (possible sleep apnea)
- New heart palpitations or anxiety unrelated to caffeine intake
- Sleep problems coinciding with hormonal transition (perimenopause) that aren't improving with lifestyle adjustments
The goal isn't to self-diagnose everything. It's to know when caffeine is a solvable variable and when it's masking something else that needs attention.
References
- Drake C., Roehrs T., Shambroom J., Roth T. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 9(11):1195-1200. PubMed
- Clark I., Landolt H.P. (2017). Coffee, caffeine, and sleep: A systematic review of epidemiological studies and randomized controlled trials. Sleep Medicine Reviews, 31:70-78. PubMed
- Abernethy D.R., Todd E.L. (1985). Impairment of caffeine clearance by chronic use of low-dose oestrogen-containing oral contraceptives. European Journal of Clinical Pharmacology, 28(4):425-428.
- Nehlig A. (2018). Interindividual differences in caffeine metabolism and factors driving caffeine consumption. Pharmacological Reviews, 70(2):384-411. PubMed
This content is for informational purposes only and is not intended as medical advice. Individual results may vary. Consult your healthcare provider before starting any new supplement regimen.