Several foods contain nutrients that support REM sleep, the phase where your brain consolidates memories and processes emotions. REM makes up about 25% of a typical night’s sleep, cycling in roughly every 90 minutes, with the longest REM periods occurring toward morning. The nutrients that matter most for REM are tryptophan, vitamin B6, magnesium, and omega-3 fatty acids, all of which feed into your brain’s production of serotonin and melatonin.
Tryptophan: The Building Block of REM Sleep
Tryptophan is an amino acid your body can’t make on its own. Once absorbed, it converts into serotonin and then into melatonin, the two chemicals most directly involved in regulating when you fall asleep and how much time you spend in REM. The connection is strong enough that when researchers experimentally depleted tryptophan in healthy volunteers, REM sleep was delayed by an average of 21 minutes, sleep became 58% more fragmented, and activity during the first REM period doubled in intensity. In other words, less tryptophan means your brain struggles to enter and maintain REM normally.
The richest food sources of tryptophan include turkey, chicken, eggs, milk, cheese, nuts (especially pumpkin seeds and almonds), tofu, and fish like salmon and tuna. Pairing these with a small amount of carbohydrate helps tryptophan cross from your bloodstream into the brain more efficiently, because carbs trigger insulin, which clears competing amino acids out of the way.
Fatty Fish and Omega-3s
Salmon, mackerel, sardines, and other oily fish deliver a combination of omega-3 fatty acids, vitamin D, and the tryptophan mentioned above. Omega-3s are involved in serotonin release, which directly feeds the sleep-wake cycle. They’ve been shown to improve sleep quality in both children and adults. Fatty fish also provides one of the few significant dietary sources of vitamin D, and low vitamin D levels are independently associated with poorer sleep.
Two to three servings per week is a reasonable target. If fish isn’t part of your regular diet, walnuts and flaxseeds offer plant-based omega-3s, though in a form your body converts less efficiently.
Tart Cherry Juice
Tart cherries are one of the few natural food sources of melatonin, and they also contain tryptophan. Drinking tart cherry juice has been shown to increase the amount of melatonin available in the body and promote both longer and better-quality sleep. The studied amount is up to 16 ounces per day or 480 milligrams of tart cherry extract in capsule form, taken for up to two weeks. It’s not a dramatic effect, but it’s one of the more consistently supported food-sleep connections in the research.
Look for 100% tart cherry juice (Montmorency variety) rather than cherry juice blends, which are often diluted with apple juice and added sugar.
Kiwifruit
Eating two green kiwis about an hour before bed has been linked to improved sleep quality over a four-week period. Kiwis are unusually rich in serotonin, folate, and antioxidants that may reduce the kind of low-grade inflammation that disrupts sleep. They’re also a practical choice because they’re low in calories, easy to digest, and unlikely to cause the kind of acid reflux that heavier foods can trigger at night.
Vitamin B6 and REM Intensity
Vitamin B6 plays a key role in converting tryptophan into serotonin. One study found that participants who took vitamin B6 in the afternoon subsequently spent 33% more time in REM sleep compared to a placebo group. A larger trial confirmed that B6 significantly increased the amount of dream content people could recall the next morning, which is a reliable marker of REM activity. The proposed mechanism is interesting: B6 boosts serotonin early in the night, which initially suppresses REM. This creates a rebound effect in the final hours of sleep, producing longer and more intense REM periods toward morning.
You don’t need a supplement to get this effect. Foods naturally high in B6 include chickpeas, bananas, avocados, potatoes, spinach, poultry, fish, eggs, and whole grain cereals. A single cup of chickpeas provides about 1 milligram of B6, which is more than half the daily recommended intake for most adults.
Magnesium-Rich Foods
Magnesium supports sleep through two pathways. It binds to GABA receptors in the brain, the same calming system that sleep medications target, promoting muscle relaxation and reducing nervous system activity. It also helps regulate melatonin production. Both of these functions are essential for cycling smoothly through sleep stages, including REM.
Good sources include dark leafy greens (spinach, Swiss chard), pumpkin seeds, almonds, cashews, black beans, dark chocolate, and whole grains. Many adults fall short of recommended magnesium intake, so adding even one or two of these foods to your evening routine can make a noticeable difference.
What to Avoid Before Bed
Alcohol is the single biggest dietary disruptor of REM sleep. While it may help you fall asleep faster, it actively suppresses REM during the first half of the night. As your body metabolizes the alcohol, a REM rebound effect kicks in, producing fragmented, restless sleep in the early morning hours. Research from the American Academy of Sleep Medicine suggests that long-term heavy drinking can cause potentially permanent changes to REM regulation, with disrupted sleep persisting even during extended sobriety.
Caffeine consumed within six to eight hours of bedtime delays sleep onset, which compresses the later sleep cycles where REM is most concentrated. High-sugar foods and refined carbohydrates eaten close to bedtime haven’t been shown to specifically reduce REM, but they do disrupt deep sleep, and since your brain cycles between deep sleep and REM all night, any disruption to one stage tends to destabilize the other.
Timing Your Evening Meal
Even the right foods can backfire if you eat them too close to bedtime. Finishing your last meal about three hours before sleep gives your body enough time to digest without causing reflux or discomfort that fragments sleep cycles. This doesn’t mean you can’t have a light, sleep-promoting snack closer to bed. A small bowl of tart cherry juice, a couple of kiwis, or a handful of walnuts eaten an hour before bed is unlikely to cause digestive issues and may actively support your transition into sleep.
The overall pattern matters more than any single food. A diet consistently rich in tryptophan, omega-3s, magnesium, and B6, combined with limited alcohol and a reasonable gap between dinner and bedtime, creates the best conditions for your brain to cycle fully into REM throughout the night.

