8 min read
Quality sleep is foundational to health, yet according to the Centers for Disease Control and Prevention (CDC), about 1 in 3 American adults don’t get enough sleep. What you eat and when you eat it can significantly impact your sleep quality.
Research from the National Institutes of Health (NIH) demonstrates that certain nutrients support the production of sleep-regulating hormones like melatonin and serotonin, while dietary habits can either promote or disrupt restful sleep.
Here are 12 evidence-based ways to use a balanced diet to improve your sleep.
1. Include Tryptophan-Rich Foods
Tryptophan is an essential amino acid that serves as a precursor to serotonin and melatonin—hormones that regulate sleep-wake cycles. Your body cannot produce tryptophan, so it must come from your diet.
Research published by the NIH suggests that foods containing tryptophan may help promote better sleep when consumed as part of a balanced diet.
Top tryptophan sources:
- Turkey (250 mg per 3 oz serving)
- Chicken (200 mg per 3 oz serving)
- Eggs (166 mg per large egg)
- Cheese (75 mg per ounce)
- Milk (100 mg per cup)
- Nuts and seeds (pumpkin seeds: 160 mg per ounce)
- Soybeans (465 mg per cup)
Pro tip: Pair tryptophan-rich foods with complex carbohydrates at dinner. Carbs help tryptophan cross the blood-brain barrier more effectively.
2. Embrace Melatonin-Rich Foods
Melatonin is the hormone your body produces in response to darkness, signaling that it’s time to sleep. While your body synthesizes melatonin from tryptophan, some foods contain melatonin directly.
Foods that contain natural melatonin:
- Tart cherries and tart cherry juice (one of the richest food sources)
- Grapes and walnuts
- Tomatoes and peppers
- Rice and barley
- Herbs: turmeric, fenugreek
A study published in the European Journal of Nutrition found that tart cherry juice consumption helped increase melatonin levels and improved sleep duration and quality in some participants.
3. Eat Magnesium-Rich Foods Before Bed
Magnesium plays a critical role in sleep regulation by supporting the function of GABA receptors—neurotransmitters that calm the nervous system. Magnesium deficiency has been associated with insomnia and restless sleep.
The NIH recommends 400-420 mg of magnesium daily for men and 310-320 mg for women.
Sleep-supporting magnesium sources:
- Dark chocolate (64 mg per ounce)
- Almonds (80 mg per ounce)
- Cashews (74 mg per ounce)
- Spinach (157 mg per cup, cooked)
- Avocados (58 mg per avocado)
- Bananas (37 mg per medium banana)
4. Limit Caffeine After Early Afternoon
Caffeine is a stimulant that blocks adenosine receptors, the chemicals that build up during the day to create sleep pressure. Its effects can last 6-8 hours or longer depending on individual metabolism.
The FDA recommends no more than 400 mg of caffeine daily for healthy adults, but timing matters as much as amount for sleep quality.
Caffeine management tips:
- Avoid caffeine after 2 PM (or earlier if you’re caffeine-sensitive)
- Remember that tea, chocolate, and some medications also contain caffeine
- If you enjoy afternoon beverages, switch to herbal tea
- Be aware that energy drinks can contain 2-3 times the caffeine of coffee
5. Create a Sleep-Supporting Dinner
What you eat at dinner can set the stage for better sleep. A balanced dinner that combines complex carbohydrates with protein and healthy fats helps stabilize blood sugar overnight.
According to the Mayo Clinic, eating large or heavy meals close to bedtime can cause discomfort and make it harder to fall asleep.
Ideal dinner composition for sleep:
- Grilled salmon or chicken (protein + omega-3s)
- Sweet potato or quinoa (complex carbs)
- Steamed vegetables like broccoli or asparagus
- A small side salad with olive oil dressing
Try to eat dinner 2-3 hours before bedtime to allow for proper digestion.
6. Avoid Alcohol as a Sleep Aid
While alcohol may help you fall asleep faster, it significantly disrupts sleep quality, particularly REM sleep—the restorative stage of sleep that consolidates memories and supports emotional regulation.
The CDC notes that alcohol can cause fragmented sleep, leading to daytime fatigue despite getting adequate hours of rest.
Better alternatives to alcohol for relaxation:
- Warm milk with a pinch of nutmeg
- Chamomile tea
- Tart cherry juice
- Valerian root tea
- A small handful of nuts with a piece of fruit
7. Watch Your Sugar Intake in the Evening
Consuming sugary foods or refined carbohydrates close to bedtime can cause blood sugar spikes followed by crashes, potentially disrupting sleep in the middle of the night.
The American Heart Association recommends limiting added sugars to less than 25 grams per day for women and 36 grams per day for men.
Sleep-friendly evening snack options instead:
- Apple slices with almond butter
- Greek yogurt with a sprinkle of walnuts
- A small bowl of whole grain cereal with milk
- Banana with a tablespoon of peanut butter
8. Include Calcium in Your Diet
Calcium helps the brain use tryptophan to manufacture melatonin. A calcium deficiency may contribute to difficulty falling asleep and disrupted sleep patterns.
The NIH recommends 1,000 mg of calcium daily for most adults.
Good dietary calcium sources:
- Low-fat dairy products (milk, yogurt, cheese)
- Fortified plant milks
- Leafy greens (kale, collard greens, bok choy)
- Canned sardines or salmon with bones
- Tofu (calcium-set varieties)
9. Eat Vitamin B6-Rich Foods
Vitamin B6 is essential for converting tryptophan into serotonin and melatonin. Without adequate B6, this conversion process may be impaired, affecting sleep quality.
The NIH recommends 1.3 mg of vitamin B6 daily for adults aged 19-50.
Vitamin B6 sources:
- Chickpeas (0.6 mg per cup)
- Salmon (0.9 mg per 3 oz serving)
- Poultry (0.5-0.7 mg per 3 oz serving)
- Potatoes (0.4 mg per medium potato)
- Bananas (0.4 mg per medium banana)
10. Eat Consistent Meals Throughout the Day
Irregular eating patterns—skipping meals, then eating large amounts—can disrupt your circadian rhythm and make it harder to fall asleep at night. Consistent meal timing helps regulate your internal clock.
Tips for consistent eating:
- Eat meals at roughly the same times each day
- Don’t skip breakfast, which helps set your daily rhythm
- Include a balanced snack between meals if needed
- Avoid heavy eating within 2-3 hours of bedtime
11. Consider Herbal Teas
Several herbal teas have been traditionally used to promote relaxation and sleep. While research is ongoing, some studies suggest modest benefits for certain herbs.
Relaxing herbal tea options:
- Chamomile (contains apigenin, which may promote relaxation)
- Valerian root (traditionally used for insomnia)
- Lemon balm
- Passionflower
- Lavender
Prepare your herbal tea as part of a calming bedtime ritual 30-60 minutes before sleep.
12. Avoid Late-Night Spicy or Acidic Foods
Spicy foods and acidic foods (like citrus or tomato-based dishes) can cause heartburn and digestive discomfort, especially when eaten close to lying down. The Mayo Clinic recommends avoiding trigger foods in the evening if you experience acid reflux.
Foods to avoid near bedtime:
- Hot peppers and heavily spiced dishes
- Citrus fruits and juices
- Tomato-based sauces
- High-fat fried foods
- Carbonated beverages
Building Your Sleep-Supportive Eating Pattern
Improving sleep through diet doesn’t require a complete overhaul. Start by incorporating one or two changes, like adding tryptophan-rich foods to your dinner or establishing a consistent eating schedule.
Combine these dietary strategies with good sleep hygiene practices: maintaining a consistent sleep schedule, keeping your bedroom cool and dark, limiting screen time before bed, and managing stress through relaxation techniques.
FAQ
What is the best bedtime snack for sleep?
A small snack combining complex carbohydrates with protein works well—like whole grain crackers with cheese, a small bowl of oatmeal with milk, or banana with almond butter. These combinations may help boost tryptophan availability for melatonin production.
How long before bed should I stop eating?
The Mayo Clinic recommends finishing large meals 2-3 hours before bedtime. A light snack is generally fine 30-60 minutes before sleep if needed.
Does dairy really help you sleep?
Dairy products contain both tryptophan and calcium, which support melatonin production. While research is mixed, warm milk before bed is a time-honored tradition that may help some people relax and prepare for sleep.
Can certain foods cause nightmares?
While not scientifically proven, some people report that spicy foods, heavy meals, or sugar before bed may lead to more vivid or disturbing dreams. This may be related to disrupted sleep quality rather than the foods themselves.
Is it better to eat a big dinner or small dinner for sleep?
Most sleep experts recommend a moderate-sized dinner. Eating too little may leave you hungry and restless, while eating too much may cause digestive discomfort that disrupts sleep.
This article is for informational purposes only and does not constitute medical advice. If you experience chronic sleep problems, consult with a qualified healthcare provider to rule out underlying sleep disorders.
Related Reading: Explore more wellness tips in our Mental Wellness section, or learn about balanced nutrition basics.
Medically reviewed by the Lifetrusty Medical Review Board, a group of qualified health and medical reviewers, and follows our sourcing standards. Read our Medical Disclaimer.
Written by: The Lifetrusty Mental Wellness Team
Last updated: September 8, 2026
This article is for general education only and is not a substitute for professional medical advice. Consult a qualified healthcare provider before changing diet, supplements, or exercise.
Continue Reading
Explore More Topics
Popular Guides

Why Belly Fat Is So Hard to Lose

Weight Loss Supplement Stacks: What Works

Anti-Inflammatory Diet vs Avocados: Which Is Better?

8 Anti-Inflammatory Diet Rules for Joint Health

