Last reviewed by the SleepCycleFinder editorial team on 26 September 2026.
Most coffee drinkers underestimate how long caffeine sticks around. The same 3 pm flat white that feels like a routine pick-me-up can still be measurably circulating at midnight, blocking the very signals your body uses to fall asleep. The science behind this is simple, but applying it to a real day means knowing two numbers about your own coffee: roughly how much caffeine, and roughly when.
What caffeine actually does
While you are awake, your brain accumulates a molecule called adenosine. Adenosine builds up over the day and binds to receptors that promote sleep. The longer you have been awake, the more adenosine has accumulated, the sleepier you feel.
Caffeine is shaped just enough like adenosine to slot into the same receptors — without activating them. It does not flush adenosine out of your system. It just blocks the signal. When the caffeine clears, the adenosine that has been building up the whole time hits the receptors at once, which is why the “caffeine crash” can feel surprisingly steep. Crucially, caffeine reduces the perception of sleepiness; it does not reduce the underlying sleep pressure that determines how easily you fall asleep at night.
The half-life that matters
Caffeine's half-life — the time it takes your body to clear half the dose — is roughly five hours in healthy adults. Useful rule of thumb:
- If you have a 200 mg coffee at 12 noon, around 100 mg is still circulating at 5 pm and around 50 mg at 10 pm.
- 50 mg is roughly half a small filter coffee. Many people would have noticed if you handed them that at bedtime.
Half-life varies a lot. Pregnancy, oral contraceptives, some liver conditions, and certain medications can stretch it well past five hours. Smoking, by contrast, shortens it. Genetics — particularly variants of the CYP1A2 enzyme — produce people who clear caffeine in two hours and people who take eight to nine. If your friend can drink an espresso after dinner and sleep, that says nothing about whether you can.
How much caffeine is in what
Common approximate amounts (real-world variation is large, especially for coffee):
- Single espresso: 60–80 mg
- Small filter coffee (8 oz / 240 ml): 90–130 mg
- Large takeaway coffee (16 oz / 480 ml): 200–330 mg
- Black tea: 40–70 mg
- Green tea: 25–45 mg
- Standard energy drink (250 ml): 75–100 mg
- Cola (330 ml): 30–40 mg
- Dark chocolate (30 g): 15–25 mg
Decaf is not zero. Most decaf coffees contain 2–15 mg per cup — usually trivial unless you are very sensitive or drinking several cups close to bedtime.
What good evidence shows
Sleep studies have consistently found that caffeine taken several hours before bed:
- Lengthens the time it takes to fall asleep (sleep latency).
- Reduces total sleep time.
- Reduces the proportion of deep (slow-wave) sleep, which is the most physically restorative stage.
- Has these effects even when subjective sleep quality feels “fine”.
The last point matters. People who chronically over-caffeinate often report that they sleep just fine, then sleep substantially better when they reduce afternoon caffeine for a few weeks. Self-report is unreliable; the body keeps better records.
A practical decision rule
The simplest rule that usually works for healthy adults:
The 10-hour rule
If you want to be in bed by 11 pm, your last caffeine of the day should be by 1 pm. That gives roughly two half-lives of clearance and brings circulating caffeine down to a level that, for most people, no longer disrupts sleep onset.
If you know you are caffeine-sensitive, push the cut-off earlier — 11 am or noon. If you are confident you are a fast metaboliser, you can push it later, but be honest about whether your “fine” nights are actually fine. The cleanest way to find out is to enforce a 1 pm cut-off for two weeks and see what changes.
Tolerance, dependence, and the morning ritual
Regular caffeine use produces tolerance: receptors up-regulate, and the alerting effect at a fixed dose shrinks over time. This is why a daily two-coffee habit becomes a daily three-coffee habit. It is also why the morning coffee can feel less like alertness and more like the absence of withdrawal: a regular caffeine user wakes up in mild withdrawal, drinks coffee, and returns to baseline.
If you suspect this describes your day, a 7–14 day taper (cut your daily dose by about 25% per week) usually resets sensitivity without producing the brutal headaches of a sudden stop. Many people who taper find their daily energy is steadier afterwards, even though their total caffeine is much lower.
The coffee nap, briefly
Caffeine takes about 20–30 minutes to reach peak alerting effect. If you are going to take a 20-minute nap (see our napping guide), drinking a coffee right before lying down means the caffeine kicks in just as you wake. The result is usually a sharper post-nap reset than either intervention alone. This only makes sense before mid-afternoon — the same caffeine that rescues a 1 pm nap will sabotage 11 pm bedtime.
Common mistakes
- Treating energy drinks as a different category. An energy drink at 4 pm is the same caffeine load as a coffee at 4 pm. Sometimes more.
- Counting cups, not milligrams. A 16 oz takeaway coffee can contain three to four times the caffeine of a small home-brewed cup.
- Assuming tea is “safe”. A strong black tea has the caffeine of a small coffee.
- Catching up on sleep with extra coffee the next morning. The added caffeine masks the sleepiness without paying down the underlying sleep debt.
- Not adjusting in pregnancy. Caffeine is cleared much more slowly in pregnancy (its half-life can more than double by the third trimester), and bodies such as the NHS and ACOG advise no more than 200 mg a day. Discuss with your prenatal provider.
How to find your personal cut-off
- For one week, log when you have caffeine and roughly how much. Don't change anything.
- For week two, hold every other variable constant and apply the 10-hour rule. No caffeine within ten hours of intended sleep.
- Compare the second week to the first: time to fall asleep, number of awakenings, how rested you feel at the same wake time.
- If the second week is clearly better, your cut-off is real. If it is identical, try shifting the cut-off earlier and trying again. Some people land at noon. A few land at 10 am.
Caffeine is one of the most studied drugs in the world and one of the most useful psychoactive tools available without a prescription. The trick is not avoiding it; it is using it on purpose. Combined with a stable wake time you can plan with the sleep cycle calculator, a clear caffeine cut-off is one of the most reliable upgrades available to most adults' sleep.