General wellnessNutritionSleep

Foods that can hurt your sleep

What you eat—and when you eat it—can significantly impact your ability to fall and stay asleep.

Jan, 20263 min read
LearnSleep healthFoods that can hurt your sleep
  • Foods that can disrupt sleep
  • A note on mealtimes

It happens to everyone at some point: You can't sleep. And when you finally drop off, the alarm buzzes about 10 seconds later. Then, you have problems getting out of bed. You end up late for work and drag through the day, foggy, moody, and unable to focus.

From anxiety to pain to perimenopause, there are endless reasons we might not be able to fall asleep or sleep through the night. Some of these underlying issues can create long-term sleep problems, affecting your overall mental and physical health. Feeling better and sleeping well may require time, lifestyle changes, and help from a healthcare provider.

But there are some causes of sleeplessness you can address today, right now—like what you eat. 

Foods that can disrupt sleep

The foods we choose during the day can have a big-time effect on our ability to sleep at night. With that in mind, consider limiting or ditching the following snacks, meals, and drinks in the hours before bedtime.

Spicy foods

Whether it’s wasabi, chiles, or a liberal dose of cayenne pepper, intense spices can keep you up at night in a few different ways. They can:

  • Cause heartburn or indigestion
  • Worsen sleep apnea, a condition that disrupts breathing when you’re sleeping
  • Raise your core body temperature, which may make it difficult to cool down enough for sleep

Large meals or meals high in saturated fat or protein

Food takes time to digest—especially foods that contain a lot of saturated fat or protein. When you go to sleep, your digestive system slows down. This can lead to gas, heartburn, and a lot of general discomfort. So, if you know you’re going to have a large or heavy meal, try to schedule it earlier in the day. Then, in the evening, stick to a smaller, lighter dinner. 

Alcohol

Having a glass of wine can make you feel drowsy. But it can also disturb your ability to sleep later on, leading to restlessness, waking up in the middle of the night, and an inability to get back to sleep. 

While drinking in moderation with dinner may not mess with your sleep schedule, it’s wise to avoid drinking in excess or too close to bedtime. “Moderation” means no more than one drink each day for women and two for men. 

Caffeine

You may know not to drink coffee right before turning in for the night. You understand that the caffeine can keep you awake and alert when you’re trying to doze off. But you might not know that caffeine can linger in your body for 10 or 12 hours. That means your mid-afternoon mug can lead to tossing and turning well into the evening. 

So, if you’re having sleep troubles, cut yourself off at least six hours before your bedtime. Look out for the caffeine in other foods and drinks, too. That includes:

  • Tea
  • Sports and energy drinks
  • Soda
  • Chocolate

A note on mealtimes

While what you eat matters for quality sleep, when you eat can also play a big role. To help adults get the recommended seven to nine hours of sleep each night, many experts recommend trying to stop eating two to four hours before bedtime. And if you do eat during those hours, keep your foods and drinks on the lighter side. 

Another wise idea: Eat breakfast, lunch, and dinner around the same time every day. Go to bed and wake up at the same basic times, too. This can help your body get accustomed to a schedule, making it easier to fall and stay asleep. 

Sources: Mayo Clinic. Insomnia. January 16 + 8
  1. Mayo Clinic. Insomnia. January 16, 2024.
  2. National Sleep Foundation. The Link Between Nutrition and Sleep. November 12, 2020.
  3. Centers for Disease Control and Prevention. About Sleep. May 15, 2024.
  4. Pattnaik H, Mir M, Boike S, Kashyap R, Khan SA, Surani S. Nutritional Elements in Sleep. Cureus. 2022 Dec 21;14(12):e32803.
  5. National Council on Aging. Diet, Nutrition, and Sleep. August 19, 2024.
  6. Vernia F, Di Ruscio M, Ciccone A, Viscido A, Frieri G, Stefanelli G, Latella G. Sleep disorders related to nutrition and digestive diseases: a neglected clinical condition. Int J Med Sci. 2021 Jan 1;18(3):593-603.
  7. Karbasi S, Asadi Z, Mohaghegh Z, Saeedi F, Ferns GA, Bahrami A. The relationship between dietary patterns and insomnia in young women. Neuropsychopharmacol Rep. 2023 Jun;43(2):228-238.
  8. InformedHealth.org. Overview: Sleep disorders and problems (insomnia). Cologne, Germany: Institute for Quality and Efficiency in Health Care (IQWiG); 2006-.
  9. National Sleep Foundation. Get Healthy Sleep by Eating Right on Schedule. March 13, 2022.
Written byMichael Gollust.
Medically reviewed byAnn Wendling, MD, MPH.November, 2024
Updated onNovember, 2024
ask-md
AskMD
Want to learn about General wellness?
Written byMichael Gollust.
Medically reviewed byAnn Wendling, MD, MPH.November, 2024
Updated onNovember, 2024
  • Foods that can disrupt sleep
  • A note on mealtimes
ask-md
AskMD
Want to learn about General wellness?
Sources: Mayo Clinic. Insomnia. January 16 + 8
  1. Mayo Clinic. Insomnia. January 16, 2024.
  2. National Sleep Foundation. The Link Between Nutrition and Sleep. November 12, 2020.
  3. Centers for Disease Control and Prevention. About Sleep. May 15, 2024.
  4. Pattnaik H, Mir M, Boike S, Kashyap R, Khan SA, Surani S. Nutritional Elements in Sleep. Cureus. 2022 Dec 21;14(12):e32803.
  5. National Council on Aging. Diet, Nutrition, and Sleep. August 19, 2024.
  6. Vernia F, Di Ruscio M, Ciccone A, Viscido A, Frieri G, Stefanelli G, Latella G. Sleep disorders related to nutrition and digestive diseases: a neglected clinical condition. Int J Med Sci. 2021 Jan 1;18(3):593-603.
  7. Karbasi S, Asadi Z, Mohaghegh Z, Saeedi F, Ferns GA, Bahrami A. The relationship between dietary patterns and insomnia in young women. Neuropsychopharmacol Rep. 2023 Jun;43(2):228-238.
  8. InformedHealth.org. Overview: Sleep disorders and problems (insomnia). Cologne, Germany: Institute for Quality and Efficiency in Health Care (IQWiG); 2006-.
  9. National Sleep Foundation. Get Healthy Sleep by Eating Right on Schedule. March 13, 2022.

Recommended for you

4 foods to eat for better sleep, plus 4 to avoid
Article
What to eat when you cannot sleep
Article
Choosing these foods may promote better sleep
Article
A helpful guide to pre-bedtime snacks that won’t prevent a good night’s sleep
Video
Sleep medicine
5 surprising triggers of insomnia
Slideshow
AskMDHow can I be more consistent?
AskMd LogoAskMd Logo
Privacy policyConsumer health data privacyTerms of use
Cookie policyYour privacy choices

© 2026 Sharecare, Inc.