Several foods genuinely improve sleep quality, and the evidence points to a few standout options. Kiwifruit, tart cherry juice, fatty fish, and certain carbohydrate-rich foods all contain compounds that help your body fall asleep faster or stay asleep longer. The key is what these foods deliver: building blocks for melatonin and serotonin, the hormones that regulate your sleep-wake cycle.
Kiwifruit
Kiwifruit is one of the best-studied sleep foods. In a clinical trial, adults with sleep problems ate two kiwifruits one hour before bed every night for four weeks. By the end, they fell asleep about 14 minutes faster on average (down from 34 minutes to 20 minutes) and slept roughly 40 minutes longer per night. Their overall sleep quality scores improved by 42%.
Kiwifruit is rich in serotonin and antioxidants, both of which play direct roles in sleep regulation. Serotonin is converted into melatonin in the brain, and the antioxidants may reduce inflammation that interferes with restful sleep. Two medium kiwifruits before bed is the amount used in research, and it’s a low-calorie option that’s unlikely to cause digestive discomfort.
Tart Cherry Juice
Tart cherries are one of the few natural food sources of melatonin. Drinking a glass of tart cherry juice (not sweet cherry, which has far less) has been shown to improve sleep duration and efficiency. The National Institutes of Health considers up to 16 ounces per day safe for at least two weeks. Drinking it about an hour before bed works well, though research suggests benefits occur regardless of timing.
Look for 100% tart cherry juice concentrate rather than blends with added sugar. The sugar in sweetened versions can work against you by causing blood sugar fluctuations during the night.
Fatty Fish
Salmon, mackerel, sardines, and other oily fish improve sleep through two pathways. Their omega-3 fatty acids support serotonin production, and they’re one of the best dietary sources of vitamin D, which is directly involved in regulating the sleep-wake cycle. Population studies show that higher oily fish intake correlates with better sleep quality scores, and even people who already eat the recommended amount of fish see further improvement when they increase their intake.
Eating fatty fish two to three times per week is a reasonable target. The benefit likely builds over time rather than working on a single-night basis, so consistency matters more than timing.
Why Carbohydrates Help (and When to Eat Them)
Many sleep-promoting foods work because they contain tryptophan, an amino acid your brain converts into serotonin and then melatonin. But tryptophan faces a bottleneck: it competes with other amino acids to cross from your bloodstream into your brain. Carbohydrates solve this problem. When you eat carbs, your body releases insulin, which pulls competing amino acids into your muscles but leaves tryptophan circulating. This gives tryptophan a clear path into the brain, where it can do its work.
This is why a small carb-rich snack before bed can help you sleep, and why protein-heavy meals alone don’t have the same effect. In one study, a high-glycemic carbohydrate meal (like white rice or white bread) eaten four hours before bedtime shortened the time to fall asleep to just 9 minutes, compared to about 15 minutes when the same meal was eaten only one hour before bed. The four-hour window lets insulin do its job and gives tryptophan time to convert into sleep-regulating hormones.
Pairing a tryptophan-rich food (turkey, eggs, cheese, nuts) with a small amount of carbohydrate (a piece of toast, a banana, a bowl of rice) is the most effective combination.
Nuts, Especially Pistachios
Pistachios contain measurable amounts of melatonin, more than most other nuts. Their melatonin content varies significantly depending on growing conditions, but some samples contain several times more than almonds. A small handful of pistachios as an evening snack provides melatonin along with magnesium and healthy fats, all of which support relaxation. Almonds and walnuts are decent alternatives, though pistachios appear to have the edge on melatonin content.
Warm Milk and Malted Milk Drinks
The reputation of warm milk as a sleep aid is more tradition than science. Studies comparing milk to other beverages have found no measurable effect on sleep quality. Malted milk drinks (like Horlicks) have fared slightly better in research, with one study showing fewer sleep disruptions compared to plain milk or a placebo. However, these studies were extremely small, so the evidence is modest at best. If a warm drink before bed feels calming, there’s no harm in it, but don’t expect a dramatic effect from the milk itself.
Timing Your Last Meal or Snack
What you eat matters, but when you eat it matters nearly as much. A three-hour gap between your last full meal and bedtime gives your body enough time to digest without disrupting sleep, while still keeping you from going to bed hungry. For sleep-specific snacks like kiwifruit or tart cherry juice, one hour before bed is the sweet spot used in most studies.
If you’re eating a carbohydrate-rich dinner to take advantage of the tryptophan effect, four hours before bed is ideal based on the research. This means dinner at 6 or 7 p.m. for a 10 or 11 p.m. bedtime, with a small sleep-promoting snack closer to bed if needed.
Foods That Work Against Sleep
Some foods actively interfere with sleep, and avoiding them in the evening is just as important as choosing the right ones. Caffeine is the obvious culprit, but several less obvious foods can also keep you up.
Aged, fermented, and cured foods contain tyramine, a compound that can raise blood pressure and increase alertness. The biggest offenders include aged cheeses (cheddar, parmesan, gouda, camembert), cured meats (salami, pepperoni, jerky), fermented foods (sauerkraut, kimchi, miso), and soy sauce. These are fine earlier in the day but worth skipping at dinner if you’re struggling with sleep.
Spicy and acidic foods can trigger acid reflux when you lie down, leading to fragmented sleep even if you don’t fully wake up. Heavy, high-fat meals slow digestion and keep your body working when it should be winding down. If you’ve been eating well all day but tossing at night, your evening food choices are a good place to investigate.

