Melatonin does not help with restless leg syndrome and may actually make it worse. The same biological process that makes melatonin promote sleep also suppresses dopamine activity in the brain, and dopamine deficiency is a core driver of RLS symptoms. That evening urge to move your legs isn’t random. It coincides with your body’s natural melatonin surge, and adding more melatonin on top of that can intensify the problem.
Why Melatonin Can Worsen RLS
RLS symptoms peak in the evening and nighttime for a reason tied directly to melatonin. As your brain ramps up melatonin production after dark, it simultaneously suppresses dopamine release by reducing calcium flow into nerve endings. Dopamine is the chemical messenger that helps regulate movement and sensory signals in your legs. When dopamine drops, those crawling, pulling, or aching sensations get stronger, along with the overwhelming need to move.
This means your body’s own melatonin is already contributing to the timing of your worst symptoms. Taking a melatonin supplement adds to that effect. A small study of eight people with severe RLS found significantly more leg movements both one hour and four and a half hours after taking 3 mg of melatonin compared to nights without it. Interestingly, the participants didn’t report feeling more discomfort despite the increased movement, which suggests melatonin might mask the subjective experience while still driving the physical symptoms that disrupt sleep.
The Circadian Trap
If you have RLS, you’ve probably noticed your symptoms follow a predictable daily pattern: minimal during the day, building through the evening, worst at bedtime. This pattern maps almost perfectly onto your body’s melatonin cycle. Melatonin levels start climbing roughly two hours before your usual bedtime, peak in the middle of the night, and drop off by morning. Your dopamine levels move in the opposite direction, dipping lowest exactly when melatonin is highest.
This is why RLS can feel so cruel. The biological signal that tells your body it’s time to sleep is the same signal that triggers your worst symptoms. Taking supplemental melatonin deepens this imbalance rather than correcting it.
Common Sleep Aids That Also Trigger RLS
Melatonin isn’t the only over-the-counter sleep aid that can backfire. Antihistamines, the active ingredient in many popular OTC sleep products, are one of the most commonly encountered drug categories among people with RLS. Diphenhydramine (the ingredient in Benadryl, ZzzQuil, and Advil PM) works against dopamine in much the same way melatonin does, and it shows up in combination cold and pain medications where you might not expect it.
A large analysis of FDA adverse event data from 2004 to 2024 found that diphenhydramine-containing products were strongly associated with RLS reports. Because these medications are sold without a prescription, many people take them without realizing they’re fueling the very problem keeping them awake. If you’re using any OTC sleep or cold product, check the ingredient list for diphenhydramine or doxylamine, both first-generation antihistamines that can worsen restless legs.
Other known RLS triggers include certain antidepressants (particularly SSRIs), antipsychotics, caffeine, and alcohol.
What Actually Helps RLS
Iron
Low iron in the brain is one of the best-understood causes of RLS, and correcting it is often the most effective treatment. Your blood iron levels can appear normal on a standard lab test while still being too low to support proper dopamine function in the brain. The key measurement is serum ferritin, a protein that reflects your iron stores.
Current expert thinking suggests that people with moderate or severe RLS should consider iron replacement if their ferritin level is 300 µg/L or below, a threshold much higher than what most doctors consider “normal.” If your ferritin is below 75 µg/L, oral iron taken every other night with vitamin C can help, though it may take several months to raise your levels meaningfully and can cause stomach upset. Above 75 µg/L, oral iron is poorly absorbed, and intravenous iron becomes the more effective route. Ask your doctor to check both ferritin and transferrin saturation if you haven’t had these tested recently.
Magnesium
Magnesium supplementation has shown more promise than melatonin for RLS. A systematic review of dietary supplements for RLS found that magnesium oxide significantly improved both sleep quality and RLS symptoms, outperforming vitamin B6 in head-to-head comparison. The evidence is still limited, but magnesium doesn’t carry the dopamine-suppressing risk that melatonin does, making it a safer option to try for sleep support alongside RLS.
What to Do If You’re Already Taking Melatonin
If you started melatonin to help with sleep and noticed your legs getting worse at night, the supplement is a likely culprit. Stopping melatonin won’t cause withdrawal, so you can discontinue it without tapering. Pay attention over the following week to whether your evening symptoms improve.
RLS affects roughly 2.5% to 15% of the American population, with higher rates in women and older adults. Despite how common it is, many people cycle through OTC sleep products for years without realizing their “sleep problem” is actually an RLS problem being made worse by the very things they’re taking to fix it. If your legs feel restless, uncomfortable, or impossible to keep still when you lie down at night, and moving them temporarily relieves the sensation, that pattern points to RLS rather than general insomnia. Treating the right condition makes all the difference.

