Several foods contain natural compounds that promote sleep, including melatonin, magnesium, and plant chemicals that calm the nervous system. Eating the right things in the evening, and timing your last meal well, can meaningfully improve how quickly you fall asleep and how long you stay there.
Tart Cherry Juice
Tart cherry juice is one of the most studied sleep foods, and for good reason: it’s one of the few dietary sources of melatonin, the hormone your brain produces to signal bedtime. A serving of tart cherry juice concentrate contains roughly 85 micrograms of melatonin per day’s dose. That’s a small amount compared to supplement pills, but it appears to work differently when delivered through food alongside other beneficial plant compounds.
In a study published in the European Journal of Nutrition, participants who drank tart cherry juice significantly increased their total sleep time compared to both their baseline and a placebo. The improvement ranged from about 15 to 64 additional minutes of sleep. Look for tart (Montmorency) cherries specifically, not sweet cherries. A small glass of concentrate mixed with water about an hour before bed is the typical approach used in research.
Kiwifruit
Eating two kiwis before bed has become a popular sleep hack, and there’s some science behind it. Kiwis are rich in serotonin, a brain chemical that your body converts into melatonin, and they also pack a concentrated dose of antioxidants and folate. A four-week study found that eating two green kiwis one hour before bed was associated with improved sleep quality. In a separate acute study, poor sleepers who ate fresh kiwi with their evening meal fell asleep in about 17 minutes, while those who consumed a dried kiwi equivalent fell asleep in under 11 minutes, compared to nearly 21 minutes for the control group.
That said, these differences didn’t reach statistical significance in the short-term study, which suggests the benefits may build over consistent nightly use rather than working as a one-night fix. Kiwis are also low in calories and easy on the stomach, making them a practical bedtime snack.
Nuts, Especially Almonds and Walnuts
Almonds contain small but measurable amounts of melatonin and are one of the best food sources of magnesium, a mineral directly involved in sleep regulation. Walnuts carry even higher melatonin levels than most other nuts. A one-ounce handful of either makes a reasonable evening snack that won’t spike your blood sugar or leave you uncomfortably full.
The magnesium in nuts is part of what makes them useful. Magnesium helps activate your parasympathetic nervous system, the “rest and digest” mode that prepares your body for sleep. Many people don’t get enough magnesium from their diet alone, and even a modest increase from food sources can help close that gap.
Magnesium-Rich Foods
Beyond nuts, several other foods deliver meaningful amounts of magnesium: pumpkin seeds, dark leafy greens like spinach, black beans, and dark chocolate. Mayo Clinic experts recommend 250 to 500 milligrams of elemental magnesium as a sleep-supportive dose, taken at bedtime. Getting there through food alone takes effort, but regularly including these foods at dinner moves you in the right direction.
Magnesium works partly by regulating neurotransmitters that quiet the nervous system and partly by helping control melatonin production itself. People who are low in magnesium often report restless, light sleep, and correcting the deficiency through diet tends to improve both sleep quality and the ability to stay asleep through the night.
Chamomile Tea
Chamomile tea contains a plant compound called apigenin that binds to the same brain receptors targeted by certain anti-anxiety medications. This creates a mild calming effect that reduces the mental alertness keeping you awake. A warm cup about 30 to 45 minutes before bed gives the apigenin time to take effect while the ritual itself helps signal to your body that the day is winding down.
Chamomile won’t knock you out, but for people whose main sleep problem is a racing mind at bedtime, it can take the edge off enough to shorten the time it takes to drift off. Passionflower tea works through a similar mechanism and is worth trying if chamomile doesn’t appeal to you.
Other Foods Worth Including
Fatty fish like salmon, mackerel, and sardines provide both vitamin D and omega-3 fatty acids, a combination that supports serotonin production. Turkey and other poultry contain tryptophan, an amino acid your body uses to build serotonin and then melatonin. Whole grains like oats and brown rice help tryptophan cross into the brain more efficiently by triggering a small insulin response that clears competing amino acids from the bloodstream.
Warm milk’s reputation as a sleep aid isn’t just folklore. Dairy contains both tryptophan and calcium, which helps the brain use tryptophan to produce melatonin. The warmth and the comfort association likely contribute as well.
Foods and Drinks That Hurt Sleep
What you avoid matters as much as what you eat. Caffeine has a half-life of roughly five to six hours, meaning half the caffeine from an afternoon coffee is still circulating in your system at bedtime. Cutting off caffeine by early afternoon gives your body enough time to clear it.
Alcohol is trickier because it initially makes you drowsy. But as your body metabolizes it overnight, alcohol pulls you out of the deep, restorative stages of sleep. The result is waking up at 2 or 3 a.m. and struggling to fall back asleep. Even moderate drinking in the evening fragments sleep architecture in ways you may not fully notice but that leave you feeling unrested the next day.
Spicy and high-fat foods close to bedtime can trigger acid reflux when you lie down, and sugary snacks cause blood sugar fluctuations that promote middle-of-the-night waking.
Timing Your Last Meal
Cleveland Clinic recommends finishing your last substantial meal about three hours before bed. This gives your digestive system enough time to process the food so it won’t disrupt your sleep, while keeping the window short enough that you won’t climb into bed hungry. For people prone to acid reflux, this three-hour buffer is especially important because lying down with a full stomach pushes stomach acid into the esophagus.
If you need something closer to bedtime, keep it light and sleep-friendly: a small handful of almonds, a kiwi, a cup of chamomile tea, or a small glass of tart cherry juice. These give your body useful sleep compounds without the digestive burden of a full meal.