What to Eat at Night: Foods That Help You Sleep

The best foods to eat at night are small, nutrient-rich snacks that satisfy hunger without disrupting your sleep. That means favoring foods with natural sleep-promoting compounds, keeping portions under about 340 calories, and avoiding anything that causes acid reflux or contains hidden stimulants. The timing matters just as much as the food itself.

Foods That Help You Fall Asleep Faster

Your body produces melatonin naturally to signal that it’s time to sleep, and certain foods contain meaningful amounts of it. Nuts are the standout: pistachios have the highest melatonin content of any food tested, and a daily serving of about 40 grams of walnuts (roughly a small handful) has been shown to reduce the time it takes to fall asleep and improve overall sleep quality in a randomized trial of young adults. Eggs, fish, tart cherries, and certain mushrooms also contain notable levels of melatonin.

Kiwifruit is another strong option. In a study of adults with sleep problems, eating two kiwis one hour before bed every night for four weeks led to a 35% reduction in the time it took to fall asleep and a 13% increase in total sleep time. Researchers attribute this partly to the fruit’s combination of antioxidants and its natural serotonin content, which the body uses to produce melatonin.

Why Carbs Before Bed Can Actually Help

High-glycemic carbohydrates, the kind that raise blood sugar quickly (think jasmine rice, white bread, or a small bowl of cereal), can shorten the time it takes to fall asleep. In a controlled study, a high-glycemic meal eaten four hours before bedtime cut sleep onset to about 9 minutes on average, compared to 17.5 minutes for a low-glycemic meal. The same high-glycemic food eaten just one hour before bed was less effective, taking closer to 15 minutes.

The four-hour window matters because it takes time for these carbohydrates to increase the availability of tryptophan in the brain, which is the building block your body uses to make melatonin. So if you’re having dinner with rice or potatoes and planning to sleep around 10 or 11 p.m., a 6 or 7 p.m. dinner hits the sweet spot.

Protein Before Bed for Recovery

If you exercise in the evening, eating protein before sleep can meaningfully improve muscle recovery overnight. The protein in milk (called casein) digests slowly because it thickens in stomach acid, releasing amino acids into your bloodstream gradually while you sleep. This sustained delivery keeps your body in a muscle-building state rather than a muscle-breakdown state through the night.

Research suggests consuming about 40 grams of this slow-digesting protein roughly 30 minutes before bed after evening resistance training. Practically, that looks like a large glass of milk, a bowl of cottage cheese, or plain Greek yogurt. Over time, this habit has been linked to greater gains in muscle strength and size. Even if you’re not an athlete, a smaller serving of dairy before bed provides a steady source of protein that can reduce overnight hunger.

What to Avoid Eating at Night

Some foods actively work against sleep, even if they seem harmless. The biggest categories to watch:

  • Fatty and fried foods sit in your stomach longer, increasing the chance that acid backs up into your esophagus once you lie down. This is the primary trigger for nighttime heartburn.
  • Spicy foods, tomato sauce, citrus, and vinegar intensify heartburn by irritating the esophageal lining directly.
  • Chocolate contains caffeine naturally, and darker varieties have more of it. Chocolate also appears in granola bars, trail mixes, and hot cocoa, so it’s easy to consume without thinking about it.
  • Carbonated drinks, alcohol, and peppermint relax the valve between your stomach and esophagus, making reflux more likely.

When you’re upright, gravity keeps stomach acid where it belongs. Once you lie down, that protection disappears. Harvard Health recommends stopping all food intake three to four hours before bed to minimize reflux risk.

Hidden Caffeine Sources

Coffee isn’t the only thing keeping you awake. Black tea contains about 47 mg of caffeine per cup, and green tea has around 28 mg. Matcha, which is concentrated green tea, has even more. Even decaffeinated tea isn’t fully caffeine-free, carrying about 2 mg per cup. If you want something truly without caffeine, herbal teas like chamomile or rooibos are the only reliable options.

Chocolate is the sneakiest source. A few squares of dark chocolate after dinner, a scoop of chocolate ice cream, or a mug of hot chocolate all deliver caffeine. It’s not as much as a cup of coffee, but for people who are sensitive, it can be enough to delay sleep or reduce sleep quality.

How Much to Eat and Drink

Keep nighttime snacks under about 340 calories. That’s enough to quiet genuine hunger without overloading your digestive system before bed. A handful of walnuts with a kiwi, a small bowl of cottage cheese with berries, or a slice of whole-grain toast with a glass of milk all fall comfortably in that range.

Fluids need a cutoff too. Waking up to use the bathroom fragments your sleep cycles, so aim to reduce liquid intake about two hours before bed. If you do drink during that window, keep it to small sips rather than a full glass. Alcohol, juice, and caffeinated tea are especially worth avoiding in those final two hours, since they increase urine production on top of adding volume.

A Practical Nighttime Eating Timeline

Putting all of this together, here’s what the research suggests as a general framework. About four hours before bed, have your last full meal, ideally including some high-glycemic carbohydrates like rice or potatoes if falling asleep quickly is a priority. Two hours before bed, start tapering off fluids. If you need a snack closer to bedtime, choose something small and sleep-friendly: a handful of walnuts or pistachios, two kiwis, or a serving of yogurt or cottage cheese. Avoid chocolate, spicy food, fried food, and anything acidic in that final stretch.

None of these foods are a cure for insomnia, but eaten consistently and at the right times, they create conditions that make falling and staying asleep noticeably easier.