What the research shows about melatonin and anxiety

Melatonin can trigger or worsen anxiety in some people, though it does not affect everyone the same way. The relationship is not straightforward: melatonin itself is not an anxiolytic (anxiety-reducing) drug, and for a subset of users—particularly those with existing anxiety or certain sleep patterns—it can paradoxically increase nervous tension rather than calm it.

The mechanism is not fully understood, but several factors appear to play a role. Melatonin affects circadian rhythms and interacts with serotonin pathways in the brain. In people whose anxiety is already tied to sleep disruption or circadian misalignment, melatonin can sometimes amplify the underlying tension rather than resolve it. Additionally, some users report a phenomenon called "melatonin-induced anxiety"—a spike in worry or racing thoughts in the hours after taking it, particularly at higher doses.

Research on this is limited. Most studies focus on melatonin's effects on sleep onset or duration, not on anxiety as a primary outcome. The evidence that exists suggests the risk is real but not universal, and that individual variation is large.

Key Takeaways

  • Melatonin can increase anxiety in some people, especially at doses above 3–5 mg or when taken close to bedtime.
  • People with generalized anxiety disorder or panic disorder may be at higher risk of experiencing worsening symptoms.
  • Melatonin-induced anxiety typically appears within 30 minutes to 2 hours of taking it and may last several hours.
  • If melatonin worsens your anxiety, stopping it or switching to a lower dose often resolves the problem within a few days.

Why melatonin might increase anxiety instead of reducing it

Melatonin is a hormone that signals your body to prepare for sleep. It does not directly calm the nervous system the way benzodiazepines or some antidepressants do. Instead, it works on the body's internal clock. For people whose anxiety is tied to sleep problems, melatonin can sometimes create a mismatch: the hormone tells the body it is time to sleep, but the mind remains alert or worried, creating internal conflict.

Dose matters significantly. Melatonin supplements typically range from 0.5 mg to 10 mg per tablet, and many people take more than they need. Research suggests that 0.5–3 mg is often sufficient to shift circadian rhythm. Higher doses do not necessarily work better for sleep and may increase the likelihood of side effects, including anxiety. Some users report that taking melatonin at the wrong time of day—too early in the evening, for instance—can create a state of drowsiness mixed with mental restlessness that feels anxious.

Individual brain chemistry also plays a role. Melatonin interacts with serotonin and dopamine systems. People whose anxiety is linked to serotonin imbalance, or those taking certain antidepressants, may experience unexpected reactions. There is also evidence that melatonin can affect cortisol patterns in some individuals, and disrupted cortisol timing can amplify anxiety rather than reduce it.

Who is at higher risk of melatonin-induced anxiety

People with generalized anxiety disorder (GAD) or panic disorder appear more vulnerable to anxiety spikes from melatonin. If your baseline anxiety is already elevated, adding a substance that alters sleep-wake signaling can sometimes push the system into overdrive rather than calm it. The same applies to people with bipolar disorder or a history of mood instability—melatonin can occasionally trigger or worsen mood symptoms in this population.

Timing and sensitivity also matter. People who are sensitive to medications or supplements in general tend to be more sensitive to melatonin's effects. If you have noticed that you react strongly to caffeine, antihistamines, or other over-the-counter substances, you may be at higher risk of melatonin-induced anxiety. Age can play a role too: older adults sometimes report more pronounced side effects from melatonin, including anxiety and vivid or disturbing dreams.

People taking certain medications—particularly SSRIs, SNRIs, or other psychiatric drugs—should be cautious. Melatonin can interact with these medications and potentially amplify side effects. If you are on any psychiatric medication, discuss melatonin use with your prescriber before starting.

How to tell if melatonin is making your anxiety worse

The timing is usually the key clue. Melatonin-induced anxiety typically appears 30 minutes to 2 hours after you take it and may persist for several hours. If you notice that your anxiety spikes consistently after taking melatonin—particularly if this is a new pattern for you—the supplement is likely the culprit. Keep track of when you take it, what dose, and when the anxiety begins. A simple log over a few days can reveal the pattern.

The quality of the anxiety also matters. Some people describe melatonin-induced anxiety as a sense of restlessness or racing thoughts rather than the dread or physical tension they normally experience. Others report a feeling of being "stuck between sleep and wakefulness"—drowsy but mentally agitated. If this description matches your experience, melatonin is probably the cause.

The most straightforward test is to stop taking melatonin for three to five days and observe whether your anxiety improves. If it does, melatonin was likely contributing. If your anxiety remains unchanged, something else is driving it. You can then decide whether to try melatonin again at a lower dose or explore other sleep support options.

What to do if melatonin is triggering anxiety

The first step is to stop taking it. Melatonin is not habit-forming, and stopping it will not cause withdrawal. Most people who experience melatonin-induced anxiety find that symptoms resolve within a few days of discontinuing the supplement. There is no medical reason to taper the dose—you can stop immediately.

If you want to try melatonin again, consider a much lower dose: start with 0.5 mg taken 30 minutes before your target bedtime, rather than earlier in the evening. Some people find that taking melatonin closer to when they actually plan to sleep, rather than hours before, reduces anxiety. Timing matters because melatonin's effects peak within 1–2 hours, and if you take it too early, you may experience that restless, in-between state.

If low-dose melatonin still triggers anxiety, it is not the right tool for you. Other approaches to sleep support include magnesium glycinate, valerian root, or cognitive behavioral therapy for insomnia (CBT-I), which is evidence-based and does not carry the same risk of anxiety amplification. Talk to your doctor about which alternatives might suit your situation, especially if you have an anxiety disorder.

When melatonin anxiety might signal something else

Sometimes melatonin-induced anxiety is a sign that your sleep problem has a different root cause. If melatonin makes you anxious, it may indicate that your insomnia is driven by anxiety itself rather than by circadian misalignment. In that case, treating the underlying anxiety—through therapy, medication, or lifestyle changes—is more likely to improve sleep than adding melatonin.

Melatonin can also unmask or bring attention to anxiety that was already present but not fully noticed. If taking melatonin makes you aware of racing thoughts or worry that you had been ignoring, that is valuable information. It suggests that anxiety management should be part of your sleep strategy, not just melatonin supplementation.

If melatonin-induced anxiety is severe, includes panic symptoms, or does not resolve within a few days of stopping the supplement, contact your doctor. Severe anxiety reactions are uncommon with melatonin, and other causes should be ruled out.

Frequently Asked Questions

Can melatonin cause panic attacks?

Melatonin can trigger panic-like symptoms in some people—racing heart, shortness of breath, or a sense of dread—particularly at higher doses or in people with panic disorder. These symptoms are usually mild and resolve within hours of stopping the supplement. If you experience severe panic after taking melatonin, seek medical attention to rule out other causes.

Is melatonin anxiety permanent?

No. Melatonin-induced anxiety resolves quickly once you stop taking the supplement, usually within a few days. There are no long-term effects from melatonin use, and stopping it will not cause lasting changes to your anxiety baseline.

Can I take melatonin if I have anxiety disorder?

It depends on the type and severity of your anxiety and how your brain responds to melatonin. Some people with anxiety disorders tolerate melatonin well; others find it worsens symptoms. If you have generalized anxiety or panic disorder, discuss melatonin use with your doctor before starting, and monitor your symptoms closely if you do try it.

What is a safe dose of melatonin if I am prone to anxiety?

If you are prone to anxiety and want to try melatonin, start with 0.5 mg taken 30 minutes before bedtime. This is lower than most commercial supplements but often effective for circadian adjustment. If this dose does not help your sleep after a week, melatonin may not be the right option for you.

Does melatonin interact with anxiety medications?

Melatonin can interact with SSRIs, SNRIs, and other psychiatric medications, potentially amplifying side effects or changing how the medication works. Always tell your prescriber about any supplements you are taking or considering, including melatonin, before starting them.