Is Melatonin Good for Anxiety? What Research Shows

Melatonin shows some promise for reducing anxiety in specific situations, but the evidence is limited and inconsistent. It is not an established treatment for anxiety disorders. Most research on melatonin focuses on sleep, and while better sleep can indirectly ease anxiety symptoms, the direct anti-anxiety effects are modest compared to conventional treatments.

What the Research Actually Shows

The strongest evidence for melatonin’s anti-anxiety effects comes from surgical settings. Doctors have studied it as a calming agent given before operations, where patients experience acute, situational anxiety. In one notable finding from a trial involving patients with generalized anxiety disorder, melatonin at 3 mg daily was effective at reducing anxiety scores on a standard clinical scale, even though it didn’t outperform a conventional sedative for sleep quality. That suggests melatonin may have a mild calming effect independent of its sleep benefits.

However, when researchers directly compared melatonin to midazolam (a standard anti-anxiety medication used before surgery) in anxious children, melatonin was clearly less effective. The difference wasn’t subtle. The study, which tested both at the same weight-based dose, was actually stopped early because melatonin couldn’t match the conventional medication’s performance. The gap between the two was large enough to be clinically meaningful.

So the picture is mixed: melatonin appears to take the edge off anxiety in some contexts, but it doesn’t come close to replacing dedicated anxiety treatments.

The Sleep-Anxiety Connection

Much of melatonin’s reputation for helping anxiety comes from its well-documented effects on sleep. Poor sleep and anxiety feed each other in a vicious cycle. When you’re sleep-deprived, your brain’s threat-detection system becomes more reactive, making everyday stressors feel more overwhelming. Anxiety, in turn, makes it harder to fall and stay asleep.

Melatonin can break this cycle for some people by improving sleep quality. In a trial of patients with generalized anxiety disorder or major depression who took 3 mg of melatonin nightly for four weeks, sleep quality scores improved significantly compared to placebo. The benefit was especially clear in patients who weren’t already taking psychiatric medications. If your anxiety is worsened by chronic poor sleep, improving that sleep with melatonin could produce a noticeable reduction in daytime anxiety, even though melatonin isn’t treating the anxiety directly.

How It Compares to Other Supplements

If you’re exploring natural options for anxiety, you’ve likely also come across L-theanine (an amino acid found in green tea) and magnesium. Direct head-to-head comparisons are rare, but one randomized, placebo-controlled trial in patients with insomnia tested 3 mg of melatonin against 200 mg of L-theanine over two weeks. Melatonin was significantly better at improving sleep scores. By day 14, the melatonin group’s insomnia scores dropped from about 15 to 5, while the L-theanine group went from about 15 to 10. Both outperformed placebo.

That said, this study measured sleep, not anxiety specifically. L-theanine has its own body of research suggesting it promotes a calm, alert state without drowsiness, which may be more useful during the daytime when you need to function. Melatonin’s drowsiness-inducing effect makes it better suited for nighttime use. The two supplements target different parts of the problem, and some people use both at different times of day.

Side Effects to Know About

Melatonin is generally safe for short-term use. The most common side effects are headache, dizziness, nausea, and drowsiness. That drowsiness can linger into the next morning, so you should avoid driving or operating machinery within five hours of taking it.

Ironically, less common side effects of melatonin include mild anxiety, irritability, and short-lasting feelings of depression. These aren’t typical, but they’re worth knowing about if you’re taking melatonin specifically to feel calmer. Reduced alertness and confusion can also occur, particularly at higher doses.

If you’re already taking antidepressants (such as fluvoxamine or amitriptyline) or benzodiazepines (such as diazepam or temazepam), melatonin can increase or alter their sedating effects. These combinations aren’t necessarily dangerous, but they require medical guidance to manage safely.

Dosing and Timing

There is no established dosing protocol for using melatonin specifically to treat anxiety. The research that found anti-anxiety benefits typically used 3 mg taken in the evening. For sleep, standard recommendations start at 2 mg of a slow-release formulation taken 30 minutes to two hours before bedtime, with a maximum of 10 mg in adults who need gradual dose increases.

Starting low is important. Many people assume that more melatonin means better results, but higher doses can cause more side effects without additional benefit. A dose of 0.5 to 3 mg is a reasonable starting range for most adults. Taking it too early in the evening or during the day can disrupt your natural sleep-wake cycle rather than support it.

Special Considerations for Children

Parents sometimes consider melatonin for children who are both anxious and struggling to sleep, particularly kids with ADHD. The American Academy of Pediatrics advises starting with the lowest possible dose, typically 0.5 to 1 mg, taken 30 to 90 minutes before bedtime. Most children who benefit don’t need more than 3 to 6 mg.

Short-term use appears relatively safe in children, but less is known about long-term effects, particularly on growth and development during puberty. Morning drowsiness and increased nighttime urination are the most commonly reported side effects. There’s also a practical concern: between 2012 and 2021, more than 260,000 child poisoning reports involving melatonin were logged in the United States. Because melatonin is sold as a supplement rather than a regulated medication, some products contain significantly more melatonin than their labels state, and some contain additional ingredients like serotonin or CBD that aren’t always disclosed.

The Bottom Line on Melatonin and Anxiety

Melatonin is a sleep aid that happens to have mild calming properties, not an anxiety treatment that happens to help with sleep. If your anxiety is primarily fueled by poor sleep, melatonin at a low dose before bedtime may help you break the cycle. If you have persistent anxiety that affects your daily life regardless of how well you sleep, melatonin alone is unlikely to make a meaningful difference. It works best as one piece of a broader approach that might include therapy, lifestyle changes, or other treatments tailored to anxiety itself.