Foods to eat instead of taking melatonin for better sleep
Regularly adding foods rich in magnesium and melatonin to your diet can benefit sleep quality.How food affects sleep
No single food can guarantee a better night's sleep. Your overall dietary pattern is the most critical factor for both sleep quality and general health, rather than consuming specific foods.
However, regularly including magnesium- and melatonin-rich foods in your diet can benefit sleep; these foods may include:
Melatonin: Although our bodies produce sleep-related hormones naturally, food and environmental factors can influence their function.
Serotonin: The chemical serotonin is produced in the brain and digestive system. It plays an important role in sleep and is essential for the production of melatonin.
Magnesium: This mineral is a building block for melatonin and can help lower levels of the stress hormone cortisol, relax muscles, and soothe the nervous system.
Tryptophan: This amino acid is converted into important molecules and chemicals that help promote sleep, along with many other functions.
B vitamins: B vitamins help produce melatonin. It is better to get them from food rather than supplements, as taking them before bedtime can make it hard to sleep.
Omega-3 and vitamin D: Foods containing this combination—such as fatty fish like salmon—or combining these nutrient-dense foods can help regulate serotonin and improve sleep.
1. Pistachios promote good sleep thanks to melatonin
Pistachios contain the hormone melatonin, which promotes restful sleep. They are also rich in vitamin B6 (one ounce provides about 25% of the daily value), essential for producing melatonin and serotonin (a chemical produced in the body that plays a role in sleep).
2. Spinach
Spinach is a rich source of magnesium, which helps promote muscle relaxation. A lack of magnesium in the diet can make it difficult to sleep. Spinach also contains potassium, a nutrient linked to sleep quality, although more research is needed to determine conclusively whether potassium supplementation improves sleep.
3. Edamame soybeans
Soybeans (edamame) are an abundant source of vitamin B6. They also contain isoflavone compounds that promote serotonin production. In one study, the likelihood of getting a good night's sleep was 2.5 times higher after consuming soybeans.
Other soy sources include tofu, miso, and tempeh. Edamame also contains tryptophan, an amino acid that supports sleep. Your body does not produce tryptophan on its own, so you need to obtain it through food.
4. Chamomile tea
Chamomile is an herb believed to improve sleep quality. Chamomile tea contains an antioxidant called apigenin, which promotes sleep. Chamomile tea is typically caffeine-free, making it a soothing, warm beverage to unwind before bedtime.
5. Cheese
Cheese, especially hard cheese, contains tryptophan, along with magnesium, zinc, and vitamin B6, which help the body convert tryptophan into melatonin and serotonin.
This is a delicious evening snack, especially when paired with complex carbohydrates such as whole-grain crackers.
6. Tart cherry juice
Tart cherry juice (also known as sour cherry juice) is a good source of melatonin. Several studies show that tart cherry juice can help reduce insomnia symptoms.
Tart cherries are also rich in antioxidants and can offer anti-inflammatory benefits. It is important to read the label, as many cherry juices are sweetened. Look for options with no (or little) added sugar.
7. Milk
Milk contains tryptophan and calcium, which help the body absorb tryptophan more effectively. Tryptophan helps produce melatonin.
A glass of warm milk before bed can provide nutrients that promote good sleep, while bringing a pleasant feeling of relaxation. Adding warm milk to a cup of chamomile tea will offer you both of these benefits.
8. Certain animal proteins
Turkey, chicken, fish, and eggs are good sources of tryptophan. Eggs contain melatonin. Fish, chicken, turkey, and pork contain vitamin B6.
Regularly consuming tryptophan-rich foods can help improve sleep quality over time.
Note: In reality, eating protein-rich foods such as meat or poultry close to bedtime can disrupt sleep because they take a long time to break down, and digestion slows down during sleep.
9. Whole grains
Complex carbohydrates such as whole grains can stimulate serotonin release and do not take long to digest, making them a good option if you need a light bedtime snack.
Fiber in whole grains, such as brown rice, quinoa, barley, and oats, can slow down blood sugar spikes, which might otherwise reduce melatonin levels. Whole grains also contain vitamin B6, and quinoa is a good source of tryptophan.
Brown rice helps boost serotonin and contains tryptophan, dietary fiber, several B-complex vitamins, iron, magnesium, and potassium.
10. Certain types of nuts and seeds
Among nuts, pistachios have the highest melatonin content, but other nuts, such as walnuts and almonds, are also good sources of this sleep-promoting hormone. They are also rich in heart-healthy fats.
Peanuts and pumpkin seeds are good sources of tryptophan. Cashews and sesame seeds also contain nutrients that support sleep.
11. Kiwi, bananas, and certain other fruits
Fruits containing nutrients such as potassium, magnesium, and tryptophan can help promote sleep, and can also help improve sleep thanks to compounds like serotonin and melatonin.
Fruits that promote good sleep include bananas, pineapples, and tart cherries. Pairing fruit with protein, such as cheese, can help prevent blood sugar spikes.
12. Avocado
Avocados contain potassium and magnesium. Several studies have linked magnesium to reduced depression and anxiety, both of which can affect sleep. Avocado is a low-sugar fruit that contains healthy fats.
13. Sweet potatoes
Sweet potatoes are also a good source of potassium and magnesium. They also contain dietary fiber.
Sleep-supporting foods do not necessarily have to be consumed right before bedtime to be effective. Instead, maintaining a diverse and healthy diet throughout the day helps the body regulate its circadian rhythm more effectively.
In particular, a dinner that balances lean protein (such as turkey and fish), complex carbohydrates (whole grains) and unsaturated fats will help stabilize blood sugar, laying a solid foundation for deep, restful sleep.

