Eating the wrong foods before bed can keep you awake, fragment your sleep, or wake you up repeatedly through the night. The biggest culprits are spicy foods, high-fat meals, caffeine, alcohol, acidic foods, and large volumes of fluid. Most of these work through surprisingly specific mechanisms, from raising your core body temperature to relaxing the valve that keeps stomach acid in place.
Spicy Foods Raise Your Body Temperature
Your body needs to cool down slightly to fall asleep, and spicy food works directly against that process. In a study of young, healthy men, eating hot sauce with dinner elevated body temperature during the first sleep cycle, making it harder to fall asleep and reducing the amount of deep sleep they got. The capsaicin in hot peppers triggers a cascade that disrupts your body’s normal heat regulation, initially causing blood vessels near the skin to widen and altering how your body produces and sheds heat.
Beyond temperature, spicy meals also reduced stage 2 sleep (the phase you spend most of the night in) and increased total time spent awake. If you enjoy spicy food, move it to lunch or an early dinner rather than eating it close to bedtime.
High-Fat and Fried Foods
Heavy, greasy meals take longer to digest, which means your body is still doing significant metabolic work when you’re trying to wind down. High-fat diets are strongly linked to sleep fragmentation, the pattern of waking up briefly and repeatedly without necessarily remembering it. Research in the Journal of Applied Physiology found that a high-fat diet increased the frequency of nighttime arousals by 45%, and this effect was independent of breathing problems during sleep. In other words, the fat itself was fragmenting sleep, not just the weight gain that comes with it over time.
Fried foods, pizza, burgers, and rich desserts all fall into this category. They also tend to worsen acid reflux when you lie down, compounding the problem.
Caffeine Lingers Longer Than You Think
Caffeine has a half-life of 3 to 6 hours, meaning that half the caffeine from your afternoon coffee is still circulating in your bloodstream many hours later. A 2024 randomized clinical trial published in the journal SLEEP found that a standard 100 mg dose (roughly one small coffee) can be consumed up to 4 hours before bed without major consequences. But 400 mg, the amount in a large coffee or two regular cups, can negatively affect sleep when consumed within 12 hours of bedtime. The closer to bedtime you drink it, the worse the effect.
This means your 2 p.m. large coffee could still be disrupting your sleep at 10 p.m. Tea, energy drinks, dark chocolate, and some sodas also contain enough caffeine to matter. If you’re sensitive to caffeine, the safest approach is to stop all sources by noon.
Alcohol Disrupts Your Sleep Cycles
Alcohol feels like it helps you fall asleep, and it does reduce the time it takes to drift off. The problem comes later. Alcohol suppresses REM sleep, the stage most important for memory consolidation and emotional regulation, during the first half of the night. As your body metabolizes the alcohol in the second half, you experience a rebound effect: lighter, more fragmented sleep with more awakenings.
Research from the American Academy of Sleep Medicine shows that alcohol’s effects on sleep architecture are profound enough that long-term heavy drinking can alter REM regulation in ways that persist even after hundreds of days of sobriety. For occasional drinkers, even a glass or two of wine with a late dinner can reduce sleep quality noticeably. Finishing your last drink at least 3 to 4 hours before bed gives your body time to process most of the alcohol.
Acidic and Reflux-Triggering Foods
Lying down after eating acidic foods is a recipe for nighttime heartburn. When you’re flat, gravity no longer helps keep stomach acid below the lower esophageal sphincter (the muscle at the top of your stomach that acts as a one-way valve). Certain foods relax that valve, making acid reflux even more likely.
The most common triggers include citrus fruits, tomato-based sauces, chocolate, and peppermint. These don’t just cause discomfort. Acid reflux during sleep can wake you up repeatedly, sometimes without you realizing the cause. Eating a large meal of any kind close to bedtime adds extra pressure on that valve, so portion size matters too.
Aged and Fermented Foods
Aged cheeses, cured meats, and fermented foods are high in tyramine, an amino acid that stimulates the release of norepinephrine, a brain chemical that increases alertness and raises heart rate. Foods particularly high in tyramine include aged cheddar, Parmesan, blue cheeses like Stilton and Gorgonzola, soft cheeses like brie and Camembert, pepperoni, salami, dry sausages, smoked fish, and bacon.
For most people, a small amount of these foods won’t cause obvious problems. But if you’re already struggling with sleep or tend to feel wired at bedtime, a charcuterie board at 9 p.m. is worth reconsidering. The stimulating effect of tyramine is subtle enough that you might not connect it to poor sleep without deliberately testing it.
Too Much Fluid Too Late
Drinking large amounts of water, herbal tea, or any liquid close to bedtime increases the odds you’ll wake up to urinate, a pattern called nocturia. Cleveland Clinic recommends limiting fluid intake starting two hours before bed. This doesn’t mean you need to dehydrate yourself. Instead, front-load your hydration earlier in the day and take small sips in the evening if you’re thirsty.
Caffeine and alcohol both act as diuretics, so they compound the problem by increasing urine production on top of the extra volume.
How Timing Changes Everything
Many of these foods aren’t problems at lunch. They become problems specifically because of their timing relative to sleep. Johns Hopkins Medicine recommends finishing your last meal between 5:00 and 7:00 p.m., which aligns your eating with your circadian rhythm and gives your body several hours to digest before you lie down. If that window isn’t realistic for your schedule, aim for at least 2 to 3 hours between your last substantial meal and bedtime.
A light snack before bed is fine for most people. The key is keeping it small, low in fat, not spicy, and free of caffeine. A banana, a small bowl of oatmeal, or a handful of nuts are common choices that are unlikely to interfere with sleep. The goal is to avoid going to bed so hungry you can’t sleep, without triggering any of the mechanisms that keep you awake.