What Should You Eat Before Bed for Better Sleep?

A small snack that pairs carbohydrates with a protein or a sleep-supporting nutrient is the ideal choice before bed. The best options include kiwi fruit, a banana with a handful of nuts, a small bowl of oatmeal, or a glass of tart cherry juice. What matters just as much as the food itself is the timing: finish eating at least three hours before you lie down, or keep it to a light snack if you’re closer to bedtime.

Why Carbs and Protein Work Together

Your brain needs tryptophan, an amino acid, to produce serotonin and eventually melatonin, the hormone that regulates your sleep cycle. The catch is that tryptophan competes with other amino acids to cross into the brain. Eating carbohydrates triggers an insulin response that clears those competing amino acids from your bloodstream, giving tryptophan a clear path. Once it reaches the brain, an enzyme converts it into serotonin, and the more tryptophan that arrives, the more serotonin your brain can make.

This is why a carb-only or protein-only snack is less effective than a combination. A slice of whole-grain toast with a small amount of turkey or peanut butter, for instance, delivers both the tryptophan and the carbohydrate boost needed to put it to work.

The Best Foods to Eat Before Bed

Kiwi Fruit

Kiwi has some of the strongest evidence behind it. In a study published in the Asia Pacific Journal of Clinical Nutrition, adults who ate two kiwis one hour before bed every night for four weeks fell asleep 35% faster and slept 13% longer. Their overall sleep quality scores improved by over 42%. Kiwis are rich in serotonin, vitamin C, and antioxidants, all of which may contribute to these effects. Two kiwis is a low-calorie snack that’s unlikely to cause discomfort.

Tart Cherry Juice

Tart cherries are one of the few natural food sources of melatonin. The amount of melatonin in cherry juice is far smaller than what you’d get from a supplement, but the combination of melatonin with the fruit’s natural anti-inflammatory compounds appears to have a measurable effect on sleep. Up to 16 ounces per day is considered safe for at least two weeks. A small glass in the evening is a reasonable choice.

Bananas, Nuts, and Seeds

Bananas contain both tryptophan and magnesium, a mineral that helps your nervous system calm down. Almonds, walnuts, sunflower seeds, and sesame seeds are also rich in magnesium. A banana with a small handful of almonds covers your bases: carbohydrates to facilitate tryptophan uptake, plus magnesium to support relaxation. Other good magnesium sources for an evening snack include oatmeal and dark leafy greens like spinach or kale.

Warm Milk or Oatmeal

The classic glass of warm milk has some science behind it. Milk contains tryptophan, and non-skim varieties have higher magnesium content. A small bowl of oatmeal works similarly, offering carbohydrates plus magnesium. Both are gentle on the stomach and easy to digest, which matters when you’re eating close to bedtime.

High-GI Carbs Help You Fall Asleep Faster

Not all carbohydrates affect sleep equally. In a controlled study, men who ate a high-glycemic-index rice (jasmine rice, GI of 109) four hours before bed fell asleep in about 9 minutes on average. Those who ate a low-glycemic-index rice (GI of 50) took 17.5 minutes. That’s nearly double the time to fall asleep. High-GI foods cause a sharper insulin spike, which more effectively clears competing amino acids and lets tryptophan reach the brain.

This doesn’t mean you should load up on sugar before bed. A moderate portion of white rice, a piece of toast, or a bowl of cereal can provide the same benefit. The key is keeping the portion small enough that it doesn’t cause a heavy, uncomfortable feeling when you lie down.

If You Train or Exercise Regularly

For people focused on muscle recovery, slow-digesting protein before sleep has a distinct advantage. Casein, the primary protein in dairy, breaks down gradually over several hours. A study in older men found that consuming 40 grams of casein before bed significantly increased overnight muscle protein synthesis compared to a placebo. That’s roughly the amount in a cup and a half of cottage cheese or a large glass of milk. Greek yogurt is another good option. If you’re eating a protein-focused bedtime snack for recovery, pairing it with a small amount of carbohydrate still helps with sleep quality.

What to Avoid Before Bed

Spicy Foods

Eating spicy food at dinner can directly interfere with your sleep. In one study, men who ate a meal with hot sauce had elevated body temperature during their first sleep cycle. That temperature increase reduced the amount of deep, restorative sleep they got and increased the total time spent awake during the night. Your body needs to cool down slightly to fall asleep, and spicy food works against that process.

Caffeine

Caffeine has a half-life of four to six hours, meaning half of it is still active in your system that long after you drink it. Having coffee or an energy drink at 4 p.m. means a significant amount of caffeine is still circulating at 10 p.m. Research suggests that caffeine consumed even six hours before bedtime can disrupt sleep, sometimes without you noticing. If you’re sensitive to caffeine, cut it off after lunch.

Heavy, Fatty, or Acidic Meals

Large meals close to bedtime increase the risk of acid reflux, especially when you lie flat. The Mayo Clinic recommends stopping eating at least three hours before bed to prevent heartburn. If you need a snack closer to bedtime, keep it small and easy to digest. Avoid fried foods, citrus, tomato-based sauces, and anything that tends to trigger reflux for you personally.

Timing and Fluids

If you’re having a full meal, three hours before bed is the minimum buffer. A light snack of 200 calories or less can work well within one to two hours of bedtime. Larger meals need more time for digestion, and lying down with a full stomach disrupts both comfort and sleep architecture.

Fluids require their own timing strategy. Drinking too much in the evening means waking up to use the bathroom, which fragments your sleep. The Cleveland Clinic recommends tapering off liquids two to three hours before bed. If you’re having tart cherry juice or warm milk, have it earlier in the evening rather than right before you turn out the lights. A few sips of water at the bedside is fine for overnight thirst.

A Simple Bedtime Snack Formula

  • Best combo: A small portion of carbohydrates plus a source of tryptophan or magnesium. Examples: banana with almond butter, oatmeal with walnuts, toast with turkey, or two kiwis.
  • Best drinks: Tart cherry juice (early evening) or warm milk.
  • Portion size: Keep it light, roughly 150 to 250 calories. You want enough to support sleep chemistry without burdening digestion.
  • Timing: One to two hours before bed for snacks. Three hours for anything heavier.