The Caffeine GuideEnjoy it and sleep well
An espresso cup on its saucer
Sleep and timing

Can I have an espresso after dinner?

By GyroscopeUpdated November 15, 20265 sources
On this page
  1. How the time changes it
  2. What the trials say
  3. What we’d order

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.

0501001503pm6pm9pmmidnight3am40 mg80 mg53 mg

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 atLeft at 11pmLeft at midnight
7pmabout 40 mgabout 35 mg
8pmabout 46 mgabout 40 mg
9pmabout 53 mgabout 46 mg
A double at 9pmabout 106 mgabout 92 mg
A decaf espresso at 9pmabout 13 mgabout 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.

A watercolor of a woman in a mustard cardigan at a cafe table on an autumn terrace, one small espresso in front of her
5 sources
  1. USDA FoodData Central, espresso, restaurant-prepared (FDC 171891), SR Legacyfdc.nal.usda.gov
  2. McCusker RR and others, Caffeine content of decaffeinated coffee, Journal of Analytical Toxicology, 2006pubmed.ncbi.nlm.nih.gov
  3. 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
  4. Gardiner C and others, Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial, Sleep, 2025doi.org
  5. Gardiner C and others, The effect of caffeine on subsequent sleep: a systematic review and meta-analysis, Sleep Medicine Reviews, 2023doi.org
With Gyroscope One, you see the milligrams and the time of your last cup, found in your drinks, next to your sleep. Open Gyroscope

Your personalized guide

Is my coffee keeping me up?

Eight taps. You get how much caffeine is still in you when you fall asleep, the latest time for the drink you actually have, and the one change for tonight.

  • What you fall asleep with, in milligrams
  • Your cutoff for your own drink
  • Free, under a minute
Start