Requests

Laboratory tests

Magnesium: how to prepare for the test

Preparing for a magnesium test is generally straightforward, but some details can affect the result.

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

Reviewed by Dr. Fernando Alegre

Clinical Director · OMD, registration no. 9688

Written by the Clínica Alegre team5-minute read

In this article

Magnesium is measured mainly in serum, while most of the body's magnesium is in the bones and inside cells. The blood level is therefore sensitive to factors such as recently taken supplements, some medicines and the way the sample is collected.

This article explains what to tell the doctor, what to avoid and how to plan the day of the blood draw. Always follow the laboratory's specific instructions on matters such as fasting and timing.

Why preparation matters

Less than 1% of the body's magnesium circulates in the blood. The serum level is useful, but does not perfectly reflect total stores. The doctor therefore interprets it alongside symptoms, other electrolytes (potassium, calcium and sodium) and kidney function.

Factors that may affect the result:

  • magnesium supplements taken in the preceding hours;
  • laxatives and antacids containing magnesium;
  • medicines that cause magnesium loss, such as some diuretics and proton pump inhibitors (used for stomach acid), particularly when used for a long time;
  • heavy alcohol consumption;
  • diarrhoea or vomiting in the preceding days;
  • haemolysis in the sample (the breakdown of red blood cells during collection or transport), which can falsely raise the magnesium level because there is more magnesium inside cells.

What to tell the doctor before the test

InformationWhy it matters
Magnesium supplements or multivitaminsMay temporarily raise the level
Laxatives or antacidsSome contain magnesium
Diuretics, proton pump inhibitors and other long-term medicinesMay lower magnesium
Kidney diseaseThe kidneys remove magnesium; this greatly affects interpretation
Diabetes, chronic bowel disease or bowel surgeryMay be associated with magnesium loss
Regular alcohol consumptionAssociated with low magnesium
Recent diarrhoea or vomitingAffects electrolytes
PregnancyMay change levels and monitoring

Never stop a diuretic, a stomach medicine or any other treatment to "improve" the test. Tell the doctor what you take and they will decide.

Fasting, diet and supplements

Many laboratories do not require fasting for a magnesium test alone. However, magnesium is often requested alongside glucose, cholesterol or other markers that do require it. Follow the strictest instruction given.

If you need to fast:

  • you may drink water;
  • avoid coffee, tea, juice and chewing gum;
  • do not fast for longer than instructed.

For magnesium supplements, ask the doctor whether you should pause them before the blood draw and for how long. If the aim is to assess your response to treatment, the doctor may prefer you to continue taking them as usual.

Take your usual medication as normal unless a doctor tells you otherwise.

When the sample is taken

The way the blood is collected also matters:

  • Leaving a tourniquet on for too long and repeatedly clenching and unclenching the fist can alter some electrolytes. Follow the instructions of the person collecting the blood and keep your hand relaxed. If your veins are difficult to access, arrive well hydrated and allow plenty of time. Drinking water the day before and in the morning makes it easier to insert the needle. If you have fainted during a blood draw before, ask to lie down. If you take anticoagulants or antiplatelet medicines, let staff know so that pressure can be applied to the site for longer.

Avoid strenuous exercise in the preceding 24 hours and alcohol the day before.

Checklist for the day of sample collection

WhenWhat to do
When you receive the test requestCheck which tests are being done together and whether fasting is required
A few days beforehandSpeak to the doctor about supplements, laxatives and antacids
Day beforeEat a normal evening meal, without alcohol; avoid strenuous exercise; drink water
Morning of sample collectionFast if instructed; take your usual medication unless told otherwise
If you have had diarrhoea or vomitingTell the doctor or laboratory
When leaving homeBring the test request, identification and medication list
During sample collectionKeep your hand relaxed; mention if you tend to faint
AfterwardsBring something to eat if you have fasted

Questions to ask before the test

  • Do I need to fast for these tests? Should I stop taking the magnesium supplement? For how long? Could my medication affect the result? Will potassium, calcium and kidney function also be measured?

Warning signs: when to contact the clinic or go to the emergency department

Some symptoms should not wait until the test:

  • For seizures, fainting, severe palpitations or a very irregular heartbeat, call 112. For severe and persistent cramps, tremors or muscle spasms that do not subside, contact the doctor the same day. If you have marked weakness, drowsiness or confusion, particularly if you have kidney disease and take laxatives or antacids containing magnesium, seek urgent medical assessment. For severe diarrhoea or vomiting that does not stop, seek medical assessment. For questions about preparation, contact SNS 24 (808 24 24 24), the laboratory or the clinic.

At Clínica Alegre in Setúbal and Seixal, you can have laboratory tests and ask our team any questions about the results.

Frequently asked questions

Do I need to fast for a magnesium test?

Generally not when tested alone. If it is tested alongside other markers that require fasting, you should fast.

Can I take my magnesium supplement on the morning of the test?

Ask the doctor. You will often be asked not to take it before the blood draw.

Do heartburn tablets affect magnesium?

Some can lower it when used for a long time. Do not stop taking them; tell the doctor.

I have cramps. Will the test show whether I am deficient in magnesium?

It helps, but a normal level does not rule out a deficiency. The doctor will interpret it alongside your symptoms.

Did you enjoy this article?

Scientific references3
  1. Workinger JL, Doyle RP, Bortz J. Challenges in assessing magnesium levels. Nutrients. 2018;10(9):1202.
  2. de Baaij JHF, Hoenderop JGJ, Bindels RJM. Magnesium in man: implications for health and disease. Physiol Rev. 2015;95(1):1–46.
  3. Simundic AM, Bölenius K, Cadamuro J, et al. Joint EFLM-COLABIOCLI Recommendation for venous blood sampling. Clin Chem Lab Med. 2018;56(12):2015–2038.
Article information
Written by
Clínica Alegre team
Clinical review
Dr Fernando Alegre, Clinical Director · OMD, registration no. 9688
Published
3 Dec 2026
Last updated
3 Dec 2026
Topic
Laboratory tests
Reading time
5 min

See also

Related treatments

Want to know what is right for you?

Contact us on WhatsApp or book an assessment, in person or online.

Book an appointment

Book your assessment.

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

Newsletter

Get the latest news from the Clínica Alegre.

Blog articles and clinic news, delivered to your inbox. Unsubscribe at any time.