Longevity Regeneration Metabolism Energy Mitochondria Health
Reviewed by Yesha Karmeli, naturopathic practitioner (Heilpraktiker) and founder of ORY · Last updated 16.10.2026

It is three o’clock in the morning, and suddenly your calf tightens, hard as a stone. You leap out of bed, stand on the cold floor and wait for the pain to ease. And yet you have been taking magnesium for weeks. Why do the leg cramps at night keep coming back anyway?

You are not alone in this. Night-time leg cramps are common, and magnesium is the remedy most people think of first. This article shows what research says about it, which other causes are possible and when you should have the cramps checked by a doctor.

At a glance

  • What it's about: Your calf cramps at night, even though you have been taking magnesium for weeks. Why won't it stop?
  • Possible causes: Often there is no clear cause. Medicines, alcohol and other conditions such as diabetes may play a part.
  • What you can do: Keep a cramp diary and discuss stretching with a doctor. Have a swollen, red calf on one side checked by a doctor straight away.
  • What can be measured: Magnesium, zinc, selenium, copper, iron, potassium, sodium and calcium in whole blood – this shows your status, not the cause of the cramps.

Person sitting on the edge of the bed at night, holding their calf

Leg cramps at night: how common they are and who gets them

Night-time leg cramps are a sudden, painful tightening, usually of the calf muscles, that can last from seconds to minutes. Up to 60 per cent of adults report having experienced this (PubMed 22963024). They are particularly common in later life: in older people, they often disturb sleep and therefore quality of life (PubMed 27515677). Leg cramps also often occur during pregnancy (PubMed 32956536).

The honest answer to the question about the cause is often: there is no clear one. Experts then speak of idiopathic cramps. It is thought that muscle fatigue and faulty nerve signalling are more likely to be behind them than a lack of minerals (PubMed 22963024).

Severe leg cramps at night despite magnesium: what the studies say

Magnesium is often recommended for cramps. However, the evidence is more sobering than many people think. A Cochrane review evaluated eleven studies on magnesium for muscle cramps. In people with cramps without an identifiable cause, mostly older adults with night-time leg cramps, the number of cramps with magnesium hardly differed from that with a placebo. The authors consider it unlikely that magnesium helps these people to any meaningful extent (PubMed 32956536).

For cramps in pregnancy, the results were contradictory and the studies had a high risk of bias. A reliable statement is therefore not possible there (PubMed 32956536). The studies looked at cramps without an identifiable cause. A magnesium deficiency confirmed by a doctor is a different situation and needs a professional assessment.

This means: if your leg cramps persist despite magnesium, it is not a sign that you are taking “too little”. It may simply be that the cause lies elsewhere.

Frequent leg cramps at night: causes many people do not think of

Medication: In a large analysis of prescription data in people aged 50 and over, treatment for cramps was started considerably more often after certain water tablets (potassium-sparing and thiazide-type diuretics) or long-acting asthma inhalers (beta-2 agonists) had been newly prescribed. For statins and loop diuretics, the association was small (PubMed 22157068). Other medicines are also linked to leg cramps in review articles (PubMed 22963024). Do not stop a prescribed medication without talking to your doctor first. But do mention the timing if the cramps started after a new prescription.

Alcohol: In a case-control study of people aged 60 and over who visited a GP practice, night-time leg cramps were associated with drinking alcoholic beverages (PubMed 29987076). Such an association does not yet prove a cause, but it is something you can observe in yourself.

Other conditions: Night-time leg cramps are associated with vascular disease, narrowing of the spinal canal in the lower back, liver disease and dialysis (PubMed 22963024). Muscle cramps are common in diabetes. In type 1 diabetes, the frequency and severity of the cramps were linked to measurements of nerve function (PubMed 29175104).

Everyday life: Sitting or standing for long periods, unaccustomed exertion, drinking little on hot days – such factors are often mentioned as triggers. There are hardly any robust studies on this. A cramp diary can still help you recognise a personal pattern.

Person stretching their calf against a light-coloured wall

What you can do yourself: stretching and observing

During a cramp, many people find it helpful to pull their foot towards them or to stand up and press their heel into the floor. Stretching has been studied as a way of prevention: in a small randomised study of people over 55, those who stretched their calves and the backs of their thighs every evening before going to sleep for six weeks had fewer and milder cramps than the comparison group (PubMed 22341378). However, a Cochrane review rates the certainty of these results as low to very low. Another study found hardly any difference with calf stretching alone (PubMed 33998664). So stretching is not a reliable remedy, but it is a simple measure you can discuss with your doctor or a physiotherapist.

Measure instead of guess: what a blood level can show

If you have been taking magnesium for weeks, you often want to know whether there is a deficiency at all. It helps to know that only around one per cent of the magnesium in the body is in the blood; most of it is in the bones, muscles and other tissues. The usual serum level therefore does not necessarily reflect the body’s total stores (PubMed 26069819).

The whole blood mineral analysis measures magnesium, zinc, selenium, copper, iron, potassium, sodium and calcium in whole blood from a capillary sample, that is, in the blood fluid and blood cells together. For minerals that are mainly found inside cells, this gives a different picture from the serum level. The results are building blocks, not a diagnosis. Putting them into context is also important: according to a review article, laboratory tests are usually not needed to recognise typical night-time leg cramps as such (PubMed 22963024). A mineral level therefore answers the question “What is my status?”, not automatically the question “Where do my cramps come from?”.

Discuss the results with your doctor, a naturopathic practitioner or the ORY expert team. There you can also clarify whether further tests make sense, for example of the kidneys, thyroid or blood sugar.

When leg cramps should be checked by a doctor

A cramp that eases after a short time is usually harmless. It is different if the calf is swollen on one side, red, warm or constantly painful. This can indicate a blood clot in a leg vein (thrombosis) and needs to be examined by a doctor immediately. If shortness of breath or chest pain occur as well, call the emergency number 112.

Also have cramps checked promptly if they occur very often, also affect other muscles during the day, come with muscle weakness, muscle wasting, numbness or tingling, started after a new medication or keep robbing you of sleep at night.

In brief

  • Night-time leg cramps are common, especially in older age and during pregnancy, and often have no clear cause.
  • In older people with night-time leg cramps, magnesium made hardly any difference in studies.
  • Medication, alcohol and other conditions such as diabetes can play a role.
  • A whole blood level shows your mineral status, but it is a building block, not a diagnosis.
  • A calf that is swollen and red on one side needs to be examined by a doctor immediately.

Hands writing in a cramp diary next to a cup of tea

Frequently asked questions

Why do I get leg cramps at night even though I take magnesium?

Because cramps without an identifiable cause are usually not due to a magnesium deficiency. In older adults with night-time leg cramps, magnesium hardly differed from a placebo in studies (PubMed 32956536). Other factors such as medication or other conditions are then more likely.

What is the most common cause of severe leg cramps at night?

Often no single cause can be found. Muscle fatigue and faulty nerve signalling are suspected (PubMed 22963024). Medication, vascular and nerve conditions should still be considered by a doctor.

Can alcohol cause leg cramps at night?

A study of people aged 60 and over found a link between drinking alcoholic beverages and night-time leg cramps (PubMed 29987076). Whether alcohol plays a role for you is something you can observe with a cramp diary.

Why do older people get leg cramps at night more often?

Night-time leg cramps become more common with age. In addition, older people more often take medications such as diuretics, which are linked to cramps (PubMed 27515677) (PubMed 22157068).

Which medications can cause leg cramps?

In studies, certain diuretics and long-acting asthma inhalers stood out in particular (PubMed 22157068). Do not stop a prescribed medication without talking to your doctor first.

Does stretching help with leg cramps at night?

In a small study, older people who stretched in the evening had fewer cramps (PubMed 22341378). Overall, however, the evidence is considered weak (PubMed 33998664).

Important note: This article does not replace medical advice, diagnosis or treatment. It is for general information only. If your symptoms are persistent or severe, please contact your doctor.

Sources

  1. Allen RE, Kirby KA. Nocturnal leg cramps. Am Fam Physician. 2012. PubMed 22963024
  2. Rabbitt L et al. A review of nocturnal leg cramps in older people. Age Ageing. 2016. PubMed 27515677
  3. Garrison SR et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020. PubMed 32956536
  4. Garrison SR et al. Nocturnal leg cramps and prescription use that precedes them: a sequence symmetry analysis. Arch Intern Med. 2012. PubMed 22157068
  5. Delacour C et al. Association Between Alcohol Consumption and Nocturnal Leg Cramps in Patients Over 60 Years Old: A Case-Control Study. Ann Fam Med. 2018. PubMed 29987076
  6. Abraham A et al. Cramps frequency and severity are correlated with small and large nerve fiber measures in type 1 diabetes. Clin Neurophysiol. 2018. PubMed 29175104
  7. Hallegraeff JM et al. Stretching before sleep reduces the frequency and severity of nocturnal leg cramps in older adults: a randomised trial. J Physiother. 2012. PubMed 22341378
  8. Hawke F et al. Non-drug therapies for the secondary prevention of lower limb muscle cramps. Cochrane Database Syst Rev. 2021. PubMed 33998664
  9. Jahnen-Dechent W, Ketteler M. Magnesium basics. Clin Kidney J. 2012. PubMed 26069819