
Most of us know that going to bed on a very full stomach can make sleep uncomfortable. After a big late-night meal, people often wake up feeling tired the next morning. This happens because the body is still working hard to digest the heavy food during the night, and this can disturb normal sleep. But scientists are also asking another question: can food actually help us sleep better? If certain foods keep us awake, maybe others can help us relax and fall asleep more easily.
Foods that may improve sleep
Research shows that some foods might support better sleep. For example, tart cherry juice has been tested in small studies and people reported longer and deeper sleep. Eating kiwifruit before bed has also been linked to better rest. Another traditional choice is warm milk. Milk contains tryptophan, an amino acid that the body uses to create melatonin, the hormone that helps us fall asleep. Melatonin is very important because it controls our sleep–wake cycle. Normally, our body makes more melatonin in the evening when it gets dark. But we can also get melatonin directly from some foods, such as eggs, fish, nuts, and seeds. Eating these foods may support the natural process and make sleep easier.
Why diet is more important than one food
Experts explain that eating one special food before bed is not enough to improve sleep. Sleep quality is connected to the whole diet that we follow every day. For example, if someone eats processed foods and sugary snacks all day, drinking a glass of cherry juice before bed will not change their sleep. A healthy pattern of eating is what matters most. Studies show that diets rich in fruits, vegetables, wholegrains, dairy, and lean proteins such as fish are linked to better sleep. These foods contain many useful nutrients, including tryptophan. The body changes tryptophan into serotonin and then into melatonin, helping us feel relaxed at night. However, tryptophan works best when we eat it together with high-fibre carbohydrates, such as wholegrains or legumes. This combination helps the body absorb it and transport it to the brain, where it supports melatonin production.
Other reasons plant-based diets help
Plant-rich diets support sleep in more ways than just melatonin. For example, fruits and vegetables reduce inflammation in the body. Research suggests that lower inflammation levels are connected to better quality of sleep. Healthy diets with lots of fibre also improve our gut health. Fibre helps good bacteria grow in the intestines, and this “gut–brain connection” seems to play a role in how well we rest. Scientists are still studying this area, but early evidence shows that a healthy gut may help the brain regulate sleep more effectively. Another factor is polyphenols, plant compounds found in fruits, vegetables, and legumes. Animal studies suggest polyphenols may support better sleep. In humans, it is harder to measure because the amount of polyphenols in food changes depending on how and where the plants are grown. The same is true for melatonin in plants, but still, eating a variety of plant foods seems to provide benefits.
The role of magnesium
Magnesium is another nutrient that may improve sleep. It calms the nervous system and lowers the stress hormone cortisol. Adults are advised to consume around 420mg of magnesium per day. Foods rich in magnesium include spinach, legumes, nuts, seeds, and wholegrains. Some studies tested magnesium supplements in people with sleep problems. For two weeks, participants took magnesium before bed, and their sleep was measured. The results showed more deep sleep and better REM sleep compared to when they took a placebo. Still, magnesium is not a complete solution. A supplement cannot fix poor lifestyle habits. For good rest, people also need regular exercise, limited processed food, and a stable sleep routine. Magnesium may support sleep, but it works best as part of a healthy lifestyle.
Why timing of meals matters
Food is not only about what we eat, but also when we eat. Experts recommend finishing meals a few hours before going to bed. Eating a heavy meal right before sleep can make it harder for the body to rest. Studies show that eating earlier in the day, starting with breakfast, is linked to better sleep at night. Having regular meal times helps the brain understand the difference between day and night. This clear separation makes it easier to fall asleep in the evening. Light is another important signal for our body clock. Eating breakfast in bright daylight may help the body produce more melatonin later at night. In this way, food and light work together to regulate our natural rhythms.