What Foods Keep You Awake at Night (and Why)

Several common foods and drinks can disrupt your sleep, and caffeine is only the most obvious culprit. Spicy meals, sugary snacks, fatty foods, alcohol, and even dark chocolate can all interfere with falling or staying asleep through different mechanisms. Knowing which foods cause problems, and why, makes it easier to adjust your evening eating habits.

Caffeine Lingers Longer Than You Think

Caffeine is the most well-known sleep disruptor, but most people underestimate how long it stays active in their system. The half-life of caffeine is four to six hours, meaning that half the caffeine from your 3 p.m. coffee is still circulating at 9 p.m. The other half takes another four to six hours after that. A good rule of thumb is to cut off caffeine by early afternoon if you follow a standard evening bedtime.

The obvious sources are coffee, energy drinks, and most teas. But caffeine also hides in less expected places. A single ounce of dark chocolate (70% cocoa or higher) contains a mild dose of caffeine plus a much larger amount of theobromine, a related stimulant. Bittersweet dark chocolate contains roughly 8 milligrams of theobromine per gram, so a typical two-ounce square delivers over 450 milligrams of theobromine. While theobromine is milder than caffeine, it’s still a stimulant that can keep sensitive individuals alert. Decaf coffee, chocolate ice cream, and some protein bars also carry small but meaningful caffeine loads that add up if you’re already borderline.

Sugary and Refined Carbs Trigger Hormonal Rebounds

A bowl of ice cream, a few cookies, or even white bread and white rice close to bedtime can set off a chain reaction that disrupts sleep. These high-glycemic foods cause a rapid spike in blood sugar, which your body counters by releasing a surge of insulin. The resulting sharp drop in blood sugar then triggers stress hormones like adrenaline and cortisol, both of which promote wakefulness.

A large study from Columbia University involving more than 50,000 women found that the higher a person’s dietary glycemic index, particularly from added sugars and processed grains, the greater their risk of developing insomnia. The effect isn’t just about one bad night. Regularly eating refined carbohydrates in the evening can create a pattern of fragmented sleep. If you want something sweet after dinner, pairing it with protein or fat slows the blood sugar spike and reduces that hormonal rebound.

Spicy Foods Raise Your Body Temperature

Your body needs to cool down slightly to initiate sleep. Spicy foods work against that process. Capsaicin, the compound that gives hot peppers their heat, raises your core body temperature. In one study, young men who ate Tabasco sauce and mustard with dinner had elevated body temperature during the first sleep cycle. The result was less deep sleep, more time spent awake, and a tendency toward longer sleep onset, meaning it took them longer to fall asleep in the first place.

If you enjoy spicy food, moving those meals to lunch rather than dinner gives your body time to return to baseline before bed.

High-Fat Meals Slow Digestion

A heavy, fatty meal forces your digestive system to work harder and longer. Fat takes significantly more time to move through the stomach than carbohydrates or protein, which means your body is still actively digesting when you’re trying to wind down. That sustained metabolic activity can prevent you from reaching the deeper stages of sleep. Research from Rush University Medical Center also suggests that high-fat diets may disrupt your circadian clock, the internal system that regulates your sleep-wake cycle, compounding the problem over time.

This doesn’t mean you need to avoid fat entirely at dinner. A reasonable portion of healthy fats is fine. The issue is the large, greasy meal: pizza, fried foods, or a heavy burger right before bed.

Alcohol Fragments Your Sleep Cycles

Alcohol feels like it helps you fall asleep, and technically it does. It’s a sedative. But the second half of the night tells a different story. As your body metabolizes alcohol, it disrupts your sleep architecture, reducing the amount of restorative deep sleep and REM sleep you get. You’re more likely to wake up in the middle of the night, and the sleep you do get is lower quality.

Alcohol also relaxes the muscles in your throat, worsening snoring and sleep apnea. And it acts as a diuretic, increasing the odds of a bathroom trip at 3 a.m. Wine, beer, and spirits all produce the same effects. The closer to bedtime you drink, the more pronounced the disruption.

Acid Reflux Triggers Keep You Up

Certain foods relax the valve between your stomach and esophagus, allowing acid to creep upward. When you’re lying flat in bed, gravity can no longer help keep acid down, and the result is heartburn that either prevents you from falling asleep or wakes you up mid-sleep cycle. Common triggers include tomato-based sauces, citrus fruits, chocolate, peppermint, onions, and fried or fatty foods.

Coffee and alcohol are dual offenders here: they’re both independent sleep disruptors and reflux triggers. If nighttime heartburn is a recurring problem, finishing your last meal at least two to three hours before lying down gives your stomach time to empty and reduces the chance of acid reflux disrupting your night.

Aged and Fermented Foods Contain Tyramine

Tyramine is a compound found naturally in aged, fermented, and cured foods. It stimulates the release of norepinephrine, a hormone that increases alertness and raises heart rate and blood pressure. Foods especially high in tyramine include aged cheeses (cheddar, Parmesan, blue cheese, Brie, feta), cured meats like pepperoni, salami, and bacon, fermented foods like sauerkraut and miso, yeast-extract spreads like Marmite, and overripe fruits such as bananas and avocados.

Most people can tolerate moderate amounts of tyramine without noticeable effects. But if you’re sensitive, or if you combine several tyramine-rich foods in an evening meal (a charcuterie board with aged cheese, cured meat, and red wine, for example), the stimulant effect can be enough to interfere with falling asleep.

Foods That Send You to the Bathroom

Even a food that doesn’t directly affect your brain chemistry can ruin your sleep if it makes you get up to urinate. Many common fruits and vegetables are natural diuretics, meaning they increase urine production. Watermelon, cucumbers, celery, grapes, asparagus, and pineapple all have this effect, as do herbs like parsley and dandelion. Hibiscus tea, despite being caffeine-free, is also mildly diuretic.

This doesn’t mean you should avoid these healthy foods. Just be strategic about timing. The Cleveland Clinic recommends limiting fluid intake in the two hours before bedtime, and the same logic applies to water-rich, diuretic foods. Enjoy your watermelon at lunch, not as a 9 p.m. snack.

Timing Matters as Much as Food Choice

Across nearly every category of sleep-disrupting food, timing is the common thread. Caffeine needs at least six hours to clear. Spicy and fatty meals need two to three hours for digestion to settle. Sugary foods need enough time for blood sugar to stabilize. Diuretic foods need a buffer so your bladder isn’t full at midnight.

If you consistently sleep poorly, keeping a simple food-and-sleep log for a week or two can reveal patterns you might not notice otherwise. Write down what you ate after 5 p.m. and how you slept that night. The connections often become obvious quickly, and the fix is usually not eliminating foods entirely but shifting when you eat them.