What you eat affects how you sleep. Certain foods contain nutrients that promote sleep—tryptophan, melatonin, magnesium, and complex carbohydrates. Learn which foods help you sleep, which to avoid, and the best timing for your evening meals.
How Food Affects Sleep
Key sleep-promoting nutrients:
- Tryptophan: Amino acid converted to serotonin, then melatonin
- Melatonin: Sleep hormone (some foods contain it directly)
- Magnesium: Relaxes muscles, calms nervous system
- Calcium: Helps brain use tryptophan to make melatonin
- Vitamin B6: Needed to convert tryptophan to serotonin
- Complex carbohydrates: Help tryptophan reach the brain
Best Foods for Sleep
1. Tart Cherries / Tart Cherry Juice ★★★★★
Why: One of the few foods with significant melatonin content
Research: Studies show tart cherry juice increases sleep time by 84 minutes and improves sleep efficiency
How to use: 8 oz juice twice daily, or handful of dried cherries before bed
Note: Must be TART cherries (Montmorency), not sweet cherries
2. Kiwi ★★★★☆
Why: Contains serotonin, antioxidants, and folate
Research: Eating 2 kiwis 1 hour before bed improved sleep onset by 35% and sleep duration by 13% in one study
How to use: 2 kiwis 1 hour before bed
3. Fatty Fish (Salmon, Tuna, Mackerel) ★★★★☆
Why: High in omega-3s and vitamin D, which regulate serotonin
Research: People who eat fatty fish 3x/week have better sleep quality and daytime functioning
How to use: Include fatty fish in dinner 3+ times per week
4. Nuts (Almonds, Walnuts, Pistachios) ★★★★☆
Why:
- Almonds: High in magnesium and melatonin
- Walnuts: Contain melatonin and omega-3s
- Pistachios: Highest melatonin content of any nut
How to use: Small handful (1 oz) as evening snack
5. Turkey ★★★☆☆
Why: High in tryptophan
Reality check: The "turkey makes you sleepy" effect is mostly due to overeating and carbohydrates at Thanksgiving, not tryptophan alone. But turkey is still a good protein source for dinner.
6. Dairy (Milk, Yogurt, Cheese) ★★★☆☆
Why: Contains tryptophan and calcium
Warm milk: The sleep benefit is likely more psychological/ritual than biochemical, but it doesn't hurt
Greek yogurt: Good evening snack—protein + carbs
7. Whole Grains (Oatmeal, Brown Rice) ★★★☆☆
Why: Complex carbohydrates help tryptophan reach the brain; contain magnesium
How to use: Include whole grains with dinner, or small bowl of oatmeal as evening snack
8. Bananas ★★★☆☆
Why: Contain magnesium, potassium (muscle relaxants), and tryptophan
How to use: As part of evening snack
9. Herbal Teas ★★★☆☆
- Chamomile: Contains apigenin, which binds to GABA receptors
- Passionflower: May increase GABA
- Valerian: Traditional sleep aid
- Lavender: Calming aroma
Note: The ritual of warm tea may be as helpful as the herbs themselves
10. Honey ★★☆☆☆
Why: Small amount of glucose helps tryptophan enter the brain
How to use: 1 tablespoon in herbal tea or warm milk
Foods to Avoid Before Bed
Caffeine
Half-life: 5-6 hours (varies by person)
Avoid: Coffee, tea, energy drinks, soda, chocolate after 2 PM
Hidden sources: Decaf coffee (still has some), some medications, protein bars
Alcohol
The myth: "Nightcap helps me sleep"
The reality: Alcohol helps you fall asleep but:
- Suppresses REM sleep
- Causes fragmented sleep in second half of night
- Worsens snoring and sleep apnea
- Causes early morning awakening
If you drink: Stop 4+ hours before bed
Spicy Foods
Problems:
- Can cause heartburn/acid reflux when lying down
- May raise body temperature
- Can cause digestive discomfort
High-Fat Foods
Problems:
- Take longer to digest
- Can cause discomfort when lying down
- May worsen acid reflux
Large Meals
Problems:
- Digestive activity interferes with sleep
- Can cause discomfort
- May raise body temperature
Rule: Finish eating 2-3 hours before bed
Sugary Foods
Problems:
- Blood sugar spike followed by crash
- Can cause middle-of-night awakening
- May increase alertness initially
High-Protein, Low-Carb Meals
Problem: Protein without carbs doesn't help tryptophan reach the brain effectively
Solution: Pair protein with complex carbohydrates at dinner
Timing Your Evening Meals
Dinner
- When: 2-3 hours before bed
- What: Balanced meal with protein, complex carbs, vegetables
- Size: Moderate—not too heavy
Evening Snack (If Needed)
- When: 1-2 hours before bed
- What: Small snack combining carbs + protein
- Size: 150-200 calories maximum
Good evening snacks:
- Greek yogurt with berries
- Banana with almond butter
- Small bowl of oatmeal
- Cheese and whole grain crackers
- Handful of nuts
- Warm milk with honey
The Sleep-Promoting Dinner
Ideal dinner for sleep:
- Protein: Fatty fish, turkey, chicken, or tofu
- Complex carbs: Brown rice, quinoa, sweet potato
- Vegetables: Leafy greens (magnesium), other vegetables
- Healthy fats: Olive oil, avocado (moderate amounts)
Example: Grilled salmon with brown rice and steamed broccoli
The Bottom Line
Food can support better sleep, but it's not a cure for insomnia. The best evidence supports tart cherries, kiwi, fatty fish, and nuts. Avoid caffeine after 2 PM, alcohol within 4 hours of bed, and large or spicy meals close to bedtime. Timing matters—finish dinner 2-3 hours before bed. A small carb + protein snack before bed is fine if you're hungry. For chronic insomnia, dietary changes alone won't solve the problem— combine with good sleep hygiene and consider CBT-I. Learn more about complete insomnia guide.
Medical Disclaimer: This article is for informational purposes only. If you have chronic insomnia or dietary restrictions, consult a healthcare provider.
Not sure how your sleep really stacks up?
Take our 30-question Sleep Quality Assessment and get a personalized Sleep Score across 6 dimensions.
✦ Take the Sleep Quality Assessment