Doctors Note Logo

Published on: 7/21/2026

Do diet and nutrition influence sleep disorders?

Diet and nutrition can significantly affect sleep disorders. What you eat, when you eat, and how much you eat all influence sleep quality, duration, and the likelihood of conditions like insomnia, sleep apnea, and restless legs syndrome.

Key ways diet impacts sleep include:

  • Caffeine and alcohol: Both can disrupt sleep cycles and reduce deep sleep.
  • Heavy or spicy meals: Eating late can trigger acid reflux and disturb rest.
  • Sugar and refined carbs: May cause blood sugar swings that wake you at night.
  • Nutrient deficiencies: Low magnesium, iron, vitamin D, or B vitamins are linked to poor sleep and restless legs syndrome.
  • Sleep-supporting foods: Foods rich in tryptophan, melatonin, and complex carbs (like nuts, cherries, oats, and turkey) may promote better sleep.

If you're experiencing ongoing sleep issues, diet may be only one piece of the puzzle—underlying medical conditions could also be at play. Taking a free, instant, online symptom check can help you quickly identify possible causes and guide your next steps toward better rest and better health.

Reviewed for medical accuracy: 07/20/2026

answer background

Explanation

Diet and nutrition can play an important role in how well we sleep. Certain foods and nutrients can either help or hurt our sleep quality.

  1. Healthy Diets and Sleep: Eating a balanced diet with plenty of fruits, vegetables, and whole grains can improve sleep quality. These foods contain vitamins and minerals that help our bodies relax and prepare for sleep.

  2. Foods to Avoid: Eating too much sugar or drinking a lot of caffeine, especially close to bedtime, can make it hard to sleep. These can keep your brain active when it should be winding down.

  3. Nutrients that Help: Some nutrients, like magnesium and tryptophan, are known to help with sleep. These can be found in foods like nuts, seeds, and turkey.

So, if you want to sleep better, try to eat healthy foods and avoid too much sugar and caffeine. If you're experiencing persistent sleep issues despite making dietary changes, you can check your symptoms with Ubie's free AI-powered tool to better understand what might be affecting your rest at night.

(References)

  • Godos J, Grosso G, Castellano S, Galvano F, Caraci F, & Ferri R. (2021). Association between diet and sleep quality: A systematic review. Sleep medicine reviews, 33549913.

  • Wilson K, St-Onge MP, & Tasali E. (2022). Diet Composition and Objectively Assessed Sleep Quality. Journal of the Academy of Nutrition and Dietetics, 35063665.

  • Zhao M, Tuo H, Wang S, & Zhao L. (2020). The Effects of Dietary Nutrition on Sleep and Sleep Disorders. Mediators of inflammation, 32684833.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.