Foods that naturally contain melatonin have become increasingly relevant in recent years due to their potential role in supporting sleep quality and regulating the circadian rhythm.
Melatonin is a key hormone that the body produces naturally to signal when it is time to rest. However, modern lifestyle factors such as stress, artificial light exposure, and irregular schedules can disrupt its natural production.
In this context, certain foods may indirectly support this biological process, helping to promote a more stable and restorative sleep pattern.
What are foods with melatonin?
Melatonin is a hormone produced by the pineal gland that regulates the sleep–wake cycle. Its release increases in response to darkness, preparing the body for sleep.
Some foods contain small amounts of naturally occurring melatonin, while others provide nutrients such as tryptophan or magnesium that support its internal synthesis.
Well-known examples include tart cherries, oats, walnuts, and bananas. Although their melatonin content is far lower than that of a supplement, regular consumption may contribute positively to sleep regulation over time.
How melatonin works in the body
Melatonin acts as a biological signal that synchronizes the internal body clock with the light–dark cycle.
When released in the brain, it binds to specific receptors that reduce neural activity and promote a state of relaxation. At the same time, it helps lower body temperature and prepares the body for sleep.
Beyond its role in sleep regulation, melatonin also functions as an antioxidant, helping to protect cells from oxidative stress that occurs during the night.
Benefits of foods with melatonin
Consuming foods that contain melatonin or support its production may positively influence several aspects of sleep.
One of the main benefits is improved sleep onset, particularly in individuals who experience mild difficulty falling asleep. These foods may also help stabilize the circadian rhythm, which is especially useful in cases of jet lag, shift work, or irregular sleep schedules.
In addition, better sleep quality is often associated with improved mood, enhanced focus, and better cognitive performance during the day.
Foods that may help improve sleep quality
While no single food guarantees better sleep, certain options are more commonly associated with sleep-supportive properties.
Tart cherries are one of the few foods that naturally contain measurable amounts of melatonin. Others, such as oats and nuts, do not provide high levels of melatonin directly but support its production due to their content of tryptophan and healthy fats.
Bananas and dairy products can also play a supporting role, especially when included as part of a balanced evening routine.
How to improve sleep quality through diet
Nutrition can play a supportive role in improving sleep quality, although it should not be considered in isolation.
Consistency is key. Including these foods in the evening meal or a few hours before bedtime may help prepare the body for rest.
It is also important to ensure adequate intake of nutrients involved in melatonin synthesis, such as tryptophan and magnesium, while avoiding heavy or highly processed meals that may interfere with digestion and sleep quality.
Melatonin supplements
In some cases, melatonin supplements such as Melotime® or immediate- or extended-release formulations are used.
Immediate-release melatonin is typically used to help fall asleep faster, while extended-release versions are designed to support sleep maintenance throughout the night.
Dosages are usually low and should be adjusted according to individual needs, focusing on overall sleep quality rather than simply inducing sleep.
Scientific evidence
Scientific research shows that melatonin is most effective in regulating circadian rhythm, particularly in cases of jet lag or sleep–wake cycle disruption.
It has also been shown to reduce sleep latency, meaning the time it takes to fall asleep.
However, its effects on chronic insomnia are more variable, highlighting the importance of using it as part of a broader sleep hygiene strategy rather than as a standalone solution.
FAQs about melatonin and sleep
What is extended-release melatonin and what is it used for?
Extended-release melatonin is formulated to release the hormone gradually over several hours, helping maintain stable levels throughout the night.
It is mainly used for individuals who wake up frequently or have difficulty maintaining continuous sleep. Unlike immediate-release melatonin, its primary goal is not only to help fall asleep but also to support sleep continuity.
What is the difference between immediate-release and extended-release melatonin?
Immediate-release melatonin works quickly and is mainly used to help people fall asleep faster, typically taken 30–60 minutes before bedtime.
Extended-release melatonin, on the other hand, is released slowly throughout the night and is better suited for people who experience fragmented or light sleep.
The choice between them depends largely on the specific type of sleep issue being experienced.
Can melatonin help with anxiety?
Melatonin is not a treatment for anxiety itself, but it may have an indirect effect in some cases.
Because it helps regulate sleep, it can improve rest quality, which in turn may reduce stress levels and improve mood. Some people with mild anxiety related to poor sleep may notice secondary benefits.
However, it does not act on the core mechanisms of anxiety disorders, so it should not be considered a primary treatment for this condition.

