Momental Sleep homeMomental Sleep

Caffeine cutoff calculator

How much caffeine is left at bedtime, and the latest time for your last coffee.

By Christian Krueger, founder of Momental Sleep · Updated

Today's drinks

Typical amounts; your label wins.

  • Caffeine
    107mg
  • Caffeine
    107mg

Caffeine left at bedtime

49mg

More than the 32 mg a coffee leaves after 8.8 hours, the gap a 2023 review of 24 studies found keeps your sleep time intact. Move the last drink earlier, or make it a smaller one.

Latest time for one drink on its own

  • Coffee, 250 ml2:11 PM
  • Black tea, 350 ml5:09 PM
  • Energy drink, 250 ml4:17 PM
  • Pre-workout, 1 scoop9:03 AM

Assumes caffeine halves every 5 hours. Some people clear it much faster or slower.

Not medical advice. General information only, no diagnosis. For a persistent health concern, speak to a professional.

Why it works

Less sleep. Caffeine cut total sleep time by 45 minutes on average.

Gardiner et al., 2023

How to use it

  1. Set your bedtime. A time after midnight counts as the same night.
  2. Add each drink with the time you had it. Pick the drink and change the milligrams if your label says something else.
  3. Read the result. The curve shows the caffeine in your body through the day, and the dashed line marks the bedtime limit.

The list at the bottom gives the latest time for one drink on its own, so you can plan tomorrow's last coffee.

How it works

Caffeine leaves the body at a roughly steady rate: the calculator halves each drink every 5 hours and adds the drinks up. A 2023 review and meta-analysis of 24 studies found that a 107 mg coffee should be had at least 8.8 hours before bed to keep total sleep time intact. At a 5-hour half-life that coffee has about 32 mg left by then, so the calculator uses that as the limit at bedtime.

How fast you clear caffeine varies a lot from person to person. Genes, smoking, pregnancy, liver health and some medicines all change it (Nehlig, 2018), so take the times as a starting point.

Tips

  • Move the last coffee, not the first. A morning cup is mostly gone by bedtime; an afternoon one is not.
  • Watch the hidden sources: energy drinks, pre-workout, cola and strong tea all count.
  • Tired in the afternoon? A 10 or 20-minute nap helps without costing tonight's sleep.
  • Still sleeping badly after cutting back? Look at the rest of the evening in our guide to caffeine, alcohol and sleep.

Questions

When should I stop drinking coffee before bed?
About 9 hours before. A 2023 review of 24 studies found that a regular coffee (107 mg) should be had at least 8.8 hours before bedtime to keep total sleep time intact, and a scoop of pre-workout (217.5 mg) at least 13.2 hours before. For an 11 pm bedtime that puts the last coffee around 2 pm.
How long does caffeine stay in your body?
The calculator assumes it halves every 5 hours, so half of a morning coffee is still there after lunch. Real numbers vary a lot between people: genes, smoking, pregnancy, liver health and some medicines all change how fast you clear it.
I fall asleep fine after coffee. Does it still matter?
It can. In the same review caffeine cut sleep by 45 minutes on average and reduced deep sleep, while falling asleep took only 9 minutes longer. You can fall asleep fine and still sleep shorter and lighter.
How much caffeine is in my drink?
The calculator starts with typical amounts: 107 mg for a 250 ml coffee and the FDA figures for a 350 ml (12 fl oz) black tea, 71 mg, and green tea, 37 mg. Coffee shop and energy drink amounts vary widely, so set the number from the label or the menu.

More tools