Key takeaways:
Melatonin is a hormone that regulates your sleep-wake cycle, also known as your circadian rhythm.
The amount of melatonin your body makes is influenced by light exposure. But other lifestyle factors can also play a role in how much of it your body makes.
Some natural ways to boost melatonin include getting sunlight in the morning, avoiding screens before bed, and eating melatonin-rich foods.
Melatonin is a hormone that plays a major role in your sleep-wake cycle — also known as your circadian rhythm. There’s always melatonin in your body, but the amount changes throughout the day.
Typically, your melatonin levels rise when the sun goes down, signaling to your body that it’s time to go to bed. Levels peak between 2AM and 4AM. Then they decrease again throughout the early morning hours. Melatonin levels are lowest when you wake up. Then they increase again in the evening in response to darkness.
Most of the time, your body is able to naturally regulate its production of melatonin. But many factors can affect your melatonin levels and interfere with a good night’s rest.
Search and compare options
Natural ways to increase melatonin
Taking a melatonin supplement is one option. But you can also make simple changes to your daily routine that may help you naturally increase your melatonin production.
1. Get sunlight in the morning
Getting exposure to sunlight early in the morning can make you more alert during the day. It can also trigger your body to produce nighttime melatonin earlier, so you feel sleepy earlier at night.
Sunlight has additional benefits that might contribute to better sleep. These include:
Increased serotonin: Serotonin is a brain chemical that regulates your mood, but it also plays a role in other processes, including sleep.
Increased vitamin D: This nutrient has many important roles in the body, like supporting healthy brain function and regulating melatonin.
Fighting seasonal affective disorder: Lack of sunlight can increase your risk for seasonal affective disorder (SAD). This is a type of depression that usually affects people in the fall or winter. SAD can cause sleep changes. But sunlight and light therapy are two effective treatments for SAD.
Start your day with 5 to 10 minutes outside if you can. If you can’t, open your curtains as soon as you wake up to let some sunlight in.
2. Sleep in a dark room
Sunlight during the day is helpful. But too much light at night — even dim light — can prevent your body from making melatonin. It can also shorten how long your melatonin levels remain elevated. This can make it harder to fall asleep or stay asleep.
To avoid this, try keeping your room as dark as possible. Ways to do this include:
Getting blackout curtains
Unplugging electronic devices that emit light
Keeping your phone and TV out of your room, if possible
Strategies to help you fall asleep: Deep breathing, taking a warm bath before bedtime, and keeping your room cool are a few of the non-medication strategies that may help.
What does it feel like to take melatonin? Four people share their experiences with melatonin supplements.
How to fix your sleep schedule: A sleep schedule that gets out of whack can be frustrating. But there are things you can do to reset your sleep schedule and get back on track.
3. Reduce screen time at night
Research has linked screen time to lower levels of melatonin and poor sleep quality. This includes use of:
Computers
Smartphones
Tablets
Televisions
One survey of more than 45,000 young adults found that people who spend more time looking at a screen in bed are more likely to report insomnia and sleep loss.
Read more like this
Explore these related articles, suggested for readers like you.
A reason for this might be that screens emit blue light. This can disrupt the body’s circadian rhythm and make it difficult to fall asleep or stay asleep.
The American Academy of Ophthalmology recommends avoiding screens 1 to 2 hours before bedtime. This applies to:
Watching TV in bed
Scrolling through your phone
Browsing on your laptop
If you can’t avoid screens completely, try to use your device’s night mode setting. The warm light doesn’t appear to suppress melatonin as much as blue light does.
4. Watch your caffeine intake
Caffeine helps you feel more alert by blocking adenosine, a chemical in the body that makes you feel sleepy. But research suggests that caffeine also decreases melatonin production — especially if you drink it in the evening.
Up to 400 mg of caffeine each day (around 4 to 5 cups of coffee) is considered safe for most adults. But caffeine affects everyone differently. So, if you’re not sleeping well, reduce your intake by 1 or 2 cups and see how you feel. You can also try having your caffeine earlier in the day to see if that makes a difference in your nightly rest.
5. Try exercising in the morning
Exercising at different times of day can have different benefits. And exercise timing may also affect sleep. A small study suggests that exercising in the afternoon may cause your body to release less melatonin in the evening. This same study found that people who exercised in the morning didn’t have a decrease in their melatonin levels.
But other findings are somewhat mixed. One study found that your chronotype might affect whether an early or later workout benefits your sleep. Your chronotype is your sleep timing patterns that determine when you feel most awake. People who are “night owls” may not have disrupted sleep with an evening workout. And those who rise early might benefit from a morning workout.
Still, if you have trouble sleeping, it may be worth adjusting your exercise schedule to see if it makes a difference in your sleep quality.
6. Eat foods that increase melatonin
Foods may affect the amount of melatonin in your body in a few different ways. Some foods naturally contain melatonin. Others contain nutrients that help regulate or produce melatonin.
Foods that may increase your melatonin include:
Nuts: Many nuts contain melatonin, including almonds, walnuts, and pistachios. Raw nuts are better, since roasting nuts can reduce their melatonin content.
Eggs: Eggs are one of the richest animal protein sources of melatonin. They also contain vitamin D, another nutrient that plays a role in sleep regulation.
Fish: Many types of fish contain anti-inflammatory omega-3 fatty acids. These healthy fats may help regulate melatonin production. Examples include salmon, tuna, and sardines.
Bananas: Bananas contain the amino acid tryptophan, which is converted to melatonin in the body. And bananas contain magnesium, which is also linked with better sleep.
Cow’s milk: Cow’s milk contains both melatonin and tryptophan. One study found that milk that was collected from cows at night contains more melatonin and tryptophan than milk collected during the day.
Tart cherries and tart cherry juice: Tart cherries are rich in both melatonin and tryptophan. Data suggests that tart cherry juice can help improve insomnia by increasing sleep time.
Grapes: Grapes — and products made from them, like wine and grape juice — contain melatonin. Grapes are also well-known for being rich in antioxidants, which may also play a role in healthy sleep.
Turkey: Turkey doesn’t contain melatonin, but it does contain tryptophan.
How do you know if you need to boost melatonin?
You may want to think about increasing your melatonin if you’re having disrupted sleep. This may mean you have trouble falling or staying asleep or feel restless throughout the night.
You may also benefit from a natural melatonin boost in these cases:
You’re an older adult, since melatonin production naturally decreases as you age.
You have a neurodegenerative condition that’s associated with low melatonin levels. Examples are Parkinson’s disease or Alzheimer’s disease.
You have certain chronic health conditions that can lower melatonin production. Examples include heart disease, cancer, or Type 2 diabetes.
Do you need a melatonin supplement?
If you’ve tried to increase melatonin levels with lifestyle changes and haven’t had any luck, you might consider a melatonin supplement. But before you start taking it, it’s important to be aware that it can interact with some medications. And experts recommend you only use it in circumstances when your sleep is likely to be disrupted. Examples include:
Jet lag
Insomnia
Anxiety ahead of a surgery
A work schedule that involves shift work
If you rely on melatonin most nights to help you sleep, be sure to talk with a healthcare professional. There may be better treatment options for you. They can also help diagnose any health problems that might be affecting your sleep.
Frequently asked questions
Research suggests that short-term, low-dose melatonin supplements don't reduce the amount of melatonin your body makes. But there isn’t enough research to know if long-term use of melatonin affects natural production.
Your body can produce 0.01 mg to .08 mg of melatonin each night. But how much each person produces can vary based on factors like age, diet, and certain health conditions that could affect your sleep.
Yes, human breast milk contains melatonin. This is helpful, since newborns can’t produce their own melatonin for several months after birth.
Research suggests that short-term, low-dose melatonin supplements don't reduce the amount of melatonin your body makes. But there isn’t enough research to know if long-term use of melatonin affects natural production.
Your body can produce 0.01 mg to .08 mg of melatonin each night. But how much each person produces can vary based on factors like age, diet, and certain health conditions that could affect your sleep.
Yes, human breast milk contains melatonin. This is helpful, since newborns can’t produce their own melatonin for several months after birth.
The bottom line
Light exposure has a significant effect on your body’s melatonin production and circadian rhythm. That’s why getting some early morning sunshine and putting away screens an hour or two before bed is your best bet at naturally increasing melatonin. Other tips include keeping your room dark and trying a morning workout. Also, try eating foods like eggs, mushrooms, and cherries — and limit your coffee too.
If increasing melatonin with lifestyle adjustments isn’t working, it may be time to check in with a healthcare professional. They can check to see whether an underlying issue is affecting your sleep. They can also discuss whether a melatonin supplement is right for you.
Why trust our experts?



References
Anghel, L., et al. (2022). Benefits and adverse events of melatonin use in the elderly (review). Experimental and Therapeutic Medicine.
Cardinali, D. P. (2021). Melatonin and healthy aging. Vitamins and Hormones.
Carlson, L. A., et al. (2019). Influence of exercise time of day on salivary melatonin responses. International Journal of Sports Physiology and Performance.
dela Peña, I. J. I., et al. (2015). Milk collected at night induces sedative and anxiolytic-like effects and augments pentobarbital-induced sleeping behavior in mice. Journal of Medicinal Food.
Givler, D., et al. (2023). Chronic administration of melatonin: Physiological and clinical considerations. Neurology International.
Gooley, J. J., et al. (2010). Exposure to room light before bedtime suppresses melatonin onset and shortens melatonin duration in humans. The Journal of Clinical Endocrinology and Metabolism.
Hartley, S., et al. (2022). Do both timing and duration of screen use affect sleep patterns in adolescents? PLoS One.
Häusler, S., et al. (2024). Melatonin in human breast milk and its potential role in circadian entrainment: A nod towards chrononutrition? Nutrients.
Hjetland, G. J., et al. (2025). How and when screens are used: Comparing different screen activities and sleep in Norwegian university students. Frontiers in Psychiatry.
Kalmbach, D. A., et al. (2016). Genetic basis of chronotype in humans: Insights from three landmark GWAS. Sleep.
Kautz, A., et al. (2024). Dietary intake of nutrients involved in serotonin and melatonin synthesis and prenatal maternal sleep quality and affective symptoms. Journal of Nutrition and Metabolism.
Losso, J. N., et al. (2018). Pilot study of tart cherry juice for the treatment of insomnia and investigation of mechanisms. American Journal of Therapeutics.
Maruani, J., et al. (2019). Bright light as a personalized precision treatment of mood disorders. Frontiers in Psychiatry.
Matsumoto, M., et al. (1997). The amplitude of endogenous melatonin production is not affected by melatonin treatment in humans. Journal of Pineal Research.
Mead, M. N. (2008). Benefits of sunlight: A bright spot for human health. Environmental Health Perspectives.
Meng, J., et al. (2017). Melatonin in grapes and grape-related foodstuffs: A review. Food Chemistry.
Pan, H., et al. (2024). Association between dietary total antioxidant capacity and sleep problems and depressive symptoms among U.S. adults. Frontiers in Nutrition.
Paroni, R., et al. (2019). Bioactive phytochemicals of tree nuts. Determination of the melatonin and sphingolipid content in almonds and pistachios. Journal of Food Composition and Analysis.
Peuhkuri, K., et al. (2012). Dietary factors and fluctuating levels of melatonin. Food & Nutrition Research.
Porter, D., et al. (2024). Digital devices and your eyes. American Academy of Ophthalmology.
Shilo, L., et al. (2002). The effects of coffee consumption on sleep and melatonin secretion. Sleep Medicine.
Shimizu, K., et al. (2024). Effect of omega-3 fatty acids on sleep: : A systematic review and meta-analysis of randomized controlled trials. Journal of Clinical Biochemistry and Nutrition.
Teran, E., et al. (2020). Evaluation of two strategies for alleviating the impact on the circadian cycle of smartphone screens. Optometry and Vision Science.
Thomas, J. M., et al. (2020). Circadian rhythm phase shifts caused by timed exercise vary with chronotype. Journal of Clinical Investigation Insight.
Tordjman, S., et al. (2017). Melatonin: Pharmacology, functions and therapeutic benefits. Current Neuropharmacology.
Tosini, G., et al. (2016). Effects of blue light on the circadian system and eye physiology. Molecular Vision.
Verde, A., et al. (2022). Melatonin content in walnuts and other commercial nuts. Influence of cultivar, ripening and processing (roasting). Journal of Food Composition and Analysis.
Yao, L., et al. (2023). The mediation role of sleep disturbances between vitamin D and depressive symptoms: A cross-sectional study. Brain Sciences.














