Health Library › Tests › Magnesium blood test
Test
A magnesium blood test measures magnesium in your blood to check for an abnormal level.
A magnesium blood test measures the amount of magnesium in your blood. Magnesium is a mineral that helps your nerves, muscles, heart, and many enzymes work normally. It also contributes to healthy bones.
Most magnesium is stored inside cells or in bone. Only a small amount circulates in the blood. The usual test measures total serum or plasma magnesium, meaning magnesium in the liquid portion of a blood sample.
This test can identify a clearly low or high blood magnesium level. However, a normal result does not always rule out low magnesium stores elsewhere in the body.
Magnesium is often tested with other electrolytes, such as sodium, potassium, and calcium. It may also be checked alongside tests of kidney function because the kidneys remove excess magnesium in urine.
Your healthcare professional may order this test to investigate symptoms or to monitor a condition or treatment that can change magnesium levels.
Reasons include:
The test is also commonly used during hospital care, particularly when fluid balance, kidney function, or several electrolytes are changing.
Magnesium testing is not usually part of routine screening for every healthy person. It is most useful when there is a specific reason to suspect an abnormal level or when magnesium needs to be monitored.
Testing may be appropriate if you have a condition that affects absorption, nutrition, or kidney function. It may also be ordered if you take medicines associated with magnesium loss, such as some diuretics or long-term proton pump inhibitors like omeprazole or lansoprazole. Diuretics like furosemide or hydrochlorothiazide increase urine production, while proton pump inhibitors reduce stomach acid.
People using magnesium-containing antacids, laxatives, supplements, or intravenous treatments may need testing in some circumstances. This is particularly relevant when kidney function is reduced because magnesium can build up if the kidneys cannot remove it effectively.
Whether you need the test depends on your symptoms, medical history, medicines, and other laboratory results.
You usually do not need to fast for a magnesium blood test. If other blood tests are being taken at the same appointment, follow the preparation instructions for those tests.
Tell the person arranging the test about prescription medicines, over-the-counter products, antacids, laxatives, and magnesium supplements. Include the dose and when you last took them if you know. Do not stop a prescribed medicine or supplement unless you have been specifically told to do so.
Drinking water beforehand can make the blood draw easier. Unless you have been given different instructions, ordinary daily activity is acceptable. For repeat testing, taking the sample under similar conditions can make results easier to compare.
A healthcare professional cleans an area of skin, usually inside your elbow, and inserts a small needle into a vein. Blood is collected into a tube and sent to a laboratory.
You may feel a brief scratch or sting. The blood collection itself usually takes less than five minutes, although the full appointment may take longer.
If you are receiving magnesium through a vein, the timing and location of the blood draw matter. A sample should not be contaminated by fluid containing magnesium, so staff may use another arm or pause treatment according to local procedures.
Your result will appear with the laboratory’s reference range. This is the range expected for most people in the group used by that laboratory.
Do not compare your number with a range from another laboratory or website. Ranges and interpretation vary by laboratory, testing method, age, sex, pregnancy status, medicines, kidney function, and clinical context.
A low result is called hypomagnesemia. It may occur when magnesium is lost through the gut or kidneys, intake or absorption is reduced, or magnesium shifts into cells. Possible settings include prolonged diarrhea, poor nutrition, alcohol-related illness, uncontrolled diabetes, and use of certain medicines. A result alone cannot identify the cause.
A high result is called hypermagnesemia. It is more likely when kidney function is reduced or when magnesium-containing medicines, supplements, laxatives, or intravenous treatments provide more magnesium than the body can remove.
The result is usually considered alongside potassium, calcium, kidney tests, symptoms, and an electrocardiogram, or ECG, when relevant. An ECG records the heart’s electrical activity.
Several factors can change the number without showing your usual magnesium status:
A recent transfusion or major treatment involving fluids and electrolytes may also affect interpretation. Tell your healthcare team when these occurred.
The test usually measures the magnesium present in the sample accurately when the sample is collected and handled correctly. It is good at confirming a clearly abnormal blood concentration.
Its main weakness is that blood contains only a small share of the body’s magnesium. The body may keep the blood level within range by drawing magnesium from cells and bone. As a result, the test can miss reduced total body stores.
The test may incorrectly suggest a high level if red blood cells break during collection or if the sample is contaminated by magnesium-containing intravenous fluid. A result taken soon after a supplement or treatment may also reflect that recent dose rather than your usual level.
If a result is unexpected, repeating the blood test may be more useful than acting on one measurement. A urine magnesium test can sometimes help determine whether magnesium is being lost through the kidneys. Ionized magnesium measures the unbound portion, but it is not widely available and methods are less standardized. Red blood cell magnesium testing is not automatically a better routine measure of body stores.
A blood draw may cause a small bruise, brief soreness, or light-headedness. Serious complications from routine blood collection are uncommon.
A result within the laboratory range may need no action, especially if your symptoms and related tests are reassuring. If concern remains, your healthcare professional may review medicines, diet, kidney function, and other electrolytes or repeat the test.
For an abnormal result, follow-up may include checking calcium, potassium, glucose, and kidney function. Treatment depends on how abnormal the level is, whether you have symptoms, and what caused the change. Do not start high-dose magnesium or stop prescribed treatment based only on the result.
Arrange routine follow-up if you have questions about a mildly abnormal result or ongoing symptoms.
Seek urgent medical help for fainting, a seizure, severe confusion, marked weakness, breathing difficulty, sustained palpitations, or chest pain. Do not wait for a routine appointment if these symptoms are present.
Can I drink coffee before a magnesium blood test?
Usually, yes. The magnesium test itself does not normally require fasting. If you are having other fasting tests, have only what your instructions allow; plain water is usually permitted.
Does the time of day matter?
There is usually no required time of day. For repeat measurements, similar timing may help if medicines, supplements, meals, or intravenous treatment could affect the result.
Can I exercise beforehand?
Normal activity is generally fine. Strenuous exercise can temporarily shift magnesium and fluid levels, so avoiding a hard workout immediately before a planned repeat test may improve comparability.
Should I stop my magnesium supplement first?
Do not stop it unless you are told to. Report the product, dose, and time of your last dose because recent intake can affect the result.
Does a normal result rule out magnesium deficiency?
No. Blood magnesium may remain normal even when body stores are reduced. Your symptoms, risk factors, and other test results still matter.
Is a urine magnesium test better?
It answers a different question. Blood testing shows the current circulating concentration, while urine testing may help determine whether the kidneys are losing or retaining magnesium.
sofidex [Internet]. Daloreum; c2026. Magnesium blood test; [reviewed 2026 Aug 24; cited 2026 Nov 10]. Available from: https://sofidex.com/patients/tests/magnesium-blood-test
sofidex. (2026, August 24). Magnesium blood test. Daloreum. Retrieved November 10, 2026, from https://sofidex.com/patients/tests/magnesium-blood-test
Magnesium blood test. sofidex. Reviewed August 24, 2026. Accessed November 10, 2026. https://sofidex.com/patients/tests/magnesium-blood-test
The cited date is today’s, because a citation records when you read the page. The reviewed date is when a clinician last checked it.