Short answer: Both, though its two roles are often confused. Melatonin is genuinely effective at shifting the timing of sleep, which is its primary biological function, but meta-analyses of controlled trials also show it modestly improves sleep quality, sleep onset speed, and total sleep time, not just when sleep occurs.
What the Research Actually Shows
Melatonin’s main biological role is as a timing signal. It’s the hormone your brain naturally releases in the evening to help synchronize your internal clock with darkness, telling your body it’s time to prepare for sleep. This is why melatonin supplements are particularly well established for timing-related sleep issues, like jet lag or delayed sleep phase disorder, where the goal is shifting when sleep happens rather than improving sleep itself.
But a substantial body of research shows melatonin’s effects go beyond timing alone. A meta-analysis published in PLOS One, pooling data from 19 randomized, placebo-controlled trials involving 1,683 participants with primary sleep disorders, found that melatonin significantly reduced the time it took participants to fall asleep, increased total sleep time by an average of about 8 minutes, and produced a statistically significant improvement in overall sleep quality compared to placebo. Notably, the researchers found these benefits didn’t fade with continued use, addressing a common concern that melatonin’s effects might wear off over time.
A more recent dose-response meta-analysis published in the Journal of Pineal Research, which reviewed 26 randomized controlled trials, found that melatonin’s benefits for sleep onset and total sleep time increased with dose up to about 4 milligrams per day, beyond which additional benefit leveled off. The researchers also found that people with diagnosed insomnia tended to see larger benefits than healthy volunteers taking melatonin without a sleep disorder, suggesting the effect isn’t purely a placebo response tied to the act of taking a sleep aid.
It’s important to be honest about the scale of these effects. The improvements found across these meta-analyses are consistently described as modest, meaningfully smaller than those seen with prescription sleep medications. An 8-minute increase in total sleep time, for example, is a real, statistically significant effect, but it’s not a dramatic transformation for most people. Melatonin appears to work best as a genuinely helpful but comparatively gentle intervention, one whose main advantage over stronger sleep medications is a favorable safety profile and low risk of dependence, rather than superior effectiveness.
How to Use This Information
- Match the goal to the tool. For timing issues like jet lag or a shifted sleep schedule, melatonin’s original role as a timing signal is well supported. For general poor sleep quality, expect a modest, not dramatic, improvement.
- Stick to lower doses. Since benefits plateau around 4 mg per day in the research, higher doses aren’t shown to meaningfully add benefit and may increase side effects like grogginess.
- Take it at the right time. Timing relative to your desired sleep or wake time matters more for melatonin’s effectiveness than simply taking a large dose.
- Don’t expect it to replace addressing underlying sleep problems. Since its effects are modest, melatonin works best alongside good sleep habits, not as a substitute for them.
So the honest answer is that melatonin isn’t just a timing tool, research does support a real, if modest, improvement in sleep quality itself. Just go in with realistic expectations about the size of that effect.