The best foods to eat before bed are small, easy-to-digest snacks that combine a source of protein with complex carbohydrates or magnesium-rich ingredients. Think a banana with a handful of pumpkin seeds, a small bowl of oatmeal, or some yogurt with cherries. The goal is to give your body enough to stay satisfied through the night without triggering digestion issues that keep you awake.
Why What You Eat Matters for Sleep
Your body doesn’t shut down during sleep. It regulates blood sugar, repairs tissue, and cycles through stages of deep and light sleep. The food sitting in your stomach influences all of this. A snack that’s too heavy forces your digestive system to work overtime, raising your core temperature and increasing the chance of acid reflux. A snack that’s too sugary can spike your blood sugar and lead to a wake-up a few hours later when levels crash. The sweet spot is something light, nutrient-dense, and eaten at the right time.
Foods That Help You Sleep
Magnesium is one of the most useful nutrients for sleep. It promotes muscle relaxation by binding to receptors for a calming brain chemical called GABA, and it helps regulate your body’s melatonin production. Fortunately, some of the best magnesium sources also happen to be great bedtime snacks.
Pumpkin seeds are one of the most concentrated sources: a single ounce (about a small handful) delivers 37% of your daily magnesium needs. Boiled spinach is equally potent at 37% per cup. Bananas offer about 10% per cup of sliced fruit, and they’re easy on the stomach. Oats are a standout, with one cup of uncooked oats providing 66% of your daily magnesium. Oats also contain complex carbohydrates that can help lower cortisol, your body’s main stress hormone, making it easier to wind down.
Tart cherry juice is another option worth trying. A pilot study published in the American Journal of Therapeutics found that drinking about 8 ounces of Montmorency tart cherry juice twice daily improved both sleep duration and quality in older adults with insomnia. Tart cherries are one of the few natural food sources of melatonin.
Simple Snack Combinations
- Banana with pumpkin seeds: magnesium from both sources, plus natural sugars that digest easily
- Small bowl of oatmeal: complex carbs and high magnesium, with optional sliced banana or a drizzle of honey
- Yogurt with tart cherries: protein to stabilize blood sugar overnight, plus natural melatonin
- Handful of almonds or walnuts: magnesium and healthy fats in a portion small enough to digest quickly
What About Protein Before Bed?
If you’re physically active or focused on muscle recovery, a protein-rich snack before bed can be genuinely useful. Your body continues repairing and building muscle tissue overnight, and giving it amino acids to work with makes that process more efficient. A study in older men found that consuming 40 grams of casein protein (the slow-digesting kind found in dairy) before sleep significantly increased overnight muscle protein synthesis compared to a placebo. That’s roughly the amount in one and a half cups of cottage cheese or a large glass of milk.
Even if you’re not tracking your protein intake closely, a small serving of cottage cheese, Greek yogurt, or a glass of milk before bed checks both boxes: it provides slow-release protein and helps keep blood sugar stable through the night.
What to Avoid Before Bed
Heavy, fatty meals are the worst offenders. Large amounts of fat slow digestion and increase the likelihood of heartburn. There’s also evidence that high-fat foods eaten later in the day can disrupt your circadian rhythms, leading to fragmented sleep where you wake up repeatedly without realizing it. You might get enough hours in bed but still feel unrested.
Spicy foods trigger indigestion and heartburn in many people, and lying down makes both worse. The issue isn’t the spice itself but the acid production it stimulates. If you’re prone to reflux, spicy dishes at dinner can easily ruin your sleep three hours later.
Caffeine is obvious, but the timing catches people off guard. Caffeine’s half-life is roughly five to six hours, meaning half the caffeine from a 3 p.m. coffee is still circulating at 8 or 9 p.m. If you’re sensitive, set your cutoff at noon or early afternoon.
Timing Your Last Meal
Finish eating at least two to three hours before you plan to fall asleep. This gives your stomach time to move food into the small intestine, reducing the chance that lying down will push stomach acid up into your esophagus. If you deal with acid reflux, aim for a full three hours and keep your last meal small. Gastric distention, the feeling of a very full stomach, is itself a trigger for reflux symptoms.
A bedtime snack is different from a late dinner. If you ate dinner at 6 p.m. and you’re going to bed at 10:30, a small snack around 9 is perfectly fine. The key word is small. You want just enough to prevent hunger from waking you up, not enough to restart a full digestive cycle.
Watch Your Fluid Intake
What you drink matters as much as what you eat. Waking up to use the bathroom is one of the most common causes of fragmented sleep, and it gets more frequent with age. A simple fix is to taper your fluid intake two to three hours before bedtime. That doesn’t mean you need to stop drinking entirely, but sipping a full glass of water or herbal tea right before bed is likely to wake you up at 2 a.m. If you’re having tart cherry juice, drink it earlier in the evening rather than right at lights-out.
The Carbs and Sleep Connection
You may have heard that carbohydrates help you sleep by boosting serotonin and melatonin production. The theory goes like this: carbs trigger insulin release, which clears competing amino acids from your bloodstream, allowing tryptophan (a building block for serotonin and melatonin) to reach your brain more easily. It’s a real biochemical pathway, but a detailed review in Frontiers in Nutrition found the effect only kicks in when protein intake is extremely low. In a normal meal or snack that contains any meaningful amount of protein, the mechanism doesn’t produce enough serotonin or melatonin to noticeably affect sleep.
That doesn’t mean carbs before bed are pointless. Complex carbohydrates like oats still help through other routes, including magnesium content and cortisol reduction. And a carb-heavy meal does tend to make people feel drowsy, even if the tryptophan pathway isn’t the main reason. Just don’t count on a bowl of rice to function like a sleep supplement.