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
| Information | Why it matters |
|---|---|
| Magnesium supplements or multivitamins | May temporarily raise the level |
| Laxatives or antacids | Some contain magnesium |
| Diuretics, proton pump inhibitors and other long-term medicines | May lower magnesium |
| Kidney disease | The kidneys remove magnesium; this greatly affects interpretation |
| Diabetes, chronic bowel disease or bowel surgery | May be associated with magnesium loss |
| Regular alcohol consumption | Associated with low magnesium |
| Recent diarrhoea or vomiting | Affects electrolytes |
| Pregnancy | May 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
| When | What to do |
|---|---|
| When you receive the test request | Check which tests are being done together and whether fasting is required |
| A few days beforehand | Speak to the doctor about supplements, laxatives and antacids |
| Day before | Eat a normal evening meal, without alcohol; avoid strenuous exercise; drink water |
| Morning of sample collection | Fast if instructed; take your usual medication unless told otherwise |
| If you have had diarrhoea or vomiting | Tell the doctor or laboratory |
| When leaving home | Bring the test request, identification and medication list |
| During sample collection | Keep your hand relaxed; mention if you tend to faint |
| Afterwards | Bring 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
- Workinger JL, Doyle RP, Bortz J. Challenges in assessing magnesium levels. Nutrients. 2018;10(9):1202.
- de Baaij JHF, Hoenderop JGJ, Bindels RJM. Magnesium in man: implications for health and disease. Physiol Rev. 2015;95(1):1–46.
- 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.





