
Eating Before Sleep: What to Eat Before Bed
Brian W. Wu, MD, PhD
Dr. Brian Wu earned his MD and Ph.D from the Keck School of Medicine (University of Southern California). His Ph.D. is in integrative biology and disease for his research in exercise physiology and rehabilitation. He is currently a psychiatrist in his residency at LAC USC.
- Foods That May Help: Fish, whole grains, dairy, tart cherry juice, almonds, chamomile tea, and walnuts contain nutrients linked to sleep, but the evidence comes mostly from small studies.
- Foods to Avoid: Fried, fatty, and spicy foods can trigger heartburn, and caffeine can disrupt sleep even when you have it 6 hours before bed.
- Timing and Portions: Finish large meals a few hours before bed. If you’re hungry later, a small, light snack is fine.
Many people are tempted to grab a snack when they can’t sleep. Depending on what you choose, it could help or make things worse. If you reach for the sweetest snack, you may end up staring at the ceiling all night. When you’re tired, it can also be harder to resist comfort foods, since research suggests sleep loss increases the desire for high-calorie foods 1 Verified Source National Library of Medicine (NIH) World’s largest medical library, making biomedical data and information more accessible. See the source .
According to psychiatrist Dr. Brian Wu, “Making healthy food choices is essential in maintaining health and as a preventative. Ongoing research demonstrates that eating a nutritionally balanced diet can keep us healthy longer.”
Timing may matter, too. In a 2026 survey of 1,000 U.S. adults by our sister site eachnight, people who ate after 10 p.m. were less likely to report good sleep quality than those who finished eating before 7 p.m. (36% vs. 49%), and less likely to get seven or more hours of sleep (60% vs. 74%). These are self-reported associations, so they can’t prove late eating causes poor sleep.
The foods below are light enough to eat a couple of hours before bed.
Sleep is essential for you to function well, and what you eat before bed can affect how well you sleep. About 1 in 3 U.S. adults (33% in 2020) sleep less than the recommended 7 hours a night 2 Verified Source Preventing Chronic Disease (CDC) The CDC’s peer-reviewed public health journal. See the source .
Not getting enough sleep is linked to a higher risk of obesity, heart disease, and diabetes 3 Verified Source National Heart, Lung, and Blood Institute (NIH) Part of the National Institutes of Health, focused on heart, lung, blood, and sleep disorders. See the source . Stress is often a big factor in insomnia, but your diet can play a role, too.
Here are the nutritional dos and don’ts for a good night’s sleep, along with some of the healthiest snacks to have before bedtime.
What You Should Be Eating Before Bed

If you are thinking of dinner or grabbing a snack, consider some of these foods that may help you sleep.
Fish
Fish sleep with their eyes open, but you might get some shuteye by eating halibut, salmon, and tuna. These fish are good sources of vitamin B6, which your body uses to make neurotransmitters 4 Verified Source Office of Dietary Supplements (NIH) Part of the National Institutes of Health, providing science-based information on dietary supplements. See the source . In one study, eating salmon three times a week was linked to better sleep and daily functioning 5 Verified Source National Library of Medicine (NIH) World’s largest medical library, making biomedical data and information more accessible. See the source . Other good sources of vitamin B6 include chickpeas and bananas.
Whole Grains
Whole grains contain magnesium 6 Verified Source Office of Dietary Supplements (NIH) Part of the National Institutes of Health, providing science-based information on dietary supplements. See the source , a mineral involved in muscle and nerve function. There’s little research on magnesium for sleep 7 Verified Source National Center for Complementary and Integrative Health (NIH) Part of the National Institutes of Health, focused on the science of complementary health approaches and supplements. See the source , but whole grains are a healthy choice for an evening meal or snack.
Dairy
A glass of warm milk or some yogurt can be part of a calming bedtime routine, and dairy’s protein can help you feel full so you’re less likely to get up for a midnight snack. Milk contains small amounts of melatonin and tryptophan, but there’s little evidence it helps you fall asleep 8 Verified Source International Journal of Environmental Research and Public Health (MDPI) A peer-reviewed, open-access public health journal. See the source . An animal study found that milk collected at night had sedative effects in mice, but that hasn’t been shown in people 9 Verified Source Journal of Medicinal Food (Mary Ann Liebert) A peer-reviewed journal on the health effects of foods. See the source .
Cherries
Tart cherry juice has been studied for sleep in small trials. In a study of 20 healthy adults, tart cherry juice concentrate raised melatonin levels and improved total sleep time 10 Verified Source National Library of Medicine (NIH) World’s largest medical library, making biomedical data and information more accessible. See the source . In a pilot study of 15 older adults with insomnia, it modestly reduced time spent awake at night but didn’t help them fall asleep faster 11 Verified Source Journal of Medicinal Food (Mary Ann Liebert) A peer-reviewed journal on the health effects of foods. See the source . It’s a tasty option to try, but it’s not a cure for insomnia.
Almonds
Almonds contain magnesium, with about 80 mg per ounce, or 19% of the Daily Value 6 Verified Source Office of Dietary Supplements (NIH) Part of the National Institutes of Health, providing science-based information on dietary supplements. See the source . In one small study without a control group, students who ate 10 almonds a day for two weeks reported less insomnia 12 Verified Source National Library of Medicine (NIH) World’s largest medical library, making biomedical data and information more accessible. See the source .
Chamomile Tea
Chamomile is a traditional insomnia remedy. It contains apigenin, a compound that may bind to receptors in the brain that promote calm 13 Verified Source Molecular Medicine Reports A peer-reviewed biomedical journal. See the source . A 2019 meta-analysis of 12 trials found chamomile improved sleep quality, though evidence for treating insomnia is limited 14 Verified Source Phytotherapy Research (Wiley) A peer-reviewed journal on medicinal plant research. See the source . A warm cup of tea can also help you wind down.
Walnuts
Walnuts contain magnesium 15 Verified Source U.S. Department of Agriculture (FoodData Central) The USDA’s official database of food nutrient values. See the source and small amounts of melatonin 16 Verified Source Nutrition (Elsevier) A peer-reviewed nutrition science journal. See the source . If you are looking for a healthy snack, you can grab a small handful of walnuts.
All of these foods are great to have at night, but don’t overdo it. A large snack close to bedtime can cause indigestion, so keep portions small.
Foods to Avoid Before Bedtime
If someone were to produce an “I don’t want to sleep tonight” starter kit, they would fill it with these foods. Try to avoid them in the hours before bed.
Fried food
Fried and fatty foods can trigger heartburn, especially when you lie down soon after eating 17 Verified Source Johns Hopkins Medicine An academic medical center known for patient care, research and medical education. See the source . If you get acid reflux, wait at least 3 hours after eating before you lie down 18 Verified Source National Institute of Diabetes and Digestive and Kidney Diseases (NIH) Part of the National Institutes of Health, focused on diabetes, digestive, kidney, and weight-related conditions. See the source .
Even if it hasn’t been fried, it’s a good idea to avoid heavy, greasy, and spicy foods before bed. They can make your night uncomfortable.
Coffee
Caffeine stimulates your central nervous system, keeping you alert and awake. A systematic review found that caffeine makes it take longer to fall asleep and leads to shorter, lighter sleep 19 Verified Source National Library of Medicine (NIH) World’s largest medical library, making biomedical data and information more accessible. See the source .
Try to stop caffeine at least 6 hours before bed. In one study, caffeine taken 6 hours before bedtime still cut sleep by more than an hour 20 Verified Source American Academy of Sleep Medicine The professional society for sleep medicine physicians and researchers in the U.S. See the source . Pay attention to how coffee affects you, since some people need an even earlier cutoff. Dark chocolate and energy drinks also contain caffeine, so skip them before bed.
Knowing what to eat is the first step in getting a good night’s sleep. Now that you know what is good for your sleep health, you can make better decisions the next time you find yourself going through your fridge. Enjoy your snacking and sleeping!
Comments (1) Leave a reply
Won’t be sleep time for a couple of hours. Too sick for dairy now. How about a little avocado? I also am considering vegetable broth. Out of chicken…Thanks