Leg cramps at night: causes, fluids and what helps
Udgivet af Nuro, som selv udvikler og markedsfører kosttilskud. Nuro har en kommerciel interesse i emnet. Artiklen er ikke en uafhængig produkttest.

Kort svar
A sudden, painful calf cramp in the middle of the night can wake even the deepest sleeper. Magnesium is almost always mentioned as the solution, but the picture is more complex. Here are the real causes of nighttime leg cramps, what the evidence actually says about magnesium, and what else is worth trying before you see a doctor.
What nighttime leg cramps are
A leg cramp is an involuntary, powerful contraction of a muscle, most often in the calf or foot, that occurs at rest or during sleep and can be painful for several minutes, sometimes leaving the muscle sore the next day. They are common: according to the Danish Medical Handbook, around half of people report having had such episodes, and they are most common in older adults over 65. They are usually harmless. But precisely because they have so many possible causes, there is no single universal solution.
The many causes
Cramps are a common endpoint for several different factors:
- Fluid and electrolyte imbalance: dehydration and low levels of sodium, potassium, magnesium, or calcium can disrupt normal muscle function (magnesium and electrolytes).
- Medication: The Danish Medical Handbook mentions some medications, including diuretics and statins (cholesterol medication), as predisposing factors.
- Circulation and nerves: poor circulation in the legs and pressure on nerve roots (e.g. from the back) can trigger cramps.
- Pregnancy: pregnancy is one of the predisposing factors mentioned in the Danish Medical Handbook.
- Age: cramps are most common in older adults over 65.
Do not confuse cramps with restless legs, where iron and dopamine play a role; it is a different condition with a different solution.
Magnesium: what the evidence actually says
Magnesium contributes to normal muscle function, but that is not the same as magnesium working against cramps. A Cochrane review concludes that magnesium does not have a clinically meaningful effect in older adults with nighttime cramps, and research in pregnant women is contradictory. There is no approved EU health claim for cramps, and the research has been reviewed in magnesium for nighttime muscle cramps. Pregnant women should speak with a midwife or doctor.
Fluid and electrolytes: the overlooked factors
Dehydration is one of the predisposing factors mentioned in the Danish Medical Handbook, along with overtraining and excessive alcohol consumption. If you have sweated a lot or not drunk enough, fluid is therefore part of the picture (heat and fluid loss, electrolytes). The Danish Medical Handbook does not mention salt as a remedy for leg cramps. Potassium from food (e.g. vegetables and fruit) also plays a role in the balance (magnesium and potassium).
What you can try yourself
The Danish Medical Handbook's advice does not require a pill:
- Stretch or massage the calf when a cramp occurs. This is recommended by the Danish Medical Handbook during an attack.
- Drink enough during the day, especially when you sweat (cramps in sports).
- Manage other predisposing factors such as overtraining and excessive alcohol consumption.
- If the cramps return, speak with your doctor about the cause.
When are they not "just" cramps?
Contact a doctor if the cramps occur frequently (several times a week) or are very painful, if you take statins, or if the cramps are accompanied by swelling, warmth, and redness in the leg (suspected blood clot), loss of sensation or tingling (nerve issues), or persistent muscle pain between cramps. This is general information, not an assessment of your specific situation; if in doubt, a doctor is the right person to help determine the cause.
Nuro's approach
Nuro sells its own magnesium supplement and therefore has an interest in the topic. The principle behind Nuro is the same regardless of the topic: explain things honestly and clearly, recommend only what is documented, and choose the form and dose based on evidence, not the highest number on the package. When it comes to nighttime cramps, this means telling it like it is: The Danish Medical Handbook recommends stretching or massage during an attack and managing predisposing factors such as dehydration; magnesium has no approved health claim for cramps, and persistent cramps are a matter for a doctor. If you want to see the approach in practice, start with how to read a supplement label.
Frequently asked questions
What is the most common cause of leg cramps at night?
There is no single cause. The Danish Medical Handbook mentions dehydration, electrolyte imbalances, older age, certain types of medication, and pregnancy, among others. Because there are many causes, one solution does not work for everyone.
Does magnesium help with nighttime cramps?
There is no approved EU health claim for cramps. A Cochrane review finds no meaningful effect in older adults, and research in pregnant women is contradictory. If cramps persist, the cause should be determined by a doctor.
What can I do myself about nighttime cramps?
The Danish Medical Handbook recommends stretching or massaging the calf during an attack and managing predisposing factors such as dehydration, overtraining, and excessive alcohol consumption.
Can medication cause leg cramps?
Yes. The Danish Medical Handbook mentions some medications, including diuretics and statins, as predisposing factors. Never stop taking your medication without speaking to your doctor.
When should I see a doctor about cramps?
If cramps are frequent or very painful, if you take statin medication, or if cramps are accompanied by swelling, warmth, and redness in the leg, or loss of sensation or tingling. This should be assessed by a doctor.
Sources
- Garrison SR et al. (Cochrane), Magnesium for skeletal muscle cramps. Cochrane
- The Danish Medical Handbook (sundhed.dk), Leg cramps (nighttime muscle cramps). sundhed.dk
- Commission Regulation (EU) No 432/2012, approved health claims (magnesium and calcium: normal muscle function). EUR-Lex
- NIH Office of Dietary Supplements, Magnesium. ods.od.nih.gov


