Requests

Vitamins, minerals and hormones · Laboratory Tests

Magnesium deficiency: what the test shows.

Cramps, tiredness or tremors may suggest magnesium deficiency, but for most people the cause is something else. Find out who is most at risk, what the test may show and when to speak to a doctor.

A Clínica Alegre professional examining a blood sample tube beside blood collection tubes

In summary

The essentials, in a few lines.

  • Magnesium helps the muscles, nerves and heart work; only a small proportion is in the blood, and the kidneys and bowel regulate it closely.
  • Magnesium deficiency is rare in healthy people and occurs mainly with prolonged diarrhoea, alcohol use, poorly controlled diabetes or medicines such as diuretics and omeprazole.
  • Leg cramps are very common and almost always have other causes; a magnesium test is requested by the doctor when there is reason to suspect a deficiency.
  • At Clínica Alegre in Setúbal, samples are collected on Mondays and Tuesdays by appointment, then sent to the Joaquim Chaves Saúde laboratory.

Causes

Why it can low magnesium levels.

With a varied diet, magnesium deficiency is rare. It usually occurs when the body absorbs too little or loses too much through the bowel or kidneys. These are the most common situations.

  • Omeprazole and other medicines for excess stomach acid

    What you may feel

    It often causes no symptoms. Proton pump inhibitors taken for a long time, particularly by older people, can lower magnesium levels.

    What can happen

    The risk increases if you also take diuretics or have diarrhoea; a severe deficiency can disrupt the heart rhythm.

    What the doctor assesses

    The doctor assesses whether the medicine is still needed and may request a magnesium test. Never stop taking a medicine on your own.

  • Diuretics

    What you may feel

    Thiazide diuretics, used for high blood pressure, cause magnesium to be lost in the urine, particularly in older people; loop diuretics have a milder effect.

    What the doctor assesses

    For people taking diuretics long term, the doctor may request magnesium alongside an electrolyte panel and creatinine, and adjust treatment if necessary.

  • Prolonged diarrhoea and bowel conditions

    What you may feel

    Crohn's disease, coeliac disease, malabsorption, chronic diarrhoea and gastric bypass surgery reduce magnesium absorption or increase its loss.

    What can happen

    Over time, magnesium deficiency can also lower calcium and potassium and make them more difficult to correct.

    What helps

    Treating the underlying condition is the main step; in coeliac disease, for example, a gluten-free diet helps prevent malabsorption.

  • Excess alcohol

    What you may feel

    Excessive alcohol use combines a low intake with loss through the kidneys: between 30% and 80% of people with alcohol use disorder have low magnesium.

    What can happen

    In these people, magnesium deficiency usually occurs alongside other deficiencies and may contribute to tremors, confusion and abnormal heart rhythms.

    What happens next

    Cutting down or stopping alcohol is part of the treatment. The doctor also assesses other minerals and vitamins.

  • Poorly controlled diabetes

    What you may feel

    When blood sugar is high, you urinate more and lose magnesium in the urine. Around a quarter of people with poorly controlled diabetes have low magnesium.

    What helps

    Controlling glucose helps reduce these losses. The doctor may request magnesium alongside routine diabetes monitoring tests.

  • Other medicines

    What you may feel

    Some hospital or long-term treatments lower magnesium: certain antibiotics, chemotherapy drugs and medicines used to prevent rejection after a transplant, among others.

    What the doctor assesses

    During these treatments, the medical team usually monitors magnesium with regular blood tests and corrects it if it falls.

  • Cramps without magnesium deficiency

    What you may feel

    Leg cramps are common and usually harmless: they occur with age, exertion, heat, pregnancy, dehydration or medicines such as statins and diuretics.

    What helps

    A Cochrane review concluded that magnesium supplements are unlikely to prevent common cramps in older people. Calf stretches help; the doctor looks for the cause.

Do you need to have these tests?Book your sample collection at the Setúbal clinic, on Mondays and Tuesdays.

The result

What the magnesium result could mean.

The test measures magnesium in the blood. Around 1% of the body's magnesium is outside the cells; the rest is in the bones and within cells. The blood level therefore does not always reflect the body's stores.

  1. Test request

    The doctor requests a magnesium test for unexplained cramps, weakness or palpitations, low calcium or potassium, prolonged diarrhoea, poorly controlled diabetes or medicines that lower it.

  2. Blood collection

    Blood is taken from a vein in the arm. Magnesium is often requested with an electrolyte panel, calcium and creatinine, as these tests help identify the cause.

  3. Reference values for adults

    A 2021 review defines low magnesium in adults as less than 0.65 mmol/l (1.5 mg/dl); other sources use slightly different thresholds. Ranges vary between laboratories; your report shows those used by the laboratory.

  4. Discussion with the doctor and next steps

    If the result is low, the doctor looks for the cause and decides on treatment: magnesium tablets in mild cases; hospital treatment in severe cases. Replacement must be handled carefully in people with kidney disease.

A normal magnesium result does not always rule out a deficiency, and a single low result does not in itself explain every symptom. The doctor assesses the result alongside your medical history, medicines and other test results.

Preparation

How how to prepare for the test.

A magnesium test requires no special preparation, but your doctor should know about everything you take.

  • Fast only if requested

    No fasting is needed when magnesium is the only test. If another test that day requires fasting, including a fasting glucose test, follow its instructions: have no food for at least 8 hours and drink water only.

  • Regular medication

    Take your medicines as usual unless your doctor tells you otherwise. Tell them if you take diuretics, omeprazole or similar medicines, laxatives or antacids.

  • Magnesium supplements

    If you already take supplements, tell your doctor before the test: they raise the level and affect its interpretation. Ask whether you should continue taking them.

  • Normal hydration

    Keep drinking your normal amount of water. Let the doctor know if you experienced diarrhoea or vomiting over the previous few days, because either may affect the result.

Warning signs

When speak to the doctor.

A low magnesium result should be reviewed by the doctor who requested the test or your family doctor. Speak to them sooner if:

  • You have cramps that last more than 10 minutes, disturb your sleep or come with numbness or swelling in your legs
  • You have muscle weakness, tremors or spasms in your hands and feet
  • You have diarrhoea that will not go away or repeated vomiting
  • Have taken diuretics or omeprazole for a long time; a test showed low magnesium, potassium or calcium levels
  • You have kidney disease and take supplements, laxatives or antacids containing magnesium
Do you have questions about your tests?Contact us using the form or WhatsApp.
A Clínica Alegre professional preparing to take blood from a patient's arm

At Clínica Alegre

What the sample collection at the clinic.

Clínica Alegre is a sample collection point in Setúbal. It collects the samples for the tests requested by your doctor and sends them to the Joaquim Chaves Saúde laboratory (JCS).

  1. 1

    Advance booking

    Samples are taken by appointment only, booked using the form, by telephone or via WhatsApp. State which tests have been requested, such as magnesium, calcium and an electrolyte panel, and bring your request form if you have one.

  2. 2

    Sample collection in Setúbal on Monday or Tuesday

    Blood is taken from a vein in your arm with a fine needle and only takes a few minutes. A magnesium test does not require fasting; if you are having other tests that do, come fasting.

  3. 3

    Testing at the JCS laboratory and results discussed with your doctor

    The JCS laboratory analyses the sample, validates the results and sets the delivery time. The clinic does not interpret results: discuss them with the doctor who requested the tests.

Monitor your health

Prevention and follow-up care.

In most people, magnesium returns to normal when the cause is treated. These steps help you monitor it.

  • Varied dietA balanced diet will usually meet your magnesium needs.
  • Long-term medicinesIf you have taken diuretics or omeprazole for a long time, ask your doctor whether your magnesium should be measured.
  • Supplements only when advisedExcess magnesium from supplements, laxatives or antacids is dangerous, particularly for people with kidney disease.
  • Less alcoholDrinking less alcohol reduces magnesium loss and other deficiencies.
  • Stretch to prevent crampsCalf stretches several times a day help prevent common cramps.

Frequently asked questions

Questions frequently asked.

Frequently asked questions

Do I need to fast for a magnesium test?

Usually not. No fasting is needed when magnesium is tested alone. If another test that day requires fasting, including a fasting glucose test, follow its instructions: have no food for at least 8 hours and drink water only.

Are cramps a sign of magnesium deficiency?

Rarely. Leg cramps are common and occur with age, exertion, heat, pregnancy, dehydration or some medicines. Magnesium deficiency can cause cramps, but it is rare in healthy people; the doctor decides whether testing is worthwhile.

What magnesium level is considered low?

It depends on the laboratory. A 2021 review uses less than 0.65 mmol/l (1.5 mg/dl) in adults. Your report shows the laboratory's range, and the doctor interprets it alongside your symptoms and other test results.

Can I have magnesium deficiency with a normal test result?

It is possible. Only around 1% of the body's magnesium is outside the cells, and the blood level does not always reflect the body's stores. If your symptoms and history suggest a deficiency, the doctor may repeat or extend the assessment.

Should I take magnesium supplements on my own?

Only on medical advice. In a Cochrane review, magnesium was unlikely to prevent common cramps in older people, and excess magnesium from supplements, laxatives or antacids can be dangerous, particularly for those with kidney disease.

Does having blood taken hurt?

You will feel a brief needle prick in a vein in your arm. There may be slight soreness or a small bruise, which usually passes quickly. Taking the sample only takes a few minutes; the laboratory determines when the results will be ready.

Which medicines can lower magnesium?

The most common are diuretics and long-term acid-reducing medicines. Certain antibiotics, platinum-based chemotherapy, ciclosporin and anti-rejection medicines can also lower it. Take your medicines as usual unless your doctor tells you otherwise.

What if I am pregnant?

Pregnancy increases magnesium requirements, and cramps are common in late pregnancy. Studies on the effect of supplements on these cramps have conflicting results. Speak to the doctor overseeing your pregnancy before taking any supplement.

Can low magnesium affect calcium and potassium?

Yes. Over time, magnesium deficiency can lower calcium and potassium and make them more difficult to correct. The doctor therefore usually requests these tests together and treats the cause first.

Where can I have a magnesium test?

At Clínica Alegre in Setúbal, on Mondays and Tuesdays by prior appointment. The clinic collects the samples and the Joaquim Chaves Saúde laboratory analyses them and validates the results, which you should discuss with your doctor.

Book an appointment

Book your assessment.

Choose Setúbal or Seixal. We reply within opening hours.