Eating can help you sleep, but the effect depends heavily on what you eat, how much, and when. The right foods genuinely promote drowsiness by supplying your brain with the raw materials it needs to produce sleep hormones. The wrong foods, or a meal too close to bedtime, can keep you awake longer and fragment your sleep through the night.
How Food Triggers Sleepiness
Your brain makes melatonin, the hormone that regulates your sleep-wake cycle, through a chain of chemical conversions that starts with an amino acid called tryptophan. Tryptophan is found in many protein-rich foods like turkey, eggs, dairy, and nuts. But here’s the catch: simply eating tryptophan-rich food isn’t enough. Tryptophan competes with other amino acids to cross from your bloodstream into your brain, and it usually loses that competition.
Carbohydrates change the equation. When you eat carbs, your body releases insulin, which pulls competing amino acids out of your blood and into your muscles. That clears a path for tryptophan to reach the brain, where it’s converted first into serotonin (a calming neurotransmitter) and then into melatonin. This is why a meal combining some protein with carbohydrates, like toast with peanut butter or a small bowl of cereal with milk, tends to make people feel drowsy.
Carbs, Protein, and Fat Affect Sleep Differently
The balance of nutrients in your meal shapes not just whether you feel sleepy, but the quality of sleep you get. Carbohydrate-heavy meals tend to reduce sleep latency (the time it takes to fall asleep) by roughly 5 to 9 minutes compared to balanced or high-fat meals. That’s a modest but real effect for someone who lies awake staring at the ceiling.
The type of carbohydrate matters too. A high-glycemic meal, the kind that spikes your blood sugar quickly (white rice, white bread, potatoes), shortened sleep onset to about 9 minutes on average compared to 17.5 minutes for a low-glycemic meal in a controlled trial. The effect was strongest when the meal was eaten four hours before bed rather than one hour before.
Higher protein and lower carbohydrate intake, on the other hand, is associated with more REM sleep, the stage linked to dreaming and memory consolidation. Very high-carbohydrate diets reduced deep slow-wave sleep by about 18 minutes in one study. So if you’re eating specifically to fall asleep faster, carbs help. But for overall sleep architecture, a balanced meal with adequate protein may serve you better than loading up on bread and pasta.
Foods That Promote Sleep
A few specific foods have been studied directly for their effects on sleep, and the results are surprisingly strong.
Tart cherry juice is one of the best-supported options. It contains small amounts of naturally occurring melatonin. In a study of adults over 50, drinking 240 mL of tart cherry juice twice daily for two weeks increased total sleep time by 84 minutes and improved sleep efficiency. A separate trial found that just 30 mL of tart cherry juice concentrate per day for seven days improved total sleep time and sleep efficiency in healthy adults.
Kiwifruit has also shown notable effects. In a study of adults with sleep problems, eating two kiwifruits one hour before bed every night for four weeks reduced the time it took to fall asleep by 35.4% (from about 34 minutes down to 20) and increased total sleep time by 13.4%. Kiwis are rich in serotonin and antioxidants, which likely contribute to the effect.
Minerals play a supporting role as well. Magnesium helps regulate neurotransmitters involved in calming the nervous system, and zinc supplementation has been linked to measurable improvements in sleep quality. You can get both from foods like pumpkin seeds, almonds, spinach, and dark chocolate rather than supplements.
When to Stop Eating Before Bed
Timing is where most people get it wrong. The Cleveland Clinic recommends finishing your last meal about three hours before bed. That window gives your body enough time to digest so food doesn’t disrupt your sleep, while still being close enough to bedtime that you won’t lie awake hungry. The National Sleep Foundation similarly advises eating a light dinner two to three hours before bedtime and warns that heavy meals at night can disrupt sleep.
If you’re hungry closer to bedtime, a small snack is fine. Think a handful of nuts, a banana, a small bowl of yogurt with fruit. The goal is to avoid triggering a full digestive process while you’re trying to sleep.
Why Late, Heavy Meals Backfire
Eating a large meal right before lying down is one of the fastest ways to wreck your sleep. The main culprit is acid reflux. When your stomach is full and you’re horizontal, the valve at the top of your stomach relaxes more frequently, allowing acid to creep into your esophagus. Research using overnight monitoring found that 90% of reflux events during sleep triggered a brief awakening. These micro-arousals fragment your sleep even if you don’t fully remember waking up, leaving you groggy and unrested the next morning.
Spicy foods, fatty foods, and large portions all increase the likelihood of nighttime reflux. Even people who don’t have chronic reflux can experience this if they eat too much too late.
Foods That Keep You Awake
Caffeine is the obvious one, but its half-life is longer than most people realize. It takes about five to six hours for your body to eliminate just half the caffeine in a cup of coffee, so an afternoon espresso can still be active in your system at midnight.
Less obvious are foods containing tyramine, an amino acid that triggers the release of norepinephrine, a brain chemical that promotes alertness. Aged and processed cheeses, salami, pepperoni, and other cured meats are high in tyramine. Johns Hopkins Medicine specifically flags these as foods to avoid in the evening if you’re trying to sleep well.
Alcohol is another common trap. While it makes you feel drowsy initially, it disrupts sleep architecture later in the night, reducing REM sleep and increasing awakenings in the second half of the night.
A Practical Approach
The simplest strategy is to eat a balanced dinner two to three hours before bed that includes some protein and some complex carbohydrates. If you need a pre-bed snack, keep it small and choose foods with natural sleep-promoting properties: a small glass of tart cherry juice, a couple of kiwis, a handful of walnuts, or a banana with a tablespoon of almond butter.
Avoid large portions, spicy or fatty foods, caffeine after early afternoon, aged cheeses, cured meats, and alcohol in the hours before sleep. These adjustments won’t cure insomnia, but for the average person who occasionally struggles to fall or stay asleep, what and when you eat makes a measurable difference.

