Skip to content
While I breathe, I hope Newsletter (Turkish)

SleepFood

How does what we eat affect sleep?

5 min readlow evidenceIntroductory
By: NefeslyFirst published: 2 November 2026Last updated: 15 November 2026Editor: support@nefesly.com
Books, a lamp and lavender on a table in sunset light.

In short

"Don't eat that in the evening or you won't sleep", "this tea will send you off": we hear dozens of tips like these. The scientific evidence is usually more cautious than we think.

Most of the studies below were done in healthy adults.

Overall diet

A systematic review of 29 studies linking diet and sleep quality found that eating healthy foods went with better sleep quality, while foods rich in processing and added sugar went with worse sleep.1 But most of the studies were cross-sectional and of low to moderate quality, so the authors said they could not establish cause and effect.1

A more recent meta-analysis pooled 37 observational studies and 591,223 people. A Mediterranean diet and a good-quality diet were linked to fewer insomnia symptoms, while an unhealthy diet and a high glycaemic index diet were linked to more.2 Although the authors rated most of the studies as good quality, they graded the certainty of the evidence as very low.2

The relationship may run both ways: poor sleep can disrupt eating, and eating can affect sleep. One review notes that foods rich in melatonin and tryptophan (such as fruit, vegetables and pulses) are associated with sleep outcomes, but that clinical trials are needed to show a causal effect.8 Another review focusing on healthy adults reported that high-carbohydrate diets and foods containing tryptophan, melatonin and plant nutrients (cherries, for example) were associated with better sleep outcomes. The authors explain this through effects on serotonin and melatonin.9 In a meta-analysis of tryptophan supplements, supplementation shortened time awake after falling asleep and did not affect other parts of sleep.10 This result is about supplements and cannot be applied directly to the tryptophan in food.

Types of food

  • Fibre, saturated fat, sugar. In an inpatient experiment with 26 adults of normal weight, deep sleep fell and falling asleep took longer on the night after a day of eating freely. People who ate more fibre had more deep sleep; those who got a larger share of their energy from saturated fat had less. As the share of energy from sugar rose, so did awakenings during sleep.3
  • High glycaemic index carbohydrate. In twelve healthy men who ate a high glycaemic index meal four hours before bed, the time it took to fall asleep was clearly shorter than after a low glycaemic index meal (about 9 minutes against 17.5 minutes). This study was very small and used a single meal.11
  • Amount of carbohydrate. In a meta-analysis pooling carbohydrate experiments, a low-carbohydrate diet moderately increased deep sleep (N3) compared with a high-carbohydrate one, while high carbohydrate lengthened dream sleep (REM). The quality of the carbohydrate did not affect sleep stages. The effect on falling asleep was partly explained by the change in carbohydrate share and glycaemic load.12

The glycaemic index study measured how long it took to fall asleep, and the fibre and fat study measured deep sleep through the night. So although they may seem to contradict each other, they are not answering the same question.

When you eat

In a study comparing the sleep recordings and three-day food diaries of fifty-two healthy volunteers, meals eaten close to bedtime (dinner and night-time snacks) had a negative link with several sleep measures. The links differed between women and men.4

In the glycaemic index study above, the timing of the meal also mattered: when the high glycaemic index meal was eaten four hours before bed, falling asleep took less time (about 9 minutes) than when it was eaten one hour before (about 14.6 minutes).11 For how late meals relate to snoring, see our article on what affects snoring.

Caffeine and alcohol

  • Caffeine. In a meta-analysis of twenty-four studies, caffeine cut total sleep time by 45 minutes on average and sleep efficiency by 7 percent; it lengthened the time to fall asleep by 9 minutes and time awake after falling asleep by 12 minutes. By the authors' calculation, to avoid losing total sleep time, coffee (107 mg of caffeine in 250 mL) should be drunk at least 8.8 hours before bed.5 In a trial at home, 400 mg of caffeine disrupted sleep even when taken six hours before bed.6 Sensitivity to caffeine varies from person to person. On the caffeine page you can see how much of the tea and coffee you drank today is still in your body at bedtime.
  • Alcohol. Alcohol breaks up sleep in the second half of the night. The details are in our article on whether a drink is good for sleep.13 In a more recent meta-analysis of 27 studies, even a low dose of about two standard drinks reduced dream sleep, and the effect grew with the dose. Falling asleep faster was seen only at a high dose of about five standard drinks.7
  • Warm milk with honey and linden tea. For their effects, see our separate article.

What we don't know

  • Most studies are observational; people who eat well may also have other healthy habits.
  • The experiments are small and short. We do not know the long-term effect of a single food or meal.
  • There is not enough evidence to say "this food makes you sleep". The most consistent findings are indirect: a generally balanced diet, avoiding heavy meals close to bedtime, and limiting caffeine.
When to see a doctor?

If your sleep problem has lasted for weeks and is affecting your days, see a doctor. If you have an illness or take a medicine regularly, talk to your doctor before changing your diet. When to see a doctor, Sleep centres in Türkiye

In depthmechanisms, studies, limitations

How the reviews differ. The review by Binks and colleagues is a narrative review. It focuses on healthy adults, its initial search found 3,545 records, and it covers tryptophan, supplements, foods and macronutrients.9 The review by Godos and colleagues is more systematic, but because most of the included studies are cross-sectional, it allows only weak causal inference.1

Study design. The study by St-Onge and colleagues was a randomised crossover inpatient experiment, but the data used here came only from the habitual sleep phase (9 hours in bed) and were based on one day of eating freely.3 The study by Afaghi and colleagues was carried out only in young men and with a rice-based meal.11 The study by Crispim and colleagues is observational and the food diary is self-reported.4

Caffeine. Gardiner and colleagues produced recommendations by caffeine dose and timing: for a standard pre-workout supplement (217.5 mg), at least 13.2 hours.5 In Drake and colleagues, a 400 mg dose taken zero, three and six hours before bed was compared with placebo; sleep was disrupted both by self-report and as measured with a portable device.6

Sources

  1. Godos J, Grosso G, Castellano S et al. Association between diet and sleep quality: A systematic review. Sleep Medicine Reviews. 2021;57:101430. doi:10.1016/j.smrv.2021.101430
  2. Arab A, Karimi E, Garaulet M et al. Dietary patterns and insomnia symptoms: A systematic review and meta-analysis. Sleep Medicine Reviews. 2024;75:101936. doi:10.1016/j.smrv.2024.101936
  3. St-Onge MP, Roberts A, Shechter A et al. Fiber and Saturated Fat Are Associated with Sleep Arousals and Slow Wave Sleep. Journal of Clinical Sleep Medicine. 2016;12(1):19-24. doi:10.5664/jcsm.5384
  4. Crispim CA, Zimberg IZ, dos Reis BG et al. Relationship between Food Intake and Sleep Pattern in Healthy Individuals. Journal of Clinical Sleep Medicine. 2011;7(6):659-664. doi:10.5664/jcsm.1476
  5. Gardiner C, Weakley J, Burke LM et al. The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews. 2023;69:101764. doi:10.1016/j.smrv.2023.101764
  6. Drake C, Roehrs T, Shambroom J et al. Caffeine Effects on Sleep Taken 0, 3, or 6 Hours before Going to Bed. Journal of Clinical Sleep Medicine. 2013;9(11):1195-1200. doi:10.5664/jcsm.3170
  7. Gardiner C, Weakley J, Burke LM et al. The effect of alcohol on subsequent sleep in healthy adults: A systematic review and meta-analysis. Sleep Medicine Reviews. 2025;80:102030. doi:10.1016/j.smrv.2024.102030
  8. Zuraikat FM, Wood RA, Barragán R et al. Sleep and Diet: Mounting Evidence of a Cyclical Relationship. Annual Review of Nutrition. 2021;41(1):309-332. doi:10.1146/annurev-nutr-120420-021719
  9. Binks H, E. Vincent G, Gupta C et al. Effects of Diet on Sleep: A Narrative Review. Nutrients. 2020;12(4):936. doi:10.3390/nu12040936
  10. Sutanto CN, Loh WW, Kim JE. The impact of tryptophan supplementation on sleep quality: a systematic review, meta-analysis, and meta-regression. Nutrition Reviews. 2022;80(2):306-316. doi:10.1093/nutrit/nuab027
  11. Afaghi A, O'Connor H, Chow CM. High-glycemic-index carbohydrate meals shorten sleep onset. The American Journal of Clinical Nutrition. 2007;85(2):426-430. doi:10.1093/ajcn/85.2.426
  12. Vlahoyiannis A, Giannaki CD, Sakkas GK et al. A Systematic Review, Meta-Analysis and Meta-Regression on the Effects of Carbohydrates on Sleep. Nutrients. 2021;13(4):1283. doi:10.3390/nu13041283
  13. Ebrahim IO, Shapiro CM, Williams AJ et al. Alcohol and Sleep I: Effects on Normal Sleep. Alcoholism: Clinical and Experimental Research. 2013;37(4). doi:10.1111/acer.12006
Cite

APA 7

Nefesly. (2026, November 2). How does what we eat affect sleep? Nefesly. Retrieved: 16 November 2026, /en/guide/how-does-food-affect-sleep/

BibTeX

@misc{nefesly2026howdoesfoodaffectsleep,
  author = {{Nefesly}},
  title = {How does what we eat affect sleep?},
  year = {2026},
  howpublished = {\url{/en/guide/how-does-food-affect-sleep/}},
  note = {Last updated 2026-11-15; accessed 2026-11-16}
}

Was this clear? Yes, Partly, No

Report an error These links open your email app; there is no counter or tracking.

Corrections

  • 2026-11-15: English version published.

Disclosure: This article has no sponsor.