Eachnight may earn commissions for products you purchase through our links. Our articles and reviews include affiliate links and advertisements, including amerisleep advertising. Learn more Updated October 28, 2026Key TakeawaysFruits and Vegetables That May Help: Kiwis and tart cherries have the most direct (though small) studies behind them. Edamame, leafy greens, bananas, avocados, and mushrooms supply nutrients like magnesium, potassium, and vitamin D that have been linked to sleep.What the Research Shows: Most evidence linking nutrients to sleep comes from observational studies, which can’t show cause and effect. These foods are a healthy, light snack choice, not a sleep treatment.Healthy Bedtime Eating Habits: Keep evening snacks small, avoid heavy, greasy, or spicy meals close to bedtime, and keep a regular sleep schedule.Though we all enjoy the occasional midnight snack, eating sugary and fatty foods can lead to a night of tossing and turning1Verified Source National Library of Medicine (NIH)World’s largest medical library, making biomedical data and information more accessible.View source. However, many fruits and vegetables contain nutrients such as potassium, magnesium, and fiber, and make a lighter late-night snack.Munching on fruits and veggies helps sleepers curb late-night cravings without feeling guilty or worrying about sleep interruptions.In this article, we’ll look at some of the best fruits and vegetables to help you fall and stay asleep each night.1. EdamameEdamame is a filling, protein-rich snack. Half a cup of shelled edamame has about 50 mg of magnesium, or 12% of the Daily Value2Verified Source Office of Dietary Supplements (NIH)Part of the National Institutes of Health, providing science-based information on dietary supplements.View source.In one small 8-week trial3Verified Source National Library of Medicine (NIH)World’s largest medical library, making biomedical data and information more accessible.View source in older adults with insomnia, 500 mg a day of supplemental magnesium improved several insomnia measures, including sleep efficiency and time to fall asleep. Research on magnesium for insomnia is limited overall, though4Verified 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.View source. Edamame also contains fiber to help you feel full.2. Dark, Leafy GreensDark leafy greens, including arugula, spinach, chard, and kale, contain minerals like potassium and magnesium. Half a cup of boiled spinach has about 78 mg of magnesium2Verified Source Office of Dietary Supplements (NIH)Part of the National Institutes of Health, providing science-based information on dietary supplements.View source.Low levels of minerals like potassium are one possible cause of muscle cramps, which can interrupt a good night of rest5Verified Source MedlinePlus (NIH)The National Library of Medicine’s consumer health information service.View source.Not only can this be highly uncomfortable, but it can also make it harder to get back to sleep.3. CarrotsCarrots contain carotenoids, including alpha-carotene and beta-carotene. In a large national survey, people who ate more alpha-carotene were slightly less likely to report trouble falling asleep, though this kind of study can’t show that eating carrots improves sleep6Verified Source Journal of Sleep Research (Wiley)The peer-reviewed journal of the European Sleep Research Society.View source.4. Sweet PotatoesSweet potatoes are an easily digested source of complex carbohydrates and fiber, and they contain potassium.Researchers have studied potassium’s role in sleep, but there isn’t good evidence that eating potassium-rich foods increases deep sleep, the restorative stage of the sleep cycle.5. MushroomsMushrooms are one of the few plant foods that can provide vitamin D, especially mushrooms treated with UV light7Verified Source Office of Dietary Supplements (NIH)Part of the National Institutes of Health, providing science-based information on dietary supplements.View source. A review of studies8Verified Source National Library of Medicine (NIH)World’s largest medical library, making biomedical data and information more accessible.View source found that vitamin D deficiency is associated with sleep problems, including poor sleep quality and short sleep, though that doesn’t prove that getting more vitamin D improves sleep.Half a cup of grilled portabella mushrooms provides about a quarter of the Daily Value for selenium9Verified Source Office of Dietary Supplements (NIH)Part of the National Institutes of Health, providing science-based information on dietary supplements.View source. Selenium plays a role in metabolism and thyroid function and helps protect your body from damage caused by oxidative stress.In one large survey, people who got less selenium were more likely to report trouble falling asleep6Verified Source Journal of Sleep Research (Wiley)The peer-reviewed journal of the European Sleep Research Society.View source.6. BananasNot only are bananas a sweet fruit you can grab on the go, but they are also loaded with nutrients such as vitamin B6 and tryptophan. Vitamin B6 in bananas works to convert the amino acid tryptophan to serotonin.Your body uses serotonin as a chemical precursor to melatonin, the main hormone involved in regulating the sleep-wake cycle.In a small study, eating two bananas raised blood melatonin levels, though sleep wasn’t measured10Verified Source Journal of Pineal Research (Wiley)A peer-reviewed journal on melatonin and the pineal gland.View source. Learn more in our guide to eating a banana before bed.7. CherriesCherries are another great nighttime treat. Tart cherries, especially the Montmorency variety, contain much more melatonin than sweet cherries11Verified Source Journal of Agricultural and Food Chemistry (ACS)A peer-reviewed food chemistry journal from the American Chemical Society.View source, which is likely why they’ve been studied for sleep.In a small study12Verified Source European Journal of Nutrition (Springer)A peer-reviewed nutrition science journal.View source of healthy adults, drinking tart cherry juice concentrate twice a day for a week increased melatonin levels, time asleep, and sleep efficiency.8. AvocadosAvocados are an excellent source of potassium. A whole avocado has roughly 1.5 to 2 times the potassium of a medium banana, depending on the variety13Verified Source U.S. Department of Agriculture (FoodData Central)The USDA’s official database of food nutrient values.View source. They also contain healthy fats and fiber that can help you feel full.9. PineapplesPineapples contain bromelain, an enzyme that breaks down proteins, though there isn’t strong evidence that it helps with digestion14Verified 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.View source. In a small study, drinking pineapple juice raised blood melatonin levels about threefold, though sleep wasn’t measured10Verified Source Journal of Pineal Research (Wiley)A peer-reviewed journal on melatonin and the pineal gland.View source.The fiber and water in pineapple may also help keep you regular.10. MangoesMangoes are another sweet snack you can enjoy before bedtime. There isn’t research on mangoes and sleep, but a few slices are a lighter choice than sweets or chips. Learn more about eating a mango before sleep. 11. KiwisKiwis are a small but mighty fruit when it comes to sleep research. Kiwis contain serotonin, and in a small study, adults with sleep problems who ate two kiwis an hour before bed for four weeks fell asleep faster, slept longer, and reported better sleep quality15Verified Source Asia Pacific Journal of Clinical NutritionA peer-reviewed clinical nutrition journal.View source. The study didn’t have a comparison group, so more research is needed.12. Holy BasilHoly basil, also known as tulsi, is an herb used in traditional medicine to ease stress.In one 8-week trial funded by the ingredient’s maker, a holy basil extract improved self-rated insomnia and lowered cortisol (a stress hormone), though sleep measured by a fitness tracker didn’t change16Verified Source Frontiers in NutritionA peer-reviewed, open-access nutrition journal.View source. Small studies suggest it may help with stress and sleep, but more research is needed17Verified Source Memorial Sloan Kettering Cancer CenterA leading cancer center whose About Herbs database reviews the evidence on herbs and supplements.View source.Talk to your doctor before trying holy basil supplements, especially if you take medications or are pregnant.13. BroccoliBroccoli is not only a nutritional powerhouse but also a great vegetable for better sleep. High in fiber, broccoli supports digestion, helping to prevent any discomfort that might keep you awake. It also contains calcium and some magnesium. A diet rich in fiber has been linked to deeper sleep1Verified Source National Library of Medicine (NIH)World’s largest medical library, making biomedical data and information more accessible.View source.Bonus: The Plain WaterWhile we often focus on what foods to eat for better sleep, hydration is just as important. Drinking pure, plain water may not seem like a sleep enhancer at first glance, but it plays a crucial role in supporting your body’s natural sleep processes. Proper hydration ensures that your body can maintain optimal functions during sleep, from regulating body temperature to supporting digestion and muscle repair. On the other hand, dehydration can lead to discomfort, dry mouth, headaches, and tiredness18Verified Source MedlinePlus (NIH)The National Library of Medicine’s consumer health information service.View source, which can get in the way of restful sleep.Drinking a small glass of water before bed can help ensure you stay hydrated through the night, but it’s important not to overdo it, as consuming too much liquid right before bed may cause frequent trips to the bathroom. Additionally, staying hydrated throughout the day can prevent night-time thirst, which can wake you up in the middle of the night. This is why it’s crucial to keep your water intake steady during the day, so you can avoid gulping down large amounts of water right before bed.So, while you focus on adding sleep-friendly foods to your diet, don’t forget about the basics. Keeping a steady intake of water throughout the day will help ensure that when your head hits the pillow, your body is fully prepared for deep, restful sleep.Additional Foods and Beverages That Support SleepIn addition to the fruits and vegetables already mentioned, there are several other foods and drinks known for their sleep-enhancing properties. Incorporating these into your evening routine can help further improve the quality of your rest.Figs: Figs contain fiber, potassium, magnesium, and calcium. The fiber can help prevent late-night hunger pangs.Milk: A classic bedtime remedy, milk contains tryptophan, an amino acid the body uses to make serotonin and melatonin. Drinking a warm glass of milk before bed can be a comforting part of a bedtime routine.Nuts: Almonds, walnuts, and cashews are good sources of magnesium. Walnuts also contain melatonin19Verified Source Nutrition (Elsevier)A peer-reviewed nutrition science journal.View source. A small handful of nuts in the evening can make a filling snack.Herbs and Herbal Teas: Chamomile, lavender, and valerian root teas are popular bedtime drinks, and most herbal teas are caffeine-free. But research on chamomile and valerian for sleep is limited or inconsistent20Verified 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.View source. Sipping a warm, caffeine-free tea can still be a relaxing part of a bedtime routine.Whole Grains: Whole grains like oats, brown rice, and quinoa contain fiber and minerals like magnesium. A small bowl of oatmeal can help prevent hunger from disrupting your rest.Chickpeas: Chickpeas are a great source of vitamin B6, which plays an essential role in melatonin production. They also contain tryptophan, which can help you feel sleepy. Incorporating chickpeas into your evening meal can help regulate your sleep cycle and promote a more restful night.Yogurt: Like milk, yogurt contains calcium and tryptophan. Opt for a plain, unsweetened version to avoid added sugar before bed.Cheese: Cheese contains casein, a slow-digesting protein that can keep you feeling full through the night. Like other dairy products, it also contains tryptophan and calcium, both of which support sleep. A small piece of cheese before bed can help curb hunger and ensure a comfortable, uninterrupted night of sleep.How Does Nutrition Affect Sleep?The foods we eat don’t just affect our waistline or energy levels; they also play a crucial role in how well we sleep. Nutrition impacts the body’s internal processes, such as hormone production, muscle relaxation, and energy regulation, all of which influence sleep quality. Certain nutrients, like magnesium, potassium, calcium, and B vitamins, may play a role in relaxation and sleep.Observational studies have linked several nutrients, including some carotenoids and selenium, to fewer sleep complaints6Verified Source Journal of Sleep Research (Wiley)The peer-reviewed journal of the European Sleep Research Society.View source. A diet higher in fiber and lower in saturated fat and sugar has also been linked to deeper, less disrupted sleep1Verified Source National Library of Medicine (NIH)World’s largest medical library, making biomedical data and information more accessible.View source. But most of this research shows associations, not cause and effect.Moreover, eating habits like the timing and size of your meals can also affect your sleep. Eating a large, heavy meal right before bed can cause indigestion, making it harder for your body to relax. On the flip side, going to bed hungry can result in sleeplessness as your body is distracted by hunger signals. It’s important to find a balance, where you’re neither too full nor too hungry before heading to bed, to ensure optimal rest. Timing matters too. In our 2026 online survey of 1,000 U.S. adults, people who finished their last meal after 10 p.m. were less likely to get seven or more hours of sleep than those who ate before 7 p.m. (60% vs. 74%). Read more in our late-night eating report. Surveys like ours show associations, not cause and effect.If you’re having a full meal, aim to finish a few hours before bed.Nutrition Tips for Sleep ImprovementFocus on magnesium-rich foods like nuts, seeds, and legumes: Magnesium supports nerve and muscle function, though research on magnesium for sleep is limited. Almonds, pumpkin seeds, and black beans are good choices to include in your evening meal or as a light snack.Include tryptophan-rich foods in your dinner, such as turkey or oats: Tryptophan is an amino acid the body uses to make serotonin, a precursor to melatonin.Limit caffeinated drinks after lunchtime, including hidden sources like chocolate and some medications: Caffeine taken even 6 hours before bed can cut sleep by more than an hour21Verified Source American Academy of Sleep MedicineThe professional society for sleep medicine physicians and researchers in the U.S.View source. Keep an eye out for caffeine in surprising places like flavored water, pain relievers, or chocolate-based snacks.Incorporate small amounts of healthy fats from foods like avocados or chia seeds: Healthy fats help keep you full longer, preventing late-night hunger pangs that can wake you up.Consider a caffeine-free herbal tea after dinner: Small studies suggest passionflower may help sleep22Verified 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.View source, but research is limited, and it shouldn’t be used during pregnancy.Reduce your intake of processed foods and high-sugar snacks in the evening: Processed foods high in refined sugars can cause fluctuations in blood sugar, leading to energy spikes followed by crashes. This may result in restlessness and difficulty staying asleep throughout the night.Sleep Impacts Your Food ChoicesThe relationship between sleep and food is a two-way street. While what you eat can affect how well you sleep, your sleep patterns also influence the food choices you make during the day. When you’re sleep-deprived, your body produces more of the hunger hormone ghrelin and less of the satiety hormone leptin24Verified Source PLOS MedicineA peer-reviewed, open-access medical journal.View source. This imbalance can lead to increased cravings, particularly for sugary, high-calorie foods that provide a quick energy boost. Sleep deprivation also affects the brain’s decision-making areas, making it harder to resist unhealthy foods. You might find yourself reaching for snacks like chips, cookies, or fast food to compensate for fatigue.Moreover, poor sleep can slow down your metabolism and affect insulin sensitivity, making it harder for your body to process sugars efficiently. This can lead to weight gain over time, creating a cycle where lack of sleep fuels poor food choices, disrupting sleep further. Prioritizing good sleep habits helps maintain balanced hormone levels, making it easier to choose nutritious foods that support overall well-being and better sleep quality.The Best Time to Stop Eating Before BedTiming your meals plays a role in how well you sleep at night. Mayo Clinic recommends avoiding heavy or large meals within a couple of hours of bedtime25Verified Source Mayo ClinicA nonprofit academic medical center known for patient care, research and medical education.View source. This window allows your body to complete the digestion process, reducing the risk of discomfort, heartburn, or indigestion that could disturb your sleep. Eating too close to bedtime forces your digestive system to remain active when it should be winding down, which can prevent you from falling asleep easily.For optimal sleep, it’s important to avoid heavy, greasy, or spicy foods in the evening, as they are harder to digest and may trigger acid reflux. On the other hand, a light snack is fine if you’re hungry. By planning your meals with a two- to three-hour buffer before sleep, you give your body the time it needs to process food, allowing for uninterrupted, restorative rest properly.FAQSWhat sleep-inducing foods can I eat before bedtime?Some foods to eat at dinnertime include rice, salmon, cod, and lean white meats like chicken or turkey. These foods contain nutrients like magnesium and tryptophan. Just remember to eat dinner a few hours before bed and avoid other sleep disruptions, such as loud noises, to promote better sleep.What foods should I avoid before bedtime?It’s best to stay away from greasy, fatty meals before bedtime because they can cause nighttime heartburn. Some examples of foods to avoid include ice cream, burgers, and pizza. In addition to heavy, greasy foods, you should also avoid eating spicy foods right before bed, since these can cause indigestion and make it harder to fall asleep. Spicy foods may also raise your body temperature, which can lead to night sweats or midnight wake-ups.Should I Eat Carrots Before Bed?Yes, eating carrots before bed can be a healthy choice! Carrots are low in calories, rich in fiber, and packed with nutrients like vitamin A and potassium. They also have a low glycemic index, meaning they won’t cause significant blood sugar spikes that might disrupt sleep. Plus, their natural sweetness can satisfy late-night cravings without being unhealthy.However, avoid overeating, as consuming too much fiber close to bedtime might cause digestive discomfort for some people. Moderation is key!Is it okay to eat before going to bed?Yes, eating before bed can be okay if done thoughtfully. It’s important to avoid heavy, large meals right before sleep as they can cause indigestion and disrupt rest. However, a light, healthy snack that includes sleep-promoting nutrients, like magnesium or tryptophan, can help you feel satisfied without interfering with sleep. Small portions of foods like bananas, almonds, or yogurt can curb hunger and even promote better sleep.Are eggs a good bedtime snack?Eating an egg before bed can be beneficial, as eggs are a great source of protein and contain tryptophan, an amino acid that helps the body produce melatonin. This hormone is essential for regulating your sleep-wake cycle. A boiled egg or a scrambled egg with a slice of whole-grain toast can be a light, balanced snack that provides a mix of protein and carbs, helping you relax and prepare for sleep.What drinks should I avoid before bed?You should avoid energy drinks and coffee before bed since they’re full of caffeine, but caffeine can also be found in other drinks, like green tea, black tea, some sodas, and some flavored waters. To play it safe, stick with plain water, milk, or caffeine-free herbal teas in the evening. Otherwise, check the drink’s label to see if it contains caffeine, and do your best to stay away from sugary beverages in the hours leading up to your planned bedtime.Which drinks promote better sleep?Several beverages can help promote relaxation and sleep. Warm milk is a classic choice, as it contains tryptophan, which aids in melatonin production. Herbal teas such as chamomile, lavender, or valerian root are also excellent options, as they have calming effects and help reduce stress. Additionally, tart cherry juice contains melatonin and has been studied for sleep12Verified Source European Journal of Nutrition (Springer)A peer-reviewed nutrition science journal.View source, making it another option to drink before bed.Can milk help you fall asleep?Yes, milk is often recommended as a sleep aid due to its content of tryptophan and calcium. Tryptophan helps the body produce serotonin, which is converted into melatonin, the hormone that regulates your sleep cycle. Warm milk can also have a soothing effect, making it easier for your body and mind to relax before bed.Do almonds contribute to better sleep?Yes, almonds can help improve sleep. They are a rich source of magnesium, a mineral that promotes muscle relaxation and helps regulate sleep. Almonds also contain small amounts of melatonin. A small handful of almonds before bed can be a satisfying, sleep-enhancing snack.Does resting with your eyes closed count as sleep?Lying down with your eyes closed doesn’t provide the same benefits as actual sleep, but it can still help you relax. Resting in a dark, quiet environment can allow your body and mind to calm down, potentially leading to sleep. However, only actual sleep allows the brain to go through the full restorative processes, including REM and deep sleep stages, that are critical for cognitive function and overall health.Is it better to stay in bed if I can’t fall asleep?If you can’t fall asleep after 20-30 minutes, it’s actually better to get out of bed and do a calming activity in another room26Verified Source American Academy of Sleep Medicine (SleepEducation.org)The patient education site of the American Academy of Sleep Medicine.View source, like reading or listening to soft music. Staying in bed while feeling anxious about not falling asleep can train your brain to associate the bed with wakefulness. Engaging in a relaxing activity helps your mind wind down, so you can return to bed once you feel sleepy again.How can I fall asleep faster?The best way to fall asleep faster each night is to establish a healthy bedtime routine, starting with going to bed and waking up at the same time each day. Getting into a regular habit reinforces your natural circadian rhythm, and over time, falling asleep at night will feel more natural. You may even find it easier to wake up in the morning.Of course, you should also try to limit TV, technology, and any other blue-light emitting devices in the hours before bed, since these can make it harder to fall asleep. Keep the lights low, journal or read a book, and pencil in time for relaxation before bed.Should I go to sleep hungry?While late-night snacking is not recommended, we do not suggest going to bed hungry. Going to bed on an empty stomach can make it harder for you to go to sleep, so if you’re unable to squeeze in a meal at least three hours before bedtime, you’re better off to satisfy nighttime hunger pangs with light, healthy snacks, and refuel with a big breakfast in the morning. Try nuts, fruits, low-carb veggies, bananas, even protein shakes to tide you over when you’re hungry before bed since these can fill you up without ruining your sleep.ConclusionMunching on fruits and veggies before bed can curb your late-night cravings without disrupting sleep. Not to mention, fruits and vegetables such as bananas, kiwis, tart cherries, and avocados contain nutrients that have been linked to better sleep.So, now you won’t have to worry about going to sleep on an empty stomach the next time you’re craving a snack. If you want, you throw some of these fruits and veggies in a blender, add some protein powder, and make yourself a homemade protein shake before bed.Registered Holistic Nutritionist Brittany Ford advises, “It’s always important to keep in mind how much you’re eating before going to sleep. A full meal right before bed is not recommended, as the body needs time to digest and absorb food properly. This can lead to fermentation of food particles, dysbiosis (the imbalance of good and bad bacteria in the gut), and other digestive issues that come when food sits in the digestive tract longer than needed. A small snack before bed can help curb any cravings without the adverse digestion effects. Choose only one piece of fruit or vegetable. The body should be focused on producing melatonin and other sleep hormones, not digesting and absorbing food this late at night.”About the author Rosie Osmun CERTIFIED SLEEP COACH Rosie Osmun, a Certified Sleep Science Coach, holds a degree in Political Science and Government from the Arizona State University College of Liberal Arts and Sciences. Her academic accomplishments lay a solid foundation for her role in the health and wellness industry. Her certification as a Sleep Science Coach further underscores her proficiency in the field of sleep and wellness.With over 13 years of hands-on experience in the beauty, health, sleep, and wellness industries, Rosie has cultivated a deep understanding of the science of sleep and its impact on overall health and wellbeing. Her dedication to helping others improve their sleep quality is evident in her practical, evidence-based advice and tips.Her contributions to various publications, including Forbes, Bustle, and Healthline, as well as her regular contributions to Amerisleep’s blog, demonstrate her standing in her field. These platforms, recognizing her proficiency, rely on her to provide accurate and relevant information to their readers. Find more articles by RosieAuthor Social Links Follow: Author Linkedin Author Twitter Comments Cancel replyLeave a CommentYour email address will not be published. Required fields are marked * Comment Name Email I agree to the Terms and Conditions of this website. Δ