In a nutshell
- Caffeine cut sleep by 45 minutes on average; by the authors’ calculation, a cup of coffee needs to be drunk at least 9 hours before bed so that it does not shorten sleep.1
- Alcohol helps you fall asleep, but disrupts sleep in the second half of the night and reduces REM sleep.3
- People who went to bed less than 3 hours after dinner had 7.5 times higher odds of reflux in one study than those who left at least 4 hours between dinner and bed.5
1Caffeine
Moderate evidencewhat this means
After caffeine, 45 min less sleep
A summary of 24 studies: caffeine cut sleep by 45 minutes on average and reduced the share of time in bed spent asleep by 7%. Falling asleep took 9 minutes longer, time awake at night rose by 12 minutes and deep sleep fell by about 11 minutes.1
Moderate evidence
Last coffee at least 8.8 h before bed
By the authors’ calculation, a cup of coffee (107 mg of caffeine per 250 ml) has to be drunk at least 8.8 hours before bed so that it does not shorten sleep. For a standard serving of a pre-workout drink (217.5 mg) it is 13.2 hours. If you go to bed at 11 pm, your last coffee should be around 2 pm and a pre-workout drink no later than 9:45 am.1
Weak evidence
400 mg hurt sleep even 6 h before
A dose of 400 mg of caffeine (roughly 4 cups of coffee) disrupted sleep even when taken 6 hours before bed — cutting it by more than an hour.1,2
How much coffee is safe and what caffeine does for exercise is covered in Coffee and caffeine.
2Alcohol
Myth“A nightcap helps you sleep.”
Probably not. Alcohol shortens the time to fall asleep but disrupts sleep in the second half of the night. Moderate evidence At any dose, alcohol shortens the time it takes to fall asleep and the first half of the night tends to be calmer. In the second half, however, sleep gets disrupted, the first REM sleep comes later and at moderate and high doses there is less REM sleep over the whole night.3
Moderate evidence
Even low doses: worse sleep recovery
Finnish employees wore a heart rate monitor in everyday life. On days with alcohol, the body recovered worse in the first 3 hours of sleep (measured by heart rate variability): by 9 percentage points after a low dose, 24 after a moderate and 39 after a high one. For a 70 kg person, a low dose was at most roughly a pint of ordinary beer. Regular exercise and youth did not protect against it.4
What else alcohol does to your health is covered in Alcohol.
3Dinner
Weak evidence
Bed soon after dinner: 7.5× reflux
A Japanese study compared 147 people with reflux disease (heartburn, stomach acid coming back up) and 294 people without symptoms. Those who went to bed less than 3 hours after dinner had 7.5 times higher odds of reflux than those who left at least 4 hours between dinner and bed.5
Weak evidence
More fibre linked to deeper sleep
In a study of 26 adults, on the day they chose their own food, those who ate more fibre slept more deeply and those who ate more saturated fat slept more lightly. More sugar was linked to waking up more often. This is only an association from a single day, not proof of cause.6
What to take from this
- Have your last coffee about 9 hours before bed and a pre-workout drink in the morning.1
- Alcohol may help you fall asleep, but it then disrupts your sleep — your body recovers worse at night after it, even after one beer.3,4
- Eat dinner at least 3 hours before bed, especially if you get heartburn.5
- ForkRep adds up the caffeine and alcohol from your food and drinks for the whole day.
Read next Coffee and caffeine Alcohol How much sleep Sleep and weight loss
Sources
Written on , based on studies available at that date. Newer research may change the conclusions.
- Gardiner C. et al. (2023). The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev 69:101764. doi.org/10.1016/j.smrv.2023.101764
- Drake C. et al. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med 9:1195–1200. doi.org/10.5664/jcsm.3170
- Ebrahim I. O. et al. (2013). Alcohol and sleep I: effects on normal sleep. Alcohol Clin Exp Res 37:539–549. doi.org/10.1111/acer.12006
- Pietilä J. et al. (2018). Acute effect of alcohol intake on cardiovascular autonomic regulation during the first hours of sleep in a large real-world sample of Finnish employees: observational study. JMIR Ment Health 5:e23. doi.org/10.2196/mental.9519
- Fujiwara Y. et al. (2005). Association between dinner-to-bed time and gastro-esophageal reflux disease. Am J Gastroenterol 100:2633–2636. doi.org/10.1111/j.1572-0241.2005.00354.x
- St-Onge M.-P. et al. (2016). Fiber and saturated fat are associated with sleep arousals and slow wave sleep. J Clin Sleep Med 12:19–24. doi.org/10.5664/jcsm.5384
This is general information and does not replace a doctor. If you often get heartburn or have problems with alcohol, talk to your GP.