The cup you drink at two in the afternoon is not finished with you when the afternoon is. At midnight, for a typical adult, about a quarter of it is still circulating. It does not feel like coffee by then. It does not keep most people from falling asleep. It just quietly changes what the night is made of.
That is the trouble with caffeine and sleep: the cost arrives long after the cup, in a currency you cannot feel.
The arithmetic of a half-life
Caffeine leaves the body on a curve, not a schedule. The time it takes for half of it to clear, its half-life, is about five hours in a healthy adult. That figure is an average with a wide spread: for some people it is closer to three hours, for others seven or more. It runs much longer in pregnancy and for people taking certain medications, including some oral contraceptives, and genetics plays a real part. So treat five hours as a starting point, not a fact about you.
Run the numbers on the average anyway. A cup at 2 pm is half gone by 7 pm. Half of what is left is gone by midnight. That leaves roughly a quarter of the original dose in your system as you turn out the light. A second cup at 4 pm leaves more. An espresso after dinner leaves most of it.
A quarter of a coffee sounds trivial. It is not nothing to a brain trying to sleep, because of what caffeine does.
What it does to a night you thought went fine
Through the day, a chemical called adenosine builds up in the brain. It is a large part of what sleep pressure is: the longer you are awake, the more there is, and the heavier your eyelids get. Caffeine works by blocking the receptors adenosine acts on. It does not remove the tiredness; it hides the signal.
At bedtime the signal is supposed to be loud. That pressure is a big part of what drives the deepest, slowest stage of sleep early in the night, the stage most tied to physical recovery. Lab studies of caffeine and sleep have found the same pattern again and again: less deep sleep, lighter sleep, more brief awakenings, and often a little less sleep overall. In one well-known experiment, a large dose taken six hours before bed still cut measured sleep by more than an hour (Drake, 2013). And because much of the change is to the depth of sleep rather than to falling asleep, it is easy to miss from the inside.
That last part matters most. If coffee kept you staring at the ceiling, you would have fixed this years ago. Most regular drinkers fall asleep fine, so they conclude caffeine does not affect them. The effect is real but hidden: you sleep, it is just shallower, and the morning feels a notch worse for reasons you never connect to a cup you drank nine hours earlier.
Timing, not quitting
The good news is that caffeine is one of the easiest things in sleep to fix without giving anything up. The morning cup, taken early, is mostly cleared by bedtime. It is the afternoon and evening doses that do the damage, and those are the ones people drink out of habit rather than need.
The usual advice is a cutoff of around eight hours before bed, a bit more if you are a slow clearer. For someone asleep at 11, that means the last caffeine around 3 pm, and earlier is better. Remember the hidden sources too: strong tea, cola, energy drinks, pre-workout powders, some pain relievers, and dark chocolate in a quantity that counts.
None of this is a rule. Your half-life is your own, and the only way to learn it is to look.
A two-week self-test
This is a good experiment to run on yourself, because the change is simple and the mornings will tell you something either way.
- Week one: drink as you normally do, and log every caffeinated drink with its time.
- Week two: keep the morning, move the cutoff. Nothing after noon, or nothing within eight to ten hours of bed.
- Keep everything else steady: bedtime, alcohol and training as close to usual as you can manage.
- Then compare the weeks, not the nights. Any single night is noise.
Wave Wellness is built to make the comparison easy. Caffeine is tracked in Eat alongside meals and water, so the times are already in your record if you log them, by a tap or a sentence (“double espresso at 3”). Sleep is read against your own usual rather than a population number: the Sleep page shows the past two weeks against your goal line, and the sleep part of Today’s Wave weighs last night half against your normal and half against seven hours. If you wear a ring, watch or band, its duration and stages come in beside your own note of how the night felt. Your morning check-in records the rest: energy, mood, and how you rate the sleep itself, Awful to Deep.
At the end of two weeks, the questions are plain ones. Did the second week read better against your usual? Did the mornings feel better? Insights looks for patterns in your own record, and you can ask about it directly in Ask, which answers from your record and nothing else.
What the test can and cannot tell you
Be honest about the limits. Two weeks is a short experiment and life does not hold still for it; one bad night of work stress can swamp a small effect. Deep sleep from a consumer wearable is an estimate, decent at trends and rough on any single night, so watch the direction over the week rather than the number on Tuesday. And the result applies to you, not to a rule about everyone: some people will see a clear change, some will see none.
But if your mornings get a notch better when the afternoon cup moves earlier, you have found something most people never test: a change that costs you nothing but a clock. The coffee was never the problem. The time on it was.
Wave Wellness is free on the App Store and Google Play. Download it and see your own sleep today.
Wave is for general wellness and is not a medical device. It does not diagnose or treat sleep problems; if you are pregnant, on medication, or have trouble sleeping that lasts, talk to a doctor about caffeine.



