What you eat and drink — as well as when and how much — may help or hurt your ability to get a good night’s sleep.
Some foods naturally contain hormones that help with the sleep-wake cycle, or nutrients that help release these hormones. Examples include turkey, soybeans, and kiwifruit.
Other foods and drinks may worsen sleep if you consume them before bed. Common offenders are alcohol, caffeine, and spicy foods.
A good night’s rest is one of the most important things you can do for your health. But many people don’t get enough quality sleep every night.
When you don’t sleep well, you’ll likely feel the impact the next day. But there are also long-term effects from a lack of sleep, which have been associated with many health problems, including heart disease, diabetes, and dementia.
You’re probably familiar with some ways to get better sleep — like keeping your room dark and cool, avoiding screens before bedtime, and trying a stress-lowering activity. Did you know that what you eat and drink before bed can also make a difference in sleep quality? If you’re feeling hungry around bedtime, read on to see some suggestions for healthy nighttime snacks.
Search and compare options
For many people, eating right before bed may not be the best idea for quality sleep. This is especially if it’s a big meal.
Eating a light meal 2 to 3 hours before bedtime gives your body enough time to digest and get ready for sleep, according to the National Sleep Foundation. But a heavy meal or high-calorie snack at night might confuse your system and throw off your sleep.
Other potential effects of eating before bed include:
Stomach discomfort
Elevated cholesterol and blood sugar levels
A small study of healthy adults suggests that eating closer to bedtime is linked to poorer sleep quality in both men and women.
Some research suggests that a small, nutrient-dense snack that’s low in calories before bed might help you:
Fall asleep faster and stay asleep longer
Stabilize your blood sugar levels
Build muscle
How often should you eat? A lot comes down to individual preference. Here’s what research shows about spacing out your meals.
Craving a late-night snack? These nutrient-dense snacks are great options if you’re feeling hungry before bedtime.
All about mindful eating: Taking a nonjudgmental approach to eating can help make food joyful rather than stressful.
That said, it’s not necessary to eat or drink anything for a good night’s sleep. But if you feel hungry at night, being strategic with your food and drink choices can help promote better sleep and overall health.
There’s no hard rule about when to stop eating before bed. But, in general, most experts recommend avoiding large, heavy meals a few hours before lying down. This is especially true for people with a history of indigestion or GERD (gastroesophageal reflux disease), since lying down soon after eating makes it easier for stomach acid to flow backward into your esophagus.
Similar to how people like different foods, people have different ideas and preferences about how often and when to eat. Work schedules, life commitments, activity levels, and health needs all influence when and how often you eat. The best advice is to listen to your body to determine what works best for you. That said, let’s review which nighttime foods may put you in a position to get a good night’s sleep.
The best food and drink choices are those that naturally contain hormones and chemicals involved in our sleep-wake cycle or circadian rhythm. These include foods rich in:
Melatonin, a hormone that regulates our sleep-wake patterns
Serotonin, a chemical in the brain with many roles, including improving mood and sleep
Tryptophan, an essential amino acid that helps make serotonin and melatonin
Below is a list of eight food and drink options you can try.
You might have heard of (or even experienced) a “turkey coma” after indulging in a big holiday dinner. While there are other reasons such dinners contribute to postmeal fatigue — think foods high in carbs and fat — turkey also happens to be a good source of tryptophan.
While turkey is one of the most well-known sources of tryptophan, chicken actually contains a bit more. A 3 oz chicken breast has about 310 mg of tryptophan compared to 244 mg in a 3 oz portion of turkey breast.
Many whole grains are good sources of tryptophan. Some examples include:
Oatmeal: One cup of oatmeal contains 147 mg of tryptophan.
Certain whole-grain cereals: Whole-grain cereals, including bran and wheat-based cereals, contain between 25 mg and 113 mg of tryptophan.
Ancient grains: Bulgur, quinoa, and teff are some of many ancient grains that are also rich sources of tryptophan.
Cherries and cherry juice contain melatonin, serotonin, and a number of phytochemicals (plant compounds) that help lower inflammation.
In one small trial of 20 participants, half drank a glass of concentrated Montgomery cherry juice twice a day, while the other half had a different fruit-flavored drink. After 1 week, the group that drank cherry juice had higher levels of melatonin-based compounds than those who didn’t. People in this group also reported sleeping better and longer than those who drank regular fruit juice.
But keep in mind: Even unsweetened varieties (100% tart cherry juice) still contain nearly 25 g of natural sugar. So if you’re trying to limit your sugar intake, this option may not be best for you.
Kiwifruit contains serotonin and tryptophan. According to a small study, eating two kiwis shortly before bedtime increases serotonin levels, while also improving sleep quality and total sleep time. Kiwi is also a high-fiber fruit, which can help keep your blood sugar from rising too high.
Fatty fish — like tuna, salmon, and cod — is a source of the omega-3 fatty acids DHA and EPA, which are known to:
Lower inflammation
Improve brain function
Benefit heart health
Research with both children and adults suggests that a higher intake of fish is linked to better sleep quality. Seafood is also an excellent source of selenium, an antioxidant associated with lower inflammation. A large population-based study observed that those with a lower selenium intake had shorter sleep cycles compared to those who consumed more of the nutrient.
You’ve probably heard that a warm glass of milk before bed may help with getting a good night’s rest. This may hold true for many people because milk and other dairy products are good sources of tryptophan and other nutrients that help make serotonin and melatonin. These include:
Magnesium
Zinc
Vitamin B6
Some research has also linked improved sleep to probiotic yogurt and fermented dairy, like kefir.
Certain tree nuts — like pistachios and walnuts — may be helpful for improving sleep because of their melatonin content. Similarly, pumpkin seeds, sesame seeds, and sunflower seeds are thought to promote better sleep because of their tryptophan content.
Adding a ¼ cup of nuts or seeds to a cup of yogurt before bedtime may be helpful if you have trouble falling asleep.
This high-protein animal food is a natural source of melatonin. Egg whites are also rich in tryptophan. Apart from eating fruit and meat daily, egg consumption was also positively related to sleep quality in older adults in China. In other words, participants who ate eggs every day reported better sleep.
Eggs are also one of the richest sources of choline — a nutrient that helps the brain regulate mood, memory, and muscle control. And this might help symptoms of sleep apnea.
Just as some foods can help ease your body into a calm, relaxed state, others can stimulate it or cause disruptions in how well you sleep. Here are some of the most common foods and drinks that may keep you from getting a good night’s rest.
While it’s common to think of alcohol as a sedative that can help you sleep, in reality, the effect is opposite. This is especially true when it comes to heavy drinking. Alcohol may shorten the time to get to sleep in some people, but the quality of sleep throughout the night is impacted.
Alcohol consumption — even in small to moderate amounts — is associated with:
Low REM sleep
Increased time spent awake
Difficulty staying asleep throughout the night
Coffee and caffeine have many health benefits, including improving alertness. But feeling alert is not a great quality when you’re trying to prepare to get some sleep.
Caffeine stimulates the central nervous system, which increases brain activity. This can help with cognition and energy levels. But high levels have been associated with poor sleep quality as well as inadequate sleep time.
While caffeine can interfere with sleep, keep in mind that everyone tolerates it differently and there are some potential positive benefits of caffeine. The best guidance is to enjoy caffeine at least 6 hours before bedtime to minimize sleep disruptions. Keep in mind that caffeine is in many products, including coffee, tea, cocoa, and a variety of energy drinks and bars.
A recent review of studies found an association between drinking sugar-sweetened beverages and a shorter sleep duration in both children and adults. While sugary drinks don’t cause sleep disruptions, researchers felt there was a strong enough link to call for additional research.
Cutting back on sugar in general is good for your overall health.
Spicy foods can cause heartburn and acid reflux, which can be aggravated by lying down. Stomach acid can work its way back up, causing pain and discomfort in your esophagus.
According to two recent studies, people with GERD often experienced poor sleep quality, shorter sleep duration, and issues with anxiety and depression. So adding spicy food or other foods that aggravate the condition is probably not a good idea.
Foods with melatonin, serotonin, or tryptophan may help with insomnia. (Check out our list above.) But your insomnia may go beyond your dietary choices. If you’re having trouble falling or staying asleep, it’s a good idea to visit a healthcare professional. They can work with you to find the best treatment for you, which may include cognitive behavioral therapy, lifestyle adjustments, or medication.
Foods with melatonin, serotonin, or tryptophan may help with insomnia. (Check out our list above.) But your insomnia may go beyond your dietary choices. If you’re having trouble falling or staying asleep, it’s a good idea to visit a healthcare professional. They can work with you to find the best treatment for you, which may include cognitive behavioral therapy, lifestyle adjustments, or medication.
You may have heard that eating before bed can cause nightmares and other sleep disturbances. But there isn’t high-quality evidence to back up that claim. Though you may be more likely to remember your dreams (or nightmares) if you wake up throughout the night, which can happen if you drink alcohol or caffeine before going to bed.
Yes, it’s possible that eating late at night before bed may cause weight gain in some people. This may be related to how eating late changes hunger hormones and increases appetite.
You have lots of options when it comes to melatonin-rich foods, including:
Nuts, especially pistachios and almonds
Fish
Milk
Tart cherries
Mushrooms
Eggs
Getting enough sleep is critical for your overall health. Apart from the many factors that can affect sleep, adjusting what and how you eat may help. This means eating plenty of fruits and vegetables, as well as whole grains, lean protein, and healthy fats to keep you satisfied and energized throughout the day. Avoiding heavy meals, or culprits like alcohol, caffeine, and spicy food can also make you more likely to get better sleep.
If you still have difficulty getting restful sleep, talk with a healthcare professional to rule out medical conditions that may interfere with your sleep.
Colrain, I. M., et al. (2018). Alcohol and the sleeping brain. Handbook of Clinical Neurology.
Crispim, C. A., et al. (2011). Relationship between food intake and sleep pattern in healthy individuals. Journal of Clinical Sleep Medicine.
Del Brutto, O. H., et al. (2015). Dietary fish intake and sleep quality: A population-based study. Sleep Medicine.
Fan, H., et al. (2021). Associations of dietary habits and sleep in older adults: A 9-year follow-up cohort study. European Geriatric Medicine.
FoodData Central. (2019). Cereals, Cream of Wheat, regular, 10 minute cooking, dry. U.S. Department of Agriculture.
FoodData Central. (2019). Cereals ready-to-eat, Post Raisin Bran cereal. U.S. Department of Agriculture.
FoodData Central. (2019). Chicken, broilers or fryers, breast, meat only, cooked, roasted. U.S. Department of Agriculture.
FoodData Central. (2019). Turkey, whole, breast, meat only, cooked, roasted. U.S. Department of Agriculture.
González-Gómez, D., et al. (2009). Detection and quantification of melatonin and serotonin in eight sweet cherry cultivars (Prunus avium L.). European Food Research and Technology.
Grandner, M. A., et al. (2013). Dietary nutrients associated with short and long sleep duration. Data from a nationally representative sample. Appetite.
Howatson, G., et al. (2011). Effect of tart cherry juice (Prunus cerasus) on melatonin levels and enhanced sleep quality. European Journal of Nutrition.
Kim, Y., et al. (2021). Bioactivities of phenolic compounds from kiwifruit and persimmon. Molecules.
Kinoshita, T., et al. (2021). Consumption of OLL1073R-1 yogurt improves psychological quality of life in women healthcare workers: Secondary analysis of a randomized controlled trial. BioMed Central Gastroenterology.
Kinsey, A. W., et al. (2015). The health impact of nighttime eating: Old and new perspectives. Nutrients.
Knapp, S., et al. (1975). Calcium activation of brain tryptophan hydroxylase. Life Sciences.
Lin, H., et al. (2011). Effect of kiwifruit consumption on sleep quality in adults with sleep problems. Asia Pacific Journal of Clinical Nutrition.
MedlinePlus. (2024). Tryptophan.
Meng, X., et al. (2017). Dietary sources and bioactivities of melatonin. Nutrients.
National Sleep Foundation. (2025). Get healthy sleep by eating right on schedule
Okuyama, M., et al. (2017). Associations among gastroesophageal reflux disease, psychological stress, and sleep disturbances in Japanese adults. Scandinavian Journal of Gastroenterology.
On, Z. X., et al. (2017). The association between gastroesophageal reflux disease with sleep quality, depression, and anxiety in a cohort study of Australian men. Journal of Gastroenterology and Hepatology.
Özcan, H., et al. (2019). Effects of kefir on quality of life and sleep disturbances in postmenopausal women. Holistic Nursing Practice.
Paroni, R., et al. (2019). Bioactive phytochemicals of tree nuts. Determination of the melatonin and sphingolipid content in almonds and pistachios. Journal of Food Composition and Analysis.
Richard, D. M., et al. (2009). L-tryptophan: Basic metabolic functions, behavioral research and therapeutic indications. International Journal of Tryptophan Research.
Rodak, K., et al. (2021). Caffeine as a factor influencing the functioning of the human body—friend or foe? Nutrients.
Shahdadian, S., et al. (2023). Association between short sleep duration and intake of sugar and sugar-sweetened beverages: A systematic review and meta-analysis of observational studies. Sleep Health.
St-Onge, M., et al. (2023). Exploring the role of dairy products in sleep quality: From population studies to mechanistic evaluations. Advances in Nutrition.
Verde, A., et al. (2022). Melatonin content in walnuts and other commercial nuts. Influence of cultivar, ripening and processing (roasting). Journal of Food Composition and Analysis.
Vujović, N., et al. (2022). Late isocaloric eating increases hunger, decreases energy expenditure, and modifies metabolic pathways in adults with overweight and obesity. Cell Metabolism.
Watson, E. J., et al. (2016). Caffeine consumption and sleep quality in Australian adults. Nutrients.