Skip to main content
Read all in Nutritious Eating

How diet affects sleep: five tips for a better night’s sleep through nutrition

April 28, 2021 9 min. read
by Amanda Bourbonais

Need better sleep? Learn about the connection between nutrition and sleep and how you can improve sleep through diet.

Photo by Ketut Subiyanto from Pexels

Over a third of American adults do not get the recommended 7-9 hours of sleep per night.1 Since proper sleep fuels our ability to process and store information as well as repair our bodies2—not to mention handle stress and maintain resilience—perhaps it’s no wonder that Americans are more sick and stressed out than ever.3

Many factors influence our sleep/wake patterns, including circadian rhythm, screen time, light pollution at night, caffeine consumption, and more.4 But how does our diet influence how we sleep? Can we improve our sleep by eating certain foods and prioritizing certain nutrients? Many studies now suggest that we can positively impact our sleep through nutrition, even those with conditions like insomnia or sleep apnea. 

Today, we will review the relationship between nutrition and sleep as well as review a few ways that you can improve your sleep through your diet. 

In this blog:

  • What is the relationship between nutrition and sleep?
  • What foods can help with sleep? 
  • What foods interfere with sleep? 
  • Tips for supporting sleep with nutrition
  • Connecting your diet to your sleep

What is the relationship between nutrition and sleep? 

As with just about every factor of our health and diet, there is a huge connection between what we eat and how we sleep, including the time spent in different stages of sleep, duration, ability to fall asleep, and ability to wake up feeling rested and energized. 

The standard American diet of ultra-processed foods, high saturated fats, and low fiber is strongly associated with poor sleep quality and duration.5 But does that mean you can never have an after-dinner bowl of ice cream again if you want better sleep? Not necessarily. Let’s take a look at some of the dietary patterns and foods that can help improve your sleep.

Carbohydrates and sleep

Carbohydrates have been one of the most demonized food groups in American culture for years now (as healthy fats have become more accepted). However, our bodies need quality carbohydrate sources for sustainable energy, and as it turns out, for getting better sleep. 

Research has shown that a high quality carbohydrate meal at dinner can make falling asleep easier and reduce wake time during the night, while a low carb diet caused significant sleep disruptions and difficulty maintaining sleep. This may be due to higher tryptophan and melatonin content in some carbohydrate foods.6

Does this mean you should only eat carbohydrates for breakfast, lunch, and dinner? Probably not, and certainly the type of carbohydrates will affect your sleep as well. Skip the processed snacks—Whole foods like potatoes, whole grains such as quinoa and brown rice, squash, and fruit are great carb sources to include with your meals, especially with dinner, for better sleep. 

Mediterranean diet and sleep

The Mediterranean diet has also shown promise in reducing the symptoms of insomnia in women in particular. This aligns somewhat with the higher carb theory above, as the macronutrient composition of the Mediterranean diet is roughly a quarter protein, a quarter healthy fats, and half high quality carbohydrates from whole food sources (although they can vary greatly by region).7

The Mediterranean diet is also high in a variety of necessary micronutrients (vitamins and minerals) and phytonutrients (beneficial plant compounds like antioxidants), which we’ll cover next. 

What micronutrients affect sleep? 

A number of essential micronutrients have been found to affect sleep duration and quality. 

Deficiencies in vitamin B1, folate, phosphorus, magnesium, iron, zinc, and selenium have been associated with shorter sleep duration. Low selenium, calcium, vitamin D, vitamin C, and lycopene were also connected to poor sleep quality and maintenance. 

Increasing zinc-rich foods in particular has been shown to improve the ability to fall asleep and get better sleep.8

The amino acid glycine, as well as magnesium, sodium, potassium, and electrolytes in general are all well-known to lower cortisol, modulate the stress response, and improve sleep quality.9

What foods can help with sleep? 

Now for the fun part: let’s dig into some specific foods that can help you get a better night’s rest.  


Finally, a reason to choose dairy! While many people have trouble with digesting dairy, if you can tolerate it, milk can help you fall asleep and stay asleep due to high tryptophan, calcium, and other essential minerals. Plus, it comes pre-balanced with protein, fat, and carbohydrates. Goat’s milk or sheep’s milk may be a good option for those who have trouble with cow’s milk.8

Kiwi Fruit

The round, furry and deliciously sweet kiwifruit has been shown to increase total sleep time and sleep efficiency (the time you spend asleep in relation to the time you spend in bed), and decrease wake time after onset of sleep. This may be due to a number of factors with kiwis: they have a high antioxidant content, high vitamin C and E, and they are one of the few foods to contain high levels of serotonin, which has been associated with improved sleep. Researchers found that two kiwis eaten one hour before bed over four weeks produced the improved sleep results.8

Tart cherries/juice

Research has also found favorable associations with tart cherries and improved sleep quality. Tart Montmorency cherries have a high melatonin concentration, and researchers found an increase in melatonin levels in participants who drank tart cherry juice. This led to longer total sleep time as well as increased sleep efficiency. If you struggle with sleep but have been reluctant to use a melatonin supplement, tart cherry juice might be a good food-based option to try.10


Oysters contain high zinc levels, which we have already connected to better sleep. Fatty fish like salmon may also have some sleep benefits due to higher vitamin D content, but this hasn’t been studied extensively.11

What foods interfere with sleep? 

Of course, there are also foods that can make sleep more difficult. If you have sleep troubles, it may be beneficial to avoid these foods for a while and see whether your sleep changes. 


Of course, we all know that caffeine can disrupt sleep. Whether you drink coffee, soda, black or green tea, or eat chocolate, consuming these in small amounts earlier in the day may be better for your sleep quality. Some of these foods have health benefits too, such as antioxidants and essential minerals, so you don’t necessarily have to eliminate them completely. But depending on your caffeine sensitivity, it might benefit you to cut back.12

Processed Sugar (by itself)

Our cells run on glucose, so some sugar is absolutely necessary to maintain your metabolic health. But high-sugar, low-fiber (usually processed) foods like candy, cookies, cake, sugary cereals, etc. aren’t good for your health or your sleep quality. A study on Japanese women found that a diet high in confectionary and noodles was associated with poor sleep quality, while a diet high in fish and vegetables was associated with higher sleep quality.8

Tips for supporting sleep with nutrition

There are a few different strategies you can try with your diet to improve your sleep quality and hit the recommended 7-9 hours. To determine what works well for you, try out just one strategy at a time and see how your sleep is affected. 

Try a bedtime snack

Believe it or not, your body needs fuel to sleep. Although you aren’t awake and moving, your body is doing a huge amount of work repairing, and regenerating your body while you’re asleep (especially during REM sleep). And to do this, it needs fuel. So some people may benefit from a small bedtime snack an hour or so before bed.13 

As some of the research has suggested, a glass of milk might be a good option for a balanced protein, fat, and carbohydrate snack, if dairy is tolerated. Kiwifruit or tart cherries may be another option to try for their high serotonin and melatonin content. Others may do better with a carbohydrate source like a small sweet potato or a slice of whole grain toast. Every dietary pattern is unique, so explore different options to see what suits you the best.8, 10 

On the flip side, some research advises you to avoid eating before bed 

Research suggests some people sleep better by not consuming anything for several hours before bedtime. This might be you if you have digestive trouble or you tend to have your largest meal for dinner, so you don’t feel hungry before bed.

Eat regular meals

Skipping breakfast and eating meals irregularly were strongly associated with poor sleep quality.8 Make sure to eat regularly and eat balanced meals with protein, fat, and carbohydrates. Remember, some people do well with fasting, but others don’t. Establish an eating schedule and listen to your body’s cues to see if you need to make adjustments. 

Don’t fear carbohydrates

If you’re eating a very low-carb diet and not sleeping well, don’t be afraid to add in some more fruit, whole grains, potatoes, or other balanced carbohydrates. Carbohydrates are fuel for your metabolism, and not sleeping well is your body’s way of telling you that something is off. Slowly increase your carbohydrates, and see if eating more of them at dinner helps with your sleep.6 

How you eat matters

This is one tip that isn’t talked about as often, and that’s to be mindful of how you eat your meals. Are you eating on the go, chewing just a few times before swallowing and reaching for the next bite? Do you feel rushed when you eat? Or can you take the time to slow down, chew each bite thoroughly, use all of your senses to experience your food, enjoying yourself in the company of family and friends during meals? 

The former puts you in sympathetic overdrive, heightening stress hormones and negatively impacting digestion while you eat, while the latter promotes the parasympathetic rest and digest state, allowing you to digest your food properly and assimilate all of the nutrients your body needs. Less stress + more nutrients = better digestion + better sleep.14

Connecting your diet to your sleep

Diet and nutrition absolutely have an effect on sleep duration and quality. If you are one of the millions of Americans that are affected by poor sleep, we hope that you give these tips a try and see how you can improve your sleep with specific diet and nutrition changes. 

For more information on circadian rhythms and how they affect sleep patterns, check out the UT Department of Nutritional Sciences’s blog on Dr. Takahashi and his research.


  1. Sheehan CM, Frochen SE, Walsemann KM, Ailshire JA. Are U.S. adults reporting less sleep?: Findings from sleep duration trends in the National Health Interview Survey, 2004-2017. Sleep. 2019;42(2). doi:10.1093/sleep/zsy221
  2. Eugene AR, Masiak J. The Neuroprotective Aspects of Sleep. MEDtube Sci. 2015;3(1):35-40.
  3. Raghupathi W, Raghupathi V. An Empirical Study of Chronic Diseases in the United States: A Visual Analytics Approach to Public Health. International Journal of Environmental Research and Public Health. 2018;15(3):431. doi:10.3390/ijerph15030431
  4. Golem DL, Martin-Biggers JT, Koenings MM, Davis KF, Byrd-Bredbenner C. An Integrative Review of Sleep for Nutrition Professionals. Advances in Nutrition. 2014;5(6):742-759. doi:10.3945/an.114.006809
  5. St-Onge Marie-Pierre, Roberts Amy, Shechter Ari, Choudhury Arindam Roy. Fiber and Saturated Fat Are Associated with Sleep Arousals and Slow Wave Sleep. Journal of Clinical Sleep Medicine. 12(01):19-24. doi:10.5664/jcsm.5384
  6. Binks H, E. Vincent G, Gupta C, Irwin C, Khalesi S. Effects of Diet on Sleep: A Narrative Review. Nutrients. 2020;12(4):936. doi:10.3390/nu12040936
  7. Karamanos B, Thanopoulou A, Angelico F, et al. Nutritional habits in the Mediterranean Basin. The macronutrient composition of diet and its relation with the traditional Mediterranean diet. Multi-centre study of the Mediterranean Group for the Study of Diabetes (MGSD). Eur J Clin Nutr. 2002;56(10):983-991. doi:10.1038/sj.ejcn.1601413
  8. Frank S, Gonzalez K, Lee-Ang L, Young MC, Tamez M, Mattei J. Diet and Sleep Physiology: Public Health and Clinical Implications. Front Neurol. 2017;8. doi:10.3389/fneur.2017.00393
  9. Kawai N, Sakai N, Okuro M, et al. The Sleep-Promoting and Hypothermic Effects of Glycine are Mediated by NMDA Receptors in the Suprachiasmatic Nucleus. Neuropsychopharmacology. 2015;40(6):1405-1416. doi:10.1038/npp.2014.326
  10. Howatson G, Bell PG, Tallent J, Middleton B, McHugh MP, Ellis J. Effect of tart cherry juice (Prunus cerasus) on melatonin levels and enhanced sleep quality. Eur J Nutr. 2012;51(8):909-916. doi:10.1007/s00394-011-0263-7
  11. St-Onge M-P, Mikic A, Pietrolungo CE. Effects of Diet on Sleep Quality 12. Adv Nutr. 2016;7(5):938-949. doi:10.3945/an.116.012336
  12. Drake Christopher, Roehrs Timothy, Shambroom John, Roth Thomas. Caffeine Effects on Sleep Taken 0, 3, or 6 Hours before Going to Bed. Journal of Clinical Sleep Medicine. 09(11):1195-1200. doi:10.5664/jcsm.3170
  13. Katayose Y, Tasaki M, Ogata H, Nakata Y, Tokuyama K, Satoh M. Metabolic rate and fuel utilization during sleep assessed by whole-body indirect calorimetry. Metabolism. 2009;58(7):920-926. doi:10.1016/j.metabol.2009.02.025
  14. Browning KN, Travagli RA. Central Nervous System Control of Gastrointestinal Motility and Secretion and Modulation of Gastrointestinal Functions. Compr Physiol. 2014;4(4):1339-1368. doi:10.1002/cphy.c130055

Related Posts

Stay Connected

Stay up to date on the latest news and opportunities from the Nutrition Institute by subscribing to our mailing list.

Note: a subscription confirmation will open in a new window.