The Best Foods to Eat Before Bed (and What to Avoid)
What you eat in the evening shapes how you sleep. Here is a practical guide to the best foods before bed — and the ones quietly sabotaging your rest.
Most people think about sleep hygiene in terms of screens, light, and bedtime routines — but what you eat in the hours before bed has a surprisingly direct effect on how well you actually sleep. The right foods can nudge your body toward rest. The wrong ones can keep you awake longer than a late-night cup of coffee, even when you feel tired.
This guide covers the foods most worth adding to your evening routine, what to cut back on, and the timing that makes the difference.
Foods That Help You Sleep
Tryptophan-Rich Foods
Tryptophan is an amino acid your body uses to produce serotonin, which is then converted into melatonin — the hormone that signals it is time to sleep. Turkey is the classic example, though eggs and dairy (milk, yogurt, cheese) are equally good sources and often easier to incorporate into an evening snack.
Tryptophan works best when eaten alongside a small amount of carbohydrate, which helps shuttle it across the blood-brain barrier. A small bowl of oatmeal with milk, or a slice of whole-grain toast with a soft cheese, covers both bases.
Magnesium Sources
Magnesium plays a role in regulating the nervous system and muscle relaxation, and low magnesium intake is consistently associated with poorer sleep quality. Good evening sources include almonds, pumpkin seeds, and cashews — all easy to keep in a small bowl on the counter as a default snack.
Dark chocolate contains magnesium too, and a square or two in the early evening is fine. Just keep portions modest and stick to 70 percent cacao or higher, since lower percentages add more sugar than benefit.
Melatonin-Containing Foods
A handful of foods contain small amounts of melatonin naturally. Tart cherries — fresh, frozen, or as unsweetened juice — are among the most studied, with some research suggesting they may modestly increase sleep duration. Kiwi fruit has also drawn attention in this area; a couple of kiwis eaten about an hour before bed seems to be where most of the research has focused.
These are not miracle foods, but they fit naturally into an evening routine and carry no downsides.
Complex Carbohydrates
Simple sugars cause blood glucose to spike and then drop, which can trigger cortisol release in the middle of the night and disrupt sleep. Complex carbohydrates — whole grains, oats, sweet potato — raise blood glucose more gently and keep it steadier through the night.
If you tend to wake up in the early hours feeling alert or restless, an imbalanced evening meal that leans too heavily on refined carbs could be part of the explanation.
Herbal Teas
Chamomile tea is the most well-known sleep-supporting herbal tea, and it does have a mild relaxing effect, likely related to an antioxidant called apigenin that binds to receptors in the brain associated with sedation. The evidence for chamomile is modest but consistent, and the ritual of a warm drink before bed has its own value.
Valerian root tea has a longer history as a sleep aid, though the research is more mixed — some studies show benefit, others show no effect compared to placebo. If you find it helpful, that is a perfectly reasonable reason to keep using it. Passionflower tea is another option with some preliminary support for reducing anxiety and improving sleep onset.
The honest summary: herbal teas are unlikely to transform your sleep on their own, but as part of a calming evening routine, they are a low-risk, pleasant addition. Pairing them with a consistent wind-down habit — like the ones available in Dozy — tends to produce more noticeable results than any single food or drink alone.
Foods to Avoid Before Bed
Heavy, Fatty, or Spicy Meals
Large meals close to bedtime force your digestive system to stay active during hours it would otherwise be winding down. Fatty foods take the longest to digest, and spicy foods can cause acid reflux that becomes more uncomfortable when lying flat. Neither situation is conducive to deep, uninterrupted sleep.
This does not mean you have to stop eating after 6 pm. It means finishing your main meal with enough time for most of the digestion to happen before you lie down — more on timing below.
Alcohol
Alcohol is the most commonly misunderstood sleep disruptor. It is sedating, which means it does help people fall asleep faster. The problem is what happens a few hours later. As your liver metabolizes the alcohol, it triggers a rebound in brain activity that fragments sleep in the second half of the night, suppresses REM sleep, and tends to cause early waking.
Consistently drinking in the evenings — even in amounts that feel moderate — can quietly erode sleep quality over time without the connection being obvious. One or two drinks occasionally is unlikely to cause lasting harm, but alcohol as a regular sleep aid reliably backfires.
Caffeine (Including Hidden Sources)
Caffeine has a half-life of around five to seven hours in most adults, which means half of a 3 pm coffee is still circulating in your system at 9 or 10 pm. People vary significantly in how quickly they metabolize caffeine, so some feel effects longer than others.
The obvious sources are coffee, espresso, and energy drinks. Less obvious sources include black and green tea, many pre-workout supplements, some pain relievers, and dark chocolate in larger quantities. If you are sleeping poorly and drinking caffeine in the afternoon, cutting the cutoff to noon is one of the simpler experiments worth running.
Sugar Spikes
High-sugar foods eaten close to bedtime — sweets, refined crackers, sweetened cereals — can cause the blood glucose fluctuations mentioned above, with drops in the night triggering stress hormones that wake you. They also tend to crowd out the more useful foods described earlier.
A modest sweet craving in the evening is easy to handle with fruit, a small portion of dark chocolate, or a few dates — all of which provide sweetness alongside fiber or micronutrients that slow absorption.
Timing: When You Eat Matters as Much as What
The general principle is straightforward: finish your main meal at least two to three hours before bed. This gives digestion enough of a head start that lying down does not slow it significantly, and it avoids the discomfort and acid reflux risk that comes with a full stomach.
Smaller snacks closer to bedtime are fine — and can even be helpful if you tend to wake up hungry or if you eat your main meal early. The key is keeping those snacks light and favoring the foods in the first half of this guide.
If you have conditions like acid reflux, diabetes, or other metabolic concerns, these general guidelines are a starting point only — the specifics of timing and food choices are worth discussing with a clinician who knows your situation.
Practical Bedtime Snack Ideas
Knowing what to eat is easier with a few ready-to-go combinations. These work well in the thirty to sixty minutes before bed:
- A small bowl of plain full-fat yogurt with a handful of tart cherries or sliced kiwi
- A couple of whole-grain crackers with almond butter
- Warm milk with a pinch of cinnamon
- A small portion of oatmeal made with milk, topped with pumpkin seeds
- Chamomile or passionflower tea with a small square of dark chocolate and a few almonds
The common thread across all of these: protein or healthy fat to stabilize blood sugar, a light carbohydrate to support tryptophan uptake, and nothing that is going to sit heavily in your stomach.
A useful rule of thumb — if you would feel comfortable taking a gentle walk after eating it, it is probably fine before bed. If it feels like a meal, give it more time before you lie down.
Try Dozy Tonight
Good sleep is built from consistent habits across the whole evening — what you eat is one piece of the picture. Download Dozy on the App Store and let the app help you build a wind-down routine that works alongside the nutritional changes you make.