Skip to main content
Melatonin

6 Foods That Naturally Contain Melatonin for a Better Night’s Sleep

Joanna Foley, RDKatie E. Golden, MD
Written by Joanna Foley, RD | Reviewed by Katie E. Golden, MD
Updated on July 1, 2026

Key takeaways:

  • Melatonin is a natural hormone that plays an important role in sleep.

  • Some foods naturally contain melatonin, including pistachios, tart cherries, mushrooms, and eggs.

  • Certain health conditions can lead to low melatonin levels. In healthy people, low melatonin can be due to aging or too much exposure to artificial light in the evenings. 

Save on related medications

Melatonin is a hormone your body naturally makes in response to darkness. It plays an important role in regulating your sleep-wake cycle. But things like exposure to light at night, getting older, and other factors can interfere with melatonin production. Fortunately, some foods naturally contain melatonin, and other foods can help your body make more of it. 

What are the top melatonin-rich foods?

Melatonin is produced by animals, plants, and microorganisms. Because of this, it’s naturally found in some foods and drinks. 

But the amount of melatonin in food can vary widely. It depends on factors like the type of plant or animal product, how it was grown or raised, and how it was processed. Researchers also don’t fully know how well the body absorbs and uses melatonin found in foods. 

Because of this, foods and drinks likely don’t contain enough melatonin to have a major impact on sleep. Melatonin supplements contain a more concentrated dose.

Here are some foods that naturally contain melatonin. 

1. Nuts

Nuts are the richest plant source of melatonin. Pistachios and almonds are especially high in melatonin. As a bonus, pistachios also contain vitamin B6, which helps your body convert the amino acid tryptophan into melatonin. But roasting nuts may reduce their melatonin content. Look for raw pistachios, almonds, or other nuts for an evening snack — or anytime. 

2. Fish

Fish is one of the richest animal-based sources of melatonin. One study found that children who ate fish at least once a week reported sleeping better than those who didn’t. Fish is also rich in omega-3 fatty acids, which have many benefits for health, including potentially improving sleep. 

3. Milk

You may have heard the advice to drink a glass of warm milk before bed. Milk contains both melatonin and tryptophan, an amino acid that can influence relaxation and sleep.

Interestingly, the amount of melatonin in milk may depend on the time of day it was collected. Milk collected at night can have up to 10 times more melatonin than milk collected during the day. This applies to both cow’s milk and human breast milk

Although research has yet to prove that a single glass of milk contains enough melatonin to make much of a difference in sleep, it can still be a soothing bedtime ritual.

4. Tart cherries

Tart cherries are rich in melatonin and have long been associated with sleep. For a concentrated dose of tart cherries, try tart cherry juice

A few small studies — one on older adults with insomnia and another on healthy adults — found that cherry juice increased sleep time and quality. But the improvements were only by a small amount. 

Keep in mind that tart cherry juice can be high in sugar. It’s best to limit the amount you drink to about 4 oz to 6 oz. 

5. Mushrooms

Adding mushrooms to your favorite stir-fries, pasta dishes, and eggs can provide both melatonin and tryptophan. In one animal study, reishi mushrooms improved sleep in mice. 

6. Eggs

Eggs are one of the richest animal sources of melatonin. They’re also highly nutritious, providing protein, vitamin D, and selenium

Why is melatonin so important?

Melatonin helps regulate your circadian rhythm, also called your body’s internal clock. As darkness falls, your body produces more melatonin to signal that it’s time to sleep. This helps you fall asleep and keep a consistent sleep-wake cycle.

But melatonin does more than support sleep. Research suggests that it acts as an antioxidant by helping to protect your cells from damage caused by unstable molecules called free radicals. Research also suggests that melatonin may help reduce inflammation throughout your body. 

Because of its effects on sleep and overall health, melatonin supplements are often used to help manage jet lag, sleep disorders, and anxiety before surgery.

What are the signs of low melatonin?

When your melatonin is low, it can make it harder to regulate normal sleep-wake cycles. This can lead to: 

  • Trouble falling asleep 

  • Waking up often during the night 

  • Less total sleep time 

  • Excessive daytime drowsiness 

What causes low melatonin? 

Several factors can interfere with melatonin production, including: 

Some people are more likely to have low melatonin levels, including: 

  • Older adults, since melatonin production decreases with age

  • People with Alzheimer’s disease

  • People with fibromyalgia

How can you boost your melatonin naturally?

Adding certain foods to your diet isn’t the only way to increase melatonin. Other ways to help increase or maintain your melatonin naturally include:

  • Soaking up the morning sun: Getting sunlight in the morning helps support a healthy circadian rhythm. This promotes normal melatonin production later in the day, which may help you fall asleep more easily at night. More melatonin is just one of many potential benefits of sunlight

  • Limiting artificial light in the evening: Artificial light might help you stay focused and alert during the day. But it can interfere with your sleep at night. Research suggests that evening exposure to blue light may suppress melatonin, which could make it hard to fall asleep. Try to limit screen time and other artificial light sources in the evening. 

  • Paying attention to caffeine intake and timing: Coffee and other sources of caffeine can also suppress melatonin, disrupt your circadian rhythm, and hurt your sleep. For better sleep, experts suggest cutting caffeine around 8 hours before bed. 

  • Managing stress: Chronic stress may reduce serotonin, a chemical that helps produce melatonin. While it’s not always possible to cut all stress from your life, using stress-management techniques can help reduce it. 

Frequently asked questions

Yes, grapes contain melatonin, and so do products made from grapes, like wine and grape juice. Grapes also contain resveratrol, a plant compound that may influence your body’s circadian rhythm and play a role in sleep regulation. But it’s important to note that the reason wine makes you sleepy is from the alcohol, not the small amount of melatonin in grapes.

Foods that naturally contain both melatonin and serotonin include tart cherries, walnuts, tomatoes, and grapes. Serotonin is a chemical messenger that is best known for its effects on mood. It also plays a role in other functions throughout your brain and body, including sleep. But foods that contain serotonin, melatonin, tryptophan, or a combination of these compounds may still support healthy sleep.

The bottom line

Melatonin won’t magically turn a handful of pistachios or tart cherries into a sleeping pill. But including melatonin-rich foods in your diet may help support healthy sleep when combined with other sleep-supportive habits. Some helpful habits include getting morning sunlight, cutting back on evening screen time, and avoiding caffeine late in the day. If you have ongoing sleep problems, check in with a healthcare professional to see whether low melatonin or another issue could be playing a role. 

why trust our exports reliability shield

Why trust our experts?

Joanna Foley, RD
Written by:
Joanna Foley, RD
Joanna Foley, RD, is a registered dietitian (RD) and the owner of joannafoleynutrition.com, a private nutrition consulting business. She has previously worked as a clinical dietitian and outpatient renal dietitian.
Meredith Hoffa
Edited by:
Meredith Hoffa
Meredith Hoffa is a senior health editor at GoodRx, where she leads journalists and clinicians covering various well-being topics, particularly in diet and nutrition.
Katie E. Golden, MD, is a board-certified emergency medicine physician and a medical editor at GoodRx.

References

GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.

Was this page helpful?

Latest articles