4 foods to eat for better sleep, plus 4 to avoid

Following these tips may help you get the rest you need.

Updated on August 21, 2025.

Often, the first step to getting better sleep is practicing good sleep hygiene. That means doing things like turning off electronic devices 30 to 60 minutes before bedtime and keeping your room cool, dark, and quiet at night.

It may also mean paying attention to what you eat and drink in the hours before you turn out the lights. Timing is key; avoid large meals close to bedtime since they can lead to heartburn, acid reflux, and insomnia. Your diet choices are also important, since what you eat can play a significant role in the quality of your rest.

Foods that can affect sleep

Here are four foods that could support healthy sleep, plus four others you may want to limit or avoid.

DO: Eat cherries—especially tart ones

Drinking tart cherry juice before bed may help you sleep better, according to several small studies. That’s because tart cherries may be a good source of melatonin, a hormone that plays a role in sleep cycles.

DON’T: Drink caffeinated beverages

Having caffeinated drinks like coffee, tea, or soda past early afternoon can set you up for a poor night of sleep. Caffeine is a stimulant that works quickly (within minutes) to increase your alertness. The effect is long-lasting, too, continuing to keep you alert for several hours.

DON’T: Drink alcohol before bed

It’s true that alcohol can have a tranquilizing effect. But while a nightcap may help you fall asleep in the first place, drinking a glass of wine or a cocktail before bed may ultimately prevent you from reaching a deep, restful state. It could also lead to disjointed sleep—especially if you have to use the bathroom multiple times at night.

DO: Eat a banana

Bananas are high in the minerals magnesium and potassium, which may help to ease sleeplessness. Magnesium is also found in dark, leafy greens, avocados, and many nuts and seeds.

DON’T: Overeat high-fat foods

Consider skipping ice cream or other desserts with a high fat content. Some experts believe eating a fatty meal right before bedtime can stimulate acid production and cause heartburn, leading to poor sleep quality and daytime drowsiness.

DON’T: Order the chocolate dessert

Chocolate is an under-the-radar source of caffeine. Just like you wouldn’t knock back a cup of coffee before going to bed, you may want to avoid foods made with cocoa and chocolate.

DO: Eat whole grains

Many dietitians recommend complex carbohydrates, such as whole grains and wheat-based breads and pastas, to support sleep. This is partly because they provide a steady release of insulin into your blood, which can help you achieve restful sleep. Try a whole-wheat pasta for dinner, or experiment with grains like farro, bulgur, or brown rice.

DO: Have a cup of chamomile tea

Made from dried chamomile flowers, chamomile tea has been used to support healthy sleep for generations. Some experts believe the calming act of preparing and drinking herbal tea at bedtime may have a sleep-promoting effect, while others suggest chamomile contains natural compounds that could impart sleep benefits. The scientific evidence for chamomile is limited, though some research has found it may have small benefits in terms of sleep quality.

One myth that just won't go away

Were you expecting to see turkey on this list? Though you may associate drowsiness with eating a Thanksgiving feast, experts say sleepiness comes from overeating rather than the tryptophan in your turkey. In truth, turkey, chicken, and ground beef all have similar levels of the amino acid.

Article sources open article sources

Centers for Disease Control and Prevention. Sleep: About Sleep. May 15, 2024.
Cleveland Clinic. Is Eating Before Bed Bad for You? March 23, 2022.
Losso JN, Finley JW, et al. Pilot Study of the Tart Cherry Juice for the Treatment of Insomnia and Investigation of Mechanisms. Am J Ther. 2018;25(2):e194-e201.
Chung J, Choi M, et al. Effects of Short-Term Intake of Montmorency Tart Cherry Juice on Sleep Quality after Intermittent Exercise in Elite Female Field Hockey Players: A Randomized Controlled Trial. Int J Environ Res Public Health. 2022;19(16):10272. Published 2022 Aug 18.
Burkhardt S, Tan DX, et al. Detection and quantification of the antioxidant melatonin in Montmorency and Balaton tart cherries (Prunus cerasus). J Agric Food Chem. 2001;49(10):4898-4902.
American Academy of Sleep Medicine. Sleep and caffeine. January 29, 2018.
The Sleep Charity (UK). Foods that help you sleep. December 2020.
NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Consumers. March 22, 2021.
National Sleep Foundation. The Link Between Nutrition and Sleep. November 12, 2020.
Johns Hopkins Medicine. Better Sleep: 3 Simple Diet Tweaks. Accessed August 19, 2025.
Northwestern Medicine. Eats to Help You Sleep. June 2025.
Oldways Whole Grain Council. Whole Grains: Good Mood Food! Jue 18, 2014.
Sah A, Naseef PP, et al. A Comprehensive Study of Therapeutic Applications of Chamomile. Pharmaceuticals (Basel). 2022 Oct 19;15(10):1284.

More On

Do Sleep Disorders Have More Serious Consequences for Women or Men?

video

Do Sleep Disorders Have More Serious Consequences for Women or Men?
There is no difference in the consequences sleep disorders have for women or men. In this video Patricia Geraghty, NP describes both the short-term an...
5 common sleep problems, solved

slideshow

5 common sleep problems, solved
Learn about these common issues that may occur during sleep—and what to do about them.
Here’s how to counter difficult summer sleep

video

Here’s how to counter difficult summer sleep
If you've ever experienced difficult sleep during the summer, you're not alone. This video give 6 tips to help make the longer days less impactful to...
Answering your most popular sleep questions

video

Answering your most popular sleep questions
What type of exercise can help you sleep better? Can you use over-the-counter sleep aids? Carol Ash, DO, Michael Roizen, MD, Nina Radcliff, MD, Kevin ...
Sleep meditation for the new year

video

Sleep meditation for the new year
Join meditation teacher Rosie Acosta as she guides you to better your sleep health.