
Foods That Promote Better Sleep: What To Eat & When
Written by: Matthew Timmins, Founder and Managing Director, Leva Sleep
Key Takeaways
- Four key nutrients support sleep onset and quality: tryptophan, magnesium, melatonin, and complex carbohydrates.
- Evidence-backed foods include tart cherries, kiwifruit, pistachios, fatty fish, and oats, and timing and portion size shape their impact.
- For people with acid reflux or airway issues, food timing matters more than food choice, and eating within three hours of bed raises reflux risk.
- Avoid caffeine within 6–9 hours of bed, alcohol within 3 hours, heavy or high-fat meals within 3 hours, and spicy or high-sugar foods close to bedtime.
- When food changes are not enough, Leva Sleep adjustable bases provide consistent head-of-bed elevation for reflux and airway-related sleep issues.
Shop Leva Sleep adjustable bases
The Problem For Reflux And Airway Sleepers
For people with acid reflux or airway issues such as snoring, food timing often matters more than food choice. Someone can eat every food on the evidence-based list and still wake at 2 a.m.
The mechanism is geometric rather than nutritional. A horizontal torso removes the gravity assist that keeps stomach contents below the lower esophageal sphincter. A horizontal head position allows soft tissue to collapse into the airway. A 2026 cross-sectional study of 153 laryngopharyngeal reflux patients by Baklacı and Doğan (Laryngoscope Investigative Otolaryngology, 2026;11(2):e70417) found that reflux symptom severity was significantly associated with poorer sleep quality (r = 0.37, p < 0.001). A 2005 case-control study by Fujiwara et al. in the American Journal of Gastroenterology (147 GERD patients vs. 294 controls) found that a dinner-to-bed interval under three hours carried an odds ratio of 7.45 (95% CI 3.38 to 16.4) for reflux.
Clinicians commonly recommend sleeping with the head elevated for conditions including sleep apnea, acid reflux, and post-surgical recovery. An adjustable base makes that position easy to maintain at home, night after night, without stacking pillows. Stacking pillows can flex the abdomen and is not identical to safely elevating the bed. It bends the neck forward and increases abdominal pressure rather than elevating the torso.

Explore Leva Sleep adjustable bases for reflux and pain relief
How Key Nutrients Influence Sleep
Tryptophan is an essential amino acid and the direct dietary precursor to serotonin and, later, melatonin. The biochemical pathway is tryptophan → 5-HTP → serotonin → melatonin. Tryptophan competes with other large neutral amino acids for transport across the blood-brain barrier via the L-type amino acid transporter (LAT1). Those competitors include leucine, isoleucine, valine, tyrosine, and phenylalanine. A high-protein meal floods the blood with them and blunts brain uptake (Fernstrom and Wurtman). Turkey, eggs, and pumpkin seeds contain roughly 200–500 mg per serving, but that competition limits how much reaches the brain.
Magnesium is involved in more than 300 metabolic reactions and may work through regulation of GABA, a neurotransmitter that helps calm the nervous system. Clinical studies have not shown a consistent benefit of magnesium for falling asleep, despite widespread promotion of the mineral as a sleep aid (Harvard Health Publishing, September 24, 2026).
Melatonin is a hormone released by the pineal gland that regulates the circadian rhythm. Its release is highly sensitive to light, according to John W. Winkelman, MD, PhD, professor of psychiatry at Harvard Medical School and chief of the Sleep Disorders Clinical Research Program at Massachusetts General Hospital.
Complex carbohydrates increase the availability of tryptophan to the brain when eaten with or after protein. Insulin helps shift competing amino acids into muscle more than tryptophan. This mechanism may support serotonin and downstream melatonin synthesis, which is why carbohydrate-containing evening meals are sometimes associated with easier sleep onset. The effect is nutritional and contextual rather than pharmacologic, so timing, portion size, and food pairing all matter.
Foods With The Strongest Sleep Evidence
The table below shows that evidence strength varies sharply by food. Tart cherries and kiwifruit have direct human trial data, while several other entries rest on mechanistic or narrative-review support only.
How To Fix Sleep Problems Naturally: A Guide for Adults covers the full evening system beyond food.
Foods To Avoid Close To Bedtime
The following categories disrupt sleep through distinct physiological mechanisms, regardless of how healthy they are.
- Caffeine within 6–9 hours of bed. A 2023 review found the half-life of caffeine varies widely, ranging from two to ten hours, and estimated a standard cup of coffee should be consumed at least 8.8 hours before bedtime to avoid reductions in total sleep time. Caffeine blocks adenosine receptors, the chemical signal that builds sleep pressure throughout the day.
- Alcohol within 3 hours of bed. A 2025 systematic review and meta-analysis by Gardiner et al. in Sleep Medicine Reviews found alcohol alters sleep architecture, especially REM sleep, even in small amounts. As alcohol is metabolized, it produces a stimulating byproduct that fragments the second half of the night.
- Heavy or high-fat meals within 3 hours of bed. A 2026 randomized crossover trial published in the Journal of Physiological Anthropology (Volume 45, article 12) found that when 13 healthy young women ate dinner 1 hour before bedtime instead of 5 hours before, they had significantly shorter total sleep time (p = 0.013), reduced sleep efficiency (p = 0.040), and higher wake after sleep onset (p = 0.017).
- Spicy foods within 3 hours of bed. Spicy foods are thermogenic, so they raise core body temperature, and they can trigger acid reflux. Both effects oppose the cooling and slowing the body needs to enter deep sleep.
- High-sugar foods within 2 hours of bed. Refined carbohydrates spike blood glucose and then cause a rapid drop. The brain interprets low blood glucose as a survival threat and triggers arousal.
- Large fluid volumes before bed. Large fluid intake increases nighttime bathroom trips and fragments sleep continuity.
How to Fall Asleep Faster: Techniques and the Right Bed covers the full pre-sleep routine beyond food avoidance.
How Certain Foods Can Worsen Insomnia
The foods above are commonly blamed for poor sleep, but the evidence for food-specific effects is more limited than many headlines suggest. A 2024 analysis of 26 research studies on nutrition and sleep, cited by Sleep Foundation, concluded there is not enough evidence to confirm that specific foods or eating patterns impact sleep, and the authors suggest obesity rather than specific foods may influence sleep.
Aged cheeses such as cheddar, parmesan, and blue cheese contain small amounts of tyramine, an amino acid that can increase alertness in sensitive individuals (SleepReview, 2026 guide by James Park). Fresher varieties like mozzarella or cottage cheese are generally better tolerated before bed.
Smart Choices For A 2 A.M. Snack
If you are hungry at 2 a.m., a small, light snack is usually more comfortable than staying awake hungry, keeping it low in fat and avoiding spicy or heavy protein-rich foods. The goal is to quiet hunger without triggering digestion that delays return to sleep.
Practical options include:
- Plain oatmeal (small bowl)
- A banana
- Plain yogurt or Greek yogurt
- Broth-based soup
- Toast with a modest protein topping
- Rice with cooked vegetables
Healthiest Foods To Eat Before Bed
The healthiest food to eat before bed is one that is small, low in sugar, and moderate in protein, such as a handful of nuts, a small portion of cottage cheese, or a banana. A small pre-bed snack under 200 calories, eaten 30–60 minutes before bed, is the practical target (SleepReview, 2026 guide by James Park).
Fruits Most Linked With Deeper Sleep
Kiwifruit has the strongest clinical evidence for sleep onset and quality, as the table above shows. The 2011 PubMed study reported meaningful improvements in both time to fall asleep and overall sleep quality scores.
Tart cherries also have direct evidence, as the table shows. The 2018 Losso et al. randomized, double-blind, placebo-controlled crossover study found 240 mL of tart cherry juice twice daily increased total sleep time by 84 minutes in adults aged 50+ with chronic insomnia.
Peanut Butter As A Bedtime Snack
Peanut butter contains tryptophan in smaller amounts, and a small slice of wholegrain toast topped with peanut butter could be a beneficial sleepy snack (BBC Food, Charlotte Stirling-Reed, May 15, 2026). The carbohydrate in the toast supports tryptophan transport across the blood-brain barrier.
Two caveats apply. Keep the portion small, about a tablespoon, to avoid a calorie load that slows digestion. For people with acid reflux, the fat content of peanut butter may slow gastric emptying and increase reflux risk, particularly if eaten within two hours of lying down.
Melatonin-Rich Foods And Fruits
The 2026 Nisar et al. scoping review in Food Science & Nutrition measured melatonin concentrations across a wide range of foods. The table below reports those concentrations so you can see which foods contribute the most.
| Melatonin-Rich Food | Melatonin Content | Source |
|---|---|---|
| Goji berries | 530 ng/g | Nisar et al., 2026 |
| Pistachios | 233 ng/g (up to 660 ng/g per Nutrition Research Reviews, 2026) | Nisar et al., 2026 |
| Cranberries | 96 µg/g | Nisar et al., 2026 |
| Kiwifruit | ~24,000 ng/g | Nisar et al., 2026 |
| Almonds | 39 ng/g | Nisar et al., 2026 |
| Tart cherries | 13–15 ng/g | Nisar et al., 2026 |
| Strawberries | 11.26 ng/g | Nisar et al., 2026 |
| Wheat | 14.9 ng/g | Nisar et al., 2026 |
| Oats | 7.7 ng/g | Nisar et al., 2026 |
| Grapes | 9.3 ng/g | Nisar et al., 2026 |
| Walnuts | 3.5 ng/g | Nisar et al., 2026 |
| Barley | 6.0 ng/g | Nisar et al., 2026 |
An important dose caveat: clinical studies of phytomelatonin-rich foods have delivered roughly 1.25 to 85 µg of phytomelatonin per intervention, which is far below milligram-scale supplemental melatonin doses (Nutrition Research Reviews, Cambridge University Press, September 11, 2026). Melatonin consumed through food is well absorbed, enters the blood circulation, and can pass the blood-brain barrier (Nisar et al., 2026).
Timing And Portion: The 2-To-3-Hour Rule
Once you choose sleep-supportive foods, timing and portion size determine whether they help or hurt. The 2022 American College of Gastroenterology (ACG) clinical guideline on gastroesophageal reflux disease recommends that people who experience heartburn when lying down eat dinner at least two to three hours before going to bed, a conditional recommendation based on low-certainty evidence.
A practical evening protocol based on the available evidence:
- Finish the main meal at least 3 hours before bed.
- If hungry after that, keep any snack under 200 calories, low in fat, and low in sugar.
- Cut caffeine at least 8 hours before bed.
- Finish alcohol at least 3 hours before bed.
- If waking at 2 a.m. hungry, choose plain oatmeal, a banana, or plain yogurt instead of a full meal.
Simple Bedtime Snack Ideas
Three combinations pair evidence-backed foods for both nutrient synergy and practical portion control.
- Kiwi plus walnuts: Kiwi has the strongest clinical evidence for sleep onset. Walnuts contain melatonin at 3.5 ng/g (Nisar et al., 2026).
- Oatmeal with pumpkin seeds: Oats provide complex carbohydrates and melatonin at 7.7 ng/g (Nisar et al., 2026), and pumpkin seeds contribute tryptophan.
- Greek yogurt with tart cherries: Dairy provides tryptophan, and tart cherries contain melatonin at 13–15 ng/g (Nisar et al., 2026).
When Food Is Not Enough: Why Position Still Matters
As noted earlier, food timing matters more than food choice for many reflux and airway sleepers. The missing piece is position, because head-of-bed elevation uses gravity to keep acid and soft tissue away from sensitive structures.
Clinicians frequently recommend this elevation for sleep apnea, acid reflux, and post-surgical recovery. An adjustable base delivers that position consistently, without the neck flexion and abdominal pressure that come from stacking pillows.
A 2020 systematic review and meta-analysis by Khan and Singh published in Gastroenterology Report (8(3):196–205) found that head-of-bed elevation reduces esophageal acid exposure in patients with GERD. A related 2020 study by the same authors in the Journal of Clinical Sleep Medicine (16(10):1785–1792) reported similar benefits for sleep quality.
If you still wake with reflux or airway symptoms despite careful food choices and timing, consistent elevation often becomes the next step. Find your adjustable base for reflux and pain relief


