The Best Time to Stop Drinking Coffee for Better Sleep
Caffeine lingers for hours. Research shows even an afternoon coffee can steal sleep. Here is how to set a sensible caffeine curfew.
Caffeine works by blocking adenosine, the molecule that builds up through the day and makes you feel sleepy. The catch is how long it sticks around: caffeine has a half-life of about 5 hours in a typical healthy adult. Drink a 200 mg coffee at 4 p.m. and roughly 100 mg is still circulating at 9 p.m.
How late is too late?
A frequently cited 2013 clinical study gave people caffeine 0, 3, and 6 hours before bed. Even the 6-hours-before-bed dose measurably reduced total sleep — and people often did not notice the damage themselves. That is the core problem: caffeine can flatten your sleep quality without making you feel wired.
A simple rule of thumb Set your "caffeine curfew" about 8–10 hours before your planned bedtime. If you go to bed at 11 p.m., make your last coffee around 1–3 p.m. People who are sensitive to caffeine, or who metabolize it slowly, may need an even earlier cutoff.
Work backward from your bedtime
To set the curfew you first need a target bedtime — and the easiest way to find one that ends on a natural wake-up is to count in 90-minute sleep cycles from when you have to get up.
Once you know your bedtime, subtract 8–10 hours for your last coffee. If poor sleep has already piled up, the Sleep Debt Calculator shows how much you owe and how to repay it gradually.
Things that change your cutoff
- Genetics & sensitivity: "slow metabolizers" clear caffeine far more slowly and should cut off earlier.
- Dose: a double espresso needs more lead time than a small cup.
- Hidden sources: tea, cola, energy drinks, pre-workout, dark chocolate, and some painkillers all add up.
- Pregnancy & some medications: can dramatically slow caffeine clearance — follow medical advice.
Better-sleep habits that help more than timing alone
- Get morning daylight to anchor your body clock.
- Keep a consistent wake-up time, even on weekends.
- Swap the late coffee for decaf or herbal tea to keep the ritual.
- Dim screens and lights in the last hour before bed.
People also ask
What time should I stop drinking coffee?
Because caffeine has a ~5-hour half-life and can disrupt sleep even 6 hours out, a good default is to stop 8–10 hours before bed — roughly early-to-mid afternoon for an 11 p.m. bedtime.
Does afternoon coffee really affect sleep?
Yes. Controlled research found caffeine taken 6 hours before bed significantly reduced total sleep time, often without the person realizing their sleep had worsened.
How long does caffeine stay in your system?
About half is cleared in roughly 5 hours, but it takes around 10 hours or more to clear most of a dose — longer in slow metabolizers, during pregnancy, or with certain medications.