🌙 Better sleep starts tonight.Download Free on iOS →
Nutrition February 12, 2026 3 min read

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

Certain foods help you sleep better while others keep you awake. Learn the best and worst foods for sleep, plus the ideal timing for your last meal.

SleepBetter.ai

Sleep Science & Research

What you eat — and when — has a direct impact on how well you sleep. The connection works through multiple pathways: blood sugar stability, neurotransmitter production, core temperature regulation, and digestive comfort. Here's what to prioritize and what to avoid.

Foods That Promote Sleep

Tart cherries. One of the few natural food sources of melatonin. Studies show tart cherry juice can increase sleep time and improve quality. A small glass in the evening is enough.

Kiwi. Two kiwis an hour before bed improved sleep onset and duration in a well-known Taipei Medical University study. The effect is likely due to high serotonin and antioxidant content.

Fatty fish. Salmon, mackerel, and sardines are rich in omega-3 fatty acids and vitamin D, both of which support serotonin production. Regular consumption is associated with better sleep quality across multiple studies.

Nuts. Almonds and walnuts contain magnesium (a natural muscle relaxant) and melatonin. A small handful in the evening provides slow-release energy that prevents blood sugar drops overnight.

Turkey and eggs. High in tryptophan, the amino acid precursor to serotonin and melatonin. Combining tryptophan sources with a small amount of carbohydrate enhances absorption.

Warm milk or chamomile tea. The sleep benefit may be partly psychological (ritual and warmth), but chamomile contains apigenin, which binds to receptors in the brain that promote sedation.

Magnesium-rich foods. Spinach, pumpkin seeds, black beans, and dark chocolate all provide magnesium, which is involved in over 300 enzymatic processes including those that regulate sleep.

Foods That Disrupt Sleep

Spicy foods. Capsaicin raises core body temperature and can cause acid reflux in a lying position — both of which impair sleep.

High-sugar foods and simple carbs. These cause blood sugar spikes followed by crashes, which can trigger cortisol release and nighttime awakenings.

Large, heavy meals. Your digestive system requires significant energy to process a big meal. Eating heavily within 2–3 hours of bed keeps your body in active mode when it should be winding down.

Alcohol. Technically a food/drink — and the most common sleep disruptor. It helps you fall asleep but destroys sleep architecture, particularly REM sleep.

Caffeine-containing foods. Dark chocolate, coffee-flavored desserts, and some teas contain enough caffeine to affect sensitive individuals.

Timing Your Last Meal

The general guideline is to finish eating 2–3 hours before bed. This allows digestion to progress enough that it won't interfere with sleep onset or temperature regulation. If you need something before bed, keep it small, protein-forward, and low in sugar — a spoonful of nut butter, a few slices of turkey, or a small handful of almonds.

The Blood Sugar Connection

One of the least understood causes of poor sleep is overnight blood sugar instability. If your dinner is carb-heavy and your body overproduces insulin, blood sugar can drop too low during the night, triggering a cortisol spike that wakes you up — often between 2 and 4 AM. Adding protein and fat to your evening meal stabilizes this curve.

Make It Personal

Everyone's digestive system is different. The best approach is to track what you eat in the evening alongside your sleep quality. After two weeks, the correlations become clear — and you'll know exactly which foods help you sleep and which ones don't.


SleepBetter.ai lets you log your nights and connect the dots between daily habits and sleep quality. Available on iOS.

Key Questions Answered

  • Q.Foods That Promote Sleep
  • Q.Foods That Disrupt Sleep
  • Q.Timing Your Last Meal
  • Q.The Blood Sugar Connection
  • Q.Make It Personal

Your sleep coach is waiting

Personalized sleep plan, Apple Health analysis, guided breathwork — and a routine that runs itself. Free to start.

More Sleep Reads

Start tracking your sleep tonight

Start your personalized sleep plan

Answer a few questions, sync Apple Health, and SleepBetter.ai builds your roadmap to better sleep. Free to start.

Free forever. No credit card required.