The relationship between diet and sleep is bidirectional and increasingly well-documented — poor sleep disrupts appetite hormones and food choices, while certain dietary patterns and specific foods measurably affect sleep quality and duration. Here's what the research shows about eating for better sleep.
Key Nutrients for Sleep
Tryptophan: The Sleep Amino Acid
Tryptophan is an essential amino acid that serves as the precursor for both serotonin (a neurotransmitter associated with mood and relaxation) and melatonin (the sleep hormone). The brain's tryptophan uptake is influenced by both dietary tryptophan content and carbohydrate intake — carbohydrates facilitate tryptophan transport across the blood-brain barrier by triggering insulin release, which clears competing amino acids from the bloodstream.
This explains the well-known sleepiness after large carbohydrate meals — particularly those combining carbohydrates with tryptophan-rich foods like turkey at Thanksgiving dinner.
Best food sources of tryptophan: turkey, chicken, eggs, milk and dairy, pumpkin seeds, almonds, bananas, oats.
Magnesium
Magnesium activates GABA (the brain's primary calming neurotransmitter) receptors, regulates melatonin production, and calms the nervous system. Deficiency — common in Western diets — is independently associated with sleep disruption. Best food sources: dark chocolate, avocado, nuts (especially almonds and cashews), legumes, tofu, seeds (especially pumpkin seeds, which provide 37% of daily magnesium per ounce), and dark leafy greens.
Calcium
Calcium helps the brain use tryptophan to produce melatonin. Research has specifically linked calcium deficiency to sleep disruption — REM sleep in particular may be reduced by insufficient calcium intake. Best food sources: dairy products, fortified plant milks, sardines (with bones), leafy greens (kale, bok choy), and almonds.
Vitamin D
Vitamin D deficiency is strongly associated with sleep disorders including insomnia, poor sleep quality, and shorter sleep duration. Multiple intervention studies show that correcting vitamin D deficiency improves sleep outcomes. While the sun is the primary vitamin D source, food sources include fatty fish (salmon, mackerel, sardines), egg yolks, and fortified foods.
B Vitamins
Several B vitamins affect sleep: B6 (pyridoxine) supports serotonin and melatonin production; B12 affects circadian rhythm regulation and is associated with sleep-wake cycle disruption when deficient; folate deficiency is linked to insomnia. B vitamins are found in meat, fish, eggs, dairy, legumes, and whole grains — deficiency is most common in strict vegans.
Omega-3 Fatty Acids
DHA (docosahexaenoic acid) specifically regulates the production of sleep-promoting chemicals in the brain. A landmark 2014 Oxford study found that children with higher blood DHA levels slept approximately 58 minutes longer per night than those with lower levels. Research in adults shows associations between omega-3 status and sleep quality. Best sources: fatty fish (salmon, mackerel, sardines, herring), walnuts, flaxseeds, chia seeds.
Specific Foods With Sleep Research
Tart Cherry Juice: The Best-Evidenced Food for Sleep
Tart Montmorency cherries contain naturally occurring melatonin in meaningful amounts, as well as tryptophan and the anti-inflammatory anthocyanin compounds that may support sleep through anti-inflammatory pathways. Two RCTs show tart cherry juice (240ml twice daily) significantly increased sleep duration and improved insomnia severity scores in older adults compared to placebo. This is one of the most robust food-specific sleep findings available.
Kiwi Fruit
A surprising finding from a 2011 Taiwanese study: consuming two kiwi fruits one hour before bed for four weeks significantly improved sleep onset latency, total sleep duration, and sleep efficiency in adults with self-reported sleep disturbances. The proposed mechanisms include kiwi's high serotonin precursor content, antioxidant compounds, and folate. The study was small (24 participants) and needs replication but the effect size was notable.
Fatty Fish
A 2014 study found that consuming Atlantic salmon three times weekly for six months significantly improved sleep quality and daytime functioning compared to a control group eating chicken, pork, or beef. The researchers attributed this to fatty fish's vitamin D and omega-3 DHA content. The effect was most pronounced during winter months when vitamin D from sunlight is limited.
Warm Milk
Milk contains tryptophan and calcium — both sleep-relevant nutrients — and the warmth provides relaxation and mild body temperature effects. Research specifically on warm milk's sleep effects is limited, but its nutritional profile and the behavioral ritual of a warm drink before bed combine to make it a reasonable pre-sleep option. The effect is gentle rather than dramatic.
Oats
A good source of complex carbohydrates that facilitate tryptophan transport, plus contain small amounts of melatonin and magnesium. A small bowl of oatmeal in the evening (particularly if combined with milk) provides the carbohydrate-tryptophan combination that may support sleep. The fiber also produces stable blood sugar through the night, reducing the blood sugar fluctuations that can cause early morning waking.
Eating Patterns That Affect Sleep
High-Sugar, High-Refined-Carbohydrate Diets
Research consistently links high sugar and refined carbohydrate intake to worse sleep quality. A 2019 Women's Health Initiative analysis of over 50,000 women found that higher dietary glycemic index was associated with significantly increased risk of insomnia. The mechanism: blood sugar spikes and crashes throughout the day and evening disrupt the metabolic stability that supports good sleep, and high sugar intake promotes inflammatory pathways that affect sleep-regulating brain regions.
Mediterranean Diet Pattern
Multiple epidemiological studies find Mediterranean dietary pattern adherence is associated with better sleep quality, shorter sleep onset, and lower insomnia rates. The combination of anti-inflammatory nutrients (olive oil, fish, vegetables, fruits), tryptophan from fish and legumes, magnesium from nuts and vegetables, and favorable effects on gut microbiome (which influences neurotransmitter production) likely explains the association.
Meal Timing
Eating large meals close to bedtime raises core body temperature (digestion generates heat) and activates the digestive system — both of which interfere with sleep onset. Research recommends finishing significant eating at least 2–3 hours before sleep. However, going to bed very hungry also disrupts sleep through hunger pangs and blood sugar instability. A small, sleep-promoting snack (tart cherry juice, warm milk, a small bowl of oats) 30–60 minutes before bed is better than either a large late meal or complete fasting.
Frequently Asked Questions
1. Pigeon WR et al. "Effects of a Tart Cherry Juice Beverage on the Sleep of Older Adults with Insomnia." Journal of Medicinal Food. 2010. liebertpub.com
2. Losso JN et al. "Pilot Study of the Tart Cherry Juice for the Treatment of Insomnia." American Journal of Therapeutics. 2018.
3. Lindseth G et al. "Nutritional effects on sleep." Western Journal of Nursing Research. 2013.
4. St-Onge MP et al. "Fiber and Saturated Fat Are Associated with Sleep Arousals and Slow Wave Sleep." Journal of Clinical Sleep Medicine. 2016.
