Health

What to Eat Before Bed for Better Sleep

The Quick Rundown

  • Certain foods genuinely help with sleep by supplying tryptophan, melatonin, magnesium, or serotonin precursors. These aren’t myths.
  • Tart cherry juice is the most research-backed single food for sleep, with multiple randomized controlled trials showing it increases sleep time and efficiency.
  • Kiwi fruit has strong clinical support too: eating two kiwis one hour before bed for four weeks cut the time it took participants to fall asleep by 35 percent in one study.
  • Magnesium-rich foods (almonds, pumpkin seeds, leafy greens) support sleep by calming the nervous system and lowering evening cortisol.
  • The ideal pre-bed snack is small, roughly 150 calories, and pairs a modest carbohydrate with a protein containing tryptophan.
  • Timing matters. Eat two to three hours before lying down to avoid acid reflux and digestive disruption.
  • Alcohol, spicy food, high-fat meals, and caffeine are the four main dietary sleep wreckers. Each disrupts sleep through a different mechanism.

Food is not the first thing most people reach for when they can’t sleep. They reach for apps, white noise machines, melatonin pills, blackout curtains. Diet tends to come last, if at all. That’s a missed opportunity, because what you eat in the hours before bed can shift how quickly you fall asleep, how long you stay asleep, and how rested you feel in the morning.

Not in a vague, wellness-blog way. In a measurable, peer-reviewed-study way.

This guide covers the foods with the strongest evidence behind them, the nutrients doing the actual work, when to eat, how much, and the foods worth cutting from your evenings entirely.

Why Food Affects Sleep at All

Sleep is a hormonal process. Melatonin signals to the brain that it’s time to sleep. Serotonin regulates mood and feeds into melatonin production. GABA, an inhibitory neurotransmitter, quiets neural activity and makes the brain receptive to sleep. And magnesium sits underneath all of it, regulating the tone of the nervous system and helping GABA do its job.

Food influences every one of those pathways. Tryptophan, an amino acid found in poultry, dairy products, and eggs, as well as seeds and nuts, is the raw material the body uses to make serotonin, which then converts into melatonin. Without enough dietary tryptophan, the whole chain gets thinner. Carbohydrates eaten alongside tryptophan-rich foods help shuttle tryptophan across the blood-brain barrier, which is why the classic turkey-and-stuffing combo actually does make people sleepy at Thanksgiving.

The chain is also fragile. An enzyme called IDO breaks down tryptophan before it can complete the conversion to melatonin. Inflammation in the body ramps up IDO activity, which is one reason that poor sleep, inflammatory diets, and chronic pain tend to cluster together. Some foods, tart cherries most notably, contain compounds that block IDO and preserve the tryptophan available for melatonin production.

What you eat doesn’t just add sleep-promoting compounds. It can also remove the barriers that prevent them from working.

The Best Foods to Eat Before Bed

Tart Cherries and Tart Cherry Juice

Montmorency tart cherries have the strongest clinical record of any food for sleep improvement. They contain melatonin directly, supply tryptophan, and carry anthocyanins and procyanidin B-2, a compound that blocks the IDO enzyme from degrading tryptophan before it converts to melatonin.

A randomized, double-blind, placebo-controlled trial gave 20 adults tart cherry juice concentrate for seven days. Compared with placebo, the cherry juice group showed increases in urinary melatonin metabolites alongside improvements in total sleep duration and sleep efficiency. A separate study at Louisiana State University found that older adults with chronic insomnia who drank tart cherry juice twice daily gained, on average, 85 minutes of extra sleep per night. That’s a real number from a real clinical trial.

Worth noting: a day’s worth of tart cherry juice provides roughly 0.085 mg of melatonin, which is six to sixty times less than a standard melatonin supplement. The sleep benefits can’t be explained by the melatonin content alone. The IDO-blocking mechanism appears to be the more significant driver, meaning the juice helps the body make more of its own melatonin rather than supplying it directly.

A glass of tart cherry juice (about 240 ml, unsweetened) drunk one to two hours before bed is the dosing pattern used across most studies.

Kiwi Fruit

Kiwis are probably the most underrated sleep food in the research literature. A clinical study published in the Asia Pacific Journal of Clinical Nutrition had 24 adults eat two kiwis one hour before bedtime every night for four weeks. By the end of the trial, participants fell asleep 35 percent faster, slept 13 percent longer, and reported meaningfully better sleep quality.

The mechanism isn’t fully settled. Kiwis contain serotonin directly and are rich in vitamin C and folate, both of which support serotonin synthesis. Their antioxidant content may suppress inflammatory markers that would otherwise impair sleep. A follow-up study in Frontiers in Nutrition comparing fresh versus dried kiwi confirmed the sleep-promoting effect, with urinary markers of serotonin activity rising in the kiwi group.

Two kiwis is the dose used in both major studies. That’s around 130 calories and comes with a meaningful hit of fiber, vitamin C, and potassium.

Almonds and Other Magnesium-Rich Nuts

Magnesium does several things that matter for sleep. It activates the parasympathetic nervous system (the body’s rest-and-digest mode), regulates the NMDA receptor to reduce neural over-excitation, lowers evening cortisol, and supports melatonin production. Older adults with insomnia given magnesium supplements for eight weeks in a 2012 trial showed improved sleep time, earlier sleep onset, lower cortisol in the evening, and higher melatonin. A 2025 randomized controlled trial in 155 adults with poor sleep confirmed that magnesium bisglycinate reduced insomnia scores versus placebo after four weeks.

Food sources are worth prioritizing alongside supplementation. One ounce of almonds provides around 80 mg of magnesium, roughly 20 percent of the daily target. Pumpkin seeds are even denser, delivering about 150 mg per ounce. Almonds also contain melatonin directly and supply tryptophan.

A small handful (about 28 grams) is the right snack-sized portion. More than that before bed starts to burden digestion.

Oatmeal and Whole Grains

Oats are one of the better plant sources of melatonin, and their fiber content moderates blood sugar through the night rather than causing the spike-and-crash that disrupts sleep. Whole grains also contain B vitamins, which are cofactors in the tryptophan-to-serotonin conversion pathway. Without enough B6, for example, the body can’t efficiently produce serotonin even when tryptophan is available.

A Japanese population study found that adults who regularly ate rice reported better sleep than those whose diets were higher in bread or noodles. The fiber and glycemic index difference appears to be the driver: high-glycemic refined carbohydrates fragment sleep, while complex carbohydrates with fiber support more stable glucose levels overnight.

A small bowl of plain oats with a drizzle of honey and a handful of almonds is a well-rounded pre-bed snack. It hits the carbohydrate-plus-tryptophan combination that helps tryptophan reach the brain, without the digestive load of a heavier meal.

Greek Yogurt with Banana

Greek yogurt delivers tryptophan and calcium, with calcium playing a supporting role in converting tryptophan into serotonin in the brain. Banana brings potassium and magnesium alongside natural sugars, and a study specifically found that potassium improved sleep quality in women.

The combination is practical and filling enough to prevent hunger-disrupted sleep without being heavy enough to cause digestive discomfort. Roughly half a cup of yogurt with half a banana is a sensible portion.

Chamomile Tea

Chamomile contains apigenin, a flavonoid that binds to GABA-A receptors in the brain, producing a mild sedative effect. A randomized controlled trial in older adults gave participants 400 mg of chamomile extract twice daily for four weeks. Sleep quality improved significantly compared to the control group. A separate study found chamomile tea reduced sleep-related problems in menopausal adults.

A 2025 narrative review in Nutrition Reviews, covering multiple nutraceuticals, specifically identified apigenin-containing chamomile as having both subjective and objective evidence for improving sleep outcomes.

One important qualifier: chamomile tea contains very little apigenin compared to a standardized extract. The effect from a cup of tea is real but modest. It works best as part of a calming pre-bed routine rather than as a standalone intervention. And caffeine-free is non-negotiable here; some herbal blends contain added ingredients that counteract the calming effect.

Fatty Fish

Salmon and mackerel (sardines work too) supply vitamin D alongside omega-3 fatty acids, both involved in serotonin regulation. A Norwegian study asked male participants to eat salmon three times a week for six months, then compared their sleep quality against a control group eating chicken or beef. The salmon group reported falling asleep faster and experiencing better daytime functioning. The researchers attributed the benefit primarily to vitamin D, levels of which tend to be lower in winter months when sleep complaints are more common.

Fatty fish at dinner rather than immediately before bed is the more practical application. Digesting protein-rich food takes time, and a large portion of fish right before sleep can work against the digestive slowdown that naturally occurs during the night.

Turkey and Chicken

Both are among the richest dietary sources of tryptophan. One roasted chicken leg contains 697 mg of tryptophan, around 249 percent of the reference daily intake. Turkey provides a comparable amount. The caveat that applies to all high-protein animal foods before bed is portion: large amounts of protein are slow to digest, and digestion slows by up to 50 percent during sleep according to Johns Hopkins Medicine. A moderate portion at dinner, paired with a small complex carbohydrate, works better than a large late-night serving.

The Tryptophan Rule

Tryptophan-rich foods work better for sleep when eaten with a small amount of carbohydrate. This isn’t folk wisdom. Carbohydrates trigger insulin release, which clears competing large neutral amino acids from the bloodstream. That leaves tryptophan a relatively unobstructed path across the blood-brain barrier, where it can raise serotonin and eventually melatonin.

Eating tryptophan-rich food alone, without carbohydrates, is less effective because tryptophan has to compete with other large amino acids for the same transport protein. The ratio matters more than the raw tryptophan content. A small serving of turkey with a few whole-grain crackers will outperform a large turkey portion on its own for sleep purposes.

Foods and Drinks That Hurt Sleep

Knowing what helps is half the picture. The other half is knowing what to remove.

Alcohol

Alcohol is the most commonly misunderstood sleep disruptor. It does help people fall asleep faster. The problem is what it does to sleep architecture afterward.

As the body metabolizes alcohol, the sedative effect wears off mid-sleep, causing fragmented arousals. More than that, alcohol suppresses REM sleep, the stage most involved in emotional processing and memory consolidation. It also relaxes the esophageal sphincter, increasing acid reflux, and relaxes throat muscles, which worsens obstructive sleep apnea and snoring. Regular pre-bed alcohol use increases the likelihood of sleepwalking and sleep talking, and with sustained use, creates physiological dependency on the sedative effect just to fall asleep.

There is no dose at which alcohol improves sleep architecture. Even one to two drinks impairs sleep quality measurably. The earlier in the evening it’s consumed, the less damage it does, but the window for a truly neutral effect is longer than most people assume.

Caffeine

Caffeine’s half-life in the body is approximately six to eight hours, meaning half of a 3 PM coffee is still circulating at 9 PM. A study in the Journal of Clinical Sleep Medicine found that caffeine consumed six hours before bedtime reduced total sleep time by over one hour. Some people with higher sensitivity see disruption from caffeine consumed even earlier in the day.

Caffeine is also a direct melatonin suppressant. Drinking it in the afternoon doesn’t just keep you awake later; it delays the onset of melatonin secretion, which shifts the entire sleep-wake cycle later. The standard recommendation from sleep researchers is to cut off caffeine by 2 PM for most people. For those with high caffeine sensitivity, noon is the safer limit.

Spicy Food

Capsaicin, the compound that makes food hot, raises core body temperature. Core body temperature naturally drops during the transition to sleep, and anything that reverses that drop delays sleep onset. An Australian study had participants eat meals with Tabasco and mustard on some nights and found they took longer to fall asleep and spent less time in deep sleep on those nights.

Spicy food also triggers heartburn and acid reflux in a significant proportion of people. Lying down with stomach acid already elevated by capsaicin is a reliable recipe for disrupted sleep. The Johns Hopkins recommendation is to avoid spicy food within three hours of bedtime.

High-Fat and Heavily Processed Foods

A study that placed rats on a high-fat diet for eight weeks found they ended up with more fragmented sleep and more daytime sleepiness. Researchers attributed this partly to weight gain and partly to a decrease in sensitivity to orexin, the neurotransmitter that regulates the body’s sleep-wake clock.

In humans, diets high in saturated fat are linked to lighter, less restorative sleep. Heavy meals right before bed create a more immediate problem: digestion slows dramatically during sleep, and a stomach working overtime to break down a fatty meal generates the kind of discomfort that produces frequent arousals. The three-hour gap between a substantial meal and lying down is a reasonable minimum.

High-Sugar Foods and Refined Carbohydrates

Blood sugar instability disrupts sleep from two directions. Sugary food before bed causes a spike, which is then followed by a drop during the night. That drop can trigger a mild stress response (cortisol and adrenaline), which pulls people out of deeper sleep stages and causes arousals they may not remember in the morning.

A review found that high sugar intake was associated with less total sleep time and more nighttime awakenings in both children and adults. Diets low in fiber and high in refined carbohydrates correlate with lighter, less restorative sleep across the board. Swapping white bread or sugary cereal for whole-grain alternatives at dinner takes roughly ten seconds of decision-making and produces measurable overnight benefits.

Aged Cheeses and Processed Meats

Tyramine, an amino acid found in aged cheeses, processed meats like salami and pepperoni, and other fermented products, triggers the release of norepinephrine, a stimulatory neurotransmitter. Elevated norepinephrine before sleep increases alertness and makes falling asleep harder. This is the reason people sometimes feel wired after a charcuterie board late in the evening, even without any caffeine.

Timing and Portion Size

When you eat matters alongside what you eat.

The two-to-three-hour gap between eating and lying down is the consistent recommendation across sleep medicine and gastroenterology. That’s how long a medium-sized meal takes to clear the stomach. Eating closer to bedtime than that increases the odds of acid reflux, digestive discomfort, and a body temperature elevation from the thermic effect of food, all of which interfere with sleep onset.

A small pre-bed snack is different from a meal. If hunger strikes within an hour of bedtime, a snack in the 150-calorie range is reasonable, and the foods on the list above work well in that format. The goal is to prevent hunger-disrupted sleep, not to eat a full meal that the digestive system will be working through all night.

Portion control matters particularly for protein. High-protein foods take longer to digest than carbohydrates. A large serving of chicken or red meat right before sleep creates a digestive burden the body wasn’t designed to handle during rest.

Practical Pre-Bed Snack Ideas

These all sit in the 100 to 200 calorie range and combine the nutrients most useful for sleep:

  • Two kiwis: the dose used in clinical trials. Low calorie, high in serotonin precursors and antioxidants, no preparation required.
  • A glass of unsweetened tart cherry juice: 240 ml, drunk one to two hours before bed. Works best as a consistent nightly habit rather than an occasional treat.
  • Small bowl of oats with a spoonful of almond butter: complex carbohydrates plus tryptophan and magnesium. Takes five minutes to make.
  • Half a cup of Greek yogurt with banana slices: tryptophan and calcium and magnesium together, with potassium rounding it out. Works as a sweet snack without the blood sugar spike of something processed.
  • A small handful of almonds: roughly 28 grams, providing magnesium and tryptophan, with a small amount of naturally occurring melatonin. No prep needed.
  • Whole-grain crackers with a slice of turkey: the carbohydrate-tryptophan pairing in its simplest form.
  • A cup of chamomile tea: best paired with one of the food options above rather than consumed alone.

What the Evidence Can and Cannot Claim

Most food-and-sleep research involves small sample sizes. The kiwi trial had 24 participants. The tart cherry extract trial had 20. Results are promising and biologically plausible, and they’ve been replicated, but they’re not at the same level of certainty as large drug trials with thousands of participants.

Food also works more slowly than a sleeping pill. The benefit from consistently eating sleep-supportive foods builds over weeks, not overnight. A 2025 narrative review in Nutrition Reviews put it plainly: dietary interventions work best as subsidiary aids that complement good sleep hygiene, not replacements for it. Consistent sleep and wake times, a cool dark room, and reduced screen exposure before bed are still the foundations.

With that said, the foods on this list have clinical support, known mechanisms, and no concerning side effects when eaten sensibly. For most people, they’re worth adding. The downside risk is close to zero.

The Bottom Line

Two kiwis before bed, a glass of tart cherry juice, a small handful of almonds, or a bowl of oatmeal with nut butter: any of these can measurably shift sleep quality over two to four weeks of consistent use. The nutrients doing the work are tryptophan, melatonin, magnesium, serotonin precursors, and anti-inflammatory compounds that keep the tryptophan-to-melatonin pathway from being derailed.

Cut the alcohol, push caffeine before 2 PM, avoid heavy or spicy food within three hours of lying down. Those changes remove the obstacles. The foods above supply the building blocks.

Eat the right things at the right time, stop eating the wrong ones, and give it a few weeks. Sleep is a biological process. Feed it accordingly.

Leave a Reply

Your email address will not be published. Required fields are marked *