Restless legs syndrome (RLS) is a neurological condition that causes an irresistible urge to move the legs — usually at night or during long periods of sitting. Around 5–10% of UK adults are affected to some degree, with prevalence increasing after 40.
The condition is well understood. The management is more varied. Here’s a grounded overview of causes, treatments, and where supplements like magnesium and vitamin D fit in.
What Is Restless Legs Syndrome?
RLS causes uncomfortable sensations in the legs — often described as crawling, pulling, throbbing, or tingling — that worsen when you’re still and ease temporarily with movement.
Symptoms typically appear in the evening or at night, making it difficult to fall asleep or stay asleep. In mild cases, episodes are occasional. In moderate to severe cases, RLS occurs nightly and can substantially disrupt sleep quality and daytime functioning.
Unlike leg cramps, which cause sudden painful muscle contractions, RLS is characterised by a persistent urge to move without necessarily involving cramping. The two conditions are distinct, though both can affect sleep.
What Causes Restless Legs Syndrome?
The cause isn’t fully understood, but several mechanisms are consistently linked to it.
Dopamine disruption. RLS appears to involve impaired dopamine signalling in the brain. Dopamine helps regulate muscle movement, and disruption in these pathways is thought to cause the uncontrolled urge to move. The connection with Parkinson’s disease — also a dopamine-related condition — explains why some of the same medications are used for both.
Iron deficiency. Even when blood tests show normal serum iron levels, lower iron stores in the brain may contribute to RLS. Iron is essential for dopamine production. Research shows that people with RLS tend to have lower brain iron levels even when ferritin appears within normal range.
Genetics. More than 40% of people with RLS have a first-degree relative with the condition. Several gene variants have been identified. When RLS runs in families, symptoms typically appear before the age of 40.
Secondary causes. RLS is associated with pregnancy (particularly the third trimester), kidney disease, peripheral neuropathy, and type 2 diabetes. Several medications can trigger or worsen symptoms, including antihistamines, antidepressants, antipsychotics, and antinausea drugs.
Does Magnesium Help with Restless Legs?
Some evidence suggests it may — particularly for people whose RLS is linked to magnesium deficiency or is mild to moderate in severity.
Magnesium plays a direct role in nerve and muscle function. It acts as a natural calcium channel blocker, helping regulate the nerve signals that trigger muscle contractions. Low magnesium makes nerves more excitable and muscles harder to relax — which may contribute to the uncomfortable sensations and involuntary movements of RLS.
A clinical study published in Sleep (Hornyak et al., 1998) tested magnesium supplementation in participants with RLS and periodic limb movement disorder. After 4–6 weeks, participants reported significant reductions in symptom severity and improvements in sleep quality. The researchers concluded that magnesium may be an effective treatment option for mild to moderate cases.
The limitation is that this was a small, uncontrolled study. Larger randomised trials are lacking, so the evidence remains preliminary. That said, magnesium deficiency is common in UK adults over 40 — particularly those taking proton pump inhibitors (such as omeprazole), diuretics, or those with high alcohol intake. Correcting a genuine deficiency is likely to help more than supplementing when levels are already adequate.
If you want to try magnesium, choose a well-absorbed form such as magnesium glycinate rather than magnesium oxide, which has poor bioavailability. For a comparison of forms, see our guide to the best form of magnesium.
Vitamin D and Restless Legs
Low vitamin D levels have been associated with RLS in several observational studies. A 2014 study in Sleep and Breathing found that people with RLS had significantly lower serum vitamin D levels than those without the condition, and that supplementation improved symptoms in vitamin D-deficient participants.
Vitamin D’s mechanism in RLS isn’t fully established, but it may interact with dopamine pathways and sleep regulation. In the UK, vitamin D deficiency is particularly common between October and March, when there’s insufficient sunlight for the skin to synthesise adequate amounts.
If you haven’t had your vitamin D levels checked recently, it’s worth asking your GP — especially if you’re over 50, spend limited time outdoors, or have darker skin. The NHS recommends that all UK adults consider supplementing 10 micrograms (400 IU) daily during autumn and winter.
Medical Treatments for RLS
For mild RLS, lifestyle changes and nutritional support are the starting point. For moderate to severe RLS, your GP may recommend medication.
Dopaminergic agents (e.g., pramipexole, ropinirole) are the most established medications for RLS, but long-term use carries a risk of augmentation — where symptoms paradoxically worsen over time. This is a significant concern with extended use.
Alpha-2-delta ligands (e.g., pregabalin, gabapentin) are increasingly preferred for long-term treatment as they don’t carry the same augmentation risk. They’re also used for the sleep disruption caused by RLS.
Iron supplementation can dramatically improve symptoms if iron deficiency or low ferritin is confirmed by blood test.
Opioids and benzodiazepines are occasionally used for severe, refractory cases but are not first-line options due to dependency risk. Any prescription treatment for RLS should be managed by a GP or neurologist.
Lifestyle Changes That May Help
Reduce caffeine and alcohol. Both can trigger or worsen RLS symptoms, particularly in the evening. Reducing intake is one of the first things to try.
Stretch before bed. Regular calf stretches, gentle leg massage, and light walking in the early evening are consistently reported to reduce symptom frequency. They won’t eliminate RLS, but they can take the edge off.
Review your medications. Antihistamines, some antidepressants, and antinausea medications are known to worsen RLS. Discuss all medications — including over-the-counter ones — with your GP if symptoms have worsened after starting something new.
Maintain a consistent sleep schedule. Fatigue worsens RLS. Keeping regular sleep and wake times, and avoiding screens in the hour before bed, won’t resolve the condition but reduces the impact of disrupted nights.
Check for nutritional deficiencies. Ask your GP to test iron, ferritin, and vitamin D levels. These are among the most actionable interventions for secondary RLS, and both are easy to address once identified.
When to See a GP
Occasional mild RLS can often be managed with the steps above. See your GP if:
- Symptoms occur most nights and are disrupting your sleep
- Symptoms are getting progressively worse over weeks or months
- You started a new medication and RLS began around the same time
- You’re pregnant and experiencing RLS for the first time
- Symptoms extend to your arms or other parts of the body
- You have muscle weakness or swelling alongside the RLS symptoms
FAQ
Q: What helps restless legs syndrome immediately?
A: Moving the legs brings temporary relief — walking, stretching, or massaging the calves can interrupt the uncomfortable sensations. A warm bath or shower before bed may also help. These don’t treat the underlying condition but provide short-term relief during an episode.
Q: Does magnesium help restless legs?
A: Some evidence suggests it may, particularly in people with low magnesium levels. A small clinical study found significant symptom improvement after 4–6 weeks of supplementation. The evidence isn’t conclusive, but magnesium is low-risk and worth trying — particularly a well-absorbed form like magnesium glycinate.
Q: What deficiency causes restless legs syndrome?
A: Iron deficiency (including low ferritin even when serum iron appears normal) is the most strongly linked nutritional factor. Vitamin D deficiency and magnesium deficiency have also been associated with RLS. A blood test with your GP can identify which, if any, applies to you.
Q: Is restless legs syndrome serious?
A: RLS itself isn’t dangerous, but severe cases significantly affect sleep quality and quality of life. Chronic sleep disruption is associated with fatigue, mood changes, and broader health impacts. Persistent or worsening RLS should be discussed with a GP.
Q: Can restless legs syndrome be cured?
A: There’s no cure, but symptoms can often be well managed with medication, lifestyle changes, and addressing underlying deficiencies. People with secondary RLS — caused by another condition such as iron deficiency or kidney disease — frequently see significant improvement when the underlying cause is treated.
References
- Hornyak M, et al. (1998). Magnesium therapy for periodic leg movements-related insomnia and restless legs syndrome: An open pilot study. Sleep, 21(5), 501–505.
- Gupta R, et al. (2014). Vitamin D deficiency in patients with restless legs syndrome. Sleep and Breathing, 18(4), 857–864.
- Allen RP, et al. (2018). Restless legs syndrome/Willis-Ekbom disease. Nature Reviews Disease Primers, 4, 18021.
- NHS. Restless legs syndrome.
- NICE Clinical Knowledge Summary: Restless legs syndrome.
This article is for informational purposes only and does not constitute medical advice. If you think you have restless legs syndrome, speak to your GP for a proper diagnosis and appropriate treatment.


