Caffeine & Sleep
Cutoff & timing

How Many Hours Before Bed Should I Stop Caffeine?

The 8–10 hour rule is a starting point, not a law. See how many hours you really need before bed by dose and metabolism — and find your cutoff.

By Vadim Semenko
Built the caffeine half-life engine · 6 min read · Updated 2026-06-03

For an average-sized coffee, stop caffeine about 8–10 hours before bed. That window lets a roughly 95 mg dose fall below the ~50 mg level where caffeine starts to disrupt sleep. But the "8–10 hour rule" is a starting point, not a law — your real cutoff shifts earlier with bigger drinks and slower metabolism, and later if you're a small-cup, fast-clearing drinker. Here's how to find your number.

Where the "8–10 hours" rule comes from

Caffeine leaves your body on a predictable curve. Its half-life averages about 5 hours, so every 5 hours the amount in your system roughly halves. Start with a 95 mg cup and you're at ~48 mg after 5 hours, ~24 mg after 10 hours.

Sleep researchers find most people sleep best with less than about 50 mg of caffeine on board at bedtime — a 2025 meta-analysis of controlled crossover trials found caffeine cut total sleep time and slow-wave sleep in a dose-dependent way. Do the math on an average coffee and an average metabolism, and 8–10 hours is the span it takes to drop under that line. That's the whole basis of the rule — one assumed dose, one assumed metabolism.

The problem: almost nobody is exactly average on both.

Why it's a starting point, not a law

Two facts blow up the one-size-fits-all version:

  • Half-life ranges from about 3 to 9 hours between people — a fast metabolizer clears caffeine nearly three times quicker than a slow one (what determines your side).
  • Dose scales the clearance time. Each doubling of the dose adds roughly one half-life — about 5 more hours — before you fall below 50 mg.

A landmark controlled study by Drake and colleagues (2013) gives the rule its teeth: a 400 mg dose taken even 6 hours before bed cut objectively measured sleep by more than an hour — and participants often didn't notice. That's why "just don't drink it right before bed" isn't enough. The damage happens hours upstream.

How many hours you actually need, by dose

Using a 5-hour half-life (an average metabolizer), here's how long it takes a single drink to fall under the ~50 mg sleep threshold:

DrinkApprox. doseHours to reach ~50 mgPractical cutoff before bed
Espresso / small tea~65 mg~2 h6 h is plenty
Brewed coffee (1 cup)~95 mg~5 h8 h
Large coffee / 2 cups~200 mg~10 h10–12 h
Energy drink (big)~300 mg~13 h12+ h
Pre-workout / 400 mg~400 mg~15 hMorning only

These assume average clearance. A slow metabolizer should add several hours to every row; a fast metabolizer can shave a few off. (That bottom row also sits at the FDA's 400 mg daily ceiling for healthy adults — a reason to keep it a morning-only dose.)

👉 These are averages. To see exactly how many hours you need for your drink, your dose and your bedtime, try the calculator.

How to personalize your cutoff in three steps

1. Anchor to your bedtime, not the clock

"Stop at 2 PM" is meaningless if you don't know when you sleep. Count backward from your target bedtime instead. If you're in bed at 11 PM and need a 9-hour buffer, your last call is 2 PM. Our coffee cutoff time by bedtime guide maps this out for every bedtime.

2. Adjust for your dose

A double espresso isn't a single cup. Size up the drink, size up the buffer — add roughly 5 hours per doubling of caffeine. The table above is your cheat sheet.

3. Adjust for your metabolism

This is the biggest lever. If coffee "hits you hard," lingers into the evening, or wrecks your sleep even from an early cup, you're likely a slow metabolizer and should push your cutoff earlier. If you can drink it at 5 PM and sleep fine, you're probably fast. Find your type with Are you a fast or slow caffeine metabolizer?.

The bottom line

The 8–10 hour rule is a useful default, but it's built on an average drink and an average body. Bigger doses need an earlier cutoff; slower metabolism needs an earlier cutoff; the threshold that actually matters is ~50 mg at bedtime. Don't memorize a number off the internet — calculate it from your own drinks, your own bedtime, and your own clearance rate.


Stop guessing your cutoff. The Caffeine & Sleep app logs every drink in one tap, models your personal caffeine curve from your dose and metabolism, and pings you 30 minutes before your real last-call time — so you always know exactly how many hours before bed to stop. Get the app →

Try it for your bedtime
Drink
You drink it at
Bedtime
Coffee · 95 mg · assuming an average ~5 h half-life
At bedtime
31 mg
should be fine
Latest safe Coffee: 6:22 PM

Frequently asked

A safe starting point is 8–10 hours before bed for a normal coffee (about 95 mg), which lets levels fall below the ~50 mg that disrupts sleep. Larger doses or slow metabolism need more — sometimes 12+ hours. Smaller doses or fast metabolism can get away with 6–8.

Often not. A controlled study found that 400 mg taken even 6 hours before bed cut objective sleep time by more than an hour. For a single 95 mg cup, 6 hours leaves about 24 mg — borderline. For a large dose, 6 hours is clearly too late.

Because caffeine's half-life ranges from about 3 to 9 hours between people. The 8–10 hour window covers an average metabolizer with an average-sized coffee; your real number sits inside or outside it depending on your dose and genetics.

Yes. Doubling the dose adds roughly one half-life — about 5 hours — to the time it takes to clear below the sleep threshold. A 200 mg drink needs to be finished noticeably earlier than a 95 mg one.

Then add hours. A slow metabolizer with a 9-hour half-life still has meaningful caffeine on board 10–12 hours after a normal coffee. If caffeine lingers or hits you hard, treat 10+ hours as your minimum.

Sources

  1. FDA — Spilling the Beans: How Much Caffeine is Too Much? (400 mg/day guidance)
  2. Drake C. et al., 2013, J Clin Sleep Med 9(11):1195–1200 — caffeine 0, 3, or 6 hours before bed reduced sleep
  3. Meta-analysis of controlled crossover trials, 2025 — caffeine reduced total sleep time and slow-wave sleep dose-dependently

Educational content, not medical advice. For concerns about caffeine, sleep, pregnancy or a health condition, talk to a qualified clinician.

Track your caffeine. Sleep better.

The app does this live all day — one-tap logging, widgets, and a 30-minute pre-cutoff reminder. Free, no ads.

Keep reading

Get the App — it’s free