A white ceramic mug of black coffee on a wooden table in warm afternoon sunlight, casting a long soft shadow.

Why afternoon caffeine is still with you at bedtime

By

Afternoon caffeine can still be with you at bedtime because it blocks the signal that makes you sleepy, and half of a dose is often still there hours later. Stop caffeine at least 8 hours before your own bedtime.

It blocks the sleepy signal

Caffeine blocks adenosine, the chemical that builds while you are awake and raises the pressure to sleep. You feel more awake because the signal is blocked, not because the need for sleep is gone.

Half of it is still there

Half-life means half is still there. A CDC page puts the half-life at 5 to 6 hours, and it notes that caffeine can stay in your system much longer.

Sleep can start while the cup is still in you

Caffeine is a stimulant, and stimulants can get in the way of sleep. Falling asleep does not prove the cup has left.

A 2013 study found 400 milligrams taken 6 hours before a person’s usual bedtime still disrupted sleep in a meaningful way. The FDA says 400 milligrams a day, about two to three 12-ounce cups of coffee, is an amount not generally tied to negative effects for most adults. That study used the full-day amount as one dose.

A white ceramic mug of black coffee on a white windowsill at dusk, beside stacked books and a small potted plant, looking out on water and distant lit windows under a dark blue sky.

Stop at least 8 hours before your bedtime

The National Heart, Lung, and Blood Institute says the effects of caffeine can last up to 8 hours, so a cup in the late afternoon can make it hard to fall asleep at night. Stop caffeine at least 8 hours before your own bedtime. Make the gap 10 hours or more if sleep is already hard. Do not use 2 p.m. as a rule. That hour only matches an 8-hour gap if bedtime is 10 p.m.

It is not only coffee

Coffee, colas, certain teas, chocolate, and some medicines contain caffeine. Decaf coffee still has about 2 to 15 milligrams in an 8-ounce cup.

What this does not do

This note is not a treatment. It is not a product. It does not promise sleep. If sleep stays hard most nights, a clinician is the person who sorts that out.

Morning light and a steady wake time are the daytime supports that do not leave a stimulant in you at night. Why morning light helps the night. Why the same wake time helps you fall asleep.

If you are already awake in bed, an earlier cutoff will not settle that night. What to do when you are awake in bed.

Questions people ask

How long does caffeine stay in your body?

A CDC page puts caffeine’s half-life at about 5 to 6 hours, which means half a dose can still be there that long after your cup. It can stay in your system longer than that. That is why an afternoon coffee can still be working at bedtime, even if you feel tired.

What time should I stop drinking coffee?

NHLBI says the effects of caffeine can last up to 8 hours, so stop at least 8 hours before your own bedtime. If you go to bed at 11 p.m., that means wrapping up by about 3 p.m. People differ, so if nights are hard, try moving your last cup earlier and see what changes.

Can I have caffeine and still fall asleep fine?

Falling asleep does not prove the caffeine has gone. It blocks adenosine, the signal that builds sleep pressure, and in a 2013 study caffeine taken even 6 hours before bed still cut sleep short. Tea, soda, energy drinks, and chocolate can contain caffeine too, so check the afternoon snack as well as the mug.

Sources