Barista Life Blog · 2 min read

When to stop drinking coffee before bed: the 8-hour rule

As an Amazon Associate, Barista Life earns from qualifying purchases.

The practical cutoff is 8 hours before bed, and the science-backed floor is 6: a controlled study by Drake and colleagues (Journal of Clinical Sleep Medicine, 2013) found that 400mg of caffeine taken even 6 hours before bedtime measurably disrupted sleep, cutting recorded sleep time even when people did not notice it. The mechanism is caffeine's half-life of roughly 5 hours: a 4 p.m. double shot (126mg) still has about 60mg working at 9 p.m. and 30mg past midnight. If you sleep at 11, the last full-caffeine drink belongs at or before 3 p.m.

The cutoff math

Drink at 4 p.m. Still active at 9 p.m. Still active at 2 a.m.
Double espresso (126mg) ~60mg ~30mg
8oz drip (95mg) ~48mg ~24mg
Grande cold brew (205mg) ~100mg ~50mg
Black tea (~47mg) ~24mg ~12mg

Half-life averages ~5 hours and varies by person, medication, and pregnancy. The FDA considers up to 400mg per day generally safe for healthy adults.

Why you "sleep fine" and still wake up tired

The Drake study's sharpest finding was that people underestimated the damage: late caffeine reduced measured sleep by more than an hour without subjects reporting it. Caffeine blunts deep-sleep pressure rather than just delaying sleep onset, so the bill arrives as groggy mornings and a heavier "need" for the next day's coffee, which is the loop. Slow metabolizers, a real genetic split, carry the same dose hours longer, and the person who can drink espresso after dinner and sleep is usually a fast metabolizer, not proof it works for you. The mechanism math lives in caffeine half-life explained.

Engineering the afternoon instead

The 2 p.m. slump has answers that do not mortgage the night: a half-caff or a single instead of a double, decaf (2-15mg, close enough to zero, per does decaf have caffeine), or matcha's smaller-and-flatter dose, per matcha vs coffee. Track the whole day against 400mg with the comparison tool; the afternoon soda and the pre-workout count too. And if evening coffee is a ritual you refuse to lose, a good decaf espresso bean pulls a shot indistinguishable enough at 9 p.m.

Related reading

FAQ

What time should I stop drinking coffee? Eight hours before bed as the practical rule; research shows measurable sleep disruption from caffeine even 6 hours out. Sleeping at 11 means last call at 3 p.m.

How long does caffeine keep you awake? Half-life is about 5 hours: half the dose is still active 5 hours later and a quarter after 10. A big afternoon cold brew is a midnight drug.

Can I drink decaf before bed? Generally yes: 2-15mg per cup is a rounding error for most people, though the most caffeine-sensitive notice even that.

Sources: Drake C. et al., "Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed," Journal of Clinical Sleep Medicine (2013); USDA FoodData Central; FDA guidance on caffeine. Not medical advice.

Barista Life runs on coffee people. Browse the Barista Life shop to support the site.

Free download: the espresso dial-in cheat sheet baristas tape to the machine.

Get the PDF