What you eat in the hours before bed can quietly shape how well you sleep. A handful of almonds, a small bowl of cherries, or a kiwi or two aren’t magic, but a few foods do contain compounds — tryptophan, magnesium, melatonin — that support the body’s natural wind-down process.
Table of Contents
This guide breaks down which foods are actually worth reaching for before bed, how much and when to eat them, and which late-night habits tend to backfire on sleep quality.

Quick Answer
The best bedtime snacks pair a small amount of protein or complex carbs with sleep-supportive compounds: tart cherries or cherry juice, kiwifruit, almonds or walnuts, a banana, or a small bowl of oatmeal or plain yogurt. Eat a light snack about 2-3 hours before bed, keep it small, and skip anything sugary, spicy, high-fat, or caffeinated.
Foods That Actually Help
Tart (Montmorency) cherries and tart cherry juice are among the most studied options — they naturally contain melatonin, the hormone that regulates the sleep-wake cycle. Research trials, including small studies in older adults with insomnia, have found that tart cherry juice can lengthen total sleep time and improve sleep efficiency compared with a placebo, though researchers note the effect is modest and more study is needed on ideal dosage and timing.
Kiwifruit has a similar research base: in a small trial, adults who ate two kiwis about an hour before bed for several weeks fell asleep faster, woke up less during the night, and slept longer overall compared to not eating kiwi beforehand.
Almonds, walnuts, and pistachios combine magnesium, zinc, and small amounts of melatonin. Magnesium in particular plays a role in regulating the nervous system and muscle relaxation, which can support winding down — a small handful (about an ounce) is plenty.
Bananas offer potassium and magnesium along with a little tryptophan, an amino acid the body converts into serotonin and then melatonin. Pairing a banana with a spoonful of nut butter adds a bit of protein to help stabilize blood sugar overnight.
Plain yogurt, warm milk, and other dairy contain tryptophan and calcium, which helps the brain use tryptophan to make melatonin — this is part of why warm milk is a classic bedtime folk remedy.
A small bowl of oatmeal or a slice of whole-grain toast provides complex carbohydrates, which can help tryptophan cross into the brain more effectively when eaten alongside a protein source.
Herbal teas without caffeine, such as chamomile or valerian root tea, are widely used as part of a wind-down routine, though evidence for their sleep effects is less robust than for whole foods like tart cherries or kiwi.
How Much and When to Eat Before Bed
Timing matters as much as food choice. Eating a large or heavy meal right before lying down can trigger indigestion or acid reflux, which disrupts sleep. Most sleep experts recommend finishing dinner at least 2-3 hours before bedtime, then having only a light, small snack (100-200 calories) if you’re genuinely hungry closer to lights-out.
Keep portions modest: a handful of nuts, a small glass of tart cherry juice, one or two kiwis, or a small bowl of cereal with milk is enough. The goal is to avoid hunger waking you up, not to eat a second dinner.

Tips and Common Mistakes
Avoid caffeine in the afternoon and evening — it can linger in your system for several hours and delay sleep onset even if you don’t feel ‘wired.’ Alcohol before bed is another common mistake: it may make you feel drowsy initially but tends to fragment sleep later in the night.
Skip sugary desserts and refined carbs close to bedtime, since blood sugar spikes and crashes can cause middle-of-the-night waking. Spicy or high-fat foods are also worth avoiding late at night, as they slow digestion and raise the risk of reflux.
Don’t rely on food alone — bedtime snacks work best as one piece of a broader sleep routine that includes a consistent sleep schedule, a dark and cool bedroom, and limiting screens before bed.
If you’re using tart cherry juice or a melatonin-containing food as a regular sleep aid, treat it as a mild, complementary habit rather than a fix for chronic insomnia, and check with a doctor if sleep problems persist.
Explore more: More wellness and sleep guides.
Foods to eat before bed for sleep FAQs
What is the single best food to eat before bed for sleep?
There’s no single ‘best’ food, but tart cherries or tart cherry juice and kiwifruit have the strongest research support among whole foods, since both have been shown in small trials to improve sleep duration and quality.
Is it bad to eat right before bed?
A large meal right before lying down can cause indigestion or acid reflux that disrupts sleep. A small, light snack eaten 30-60 minutes before bed is generally fine; it’s heavy or spicy meals eaten immediately before sleep that tend to cause problems.
Does warm milk actually help you sleep?
Warm milk contains tryptophan and calcium, which support melatonin production, and the ritual itself can be calming. The effect is mild rather than dramatic, but it’s a low-risk habit many people find helpful.
What foods should I avoid before bed?
Avoid caffeine, alcohol, sugary or high-refined-carb snacks, and spicy or high-fat foods in the hours before bed, since they can delay sleep onset, spike blood sugar, or trigger reflux that wakes you up.
Build Better Habits With ZenDuel
Track your habits and mood, stay accountable, and build a calmer routine — get the ZenDuel app. Get ZenDuel.
Want a calmer inbox? Subscribe to the free newsletter.
Photo by Brenda Godinez on Unsplash.