Best Foods to Eat Before Bed for Better Sleep

Eat your way to better sleep with these science-backed food choices.

What you eat—and when you eat it—can significantly impact your sleep quality. Certain foods contain compounds that promote relaxation and sleepiness, while others can keep you awake. Here's your guide to eating for better sleep.

Sleep-Promoting Nutrients

Several nutrients play key roles in sleep regulation:

  • Tryptophan: An amino acid that helps produce serotonin and melatonin
  • Magnesium: Helps regulate neurotransmitters and melatonin
  • Potassium: Relaxes muscles and regulates sleep patterns
  • Calcium: Helps the brain use tryptophan to manufacture melatonin
  • Vitamin B6: Required for melatonin production
  • Melatonin: The sleep hormone, found naturally in some foods

Best Foods for Sleep

Tart Cherries

Tart cherries are one of the few natural food sources of melatonin. Studies show that drinking tart cherry juice can increase sleep time and quality. They also contain anti-inflammatory compounds that may reduce muscle soreness.

Kiwi

Research found that eating two kiwis one hour before bed improved sleep onset, duration, and efficiency. Kiwis are rich in serotonin, folate, and vitamins C and E—all linked to better sleep.

Fatty Fish

Salmon, tuna, and mackerel are high in omega-3 fatty acids and vitamin D. This combination may enhance sleep quality by increasing serotonin production. Aim to eat fatty fish 2-3 times per week.

Nuts

Almonds, walnuts, and pistachios contain melatonin, magnesium, and healthy fats. Walnuts are particularly high in melatonin. A small handful (about 1 ounce) makes an ideal evening snack.

Dairy Products

Warm milk isn't just a folk remedy—dairy contains tryptophan and calcium. Greek yogurt or cottage cheese also provide protein that stabilizes blood sugar overnight.

Complex Carbohydrates

Whole grains like oatmeal, brown rice, or whole wheat bread can help tryptophan enter the brain more efficiently. Pair with a protein source for optimal effect.

Herbal Teas

Chamomile tea contains apigenin, an antioxidant that promotes sleepiness. Passionflower and valerian teas also have sleep-promoting properties. Avoid adding too much sugar.

Foods to Avoid Before Bed

  • Caffeine: Found in coffee, tea, chocolate, and some medications. Follow the 10-hour caffeine rule
  • Spicy foods: Can cause heartburn and raise body temperature
  • High-fat foods: Take longer to digest and may cause discomfort
  • Large meals: Can lead to indigestion and disrupt sleep
  • Alcohol: Disrupts REM sleep and sleep quality
  • Sugary foods: Can cause blood sugar spikes and crashes
  • Acidic foods: Tomatoes and citrus can trigger acid reflux

Timing Your Evening Eating

When you eat matters as much as what you eat:

  • Last large meal: Finish 3-4 hours before bed
  • Light snack: Okay 1-2 hours before bed if hungry
  • Ideal snack size: 150-200 calories maximum
  • Avoid: Going to bed very hungry (low blood sugar disrupts sleep)

Perfect Pre-Sleep Snack Combinations

Try these sleep-promoting snack combinations:

  • Banana with almond butter
  • Greek yogurt with a drizzle of honey and walnuts
  • Whole grain crackers with cheese
  • Tart cherry juice with a small handful of almonds
  • Oatmeal with warm milk and cinnamon
  • Kiwi with a few pistachios

The Blood Sugar Connection

Stable blood sugar throughout the night prevents wake-ups. Combining complex carbs with protein and healthy fats provides steady energy and prevents the blood sugar crashes that can wake you at 3 AM.

The Bottom Line

Strategic eating can enhance your sleep quality. Focus on foods rich in tryptophan, magnesium, and natural melatonin, while avoiding stimulants and heavy meals close to bedtime. Combined with good sleep hygiene, nutrition can be a powerful tool for better rest.

A Worked Example: Building a 180-Calorie Sleep Snack

Suppose you want a snack that fits the recommended 150-200 calorie window and combines complex carbohydrates, a little protein, and a natural melatonin source. One kiwi (about 40 calories) plus a small handful of walnuts (roughly 7 halves, about 90 calories) plus a small square of low-fat cheese (about 50 calories) totals close to 180 calories. This combination pairs kiwi's serotonin and vitamin C content with walnuts, which are among the highest food sources of naturally occurring melatonin, and cheese, which supplies tryptophan and calcium to support melatonin synthesis. Eating this roughly 60-90 minutes before bed gives your digestive system time to process it without leaving you hungry at lights-out, which itself can cause middle-of-the-night waking from low blood sugar.

Who Should Pay Closest Attention to Evening Nutrition

Evening eating strategies matter most for people with frequent 3 AM wake-ups linked to hunger or blood sugar dips, shift workers whose "dinner" and "bedtime" are unconventional, people managing acid reflux or GERD, who need stricter timing and food-avoidance rules, and pregnant individuals, whose digestion and reflux risk both increase in later trimesters (see our guide to sleep during pregnancy). It is less critical for people who already eat dinner 3-4 hours before bed and rarely wake hungry, though the general avoidance of caffeine and alcohol still applies to everyone.

Common Mistakes

  • Going to bed hungry to "eat clean": Low blood sugar overnight is a common, overlooked cause of 3 AM waking.
  • Treating alcohol as a sleep aid because it's relaxing: Alcohol fragments REM sleep in the second half of the night even though it can shorten the time it takes to fall asleep initially.
  • Underestimating hidden caffeine: Chocolate, decaf coffee, and some pain relievers contain enough caffeine to matter for sensitive sleepers.
  • Eating a large, high-fat meal right before bed: Fat slows gastric emptying, which can worsen reflux and disrupt sleep architecture.
  • Assuming supplements can substitute for food-based nutrients: Whole foods provide magnesium, tryptophan, and melatonin alongside fiber and other nutrients that supplements alone do not replicate.

What the Evidence Says

Peer-reviewed trials on kiwi consumption, published in nutrition and sleep journals, found that adults eating two kiwis one hour before bed for four weeks showed significant improvements in sleep onset latency, sleep duration, and sleep efficiency compared to baseline. Similarly, controlled studies on tart cherry juice (Montmorency cherries) found modest but measurable increases in total sleep time and melatonin levels, attributed to their status as one of the few naturally occurring dietary sources of melatonin. The National Institutes of Health's nutrition research has also linked adequate magnesium and B6 intake to normal melatonin synthesis pathways, which is the mechanistic basis for recommending nuts, leafy greens, and whole grains in the evening. These findings complement, rather than replace, the behavioral principles covered in our sleep hygiene guide: nutrition can meaningfully support sleep, but it works best alongside consistent timing and a good sleep environment.

Putting a Weekly Plan Together

Rather than trying to remember a long list of foods to seek out or avoid, it helps to plan a small rotation of two or three go-to snacks that fit your schedule and preferences, such as kiwi and walnuts on training nights and warm milk with oats on quieter evenings. Pair this with a consistent cutoff time for caffeine and alcohol, and track how you feel over two to three weeks. Because individual responses to specific foods vary, this kind of simple self-experiment is often more useful than following a generic list without adjustment.