Struggling to fall asleep or stay asleep is remarkably common, and diet is one lever researchers are increasingly looking at. Some of the best foods for better sleep contain compounds that support the body’s natural sleep mechanisms: melatonin precursors, magnesium, amino acids, and other nutrients associated with relaxation and sleep onset. The evidence is not dramatic, but it is consistent enough that what you eat in the hours before bed may be worth paying attention to.
A 2025 study published in Nature Aging found that sleeping 6.4 to 7.8 hours per night was associated with slower biological aging markers in adults, renewing interest in practical, non-pharmaceutical ways to support sleep quality. Diet is one of the most accessible starting points.
This guide pulls together the current evidence on foods that research suggests may support better sleep. It is not a treatment for insomnia or a replacement for medical evaluation; think of it as an evidence-informed starting point.
What the Research Actually Says
Most food-sleep studies are observational or conducted over short periods with small samples, so effect sizes are modest and findings should be treated as preliminary. That said, several nutritional pathways have consistent enough evidence to be worth understanding.
The Tryptophan–Serotonin–Melatonin Pathway
Tryptophan is an amino acid the body converts, in sequence, into serotonin and then melatonin, the hormone most directly associated with sleep onset. Tryptophan-rich foods eaten alongside carbohydrates (which reduce competing amino acids in the bloodstream) may enhance uptake, according to some research.
Magnesium and GABA
Magnesium is involved in regulating GABA, the brain’s primary calming neurotransmitter. Several studies have found associations between low magnesium intake and poorer sleep quality, and research suggests it may support muscle relaxation and stress-response regulation.
The Evidence-Based Foods List
1. Tart Cherries
Tart cherries, particularly Montmorency varieties, are one of the most studied foods for sleep. They are a natural source of melatonin and anti-inflammatory compounds. A small randomised trial found that adults who drank tart cherry juice twice daily reported modestly longer sleep duration compared to a placebo, and the signal is consistent across multiple studies.
Cautions: Tart cherry is high in natural sugars, which is relevant for those managing blood sugar. It may also interact with anticoagulant medications such as warfarin. Consult a healthcare professional if you take blood thinners or blood sugar medications.
2. Kiwi Fruit
A frequently cited 2011 study found that eating two kiwi fruits an hour before bed for four weeks was associated with faster sleep onset, longer sleep duration, and better sleep efficiency in adults with reported sleep disturbances. Researchers point to kiwi’s serotonin content and antioxidant profile as possible contributors, though the exact mechanism is not fully established.
Cautions: Kiwi is a common allergen. Those with latex allergy may experience cross-reactivity. Otherwise well tolerated.
3. Fatty Fish (Salmon, Mackerel, Sardines)
Fatty fish are rich in omega-3 fatty acids and vitamin D, both associated with serotonin regulation and sleep quality in observational research. Vitamin D deficiency has also been linked to poorer sleep in several population studies. The FDA recommends 2–3 servings per week of lower-mercury fatty fish such as salmon, sardines, and mackerel.
Cautions: Omega-3s at high supplemental doses may interact with blood-thinning medications. Food-level intake from 2–3 servings per week is generally considered safe for most adults.
4. Nuts (Almonds and Walnuts)
Almonds are a good source of magnesium. Walnuts contain alpha-linolenic acid (an omega-3 precursor) and small amounts of melatonin. Both also contain tryptophan. Evidence for nuts as a specific sleep aid is limited to mechanistic plausibility and small observational data, but they are nutritionally dense and low-risk as a pre-bed snack.
Cautions: Nuts are a common allergen and are calorie-dense; large quantities before bed may cause discomfort for those with digestion sensitivity.
5. Oats
Whole oats contain melatonin, magnesium, and complex carbohydrates that may support tryptophan uptake. Their relatively low glycaemic index compared to refined carbohydrates means they are less likely to cause blood sugar spikes that can disrupt sleep architecture.
Cautions: Those with coeliac disease should use certified gluten-free oats. No significant drug interactions at food-level consumption.
6. Chamomile Tea
Chamomile contains apigenin, a flavonoid that binds to GABA receptors in the brain. Several small studies have found associations between chamomile consumption and improved sleep quality and reduced anxiety symptoms. The evidence is preliminary but directionally consistent.
Cautions: Chamomile may interact with blood-thinning medications (warfarin) and may cause allergic reactions in people sensitive to related plants (ragweed, chrysanthemums, marigolds). Pregnant women should consult a healthcare professional before consuming chamomile regularly. Avoid if you have a known Asteraceae/Compositae family allergy.
Common Misconceptions About Food and Sleep
- “Alcohol helps you sleep.” It may help you fall asleep faster, but research consistently shows it disrupts sleep architecture, particularly REM sleep, and increases nighttime waking. The net effect on sleep quality is negative.
- “Eating before bed is always harmful.” Large, heavy meals close to bedtime can impair sleep, but a small tryptophan-rich snack may support sleep onset for some people. Timing and portion size matter more than eating itself.
- “These foods will cure insomnia.” The foods in this list are associated with modest improvements in research. They are not treatments for sleep disorders. Chronic insomnia, sleep apnea, and similar conditions require medical evaluation.
When Dietary Changes May — and May Not — Help
Dietary adjustments are most likely to show benefit when poor sleep is associated with nutritional gaps (low magnesium, low vitamin D) or when sleep hygiene is otherwise reasonable but quality is suboptimal. They are less likely to help when disruption is driven by sleep apnea, anxiety disorders, chronic pain, or circadian rhythm misalignment. In those cases, a healthcare provider is the right starting point.
Tools and Products That May Support Better Sleep
If you are working on your sleep environment alongside dietary changes, a supportive mattress plays a significant role. Our Eight Sleep vs Sleep Number vs Casper smart mattress comparison breaks down the leading options by sleep type and budget.
For tracking how dietary changes affect your sleep metrics, wearables can provide useful data. Our Best Sleep Trackers 2026 guide covers the leading options by accuracy and feature set.
If meeting daily nutritional targets is a challenge, some meal delivery services offer whole-food-focused plans. Our Best Meal Delivery Services 2026 roundup covers options across budgets, and our Best Greens Powders 2026 guide is worth reviewing if you struggle to hit daily vegetable and micronutrient targets.
Frequently Asked Questions
Which food has the most research behind it for sleep?
Tart cherries have the most direct clinical evidence, with multiple small trials finding associations with improved sleep duration. Kiwi is a close second, with a well-cited trial showing associations with faster sleep onset and better sleep efficiency.
When should I eat these foods before bed?
Most research has studied consumption 1–2 hours before bed. Chamomile tea is often consumed 30–60 minutes before sleep. A light snack is generally preferable to a full meal close to bedtime.
Can food-based approaches replace melatonin supplements?
Food-based melatonin levels are far lower than typical supplement doses. Dietary changes may support sleep through multiple pathways, but they are unlikely to replicate the effect of a melatonin supplement for most people.
Are there foods that consistently worsen sleep?
Research consistently associates poor sleep with high caffeine intake (especially after midday), alcohol, large meals close to bedtime, and high-sugar foods that cause blood sugar spikes. Ultra-processed, high-fat meals have also been associated with shorter sleep duration in observational data.
When should I see a doctor instead of adjusting my diet?
If sleep difficulties are persistent, significantly affecting daily function, or associated with loud snoring, gasping, or excessive daytime sleepiness, consult a healthcare professional. Diet is a reasonable first step for occasional, mild sleep difficulties, not a substitute for medical evaluation of ongoing issues.
Bottom Line
Research suggests that tart cherries, kiwi, fatty fish, nuts, oats, and chamomile may support better sleep through several nutritional pathways. Effects are modest and individual variation is significant, but these are low-risk, nutritionally sound additions to an evening routine. They are best understood as one component of a broader approach that also includes consistent sleep timing, a cool and dark sleep environment, and stress management, not as standalone fixes.