Is Your Diet Disrupting Your Sleep? Foods to Eat and Avoid
Most people know that a double espresso at 4 p.m. is going to totally wreck their night. But did you know that the relationship between what you eat and how you sleep runs a lot deeper than your coffee order? As it turns out, small things like the timing of your meals, the sugar in your late-night snack, or the glass of wine you had to wind down can all be causing insomnia without you realizing it.
In this article, we break down when, what, and what to eat for better sleep.

The Usual Suspects: What to Avoid
Caffeine
Caffeine is a well-known sleep disruptor, but most people don’t fully grasp how long it lingers. The half-life of caffeine is four to six hours, meaning that half of what you had in your 3 p.m. coffee is still in your system at 9 p.m. Research shows that caffeine can disrupt sleep even as little as six hours before bedtime, increasing the time it takes to fall asleep and reducing the total time you spend sleeping.
The trickiest part? Caffeine hides in places people don't think to check. Even things like dark chocolate, protein bars, teas, and even decaf coffee can carry disruptive amounts. If you’re sensitive to the effects of caffeine, even a post-dinner square of 70 percent dark chocolate might be interfering with your sleep.
Sugar and refined carbs
Who doesn’t love a bowl of ice cream or a few cookies before bed? While it’s good to treat yourself from time to time, research has linked high sugar intake to shorter sleep duration and more fragmented rest. The “why” behind this is fairly simple: sugary foods cause blood sugar to spike, which your body counters by releasing cortisol, the stress hormone that makes you feel awake.
Refined carbohydrates have a similar effect on sleep. When you eat white bread, white rice, and processed snacks close to bedtime, you can set off the same chain reaction.
Alcohol
This one is tricky, since most people associate alcohol with feeling sleepy. And while it’s true that alcohol is a sedative, it doesn’t really deserve its reputation as a sleep aid. It can help you fall asleep faster, but as your body metabolizes alcohol through the night, that sedating effect wears off and sleep becomes lighter and more fragmented. Studies show that even a small amount of alcohol reduces REM sleep, the stage most associated with memory consolidation and emotional processing. So that grogginess you feel after a night of drinking? It isn't just dehydration. It's the cost of a night without deep, restorative rest.
Spicy and heavy foods
Spicy food doesn’t just make your mouth feel like it’s on fire. Eating a big, spicy meal close to bedtime actually raises your core body temperature, which fights the natural, lower temperature needed for good rest.
Spicy foods also increase the likelihood of acid reflux and heartburn, which are not exactly conducive to drifting off peacefully. As a general rule, the Sleep Foundation suggests eating your last meal at least two to three hours before bed. And if you do have to eat late, we recommend keeping your meal light.

The Sleeper Hits: Foods That Support Better Rest
Tart cherries
Tart cherries are one of the most well-researched sleep-supporting foods out there, and for good reason. They're naturally high in melatonin and contain tryptophan, which helps your body produce serotonin and melatonin.
One study found that adults with insomnia who drank tart cherry juice for two weeks increased their total sleep time by 84 minutes. So if you’re struggling to fall asleep, a small glass of unsweetened tart cherry juice in the evening is an easy addition to your nighttime routine.
Kiwi
Similarly to tart cherries, kiwis are rich in serotonin, antioxidants, and folate, all of which support the body's sleep regulation processes. A 2023 study found that eating kiwi in the evening can have a positive effect on sleep quality and duration. A kiwi or two before bed is a light, low-sugar snack and a great substitute for things like ice cream, chocolate, or cookies.
Turkey, eggs, and other tryptophan-rich foods
We've all seen the Seinfeld episode. And while tryptophan probably isn't going to send you straight to the couch after dinner, there is some real science behind the sleep connection. Research suggests it can help people fall asleep faster and improve overall sleep quality, but it works slower than the Thanksgiving lore would suggest.
Tryptophan is the amino acid that kicks off the serotonin-to-melatonin chain, so foods rich in it are a good place to start if you're looking for sleep-friendly options. Turkey is the most famous example, but eggs, chicken, fish, cheese, edamame, and pumpkin seeds are solid sources as well. Pairing them with a small amount of complex carbohydrates helps the body absorb tryptophan more efficiently, which is part of why a light evening snack can actually work in your favor.
Magnesium-rich foods
Tryptophan might get all the credit, but magnesium is also linked to better sleep quality. Research shows that it can help you sleep longer, get better quality sleep, and feel less tired.
Experts recommend taking no more than 350 milligrams of magnesium for sleep, but if you prefer to get it from your food, spinach, avocados, bananas, almonds, and pumpkin seeds are all solid sources as well.

The Timing Question
What you eat matters, but when you eat it matters just as much. Eating too close to bedtime keeps your digestive system going at a time when your body is trying to wind down. In other words, eating late can cause insomnia even when everything else about your routine is perfect.
. As a rule of thumb, it’s good to finish your last meal two to three hours before bed. And if you do need a late snack, keep it small and sleep-friendly.

Your Diet Can't Do Everything
Personally, we think there’s not much that food can’t fix. But unless you shove a tart cherry in your ear (which, please don’t do that), it can't stop your partner from snoring or your upstairs neighbor from stomping around. Luckily, Ozlo Sleepbuds can. By replacing unpredictable noise with consistent, soothing audio, they create a sound environment that’s optimized for sleep.
The Takeaway
In closing, your diet and your sleep are more connected than most people realize. Cutting off caffeine earlier, swapping the late-night sugar for something tryptophan-friendly, and giving yourself a couple of hours between dinner and bed are all low-effort ways to ensure sweeter sleep.