Plenty of people say coffee doesn't affect their sleep. Many of them are right that they fall asleep fine. What caffeine changes is often less obvious than that.
Lodestar turns your Fitbit data into daily sleep, recovery and stress scores on your iPhone, each against your own normal. Try the free beta.
How caffeine works
Through the day, a chemical called adenosine builds up in your brain. The more of it there is, the sleepier you feel. Caffeine works by blocking the receptors adenosine acts on, so the sleepy signal doesn't get through. The adenosine is still there. You just don't feel it until the caffeine wears off.
Caffeine leaves your body slowly. Its half-life in a typical adult is around five hours, though it ranges widely, from a couple of hours to much longer. Genetics play a part, and pregnancy and some medications slow it down considerably. A half-life of five hours means a large coffee at 3pm still leaves a meaningful amount in your system at bedtime.
What the research found
In one well-known study, people took caffeine at bedtime, three hours before, or six hours before, and their sleep was measured at home. Even the dose taken six hours before bed cut total sleep by about an hour as measured by a sleep monitor (Drake and colleagues, Journal of Clinical Sleep Medicine, 2013). The dose was large, roughly the amount in a couple of big coffees, but the point holds: an afternoon coffee can still be working against you at night, and you may not feel it.
The common effects:
- Taking longer to fall asleep.
- Less deep sleep, the stage most tied to physical recovery.
- Lighter, more broken sleep, with more brief wake-ups.
- Shorter total sleep, especially if your wake time is fixed.
So what's the cutoff?
A reasonable starting point for most people is no caffeine within about eight hours of bed. If you go to sleep at 11pm, that means finishing your last coffee by around 3pm. Some people need a wider gap. A few seem fine with less.
Things that change your answer:
- The dose. An espresso, a large brewed coffee and an energy drink can differ several-fold in caffeine.
- Hidden sources. Tea, cola, chocolate, pre-workout drinks and some pain relievers all contain caffeine.
- How sensitive you are. Slow metabolizers feel it for much longer. If one afternoon coffee leaves you wired at night, you're probably one of them.
- How much sleep you're carrying. When you're short on sleep, caffeine masks the tiredness, which makes it easy to build up sleep debt without noticing.
Finding your own cutoff with your Fitbit
This is a good question to test on yourself, because the average answer may not be yours. Try this:
- For a week or two, keep caffeine to the morning only. Note your sleep duration, deep sleep and how long you seem to take to fall asleep.
- Then move your last cup later, by an hour or two, for another week.
- Compare the weeks, not single nights. Sleep varies a lot night to night for other reasons.
Fitbit's sleep stages are estimates, so don't read too much into small shifts. A clear drop in deep sleep or total sleep across a whole week is worth taking seriously.
A note on the afternoon dip
A lot of late-day coffee is a response to the post-lunch slump. That slump is partly your body clock and partly short sleep. If you need caffeine at 4pm every day to function, the fix may be more sleep at night rather than more coffee. See why you crash in the afternoon.
How Lodestar helps
Lodestar reads your Fitbit sleep data on iPhone and scores each night against your own baseline. The Sleep score shows how much duration, deep sleep, REM and efficiency each added or took away, and Trends lets you compare weeks side by side, which makes a caffeine experiment easy to read. It doesn't track what you eat or drink, so you'll need to note your coffee timing yourself.