Foods That Disrupt Sleep (and What to Eat Instead)
What you eat in the hours before bed can be just as important as when you turn off the lights. Several common foods that disrupt sleep do so through concrete biological mechanisms — spiking cortisol, blocking melatonin production, or keeping your digestive system working overtime when it should be winding down. The good news is that small, targeted swaps can make a measurable difference in how quickly you fall asleep and how long you stay there.
Here's what the science says to avoid — and what to reach for instead.
Caffeine: The Obvious Offender With a Long Half-Life
Most people know caffeine is a stimulant, but they underestimate how long it stays active in the body. Caffeine's half-life is approximately 5–7 hours, meaning a 3 p.m. coffee still has half its stimulant load circulating in your bloodstream at 8 or 9 p.m. It works by blocking adenosine receptors — adenosine is the compound that builds up throughout the day and creates sleep pressure. Block adenosine and you delay the biological signal telling your brain it's time to sleep.
The fix is simple: set a caffeine cutoff at 1–2 p.m. This includes coffee, black and green tea, energy drinks, and pre-workout supplements. If you're sensitive to caffeine — or a slow metabolizer due to genetics — pushing that cutoff to noon is reasonable. Decaf still contains small amounts of caffeine (10–15 mg per cup), so if you're struggling with sleep latency, consider cutting it entirely after noon as well.
Alcohol: It Helps You Fall Asleep and Then Wrecks Your Sleep
Alcohol is one of the most misunderstood foods bad for sleep. It acts as a sedative initially, which is why many people use a nightcap to "relax." The problem comes later. As your body metabolizes alcohol — typically 3–4 hours after drinking — it causes a rebound effect that fragments the second half of your night. REM sleep is hit hardest. Studies show even moderate alcohol consumption (one to two drinks) reduces REM sleep by up to 24% in the first sleep cycle.
Less REM sleep means worse memory consolidation, lower emotional regulation the next day, and a groggier morning even after a full eight hours in bed.
What to do instead: If you drink socially, stop at least 3 hours before bed. Swap the nighttime glass of wine for a small cup of tart cherry juice — it's one of the few food sources that naturally contains melatonin and has shown modest but real effects on sleep duration in controlled trials.
High-Sugar and Refined-Carb Foods Late at Night
A large spike in blood sugar before bed — from ice cream, chips, white bread, pastries, or sweetened cereals — triggers an insulin response followed by a blood sugar crash. That crash can happen in the early hours of the morning, activating your stress response and pulling you out of deep sleep. Research published in the Journal of Sleep Research found that diets high in sugar are associated with lighter, more disrupted sleep and more frequent nighttime awakenings.
There's also the cortisol angle: rapidly fluctuating blood sugar signals mild metabolic stress, which nudges cortisol levels up at a time when they should be falling.
Better choices: If you need something before bed, reach for a small snack that pairs complex carbohydrates with protein — a few whole-grain crackers with nut butter, or a small bowl of oatmeal. These digest more slowly, keep blood sugar stable, and the carbohydrates may actually support serotonin and melatonin production by helping tryptophan cross the blood-brain barrier.
Spicy and Fatty Foods: The Heartburn and Temperature Problem
Spicy foods raise your core body temperature — the opposite of what needs to happen for sleep onset. Your body needs to drop its core temperature by about 1–2°F to initiate and maintain sleep. Capsaicin, the compound that makes food spicy, can delay this cooling process and has been linked to increased wakefulness and more frequent nighttime awakenings in small studies.
Fatty foods — think greasy takeout, fried chicken, or heavy cream sauces — slow gastric emptying significantly. Eating a high-fat meal within 2–3 hours of bed means your digestive system is still working hard when you're trying to sleep, and that activity competes with the rest and recovery your body is supposed to be doing overnight.
The rule of thumb: Finish your last large meal at least 3 hours before bed. If you eat dinner late, keep it lighter — lean protein, cooked vegetables, and a moderate portion of complex carbs.
What to Eat Instead: A Sleep-Friendly Evening Plate
For a complete overview of sleep improvement strategies, see our guide on how to sleep better. Diet is one piece of that puzzle, but it's a powerful one.
When it comes to diet and sleep quality, these foods consistently show up in the research as beneficial:
- Kiwi fruit: Two kiwis eaten one hour before bed improved sleep onset and total sleep time by around 35% in a four-week study from Taipei Medical University.
- Fatty fish (salmon, mackerel): High in vitamin D and omega-3s, both of which support serotonin synthesis and regulate the sleep-wake cycle.
- Tart cherry juice: Contains melatonin and tryptophan; 240 ml twice daily has been shown to add an average of 84 minutes of sleep in older adults with insomnia.
- Nuts — especially almonds and walnuts: Good sources of magnesium, which helps regulate melatonin and calm the nervous system.
- Warm milk or chamomile tea: Mild glycine in milk and apigenin in chamomile both have calming, sleep-promoting properties supported by small but consistent studies.
Tracking the Connection Between Food and Sleep
The challenge with dietary changes is that their effects on sleep can be subtle and take days to notice. SleepBetter.ai reads your Apple Health data to correlate your sleep metrics — sleep latency, deep sleep percentage, nighttime wake events — with your daily logs, helping you spot patterns between what you eat and how you sleep over time. Knowing your personal data makes it far easier to identify which specific foods affect your sleep most.
What not to eat before bed is rarely one-size-fits-all. Some people are wrecked by a single espresso; others sleep fine after moderate caffeine. Tracking gives you personalized answers instead of guesses.