Foods That Help You Sleep: What the Research Actually Says
Most "foods for sleep" lists are recycled from a 2002 turkey-tryptophan article, with chamomile tea and warm milk added to fill space. The evidence has moved on. Some of those foods do work. Some do not. And the timing of when you eat matters more than most lists admit.
This guide goes through every food with peer-reviewed sleep data, what dose actually moved the needle in studies, when to eat it, and what to skip. If you want a single sentence: tart cherry juice, kiwi, fatty fish, and a small carb-protein snack 90 minutes before bed are the four with the strongest evidence. The rest of this article is why and how.
Why Food Affects Sleep at All
Food interacts with sleep through three pathways:
- Tryptophan and serotonin. Tryptophan is an amino acid your body converts to serotonin and then to melatonin. Foods high in tryptophan plus carbohydrates spike insulin, which clears competing amino acids from the bloodstream so tryptophan can cross the blood-brain barrier more efficiently.
- Direct melatonin content. Some foods contain melatonin in measurable amounts. Tart cherries, walnuts, and goji berries are the highest natural sources.
- Inflammation and digestion. Heavy meals, spicy food, and high-fat dishes elevate core body temperature and slow gastric emptying, both of which fragment sleep. The food matters, but so does the volume and timing.
A 2023 review in the journal Nutrients across 26 trials found that diet quality and sleep quality move together. Higher fiber and lower saturated fat correlated with more deep sleep. High sugar and ultra-processed food correlated with more wake-after-sleep-onset. The effect was meaningful: roughly 13 minutes more deep sleep on the highest-quality diets versus the lowest.
The 12 Foods With Real Sleep Data
1. Tart Cherry Juice (Strongest Evidence)
Tart cherries are one of the few foods with naturally high melatonin. A 2018 randomized trial gave older adults with insomnia 240 ml of tart cherry juice twice daily and saw an 84-minute increase in total sleep time after two weeks compared to placebo.
Dose: 240 ml (8 oz) of unsweetened Montmorency tart cherry juice, 1-2 hours before bed. Look for cold-pressed, no added sugar. Concentrate works too at 30 ml diluted in water.
Note: tart cherry, not sweet cherry. Sweet cherries are pleasant but contain a fraction of the active compounds.
2. Kiwi (Surprising and Reliable)
A Taiwan study had adults with sleep problems eat 2 kiwifruits one hour before bed for 4 weeks. Sleep onset dropped by 35%, total sleep time rose by 13%, and sleep efficiency improved across the board. The likely mechanism is the combination of serotonin in the flesh, antioxidants, and folate.
Dose: 2 medium kiwifruits, eaten 60 minutes before bed.
The effect was strong enough that kiwi gets recommended in actual sleep clinics. It is the highest-evidence food per dollar on this list.
3. Fatty Fish (Salmon, Mackerel, Sardines)
A Norwegian trial had men with sleep problems eat salmon three times a week for six months. Sleep latency dropped by 10 minutes, sleep efficiency rose, and daytime function improved. The mechanism is omega-3s plus vitamin D, both of which support healthy serotonin signaling.
Dose: 3-4 servings per week of fatty fish. Salmon, mackerel, sardines, herring. If fish is not your thing, 1-2 g of EPA+DHA omega-3 supplement gives a similar effect on sleep markers.
This is a long-game intervention. The benefit shows up over weeks, not nights.
4. Almonds and Walnuts
Walnuts contain measurable melatonin and tryptophan. Almonds are rich in magnesium, which most people are deficient in. A 2019 trial found that 60 g of almonds nightly improved sleep efficiency in adults with poor baseline sleep.
Dose: a small handful (~30 g) of either, 90 minutes before bed.
Do not eat the whole bag. Past 60 g of nuts the calorie load disrupts more than the magnesium helps.
5. A Small Carb-Protein Snack 90 Minutes Before Bed
This is the single most underrated sleep intervention. A small carbohydrate-protein combination raises insulin enough to push tryptophan across the blood-brain barrier, where it converts to serotonin and melatonin.
Examples that work:
- Half a banana with a tablespoon of almond butter
- Greek yogurt with honey
- Whole-grain toast with turkey
- Oatmeal with milk
Dose: 150-200 calories. Larger meals work against you by raising core body temperature.
The glycemic-index research is consistent: a moderate-GI carb shortens sleep onset by 8-10 minutes compared to fasting or high-fat alternatives.
6. Chamomile Tea (Modest Effect, but Real)
Chamomile contains apigenin, a flavonoid that binds to GABA receptors and produces mild sedation. A 2017 trial in older adults found 400 mg of chamomile extract twice daily improved sleep quality scores meaningfully over four weeks.
Dose: 1-2 cups of strong chamomile tea, steeped 5+ minutes, in the hour before bed. Or 200-400 mg of standardized extract.
The tea version is weaker than capsules but the ritual itself helps. The wind-down behavior matters as much as the apigenin.
7. Pistachios (Highest Plant Melatonin)
Pistachios contain among the highest measurable melatonin of any food at roughly 660 ng per gram. A 30 g serving delivers more melatonin than most over-the-counter pills.
Dose: 28 g (1 oz) shelled, 1-2 hours before bed.
The only downside: easy to overeat. Buy them in shells and let the shelling slow you down.
8. Bananas (Magnesium and Tryptophan)
A medium banana contains 32 mg of magnesium and a useful dose of tryptophan along with the carbs that help it cross into the brain. The magnesium content is modest compared to a supplement, but bananas are easy.
Dose: half a banana with a tablespoon of nut butter, 60-90 minutes before bed.
Whole bananas as a standalone snack are too high in sugar to be optimal. The pairing matters.
9. Cottage Cheese with Honey
Casein, the slow-digesting protein in cottage cheese, releases amino acids over hours. Combined with a teaspoon of honey, you get the insulin-tryptophan effect plus sustained tryptophan availability through the night.
Dose: 100 g (half a cup) of low-fat cottage cheese with a teaspoon of honey, 60-90 minutes before bed.
This combination is popular with people who wake up at 3 AM hungry. The slow protein release smooths nighttime blood sugar.
10. Leafy Greens (Magnesium and Folate)
Spinach, kale, and Swiss chard are dense in magnesium and folate, both of which support melatonin synthesis. The effect is not from the dinner itself but from cumulative magnesium status over weeks.
Dose: 1-2 cups of cooked greens with dinner. Daily.
If your dinners are mostly meat and starch, adding a side of greens five nights a week is one of the higher-leverage food changes for sleep.
11. Pumpkin Seeds (Magnesium Powerhouse)
A 30 g serving of pumpkin seeds delivers roughly 150 mg of magnesium, the highest concentration of any common food. Sprinkled on yogurt or eaten plain, they shore up magnesium status alongside whatever else you are doing.
Dose: 28-30 g, anytime. Best in the evening or as part of a sleep snack.
12. Warm Milk (The Old Standby, Partially Vindicated)
Warm milk has tryptophan, calcium, and a sleep-onset ritual that has been around for centuries. The dose of tryptophan is small, so the biochemical effect is modest, but the warming and the routine help.
Dose: 200 ml (one cup) of warm milk, optionally with honey, 30-60 minutes before bed.
The ritual matters more than the milk. If you do not like dairy, oat milk works for the routine without the lactose.
What to Avoid in the Evening
Caffeine, Obviously, But Earlier Than You Think
Caffeine has a half-life of 5-7 hours and a quarter-life of 10-14 hours. A 2 PM coffee still has 25% of its caffeine circulating at midnight. For most adults, the cutoff should be noon to 1 PM. See our caffeine cutoff guide for the exact timing.
Decaf is not zero caffeine. A typical decaf coffee has 5-15 mg per cup. For most people that is fine. For genetically slow metabolizers, even decaf at 9 PM can fragment sleep.
Alcohol (The Most Misunderstood)
Alcohol is sedative early and stimulating late. Initially it shortens sleep onset and produces drowsiness. Then it metabolizes, blood alcohol drops, and the body shifts into a sympathetic-dominant state in the second half of the night. REM gets crushed, awakenings spike.
If you drink, finish 3-4 hours before bed. The total dose matters more than the type.
Heavy or Spicy Meals Within 3 Hours of Bed
Large meals raise core body temperature and slow digestion, both of which delay sleep onset. Spicy food adds heartburn risk when you lie down. If dinner has to be late, keep it light: vegetables, protein, modest carbs, no fried food.
Sugary Snacks at Bedtime
A blood-sugar spike followed by a crash at 3 AM looks like cortisol-driven middle-of-night waking. If you wake every night around the same time hungry, the dinner-to-bedtime carb mix is worth examining.
High-Fat Dinners
A 2016 study comparing high-fat versus high-carb dinners found that high-fat eaters spent less time in slow-wave sleep. The fat itself slows gastric emptying and the effect persists into the night. A balanced plate beats a keto bonanza for sleep, even if keto works for you in other ways.
When to Eat Your Last Real Meal
Stop eating substantial food 3 hours before bed. This is the single dietary timing rule with the most consistent sleep evidence. A small carb-protein snack 60-90 minutes before bed is fine and often helpful. A late dinner with two glasses of wine is the worst combination.
For people who genuinely cannot eat earlier (shift work, demanding schedules), prioritize lighter food at the late meal and add the snack-to-sleep buffer rather than skipping food entirely. Going to bed truly hungry triggers cortisol release, which is its own sleep wrecker.
What About Supplements
Food is foundation, supplements are scaffolding. The supplements with the strongest sleep evidence are magnesium glycinate, glycine, and L-theanine. Melatonin is a timing tool, not a sleep aid, and most people use it wrong.
For a deeper dive on dosing and timing, see our magnesium for sleep guide. Supplements layer on top of food, not instead of it.
A Practical Evening-Eating Template
If you want a simple plan that combines the evidence above:
- Dinner by 7-8 PM if your bedtime is 11 PM. Include leafy greens, a protein source, modest carbs, and not much fat or alcohol.
- 90 minutes before bed: a small carb-protein snack. Half a banana with almond butter is ideal. 100 g Greek yogurt with honey works equally well.
- 60-90 minutes before bed: 2 kiwifruits or 240 ml tart cherry juice if you have the budget for them.
- 30-60 minutes before bed: chamomile tea or warm milk if you like them. Skip if not.
This stack is roughly 350-450 calories, fits any reasonable weight goal, and stacks 3-4 evidence-backed mechanisms.
The Honest Limit of Food and Sleep
No food fixes chronic insomnia. The effect sizes above are real but modest. Tart cherry juice and kiwi can shave 15-30 minutes off sleep latency. Magnesium-rich diets nudge deep sleep in the right direction over weeks. None of this competes with the effect size of sleep hygiene fundamentals or behavioral therapy for insomnia.
If your sleep problem is mild and you sleep well most nights, the food stack above is enough. If you have been sleeping poorly for months despite trying the basics, the leverage is no longer in your fridge. It is in stimulus control, sleep restriction, and the cognitive work that targets the anxiety-rumination-insomnia loop. Cognitive Behavioral Therapy for Insomnia (CBT-i), recommended as first-line treatment by the American Academy of Sleep Medicine, is the intervention that matches or beats sleeping pills with no rebound effect.
Build Your Sleep Plan
Food is one lever. The right lever for you depends on your sleep type, your chronotype, and the specific pattern of your sleep problem. Take our free 2-minute sleep quiz to find your sleep profile and get a personalized 7-week plan that combines nutrition, behavior change, and CBT-i protocols tailored to how you actually sleep.