No single food works like a sleeping pill. But what you eat, and when, can nudge the body’s sleep systems in one direction or the other. Foods that help sleep tend to do one of three things: supply the building blocks for melatonin, support serotonin signaling, or steady your blood sugar through the night so a dip doesn’t wake you. The strongest evidence sits behind a handful of these — tart cherries, kiwi, milk, and fatty fish — while others are plausible but not yet proven in large human trials.
Here is what the science actually supports, what is still uncertain, and how to put it into a routine that works with your body rather than against it.
What Foods Help You Sleep?
The clearest human evidence points to tart cherries, kiwi, and dairy as foods that may support sleep, with fatty fish and walnuts showing promise in smaller studies. The common thread is either a direct supply of melatonin, a boost to tryptophan availability, or nutrients that support the enzymes your body uses to build sleep-regulating compounds.
Tart cherry is the most studied. Small randomized trials have found that drinking tart cherry juice was linked to modest improvements in sleep time and sleep efficiency in adults with insomnia. The likely mechanism is that tart cherries contain naturally occurring melatonin and also supply tryptophan. The effect sizes are modest, not dramatic. This is a food that may help, not a treatment that resolves insomnia.
Kiwi has been examined in at least one small trial in adults with sleep problems. Participants who ate kiwi before bed reported falling asleep faster and sleeping longer. The study was small and the mechanism is not fully understood, so treat this as promising rather than settled.
Dairy — milk in particular — has a long folk reputation for aiding sleep. The evidence is thinner than the reputation. Milk contains tryptophan, but the amount is not large enough on its own to explain a sleep effect. The more reliable explanation may be behavioral: a warm drink before bed is a calming ritual, and the psychological association matters.
Fatty fish such as salmon and sardines have been linked to better sleep quality in some observational work, possibly through vitamin D and omega-3 fatty acids. The evidence is not strong enough to call fish a sleep treatment, but it fits a generally sleep-supportive diet.
How Does Tryptophan in Food Affect Sleep?
Tryptophan is an amino acid your body cannot make, so you have to get it from food. It is the raw material for serotonin, and serotonin is the raw material for melatonin — the hormone that signals to your brain that it is time to sleep.
Here is the part most people miss. Eating more tryptophan does not automatically mean more serotonin or more melatonin. Tryptophan competes with other amino acids for the same transport system into the brain. If you eat a protein-heavy meal, tryptophan arrives alongside larger amounts of other amino acids and gets crowded out.
This is why the classic advice to eat a big turkey dinner for sleep is oversold. Turkey does contain tryptophan, but so does chicken, beef, eggs, and most protein foods. The drowsiness after a large holiday meal more likely comes from eating a very large meal, drinking alcohol, and the general fatigue of a long day.
What actually helps tryptophan reach the brain is eating it alongside carbohydrates. Carbohydrates trigger insulin release, which causes other amino acids to be taken up by muscle tissue, leaving tryptophan relatively more available to cross into the brain. This is the physiology behind the old advice of a small carbohydrate snack before bed.
- Good tryptophan sources: milk, eggs, cheese, chicken, turkey, tofu, oats, nuts and seeds
- Pair with a small carbohydrate: a piece of whole-grain toast, a banana, or a small bowl of oats
- Keep portions small — a heavy meal close to bedtime can disrupt sleep through reflux and digestion
Food supplies the building blocks. It does not override the bigger drivers of sleep, which are light exposure, timing, stress, and caffeine.
Does Melatonin in Food Actually Help You Sleep?
Some foods contain melatonin, but the amounts are small and vary widely. Tart cherries, walnuts, and some grains and tomatoes are among the foods that naturally contain it. Whether eating these raises your body’s melatonin enough to change sleep is not settled.
Melatonin in food is not the same as a melatonin supplement. The doses studied in supplement research are typically far higher than what you would get from a serving of food. Dietary melatonin is also broken down and metabolized quickly, and how much reaches circulation depends on the food, the serving, and the person.
What the tart cherry trials suggest is that the combination of melatonin, tryptophan, and other compounds in the fruit may work together. That is different from saying “melatonin in food makes you sleepy.” The honest position: some foods contain melatonin, some small trials show modest sleep benefits from specific foods, and the mechanism is probably more than melatonin alone.
Which Nutrients and Minerals Support Sleep?
Several minerals and vitamins are involved in the body’s sleep pathways, though the evidence for supplementing them to improve sleep in healthy people is limited. Food sources are the safer and better-supported route.
Magnesium is involved in hundreds of enzyme reactions, including those that regulate the nervous system and muscle relaxation. Low magnesium intake has been associated with poorer sleep in some studies, but whether supplementing improves sleep in people who are not deficient is not well established. Food sources include leafy greens, nuts, seeds, and whole grains.
Vitamin B6 is required for the conversion of tryptophan to serotonin. Severe deficiency would impair that pathway, but taking extra B6 beyond your needs has not been shown to improve sleep. Food sources include poultry, fish, potatoes, and bananas.
Vitamin D has been linked to sleep quality in observational studies, but the relationship is complex and reverse causation is possible — poor sleep can affect health in ways that also affect vitamin D. No strong trial evidence shows that correcting vitamin D improves sleep in people with normal levels.
Omega-3 fatty acids are involved in brain function and have been studied for sleep, with mixed results. Some research suggests a link between higher omega-3 intake and better sleep, but the evidence is not consistent enough to recommend fish oil as a sleep aid.
The pattern across all of these: the nutrient matters for normal body function, but “more of it” does not reliably mean “better sleep” unless you were deficient to begin with.
What Should You Avoid Eating Before Bed?
What you avoid may matter as much as what you eat. Several common evening habits work against sleep, and the evidence for these is stronger than the evidence for any single sleep-promoting food.
Caffeine is the biggest one. Caffeine blocks adenosine, the compound that builds up during the day and creates sleep pressure. Its half-life in most adults is around five hours, meaning a significant portion is still in your system hours after your last cup. For many people, caffeine after early afternoon can delay sleep onset and reduce sleep quality, even if they fall asleep fine.
Alcohol is widely believed to help sleep because it can make you drowsy. It does not improve sleep quality. Alcohol can help you fall asleep faster but tends to fragment sleep in the second half of the night and suppress REM sleep. It is one of the most common self-defeating sleep habits.
Large, heavy, or spicy meals close to bedtime can cause reflux and discomfort that disrupt sleep. This is especially relevant for people prone to acid reflux. A lighter evening meal eaten a few hours before bed is generally easier on sleep.
Lots of fluids late in the evening increase the chance of waking to use the bathroom. This is simple but often overlooked.
How Should You Time Your Meals for Better Sleep?
Timing matters, and the general principle is to finish eating a few hours before bed. A large meal right before sleep puts your digestive system to work when your body is trying to wind down, and it raises the risk of reflux.
If you are hungry close to bedtime, a small snack is fine and may even help. The classic combination — a small carbohydrate with a little tryptophan-containing protein — fits the physiology described earlier. Think a banana with a spoon of peanut butter, a small bowl of oatmeal, or a glass of milk with a few whole-grain crackers.
Keep the snack small. The goal is to take the edge off hunger and steady blood sugar, not to eat a second meal. A large snack can cause discomfort and disrupt sleep.
There is also a case for consistency. Eating meals at roughly the same times each day supports your body’s circadian rhythm, the internal clock that governs sleep and wakefulness. Irregular eating patterns can blur that rhythm. The evidence for meal timing as a sleep intervention is not strong, but the general principle of regular routines is well supported.
Do Sleep-Promoting Foods Replace Good Sleep Habits?
No. Food is one small lever among several much larger ones. If your sleep problems come from caffeine, irregular bedtimes, a bright screen at midnight, or unmanaged stress, no snack will fix that.
The foundations of good sleep are well established: a consistent sleep and wake time, a dark and cool bedroom, limiting caffeine and alcohol, getting daylight exposure during the day, and managing stress. Food can support those foundations. It cannot substitute for them.
If you have persistent trouble sleeping — difficulty falling asleep or staying asleep for weeks, daytime fatigue that affects your life, or symptoms like loud snoring and gasping — talk to a doctor. Chronic insomnia and sleep apnea are real medical conditions that need proper assessment. Dietary changes are not a treatment for either.
Frequently Asked Questions
What is the best food to eat before bed for sleep?
Tart cherries have the most human evidence behind them, with small trials linking tart cherry juice to modest sleep improvements. A small carbohydrate snack paired with a tryptophan source, like milk or a banana, is also a reasonable choice.
Does warm milk really help you sleep?
The evidence for milk as a sleep aid is weak, and its tryptophan content is not large enough on its own to explain a strong effect. The calming ritual of a warm drink before bed may be doing more than the milk itself.
Can eating turkey make you sleepy?
Turkey contains tryptophan, but so do many protein foods, and the amount is not enough to make you drowsy on its own. Post-holiday drowsiness is more likely from a large meal, alcohol, and fatigue than from turkey.
Should I take a magnesium supplement to sleep better?
Magnesium is involved in nervous system function, but there is no strong evidence that supplementing improves sleep in people who are not deficient. Food sources like leafy greens, nuts, and seeds are the better-supported route, and you should check with a doctor before starting any supplement.

