What makes you sleepy? The caffeine connection most people miss

By · Last updated

Most advice on falling asleep starts with the bedroom. Dark room, cool temperature, no screens. All true. None of it is the largest controllable lever for the average UK adult, which is the cup of coffee you had at three in the afternoon.

Your brain gets sleepy because of adenosine, a chemical that accumulates while you are awake and binds to receptors that trigger drowsiness. Caffeine works by occupying those same receptors and blocking the signal, without clearing the adenosine itself. When caffeine wears off (its half-life is roughly 5 hours), the banked adenosine hits at once. Which is why the 3pm coffee can be the reason you are wide awake at 2am.

What follows: the mechanism, when to stop, and what to switch to.

How caffeine keeps you awake (the actual mechanism)

Adenosine is the molecule that drives sleep pressure. It builds up linearly throughout the day from normal cellular metabolism, and binds to A1 and A2A receptors in your brain. The more adenosine on those receptors, the sleepier you feel.

Caffeine is structurally similar enough to adenosine that it binds to the same receptors. It does not activate them. It just occupies the seat. The drowsiness signal stops firing, you feel alert.

Two details matter. First, caffeine does not reduce the adenosine itself. The molecule keeps accumulating behind the block. When the caffeine clears, you do not get a slow return to baseline. You get the caffeine crash.

Second, the brain adapts to chronic caffeine use by growing more adenosine receptors over time. Tolerance is just the receptor count going up. It is also why people who quit caffeine get a brutal first week: extra receptors, no caffeine to block them, and a backlog of unblocked adenosine signal.

Caffeine’s half-life is around 5 hours for most adults, though the range across the population is 1.5 to 9.5 hours. Genetic variation in the CYP1A2 liver enzyme is the main driver. Smokers metabolise it faster. Pregnant women, anyone on oral contraceptives, and older adults metabolise it slower. The 5-hour figure is a useful default, not a personal one.

When to stop drinking coffee (with a number)

The most-cited primary source on this question is Drake et al. 2013, a Journal of Clinical Sleep Medicine study that gave participants 400mg of caffeine at 0, 3 and 6 hours before bedtime. Even at six hours before bed, total sleep time was reduced by more than an hour. At three hours before bed, time spent awake after sleep onset went up by 27 minutes on average.

That is the empirical backing for the 2pm rule. For a 10:30pm bedtime, 2pm is 8.5 hours of clearance. Half-life maths on an 80mg double espresso says roughly 10 to 15mg is still active at bedtime. That is the threshold most people can sleep through.

Move that espresso to 3pm and you have 90 minutes less clearance. You now have around 25 to 30mg active at 10:30pm, edging into the range where lighter sleepers wake at 3am with no idea why.

Caveats matter. If you are over 65, the half-life lengthens. Stop earlier, around midday. If you are pregnant or on oral contraceptives, caffeine clears two to three times more slowly. The 2pm rule starts to look more like 11am. If you are a heavy smoker, you have a slightly longer window before bed, though quitting is the better lever.

The 2pm cutoff is the default for an average adult on an average bedtime. Adjust it for the body you are actually in.

What else makes you sleepy (and what fights it)

Adenosine accumulation is the main mechanism. There are three others worth naming briefly.

Melatonin. Produced by the pineal gland in response to darkness, melatonin tells your body it is night. Light exposure (especially blue light from screens) suppresses it. Dim the lights an hour before bed and your own melatonin starts climbing without you doing anything else.

Tryptophan. An essential amino acid found in turkey, eggs, chicken, cheese and pumpkin seeds. The body converts it to serotonin and then to melatonin. The old story about turkey making you sleepy at Christmas is partly true, though the carbohydrate load of the meal does most of the actual work.

Magnesium. Modulates melatonin production and relaxes muscle tissue. Sources include spinach, almonds, avocados and bananas. People on consistently low-magnesium diets often see sleep quality improve when they correct it.

If you want a deeper read on food and sleep, the NHS and the Sleep Foundation cover it well. The authority of this site sits on the caffeine side of the equation. Get the caffeine right first, and the other levers start to matter.

Does decaf coffee make you sleepy?

No. It is also worth saying clearly: decaf does not keep you awake either.

Decaf coffee contains 2 to 15mg of caffeine per cup, with an average around 7mg. Compare that with 80 to 100mg in a standard double espresso, or 95mg in a typical filter cup. For one or two evening cups, the caffeine load is negligible.

The cumulative threshold is the one to remember. Five to ten cups of decaf is roughly the caffeine in one or two cups of regular. So if you are having two decaf flat whites after dinner, you are sleep-safe. Eight, and you have just had a coffee.

Decaf has no compound that induces sleep. If you feel sleepy after an evening decaf, that is the warmth, the ritual, and the fact that you were already tired by 9pm. None of which is bad.

For the per-brand figures, see our guide to residual caffeine in decaf. For the broader safety question, is decaf truly caffeine-free covers it. And if you are wondering about the inverse question, does decaf keep you awake is the sibling piece.

What to drink instead of coffee in the evening

If you want to keep the coffee ritual without the sleep tax, decaf is the answer. It tastes like coffee. It looks like coffee. It is sleep-safe at normal serving sizes. No willpower required.

If you want something other than coffee, the evidence ladder runs roughly like this.

Chamomile tea. Contains apigenin, which binds to GABA-A receptors and has a mild calming effect. The clinical evidence is limited, but the side-effect profile is essentially zero and the comfort factor is high.

Valerian root. Multiple human trials show modest sleep quality improvements at 160 to 600mg. Mechanism is GABA-related, with possible adenosine receptor activity. The smell is an acquired taste.

Tart cherry juice. The strongest clinical evidence of any sleep-aid drink. Naturally high in melatonin, supported by randomised placebo-controlled trials. Unusual choice for most UK drinkers, but the evidence is real.

Warm milk. Tryptophan, calcium, and the psychological weight of the ritual. The actual melatonin contribution is small. The comfort is not.

Decaf green tea sits in its own quiet category. L-theanine has been shown to reduce stress markers and support more restful sleep patterns, and the caffeine content is minimal compared with regular green tea. If you want something lighter than decaf coffee in the evening, this is a good shout.

The 2pm switch (how to do it in practice)

The behavioural change is two lines.

Regular coffee before 2pm. Decaf after.

Same drink, same ritual, same time of day. The only thing that changes is which bag of beans you reach for after lunch.

If you brew at home, keep regular and decaf in two labelled bags. Some grinders allow saved presets, which makes the switch a button press. If you are in a coffee shop, ask for the decaf. Every UK specialty roaster I have come across stocks at least one.

The point of the switch is that you do not have to give up coffee. You change the time of day at which you stop drinking the caffeinated version. The full version of this argument, including how to handle the transition week and what to expect on adenosine rebound, is in our guide to switching to decaf.

If you are wondering how late decaf is genuinely safe, how late can you drink decaf puts a number on it.

And if you want a starting point, browse the decaf coffees in the directory and filter for whatever brew method you actually use at home. Most of them are good enough that you would not notice they are decaf in a blind tasting.

Frequently asked questions

What makes you sleepy?
Adenosine, a chemical that builds up in your brain while you are awake and binds to receptors that signal drowsiness. The longer you have been awake, the more adenosine has accumulated. Caffeine works by blocking those same receptors without clearing the adenosine itself, which is why caffeine wakes you up and why you crash hard once it wears off.
How long does caffeine stay in your system?
The half-life of caffeine is around 5 hours for most adults. A 200mg dose at 3pm leaves roughly 100mg active at 8pm and 50mg at 1am. Individual half-lives range from 1.5 to 9.5 hours depending on genetics, age, smoking status, pregnancy and oral contraceptive use.
What time should I stop drinking coffee?
Around 2pm for most people on a 10:30pm bedtime. Drake et al. 2013 found that even at six hours before bed, a 400mg caffeine dose reduces total sleep time by more than an hour. The 2pm rule is pharmacokinetics, not folklore.
Does decaf coffee make you sleepy?
No. Decaf does not contain enough caffeine to put you to sleep, and it does not contain a sleep-promoting compound. What it does is sit alongside your evening without keeping you awake. At 2 to 15mg per cup compared with 80 to 100mg in regular coffee, decaf is sleep neutral at one or two servings.
Can decaf coffee keep you awake?
Only in extreme volumes. Five to ten cups of decaf carries roughly the same caffeine as one to two cups of regular coffee. At normal evening servings of one or two cups, decaf will not keep you awake.
What can I drink instead of coffee in the evening?
Decaf coffee is the obvious switch if you want to keep the ritual. Chamomile and valerian teas have a mild GABA-related effect. Tart cherry juice has the strongest evidence in clinical trials. Warm milk is mostly comfort, with a small calcium and tryptophan contribution.