Can I have an espresso after dinner?
You can, but it’ll still be in you at bedtime. A single shot has about 63 mg of caffeine, and at 9pm it leaves about 53 mg in you when you fall asleep at 11pm. That’s between our two lines, where one trial found no measurable effect and another found less deep sleep a little higher up. For a low night, have it by 7pm, or ask for a decaf espresso.
Restaurants put espresso on the dessert menu, and it feels like a tiny amount. It is small, smaller than an 8 oz coffee. But caffeine halves only about every 5 hours, so two hours after dinner most of the shot hasn’t gone anywhere yet.
53 mg is still in you when you fall asleep at 11pm after a single espresso at 9pm, about an espresso. On our lines that’s in between.
An espresso after dinner is like a small dog sleeping on your bed. Plenty of people sleep right through it, and some wake up at 3am wondering why.
How the time changes it
| A single espresso at | Left at 11pm | Left at midnight |
|---|---|---|
| 7pm | about 40 mg | about 35 mg |
| 8pm | about 46 mg | about 40 mg |
| 9pm | about 53 mg | about 46 mg |
| A double at 9pm | about 106 mg | about 92 mg |
| A decaf espresso at 9pm | about 13 mg | about 12 mg |
These come from the same model as our cutoff clock, on a 5 hour half-life, the average for healthy adults. Yours could be anywhere from 1.5 to 9.5 hours, so a fast clearer gets off lighter and someone on the pill or late in pregnancy carries more. A 9pm shot still leaves about 30 mg at 3am.
What the trials say
In a 2025 trial, 23 young men had 100 mg of caffeine, a bit more than one and a half shots, 4 hours before bed, and nothing changed that the researchers could measure. Nobody has tested a small dose closer to bed than 4 hours, so an espresso 2 hours before sleep is past what anyone has checked. A 2023 review of 24 studies found caffeine barely changes how fast you fall asleep. It takes deep sleep later in the night instead, which you won’t notice.
For that reason our clock never gives a time later than 4 hours before you fall asleep, even for a small drink.
What we’d order
If you want the ritual, a decaf espresso is the swap. One chain’s decaf shots measured 3 to 16 mg each in a 2006 lab test, and at 9pm the high end leaves about 13 mg at 11pm. If you want the real thing, have it with lunch or an early dinner, by about 7pm for an 11pm bedtime.
If you do have one late and your night is fine, you may be one of the people it barely touches. Try it on a few nights with a tracker or a morning note, and see. The cutoff clock works it out for your bedtime.

5 sources
- USDA FoodData Central, espresso, restaurant-prepared (FDC 171891), SR Legacyfdc.nal.usda.gov
- McCusker RR and others, Caffeine content of decaffeinated coffee, Journal of Analytical Toxicology, 2006pubmed.ncbi.nlm.nih.gov
- Antonio J and others, Common questions and misconceptions about caffeine supplementation: what does the scientific evidence really show?, Journal of the International Society of Sports Nutrition, 2024doi.org
- Gardiner C and others, Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial, Sleep, 2025doi.org
- Gardiner C and others, The effect of caffeine on subsequent sleep: a systematic review and meta-analysis, Sleep Medicine Reviews, 2023doi.org