caffeine and sleep: when to have your last cup

coffee wakes us up — that's the whole reason most of us drink it. but the same caffeine that saves the morning can quietly steal an hour or two of sleep at night. let's work out how to enjoy it and still sleep well.

how caffeine works

while we're awake, adenosine — a tiredness molecule — builds up in the brain. caffeine is shaped like it and takes its seats on the receptors, so the «i'm tired» signal simply doesn't arrive. the alertness doesn't come from nowhere — you borrow it, and the bill lands when the caffeine wears off.

the half-life

the key figure is caffeine's half-life, on average about 5–6 hours. that means after 5–6 hours half the dose is still in your blood, and half again after that. a cup at 4pm is still working at half strength by 10pm — which is why «i fall asleep fine» and «i sleep well» are two different things.

when to have your last cup

a simple, safe rule is to stop drinking coffee roughly 8–10 hours before bed. if you turn in at 11, make your last cup by lunch or early afternoon. sensitivity varies wildly: some people feel even a morning coffee, others have an espresso after dinner and sleep like a baby. the point is to know your own threshold.

it's not just about falling asleep

even if you do fall asleep, evening caffeine shortens deep and rem sleep — the stages that restore you best. you wake feeling «i slept, but i'm not rested», and reach for coffee again. that closes the loop: caffeine costs you sleep, and you drink more caffeine to paper over it.

keeping the ritual

love a late cup? switch to decaf in the evening — modern decaf tastes good and gives the same warm ritual with no cost overnight. basic sleep hygiene helps too: less screen before bed, a cool dark room, a steady wake time. then the morning coffee is a pleasure, not a cure for your own evening.