Lab test guide
Magnesium blood test: low and high levels explained
Magnesium is a mineral involved in muscle, nerve and heart function. The blood test is usually requested when calcium or potassium stay low without explanation, when symptoms such as cramps, twitching or palpitations suggest a problem, or when someone has kidney disease, uncontrolled diabetes, prolonged diarrhoea or takes medicines that waste magnesium. Low levels are much more common than high ones.
Last checked: 2026-10-04
Key facts
At a glance.
-
Preparation
None required.
-
Low magnesium
Can follow poor intake, poor absorption or excess loss through the kidneys or gut.
-
Medicines
Long-term diuretics and proton pump inhibitors are listed as causes of deficiency.
-
Knock-on effect
Low magnesium can make low calcium and low potassium hard to correct.
-
High magnesium
Rarely from diet; usually kidney failure or excess supplements, antacids or laxatives.
-
Pregnancy
Levels may be normally low in the second and third months of pregnancy.
What magnesium does and what the test shows
Magnesium is an electrolyte that helps muscles contract and relax, supports nerve signalling and keeps the heartbeat regular. The blood test measures how much is circulating, which is only a small fraction of the body total, so a normal result does not always exclude depletion. Lab Tests Online UK says abnormal levels are most often seen in conditions that impair or increase excretion of magnesium by the kidneys or cause poor absorption in the intestines.
It is usually grouped with other electrolytes, including sodium, potassium, chloride, bicarbonate, calcium and phosphate, to give a picture of overall balance.
Why a doctor requests it
The test is typically a follow-up to persistently low calcium or potassium, or is requested when symptoms suggest low magnesium, such as muscle weakness, twitching, cramping, confusion, irregular heartbeat or seizures. According to Lab Tests Online UK, dietary deficiency is rare but the test may be done when evaluating malabsorption, malnutrition, diarrhoea or alcoholism, in people taking drugs that cause kidney magnesium loss, in kidney disorders and uncontrolled diabetes, and to monitor supplementation.
Magnesium is also given intravenously to treat pre-eclampsia in pregnancy, and blood levels are checked to ensure treatment is adequate.
Preparation and sample
No fasting or preparation is needed and blood is taken from a vein in the arm. Tell the clinician about supplements, antacids and laxatives containing magnesium, because they can raise levels, and about diuretics and acid-reducing tablets, which can lower them.
Low magnesium (hypomagnesaemia)
Low levels mean you are not getting enough in the diet, your intestines are not absorbing enough, or your kidneys are excreting too much. Lab Tests Online UK lists low dietary intake (in older or malnourished people and with alcoholism, which also increases excretion), gastrointestinal disorders such as Crohn disease, uncontrolled diabetes, hypoparathyroidism, long-term use of diuretics and proton pump inhibitors, prolonged diarrhoea, surgery, severe burns and toxaemia of pregnancy.
The knock-on effects matter. Low magnesium can lead over time to persistently low calcium and potassium, and can make low calcium levels more resistant to treatment. That is why calcium, potassium, phosphate and parathyroid hormone are often reviewed together.
| Result | Common explanations |
|---|---|
| Low | Alcohol, malabsorption, diarrhoea, diuretics, acid-reducing medicines, uncontrolled diabetes |
| Low with low potassium and calcium | Magnesium depletion driving the other two; replacement often needed first |
| High | Kidney failure, excess supplements, magnesium antacids or laxatives, dehydration, some hormone disorders |
High magnesium
Increased levels are rarely due to excess dietary magnesium; they are usually the result of an excretion problem or excessive supplementation. Lab Tests Online UK lists kidney failure, hyperparathyroidism, hypothyroidism, dehydration, diabetic acidosis when first seen, Addison disease and use of magnesium-containing antacids or laxatives. Very high levels can slow reflexes and breathing and affect the heart, which is a reason to review products such as laxatives in people with poor kidney function.
What happens next
The cause is identified and treated. Mild deficiency is often corrected with diet or oral supplements and more severe deficiency with intravenous magnesium, with blood tests to monitor the response. Any medicine thought to be the cause is reviewed, but never stop a prescribed medicine without advice. Seek urgent care for palpitations with fainting, seizures or severe weakness; call 999 or attend A&E.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
Do I need to fast before a magnesium test?
No. Lab Tests Online UK says no test preparation is needed.
-
What are symptoms of low magnesium?
Muscle weakness, twitching, cramping, confusion, irregular heartbeat and, in severe cases, seizures.
-
Which medicines lower magnesium?
Long-term diuretics and proton pump inhibitors are named by Lab Tests Online UK. Do not stop them without advice.
-
Why are calcium and potassium checked too?
Low magnesium often accompanies low calcium and potassium and can make them harder to correct.
-
Can diet alone cause deficiency?
Rarely. Dietary deficiency is uncommon, though it is seen in older or malnourished people and with alcoholism.
-
What causes high magnesium?
Usually kidney failure or excess intake from supplements, antacids or laxatives, plus several hormone conditions and dehydration.
-
Is a low magnesium normal in pregnancy?
Levels may be low normally in the second and third months, according to Lab Tests Online UK.
-
Can alcohol affect magnesium?
Yes, through both low intake and increased excretion.
-
How is low magnesium treated?
By treating the cause and replacing magnesium orally or, if severe, intravenously, with blood tests to check progress.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-10-04, next review 2027-10-04.
-
Lab Tests Online UK, Magnesium (https://labtestsonline.org.uk/tests/magnesium), retrieved October 2026
-
Lab Tests Online UK, Electrolytes and anion gap (https://labtestsonline.org.uk/tests/electrolytes-and-anion-gap), retrieved October 2026