Best Foods for Better Sleep: What to Eat and Avoid Before Bed
Nutrition 🕑 8 min read 📅 Published 2026-03-24

Best Foods for Better Sleep: What to Eat and Avoid Before Bed

myHealthMate
myHealthMate Health & Wellness Team
Published: 2026-03-24  ·  8 min read read  ·  Wellness content, not medical advice
⚕ Medical Disclaimer: This article is for general wellness and informational purposes only. It does not constitute medical advice, diagnosis, or treatment. Always consult a qualified healthcare professional before making any health-related decisions.
What you eat in the hours before bed has a direct impact on how well you sleep. Here are the foods that genuinely help you sleep better — and the ones quietly sabotaging your rest.

Poor sleep affects nearly every aspect of health — cognitive performance, appetite regulation, immune function, mood, and cardiovascular health. Most discussions about improving sleep focus on screens, schedules, and bedroom temperature. Fewer focus on diet, despite the fact that what you eat — and when you eat it — has a direct biochemical effect on sleep quality.

This guide covers the foods and nutrients that promote deeper, more restorative sleep, and the ones that are quietly keeping you awake.

Why Food Affects Sleep

Sleep is regulated primarily by two hormones: melatonin (the sleep-onset hormone) and serotonin (a precursor to melatonin and a key mood regulator). Several nutrients in food directly influence the production of these compounds.

Additionally, blood sugar fluctuations during the night are a major but underappreciated cause of sleep disruption. High-glycemic meals before bed cause blood sugar to rise and then crash, often triggering cortisol release in the early morning hours — waking you up at 3–4 AM.

The Best Foods to Eat for Better Sleep

Tart Cherries

Tart cherries (and their juice) are one of the few natural food sources of melatonin. A study published in the European Journal of Nutrition found that adults who drank tart cherry juice twice daily experienced an average of 84 minutes more sleep per night compared to a placebo group.

How to use them: Drink 240 mL (1 cup) of unsweetened tart cherry juice 1–2 hours before bed. Frozen tart cherries blended into a smoothie work equally well.

Kiwi

Kiwi is one of the most surprising sleep-promoting foods. A clinical study from Taiwan had adults eat 2 kiwis one hour before bed nightly for 4 weeks. Participants fell asleep 35% faster, woke up less frequently during the night, and slept 13% longer overall.

The mechanism is thought to involve kiwi's high serotonin and antioxidant content, along with a specific folate contribution that aids neurotransmitter synthesis.

Walnuts

Walnuts are rich in tryptophan — an amino acid that the body converts to serotonin and then melatonin. They also contain their own small amounts of melatonin and are rich in alpha-linolenic acid (ALA), an omega-3 fat that supports serotonin production.

A small handful (30 g) 60–90 minutes before bed is enough.

Warm Milk (and Other Dairy)

This is one of the oldest sleep remedies, and it holds up to scrutiny. Dairy contains both tryptophan and calcium, which helps the brain convert tryptophan into melatonin. Warm milk also has a psychological and physiological calming effect.

Greek yogurt with a few berries makes a great bedtime snack that combines protein (to prevent blood sugar drops), tryptophan, and calcium.

Almonds

Almonds are a good source of magnesium, a mineral that plays a key role in sleep regulation. Magnesium deficiency is associated with insomnia and restless sleep. Studies show that magnesium supplementation improves sleep quality in older adults — and getting it through food is preferable to supplements for most people.

Other magnesium-rich foods: spinach, pumpkin seeds, dark chocolate (in small amounts), and legumes.

Bananas

Bananas are rich in potassium and magnesium — both of which help relax muscles and reduce nighttime cramping. They also contain vitamin B6, which is required for the conversion of tryptophan to serotonin.

A banana with a tablespoon of almond butter makes an ideal pre-sleep snack: the combination of complex carbohydrates, healthy fat, and sleep-promoting nutrients is well-balanced for overnight blood sugar stability.

Chamomile Tea

Chamomile contains apigenin, an antioxidant that binds to GABA receptors in the brain — producing a mild calming effect. Multiple randomized trials confirm that chamomile tea improves sleep quality, particularly in older adults and new mothers.

Drink one cup 30–45 minutes before bed. Avoid adding honey or sugar, as these will spike blood sugar.

Fatty Fish

Salmon, mackerel, and sardines are rich in omega-3 fatty acids and vitamin D — both associated with higher serotonin production. Research from the University of Oxford found that children who ate fatty fish regularly fell asleep faster and had fewer nighttime awakenings.

Making fatty fish a 2–3 times per week dinner staple is a long-term sleep strategy worth adopting.

Foods and Drinks to Avoid Before Bed

Knowing what to avoid is equally important as knowing what to eat.

Caffeine (Cut Off by 2 PM)

Caffeine's half-life in the body is 5–7 hours. A 3 PM coffee still has half its caffeine active at 8–10 PM. For people who are slow caffeine metabolizers (a genetic variation affecting about 50% of the population), the half-life can be as long as 9–10 hours. If you struggle to fall asleep, cutting off all caffeine by noon or 1 PM is the single highest-impact dietary change you can make.

Hidden caffeine sources to watch: green tea, black tea, pre-workout supplements, some pain relievers, chocolate, and certain flavored waters.

Alcohol

Alcohol is the most misunderstood sleep disruptor. It does make you fall asleep faster — but it severely fragments the second half of sleep, suppressing REM cycles and causing multiple nighttime awakenings that you often do not remember. People who drink to sleep tend to feel fatigued despite spending adequate hours in bed.

High-Sugar Foods

Sugary foods before bed cause a blood glucose spike followed by a crash 2–3 hours later. The resulting cortisol response disrupts sleep in the early morning hours. This is a common cause of waking at 3–4 AM feeling anxious or alert.

Spicy and High-Fat Meals

Spicy foods can elevate body temperature and trigger acid reflux, both of which disrupt sleep. Large, high-fat meals take longer to digest and keep your digestive system active when it should be winding down.

Aim to finish large or rich meals at least 3 hours before bed.

Building a Sleep-Friendly Eating Pattern

Rather than overhauling your entire diet, focus on a few consistent habits:

1. Have dinner 2–3 hours before bed — enough time for digestion without going to bed hungry

2. If you need a pre-sleep snack, choose something light with protein and complex carbs: Greek yogurt, a banana and almond butter, or a handful of walnuts

3. Replace your evening coffee or black tea with chamomile or passionflower tea

4. Track your meals and sleep together — apps that combine nutrition tracking with sleep logging help you spot which evening meals lead to your best nights of sleep

Better sleep is rarely about one dramatic change. It is about building a consistent environment — including a dietary environment — that supports your body's natural rhythms. Combine these nutritional strategies with the daily wellness habits that complement good sleep, and the cumulative effect is profound.

Research from the Sleep Foundation confirms that dietary patterns — not just individual foods — have a significant measurable impact on sleep architecture, with high-carbohydrate, low-fat evening diets associated with faster sleep onset and greater slow-wave sleep depth in controlled studies.