Why Do Legs Feel “Busy” at Night – and Can Magnesium Help?

Do your legs feel “busy” and unsettled as soon as you go to bed? Are leg cramps keeping you awake? Twitchy legs and muscle cramps are surprisingly common and can easily disrupt a good night’s sleep. If this sounds familiar, read on to discover the possible causes, and how magnesium may be able to help. 

leg cramps

What are restless legs and night-time leg cramps?

Having restless legs can feel like a tingling or pulling sensation, as if your legs want to move all the time when you’re trying to rest. Some people describe it as a burning feeling, or an itchy, crawling sensation.

Leg cramps can occur with or without “busy” legs. The muscle spasms cause a sharp, sudden pain which can continue to ache after the spasm has eased. Cramps often occur in the calf muscles at the back of the leg, although muscles around the knee and thigh may also be affected.

What causes restless legs and leg cramps at night?

It’s not always clear what’s causing twitchy legs and leg cramps. From a nutrition point of view, muscles and nerves can be affected by dehydration and an imbalance of the electrolyte minerals magnesium, potassium, sodium, and calcium.

How much movement you’ve had during the day makes a difference too. A lot of sitting or standing can affect blood flow and lead to muscle fatigue, which makes muscles more likely to cramp and spasm.

Symptoms can also be associated with:

  • Side effects of certain medications.
  • Genetics – other family members may experience similar symptoms.
  • Pregnancy, especially during the last trimester when it becomes harder to get comfortable during the night.
  • Stimulants such as caffeine and alcohol.
  • Stress.

Some people experience symptoms every night while for others, the sensations come and go.

Why muscles cramp:  Understanding the possible causes

Can magnesium help with restless legs and leg cramps?

If you’re dealing with uncomfortable, twitchy or cramping legs at night, it’s worth checking your magnesium intake. Magnesium contributes to normal muscle and nerve health [1] and is one of the key electrolyte minerals that support fluid balance in the body.

Unfortunately, many people struggle to maintain healthy magnesium levels. Heavily processed foods, excess caffeine and alcohol, and taking certain medications for a long time can all reduce how much magnesium your body absorbs.

How magnesium supports muscle and nerve function

Around one third of all the magnesium in your body is stored in muscles and soft tissues [2]. In muscles, it works alongside calcium to control how muscle fibres contract and relax [2]. In the nervous system, magnesium helps send signals between nerves and keeps muscle movements coordinated, while also preventing nerves from becoming overactive [3].

Which type of magnesium is best for leg cramps?

Magnesium comes in many different forms and it can be hard to know which one to choose. For leg cramps, we recommend either chelated magnesium glycinate or chelated magnesium taurate.

Magnesium glycinate is magnesium bound to the amino acid glycine. Glycine works as an inhibitory neurotransmitter, which means it has a calming effect in the nervous system [4]. Together, magnesium and glycine offer targeted support for calm, relaxed muscles.

Magnesium taurate is a combination of magnesium and the amino acid taurine. Research into taurine and muscle function suggests it plays a role in energy metabolism and the activity of antioxidant enzymes, especially after exercise [5]. This blend is a good option for leg cramps linked to muscle fatigue and exertion.

When and how to take magnesium for leg cramps

If leg cramps are keeping you awake, we suggest taking magnesium with either your evening meal or an evening snack, a few hours before bed.

When magnesium may not be enough

When dealing with “busy” legs or leg cramps, it’s useful to check lifestyle factors too, along with your magnesium intake. It’s important to stay hydrated throughout the day with plenty of water and herbal teas, and to make sure you’re getting enough movement to support blood flow and circulation to muscle tissues.

If the symptoms persist, it’s advisable to speak to your GP or healthcare provider.

FAQs

Does magnesium help Restless Legs Syndrome?

Magnesium contributes to normal muscle and nerve function [1]. Restless Legs Syndrome (RLS) can be caused by a number of different factors [6] including stress, medications, and other health conditions. It’s important to speak to your GP or healthcare provider if you are concerned about RLS.

What causes leg cramps at night?

Leg cramps can be caused by several factors, including dehydration and an imbalance of electrolyte minerals. How much movement you’ve had during the day makes a difference too. A lot of sitting or standing can affect blood flow and lead to muscle fatigue, which makes muscles more likely to cramp and spasm.

What is the best magnesium for leg cramps?

Fully chelated magnesium glycinate or magnesium taurate are both good options for supporting normal muscle function.

How long does magnesium take to work for leg cramps?

How long magnesium takes to work for leg cramps depends on the form of the magnesium, the dosage, the absorption rate, and how much magnesium your body needs.

Fully chelated magnesium taurate or magnesium glycinate are the optimum choice to support muscle function. They’re both easy to absorb and highly bioavailable, without the digestive side effects associated with magnesium oxide.

Can low magnesium cause leg cramps?

Leg cramps can be caused by several factors, including an imbalance in the electrolyte minerals calcium, magnesium, potassium, and sodium. Magnesium contributes to normal muscle function [1] and low levels are frequently reported in muscular conditions [2].

Is magnesium safe to take every day?

Magnesium is safe to take every day for most people who need to supplement it. Always follow the recommended dosage instructions as excess amounts of any form of magnesium can lead to irregular heartbeat, very low blood pressure, and muscle weakness. If you are pregnant, breastfeeding, or taking prescription medications we recommend you speak to your doctor before using magnesium.

Should I take magnesium in the morning or at night for leg cramps?

If you’re dealing with nighttime leg cramps, we recommend taking magnesium with your evening meal or an evening snack to support normal muscle function while you sleep.

Twitchy, “busy” legs and nighttime leg cramps are troublesome symptoms that can disrupt a good night’s sleep. Thanks to its role in normal muscle and nerve function [1], magnesium is a useful mineral to support muscle and nerve health. The fully chelated glycinate and taurate forms of magnesium offer added benefits for relaxation and nighttime comfort.

Curious about magnesium supplements? Take our free quiz to help you find the right supplements and meal plan in less than a minute.

You may also like to read:

How to Boost Magnesium Absorption

The Role and Health Benefits of Magnesium Glycinate

Signs You May Need More Magnesium

The Evidence

  1. Magnesium contributes to normal muscle function, to normal energy-yielding metabolism, and to normal functioning of the nervous system: Department of Health and Social Care, 2025. GB Nutrition and Health Claims Register (GBNHCR).

  2. Liguori, S., Moretti, A., Paoletta, M., Gimigliano, F., & Iolascon, G. 2024. Role of Magnesium in Skeletal Muscle Health and Neuromuscular Diseases: A Scoping Review. International Journal of Molecular Sciences, 25(20), 11220. https://doi.org/10.3390/ijms252011220

  3. Kirkland, A. E., Sarlo, G. L., & Holton, K. F. 2018. The Role of Magnesium in Neurological Disorders. Nutrients, 10(6), 730. https://doi.org/10.3390/nu10060730 

  4. López-Corcuera, B., Geerlings, A., & Aragón, C. 2001. Glycine neurotransmitter transporters: an update. Molecular membrane biology, 18(1), 13–20.

  5. Thirupathi, A., Pinho, R. A., Baker, J. S., István, B., & Gu, Y. 2020. Taurine Reverses Oxidative Damages and Restores the Muscle Function in Overuse of Exercised Muscle. Frontiers in Physiology, 11, 582449. https://doi.org/10.3389/fphys.2020.582449 

  6. NHS, 2025. Restless legs syndrome [online] available at https://www.nhs.uk/conditions/restless-legs-syndrome/