Certain foods genuinely improve sleep by supplying your body with the raw materials it needs to produce sleep-regulating hormones. The most effective options contain compounds that feed into your body’s melatonin and serotonin pathways, or minerals that help your nervous system wind down. What you eat, when you eat it, and what you avoid in the evening hours all play a role.
Tart Cherries
Tart cherries are one of the few foods that contain measurable amounts of melatonin, the hormone your brain releases to signal that it’s time to sleep. They’re also packed with antioxidant compounds that reduce inflammation and may extend melatonin’s effects. In a study published in the European Journal of Nutrition, participants who drank tart cherry juice saw a significant increase in total sleep time compared to both their baseline and a placebo, with gains roughly in the range of 15 to 40 minutes per night.
Montmorency cherries, the variety most commonly sold as juice concentrate, have the strongest research behind them. You can drink the juice, eat dried tart cherries, or blend frozen ones into a smoothie. Sweet cherries from the grocery store are a different variety and contain far less melatonin.
Kiwifruit
Eating two kiwis about an hour before bed improved multiple dimensions of sleep in a four-week study of adults with sleep problems. Sleep onset latency (the time it takes to fall asleep) dropped by 35.4%, and participants woke up less during the night, with a 28.9% reduction in waking time after initially falling asleep. Overall sleep quality scores improved by 42.4%.
Kiwis are rich in serotonin and antioxidants, both of which are involved in sleep regulation. They’re also low in calories, making them an easy, light option for an evening snack that won’t leave you feeling overly full.
Fatty Fish
Salmon, mackerel, sardines, and other fatty fish provide a combination of omega-3 fatty acids and vitamin D that supports sleep through multiple channels. Low levels of the omega-3 fat DHA have been linked to lower melatonin production in animal research, and studies in both children and adults suggest that omega-3 intake can improve sleep quality and reduce sleep disturbances. Vitamin D, which most people don’t get enough of, also plays a role in serotonin production.
A serving of fatty fish a few times per week is a reasonable target. The benefits likely build over time rather than working on a single-night basis.
Magnesium-Rich Foods
Magnesium helps relax muscles and calm your nervous system, and many adults fall short of the recommended daily intake. Foods high in magnesium include spinach, pumpkin seeds, almonds, bananas, avocados, and sweet potatoes. Dark chocolate is another source, though the caffeine content makes it a poor choice right before bed.
These foods work best as part of your regular diet rather than as a one-time fix. Consistent magnesium intake supports your body’s ability to transition into restful sleep night after night.
Dairy and Warm Milk
The old advice about warm milk before bed has some science behind it. Dairy products are notably rich in tryptophan, the amino acid your body converts into serotonin and then melatonin. They also supply several micronutrients that serve as cofactors in that conversion process, essentially giving your body the full toolkit it needs to build its sleep hormones.
Malted milk drinks, yogurt, and cottage cheese all count. The warmth of a heated drink may also contribute to relaxation, though the tryptophan content is doing the heavier biochemical lifting.
Why Carbohydrates Matter for Sleep
Tryptophan from food has to compete with other amino acids to cross into your brain, and carbohydrates tilt the competition in tryptophan’s favor. When you eat carbs, your body releases insulin, which causes your muscles to absorb most competing amino acids from the bloodstream. Tryptophan is the exception: it binds to a protein in the blood and stays circulating. With less competition, more tryptophan enters the brain, where it’s converted into serotonin and melatonin.
This mechanism is surprisingly sensitive to protein. Research published in Frontiers in Nutrition found that when protein made up less than 2% of a meal’s calories, the tryptophan ratio in the blood increased significantly. But adding just 5% protein (in the form of casein) to a carbohydrate-heavy meal completely blocked the effect. This doesn’t mean you should eat pure carbs for dinner. It means a small carbohydrate-rich snack on its own, like a bowl of cereal with a splash of milk or a piece of toast with honey, may be more effective for sleep than a balanced meal eaten right before bed.
High-Glycemic Carbs and Timing
Not all carbs affect sleep equally. In a controlled study, men who ate jasmine rice (which has a high glycemic index of 109) fell asleep in an average of 9 minutes, compared to 17.5 minutes for those who ate a lower-glycemic rice variety. The high-glycemic meal was most effective when eaten four hours before bedtime, not one hour before. Eating the same meal just one hour before bed increased sleep onset time to about 14.6 minutes.
The four-hour window matters because it takes time for the insulin response to clear competing amino acids from the blood and for tryptophan to be converted into melatonin. White rice, white bread, and potatoes are all high-glycemic options. If you’re planning dinner with sleep in mind, eating around 6 or 7 p.m. for a 10 or 11 p.m. bedtime hits this window well.
Foods That Disrupt Sleep
Some foods actively work against sleep by stimulating your nervous system. Tyramine, a compound found in aged and fermented foods, triggers the release of norepinephrine, a hormone that raises blood pressure and heart rate. Foods high in tyramine include aged cheeses (cheddar, blue, parmesan, feta), cured meats (pepperoni, salami, bacon), and fermented foods like kimchi, sauerkraut, miso, and soy sauce. Even ripe bananas and avocados contain meaningful tyramine levels.
Alcohol is another common disruptor. While a glass of wine may make you feel drowsy, fermented alcohol contains tyramine and fragments sleep cycles later in the night. The Sleep Foundation recommends stopping alcohol at least three hours before bed and caffeine at least eight hours before.
Spicy and high-fat meals can also interfere with sleep by triggering acid reflux or prolonging digestion. If your body is working hard to process a heavy meal, it’s harder to settle into deep sleep stages.
Meal Timing and Fluids
Finishing your last substantial meal two to three hours before bed gives your body time to digest without disrupting sleep. An earlier dinner, ideally before 8 p.m., with an emphasis on fiber and lower saturated fat, tends to produce better sleep outcomes. Late-night eating after 10 p.m. is particularly associated with poorer sleep quality.
Fluid timing matters too. Waking up to use the bathroom is one of the most common causes of fragmented sleep. Staying well hydrated throughout the day allows you to safely reduce fluid intake in the two hours before bed. If you’re having a sleep-promoting snack like cherries or kiwis, a small glass of water is fine, but avoid drinking a full glass of juice or milk right at bedtime.
Putting It Together
The strongest evidence supports tart cherry juice, kiwifruit, and fatty fish as direct sleep-promoting foods. Magnesium-rich foods and dairy products provide supporting nutrients. On the timing side, a light carbohydrate-rich snack about four hours before bed, followed by one of the sleep-promoting foods an hour before bed, creates favorable conditions for melatonin production. Avoiding aged cheeses, cured meats, alcohol, and caffeine in the evening removes the most common dietary obstacles to good sleep.
These dietary changes tend to produce gradual improvements over days to weeks rather than dramatic one-night results. The kiwi study, for example, showed its strongest effects after four weeks of nightly consumption. Consistency matters more than any single food choice.