Sleep and nutrition are deeply interconnected systems, yet most sleep advice focuses on screens, schedules, and stress — and most nutrition advice ignores sleep entirely. The reality is that what you eat has a direct influence on how quickly you fall asleep, how deeply you sleep, and how rested you feel on waking. And how well you slept last night determines what you’ll crave and choose to eat today.

How food affects sleep quality

Sleep is governed by two key neurochemicals: melatonin (the sleep hormone, produced from serotonin) and GABA (an inhibitory neurotransmitter that reduces neural activity). Both are synthesized from dietary precursors. Tryptophan — found in turkey, eggs, dairy, pumpkin seeds, and bananas — is the amino acid precursor to serotonin and, subsequently, melatonin. Glutamate from protein is converted to GABA. Diets low in these nutrients can meaningfully impair sleep architecture.

Foods that support sleep

Tart cherry juice: One of the few foods with measurable melatonin content. Multiple randomized trials have shown that tart cherry juice consumed in the evening extends sleep duration and improves sleep efficiency. The effect is modest but consistent.

Kiwi: A 2011 study from Taipei Medical University found that eating two kiwis an hour before bed for four weeks significantly improved sleep onset time, total sleep duration, and sleep efficiency. The mechanism is likely serotonin-related, as kiwis are rich in serotonin and antioxidants that reduce neuroinflammation.

Magnesium-rich foods: Magnesium activates GABA receptors and regulates melatonin synthesis. Low dietary magnesium is associated with insomnia, light sleep, and more frequent nighttime waking. Pumpkin seeds, almonds, spinach, and dark chocolate are good sources.

Complex carbohydrates in the evening: A moderate serving of complex carbohydrates at dinner (oats, sweet potato, brown rice) increases tryptophan transport across the blood-brain barrier by reducing competing amino acids. This is why a carbohydrate-containing dinner often feels sleep-promoting.

Foods and habits that disrupt sleep

Alcohol reduces REM sleep and causes fragmented sleep in the second half of the night, despite the initial sedating effect. Caffeine after 2pm extends sleep onset time in most adults due to its long half-life (5–7 hours). Large meals within two hours of bed divert blood flow to digestion and can cause acid reflux that interrupts sleep. High-sugar foods in the evening can cause a blood sugar crash that triggers waking during the night.

The bidirectional loop

Poor sleep increases ghrelin (the hunger hormone) and decreases leptin (the satiety hormone), which is why one bad night of sleep often leads to overeating the next day — particularly of high-sugar and high-fat foods. Eating well supports better sleep, and better sleep makes it easier to eat well. Breaking into this loop from the nutrition side is an accessible and underutilized strategy.