foods that are known to help you sleep better such as cherries, bananas and tea

Can What You Eat Really Change How You Sleep?

Published:  |  Last Updated:
foods that are known to help you sleep better such as cherries, bananas and tea

The Connection Between Food and Sleep

It is one of those questions that pops up whenever sleep comes into the conversation: does what you eat actually affect how you sleep? The short answer is yes, but probably not in the dramatic way that some headlines would have you believe. Your diet does influence your sleep, but it is more about patterns and timing than any single miracle food.

Understanding the relationship between food and sleep can help you make small, practical adjustments to your evening routine that genuinely support better rest.

Foods That May Support Better Sleep

Certain foods contain nutrients that play a role in the production of sleep-related hormones like melatonin and serotonin. While eating these foods is not a guaranteed ticket to deep sleep, including them regularly in your diet can contribute to better overall sleep quality.

Tryptophan-Rich Foods

Tryptophan is an amino acid that your body uses to produce serotonin, which in turn helps produce melatonin. Foods like turkey, chicken, eggs, nuts, seeds and dairy products are good sources. A small serving of these in the evening, like a handful of almonds or a warm glass of milk, may help support your body's natural wind-down process.

Magnesium-Rich Foods

Magnesium is involved in hundreds of processes in the body, including muscle relaxation and nervous system regulation. Foods like leafy greens, bananas, avocados and dark chocolate contain magnesium. Many people find that increasing their magnesium intake, whether through food or supplementation, helps them feel calmer at night.

Complex Carbohydrates

Whole grains, sweet potatoes and oats can help tryptophan reach the brain more effectively. A small, balanced evening meal that includes complex carbohydrates alongside a protein source may support the biochemical pathway that leads to better sleep.

"I started having a small bowl of oats with banana and almond butter about an hour before bed and I honestly sleep better on the nights I do it. It has become a little ritual I look forward to." - Gemma K.

Foods and Drinks That Can Work Against Sleep

Just as some foods support sleep, others can actively disrupt it. Being mindful of these, especially in the hours leading up to bedtime, can make a noticeable difference.

Caffeine

This one is well known, but it is worth repeating. Caffeine can stay in your system for six to eight hours, so that afternoon coffee or energy drink may still be affecting you at 10pm. If you are sensitive to caffeine, consider setting a personal cut-off time in the early afternoon.

Sugar and Highly Processed Foods

Large amounts of sugar, especially close to bedtime, can cause blood sugar spikes and crashes that disrupt your sleep cycles. Highly processed foods can have a similar effect, leaving you feeling restless rather than settled.

Heavy or Spicy Meals

Eating a large, rich meal too close to bedtime forces your digestive system to work hard when it should be slowing down. Spicy foods can also cause acid reflux or heartburn, which makes lying down uncomfortable. Try to finish heavier meals at least two to three hours before bed.

Alcohol

Alcohol might help you fall asleep faster, but it significantly reduces sleep quality. It disrupts REM sleep, increases nighttime waking and can leave you feeling unrested even after a full night in bed.

Timing Matters as Much as What You Eat

One of the most practical takeaways from the food and sleep connection is that when you eat matters as much as what you eat. Eating too late forces your body to prioritise digestion over rest. Eating too early can leave you hungry and restless at bedtime.

A good guideline is to have your main evening meal two to three hours before bed, and if you need a small snack closer to sleep, choose something light and sleep-supportive, like a banana, a few nuts or a small serving of yoghurt.

"I used to eat dinner really late and then wonder why I could not sleep. Just shifting my meal earlier and having a light snack before bed has made such a difference. Simple change, big impact." - Michael D.

Building an Evening Routine That Supports Sleep

Your eating habits are just one piece of the puzzle. Pairing a mindful approach to food with other wind-down habits, like dimming the lights, stepping away from screens and listening to calming audio through your sleep headphones, creates a more complete transition from day to night.

If you are interested in exploring magnesium as part of your routine, browse our magnesium collection. And for more on what to eat before bed, read our guide on 10 snacks to eat before bed.

Back to blog