Sleep Health

Caffeine and Sleep: How Timing May Matter

Caffeine's long half-life means an afternoon coffee can still be working at midnight. A practical guide to timing, dose and sensitivity.

April 9, 20267 min readSleep Health

How caffeine works against sleep

Caffeine blocks adenosine receptors. Adenosine is the molecule that accumulates during waking hours and creates the pressure to sleep, so blocking it masks tiredness without removing it. When the caffeine clears, the accumulated adenosine is still there — which is why a late coffee can produce both a delayed bedtime and an abrupt crash.

Half-life and the afternoon problem

Caffeine's half-life in healthy adults is roughly five to seven hours, and longer in some people, in pregnancy, and with certain medications. A 200 mg dose at 3 p.m. can leave around 100 mg in circulation at 9 p.m. Even when people fall asleep normally, studies of evening caffeine show reduced deep sleep and increased awakenings.

Individual sensitivity is real

Genetic differences in caffeine metabolism mean some adults clear it quickly and others slowly. Slow metabolisers may notice disrupted sleep from a single morning cup, while others tolerate an early-afternoon espresso. Tolerance to the alertness effect also develops faster than tolerance to the sleep-disrupting effect, so 'coffee doesn't affect me' often means 'I no longer feel it' rather than 'it no longer disrupts my sleep'.

Hidden sources

Beyond coffee: black and green tea, energy drinks, cola, pre-workout supplements, dark chocolate, some weight-loss products and several over-the-counter pain relievers contain caffeine. When auditing your intake, count everything for a week rather than estimating.

A practical timing rule

If you have any sleep difficulty, set a cut-off around eight hours before bed — for most people that means midday to 2 p.m. Keep total daily intake within widely cited safe limits for healthy adults (up to about 400 mg), and treat that as an upper bound rather than a target. If you rely on caffeine to function after lunch, the underlying problem is usually insufficient sleep.

Cutting back without the headache

Abrupt withdrawal commonly causes headache, irritability and fatigue for a few days. Taper instead: reduce by roughly a quarter every three to four days, replace some cups with decaf or tea, and keep hydration and morning light consistent. Most people stabilise within two weeks.

FAQ

Does decaf contain caffeine? Yes, a small amount — usually a few milligrams per cup. Is it fine to have caffeine if I fall asleep easily anyway? Falling asleep is only part of the picture; late caffeine still reduces deep sleep. Does a coffee nap work? Caffeine before a 20-minute nap can improve subsequent alertness, but keep it well away from the evening.

Bottom line

Caffeine is not the enemy of sleep — late caffeine is. Move your intake into the morning, count the hidden sources, and reassess after two weeks. If sleepiness returns without it, that is information about your sleep, not your coffee.

Editorial standards

Last reviewed April 2026 against current US sleep medicine guidelines by the Sleep Disorder Symptoms editorial team. This article is educational and is not medical advice — see our medical disclaimer and editorial policy.

Recommended next

Related articles