Back to Medicines

Magnesium: Supplements, Deficiency and Interactions

Magnesium: Supplements, Deficiency and Interactions
Prescription Medicines Editorial 18 January 2026

Magnesium is involved in hundreds of enzyme reactions, in nerve and muscle function, and in heart rhythm. It is heavily marketed for cramps, sleep and stress, on evidence that is thin. The situations where it genuinely matters are different from the ones it is sold for: correcting a measured deficiency, and understanding that low magnesium makes low potassium impossible to fix however much potassium you take.

Follow the instructions on your label. This guide contains no doses.

The potassium link

This is the clinically important piece. When magnesium is low, the kidney continues to waste potassium regardless of how much is replaced.

So persistent low potassium that will not correct with supplementation is a reason to check magnesium. Treating the magnesium is what allows the potassium to come up.

Both are needed for normal heart rhythm, and both being low raises the risk from medicines that lengthen the QT interval. See potassium chloride and medicines that affect your heart rhythm.

What causes deficiency

  • Proton pump inhibitors on long-term use - a recognised and under-checked cause. See esomeprazole.
  • Diuretics, particularly loop and thiazide - see diuretics
  • Prolonged diarrhoea or vomiting, and malabsorption including coeliac disease
  • Alcohol dependence, which is among the commonest causes
  • Poorly controlled diabetes
  • Some chemotherapy and immunosuppressant drugs

If you have been on a PPI for years and have cramps, palpitations or a stubbornly low potassium, magnesium is worth asking about.

Symptoms

Mild deficiency often causes nothing. More marked deficiency causes muscle cramps and twitching, weakness, fatigue, nausea, and palpitations or irregular heart rhythm.

Severe deficiency can cause seizures and dangerous arrhythmias.

Because the symptoms are vague and overlap with a great deal else, a blood test is what settles it - and blood magnesium is an imperfect measure, since most magnesium is inside cells rather than in the blood.

Oral supplements cause diarrhoea

This is the practical limit on replacing magnesium by mouth. Unabsorbed magnesium draws water into the bowel - which is precisely why magnesium salts are used as laxatives.

Doses high enough to correct a real deficiency frequently cause diarrhoea, which in turn causes further magnesium loss. Different salts differ: oxide is poorly absorbed and most laxative, while citrate, glycinate and lactate are better tolerated.

Spreading the dose through the day and taking it with food helps. Where oral replacement fails, or deficiency is severe, intravenous magnesium is given in hospital.

Which salt to take

Magnesium oxide contains the most magnesium by weight and is the cheapest, but is poorly absorbed and the most laxative. Citrate, glycinate, lactate and aspartate are absorbed better and tolerated better.

Labels quote either the weight of the salt or the weight of elemental magnesium, which are very different numbers - a point worth checking if you are comparing products, since it is the elemental figure that matters.

What it blocks

Magnesium binds several medicines in the gut, preventing absorption - the same mechanism as calcium and iron:

Separate them by a couple of hours. Magnesium-containing antacids are the most overlooked source, because nobody thinks of them as a supplement - see medicines, milk and dairy.

Kidney disease

Magnesium is cleared by the kidneys, so in significant kidney impairment it accumulates.

High magnesium causes nausea, flushing, weakness, low blood pressure, a slow pulse and, at the extreme, cardiac arrest and respiratory depression.

Anyone with reduced kidney function should not take magnesium supplements or magnesium-containing antacids and laxatives without advice. See medicines that affect your kidneys.

Cramps and sleep

The evidence that magnesium helps ordinary leg cramps in people who are not deficient is weak - trials have generally been negative, particularly in older adults.

The evidence for sleep and anxiety is thinner still.

That does not mean nobody benefits, and it is an inexpensive and generally safe thing to try if your kidneys are normal. It does mean that persistent cramps deserve a look at the causes - dehydration, medicines including diuretics and statins, and circulation - rather than a supplement indefinitely.

Magnesium in the diet

Green leafy vegetables, nuts, seeds, wholegrains, pulses and dark chocolate are the main sources, and a reasonably varied diet supplies enough for most people.

Dietary magnesium does not cause the diarrhoea that supplements do, and it comes with no risk of accumulation in kidney disease. Where someone has a cause of ongoing loss - a diuretic, a PPI, alcohol - diet alone will not keep up, which is the situation where measuring and supplementing makes sense.

Where it is genuinely established

Intravenous magnesium is standard treatment in pre-eclampsia and eclampsia, in severe asthma attacks, and in certain arrhythmias. Those are hospital uses and quite separate from the tablets on a shelf.

More on how the main families of medicine work in the Medicines section, including Misoprostol: Ulcer Prevention and Obstetric Use.