Foods to avoid before bed are mostly about timing, not about banning anything. Caffeine, alcohol, big or greasy meals and sugary snacks can all make it harder to fall asleep or stay asleep when they land in the hours before bedtime, even though many of them are fine earlier in the day.

The evidence is real but not perfect. The Sleep Foundation notes that a review of 26 studies found insufficient evidence to confirm that specific foods or eating patterns affect sleep, so treat the list below as practical guidance to test on yourself, not as hard rules. Caffeine, late heavy meals and reflux are the best-supported areas.

Jump to: Coffee and Caffeinated Tea | Energy Drinks and Soda | Chocolate | Alcohol | Spicy Foods | Fried and Fatty Foods | Large Meals Close to Bedtime | Acidic Foods (Tomatoes and Citrus) | Sugary Desserts and Sweet Snacks | Big Drinks Right Before Bed | Timing Cheat Sheet | What You Can Eat Before Bed Instead | FAQ | The Bottom Line

10 foods to avoid before bed for better sleep

10 Foods and Drinks to Avoid Before Bed

Each item below lists why it can interfere with sleep, a simple timing fix, and an easy swap.

1. Coffee and Caffeinated Tea

Caffeine is the most clear-cut item on this list. The Sleep Foundation notes it can disrupt sleep even when consumed six hours before bedtime, and the CDC NIOSH sleep training says its half-life is 5 to 6 hours, though much longer in some people. That means a 4 p.m. coffee can still be partly active at midnight.

Timing fix: Set a personal caffeine cutoff at least 6 hours before bed, earlier if you are sensitive. Switch to decaf or herbal tea after lunch.

Swap for: Decaf coffee, rooibos, chamomile or a cup of theanine-rich teas such as decaf green tea.

2. Energy Drinks and Soda

Energy drinks, cola and some other sodas combine caffeine with a large dose of sugar. The Sleep Foundation lists soda and energy drinks among caffeine sources, and high added-sugar diets have been linked to less restorative sleep.

Timing fix: Keep them to the morning or skip them. Check the label for caffeine content, which varies a lot between brands.

Swap for: Sparkling water with a splash of juice, or plain water.

3. Chocolate

Chocolate contains caffeine, and the amount rises with the cocoa percentage. A small square is unlikely to matter for most people, but a large bowl of dark chocolate ice cream or a big bar late at night adds caffeine, sugar and fat together.

Timing fix: Enjoy chocolate with or soon after dinner rather than as a late snack.

Swap for: A small piece of fruit, or a few berries with plain yogurt.

4. Alcohol

Alcohol can help some people fall asleep faster, but the Sleep Foundation says it leads to lower-quality sleep and more awakenings during the night. The CDC NIOSH training advises that if you drink, you do so several hours before bedtime.

Timing fix: Leave a gap of several hours between your last drink and bed, and skip the nightcap when sleep has been poor.

Swap for: Herbal tea, or a non-alcoholic drink with dinner.

5. Spicy Foods

Spicy meals may make acid reflux more likely in the evening, which can wake you up. The CDC NIOSH training advises avoiding heavy, spicy meals 2 to 3 hours before bed. Evidence is stronger for reflux than for any direct effect on sleep itself.

Timing fix: Move chili-heavy dishes to lunch or an early dinner. If you never get reflux and sleep fine after spicy food, you may not need to change anything.

Swap for: Herbs and aromatics such as basil, ginger, garlic and lemon zest for flavor.

6. Fried and Fatty Foods

High-fat foods can make nighttime reflux more likely, according to the Sleep Foundation, which also reports that diets high in saturated fat have been linked to less restorative sleep. The Sleep Foundation guidance on eating before bed adds that high-calorie meals rich in fat or carbs eaten less than an hour before bed were linked to a longer time to fall asleep.

Timing fix: Finish fried, creamy or very fatty meals early in the evening, and keep portions moderate.

Swap for: Grilled, baked or steamed protein with vegetables and a modest portion of whole grains.

7. Large Meals Close to Bedtime

Meal size matters as much as the menu. The Sleep Foundation says large meals too close to bedtime can interfere with falling asleep and staying asleep, and that lying down soon after eating can let stomach contents press on the valve between the stomach and the esophagus.

Timing fix: Aim to finish your last full meal two to four hours before bed. Avoid lying flat right after eating.

Swap for: Eat dinner earlier, and if you are hungry later, choose a small snack (see the snack section below).

8. Acidic Foods (Tomatoes and Citrus)

Tomato sauce, oranges, grapefruit and similar foods are commonly named as reflux triggers by Mayo Clinic. Not everyone reacts to them, so this one is mainly for people who get heartburn at night.

Timing fix: If you get night-time heartburn, keep a short food and symptom diary. Avoid only the acidic foods that actually trigger you, rather than cutting them all.

Swap for: Banana, melon, oatmeal or other lower-acid options. See our guide to foods that help with acid reflux.

9. Sugary Desserts and Sweet Snacks

Diets high in added sugar have been linked to poorer, less restorative sleep, per the Sleep Foundation. The research is mostly about overall diet patterns, so a single dessert is not likely to ruin your night, but a habit of sweets right before bed is worth reviewing.

Timing fix: Have dessert with dinner instead of an hour before bed, and keep the portion small.

Swap for: Fruit with a spoonful of nut butter, or plain yogurt with cinnamon.

10. Big Drinks Right Before Bed

Drinking a lot of fluid shortly before bed raises the chance you will wake up to use the bathroom. The CDC NIOSH training advises avoiding liquids before bed for this reason, though it gives no exact cutoff.

Timing fix: Drink more of your fluids earlier in the day and taper off in the last hour or two, sipping only if thirsty.

Swap for: A few sips of water, rather than a full glass or mug.

Timing Cheat Sheet

Use this as a starting point and adjust for your own sensitivity.

Food or drink Suggested cutoff before bed Main concern
Caffeine (coffee, tea, soda, energy drinks, chocolate) At least 6 hours, longer if sensitive Delays and lightens sleep
Alcohol Several hours More awakenings, lower-quality sleep
Heavy or spicy meals 2 to 3 hours (CDC NIOSH) Reflux, discomfort
Large meals in general 2 to 4 hours (Sleep Foundation) Trouble falling and staying asleep
Large amounts of fluid Taper off in the last 1 to 2 hours Night-time bathroom trips

What You Can Eat Before Bed Instead

Going to bed hungry is not the goal. The Sleep Foundation guidance on eating before bed describes light, nutrient-dense snacks as reasonable. Good options include:

  • A small banana
  • A small bowl of oatmeal
  • Plain yogurt with berries
  • A slice of whole-grain toast with nut butter
  • A handful of almonds or walnuts

For more ideas, see our list of foods that help you sleep. Pairing an earlier dinner with a calming wind-down, such as this stretching routine for before bed, also helps many people.

Frequently Asked Questions

How long before bed should I stop eating?

The Sleep Foundation says most experts recommend finishing a meal two to four hours before bed, though its key takeaways mention up to two hours. In one study it cites, people who ate or drank within an hour of bedtime were more likely to wake after falling asleep. Pick a window you can stick to, starting with about two to three hours.

Is a light snack before bed okay?

Yes. A small, easily digested snack is generally considered reasonable, and going to bed very hungry can also make sleep harder. People who take medications that can cause low blood sugar at night should ask their clinician about a bedtime snack.

Does warm milk help you sleep?

There is no strong evidence that milk has a special sleep-inducing effect. It may help as part of a calming routine, and it is a milder choice than caffeine or alcohol. Choose a smaller portion if large drinks wake you at night.

Does a nightcap help me sleep?

Alcohol may help some people fall asleep faster, but the Sleep Foundation says it is linked to lower-quality sleep and more awakenings. If you drink, finish several hours before bed.

Do I need to avoid all of these foods?

No. Start with caffeine timing and big late meals, which have the clearest support. Then change one thing at a time and keep a simple sleep and food diary for a couple of weeks to see what makes a difference for you.

When should I see a doctor about my sleep?

If you regularly have trouble sleeping, loud snoring, gasping at night, or frequent heartburn that wakes you, talk with a healthcare provider. Food timing helps many people but does not replace evaluation of sleep or reflux conditions.

The Bottom Line

The most reliable wins are simple: stop caffeine at least six hours before bed, leave several hours between alcohol and sleep, and finish large, greasy or spicy meals two to four hours before lying down. Everything else is worth testing on yourself rather than assuming. Pair these habits with a light snack if you are hungry and a regular wind-down routine.

This article is for informational purposes only and is not a substitute for professional medical advice. Please consult your healthcare provider or a registered dietitian before making significant changes to your diet, especially if you are managing a medical condition or taking medication.

Save It For Later

About the Author

Junior Triomph

Founder

Junior Triomph is the founder and primary author of CollaborateForHealthyWeight.org. After gaining weight alongside his wife during her pregnancy and losing it through intermittent fasting, he founded the site in 2024 to cut through fad-diet noise with evidence-based guidance. His background in natural cosmetic formulation trained him to critically evaluate scientific literature and distinguish marketing hype from real evidence. Read more about Junior on the About page.

View All Articles