nutrition
Best Foods to Eat Before Bed for Better Sleep
What you eat in the hours before bed directly affects sleep quality. Here are the foods with the strongest evidence for improving sleep — and what to avoid.
The connection between food and sleep runs deeper than most people realise. Several foods contain compounds that directly support melatonin production, reduce cortisol, promote GABA activity, or regulate blood sugar in ways that support uninterrupted sleep.
Why food timing matters
The 2–3 hours before bed are the most impactful for sleep-nutrition interactions. Large meals close to bed raise core body temperature (through the thermic effect of food), which delays sleep onset. Blood sugar spikes and subsequent crashes during the night can trigger wakefulness.
But the right foods at the right time can actively support sleep rather than disrupt it.
Foods with evidence for better sleep
Tart cherries (or tart cherry juice)
Tart cherries are one of the few natural food sources of melatonin — and the evidence for their effect on sleep is among the strongest in nutritional sleep research.
A 2012 RCT published in the European Journal of Nutrition found that drinking tart cherry juice twice daily increased sleep time by an average of 39 minutes and improved sleep efficiency. A follow-up study replicated these findings in older adults with insomnia.
The active compounds include both melatonin and tryptophan (a melatonin precursor), as well as procyanidins that may reduce inflammatory markers linked to poor sleep.
Practical: 240ml (8oz) of tart cherry juice 1–2 hours before bed, or a small handful of dried tart cherries. Note — tart, not sweet cherries. Montmorency is the variety used in most studies.
Kiwi fruit
Two kiwis eaten one hour before bed is one of the more surprising findings in sleep nutrition research.
A 2011 study in the Asia Pacific Journal of Clinical Nutrition found that eating two kiwis per night for four weeks reduced sleep onset time by 35%, increased total sleep time by 13%, and improved sleep efficiency by 5%.
The proposed mechanisms include the high antioxidant content (oxidative stress is linked to sleep disruption), serotonin (kiwi is a good dietary source), and folate (folate deficiency is associated with insomnia).
Fatty fish (salmon, mackerel, sardines)
A study in the Journal of Clinical Sleep Medicine found that eating salmon three times per week for six months improved sleep quality and daytime functioning. The effect was attributed to vitamin D and omega-3 fatty acids (EPA and DHA), which are involved in serotonin and melatonin synthesis.
Vitamin D deficiency is associated with disrupted sleep and more fragmented sleep architecture. Omega-3s reduce inflammatory markers that can disturb sleep.
Walnuts
Walnuts contain melatonin, serotonin, and magnesium — three sleep-supportive compounds. They're also a good source of alpha-linolenic acid (ALA), an omega-3 that converts to DHA.
A small handful (28g) as an evening snack provides meaningful amounts of these compounds without significantly raising blood sugar.
Almonds
Almonds are a good source of magnesium (one of the most evidence-backed minerals for sleep quality) and also contain some melatonin. A 28g serving provides about 77mg of magnesium — roughly 18% of the daily requirement.
Warm milk (and dairy generally)
The warm milk before bed tradition has more science behind it than it might appear. Dairy contains tryptophan and calcium. Calcium helps the brain use tryptophan to produce melatonin. It also contains casein peptides that may have mild anxiolytic (anxiety-reducing) effects.
The warmth itself may contribute — warming the periphery (hands, face, feet) promotes heat loss from the body core, which facilitates sleep onset.
Herbal teas
Chamomile: Contains apigenin, a flavonoid that binds to GABA receptors — the same receptors targeted by benzodiazepine sleep medications, but with a much milder effect. An RCT found chamomile extract improved sleep quality in older adults.
Passionflower: Contains GABA-enhancing compounds. A small RCT found passionflower tea improved subjective sleep quality and reduced sleep onset time.
Valerian: More studied than most herbal sleep aids. A meta-analysis found valerian improved sleep quality without side effects, though study quality was mixed.
Complex carbohydrates and tryptophan combinations
Tryptophan (the amino acid precursor to serotonin and melatonin) competes with other amino acids for transport across the blood-brain barrier. Carbohydrates trigger insulin release, which clears competing amino acids from the blood — allowing tryptophan a clearer path to the brain.
This is the mechanism behind the classic turkey + stuffing sleepiness at Thanksgiving (though the effect is often overstated in popular accounts).
Practical combinations: a small bowl of oats with milk, whole grain toast with almond butter, or yogurt with a small amount of honey.
What to avoid before bed
Alcohol: Accelerates sleep onset but suppresses REM and fragments the second half of the night.
Caffeine: Half-life of 5–7 hours. A 2pm coffee still has significant caffeine at midnight.
High-sugar foods: Blood sugar spikes followed by nocturnal hypoglycaemia can trigger cortisol release and wakefulness at 2–4am.
Spicy foods: Raise core body temperature and can cause acid reflux in a horizontal position.
Large meals within 2 hours of bed: Digestion raises metabolic rate and core temperature.
Practical evening eating pattern
A sleep-supportive evening eating approach:
- Finish main dinner 2–3 hours before bed
- If hungry before bed: a small snack combining tryptophan + carbohydrate (e.g. small bowl of oats, or yogurt with a few walnuts)
- Herbal tea 1 hour before bed
- Tart cherry juice 1–2 hours before bed if you have sleep onset difficulty
This article is for informational purposes only and does not constitute nutritional or medical advice.