What Is a Magnesium Test?

Medically Reviewed by Jabeen Begum, MD on March 26, 2024

Written by Rachel Reiff Ellis 6 min read

What Is Magnesium?

Magnesium is one of the major minerals your body needs to function properly. You get it from foods and supplements. It's also an ingredient in some medicines such as antacids and laxatives. More than half the magnesium you have in your body is stored in your bones and tissues.

How is magnesium used in the body?

Magnesium does a lot to help your body work well. It's involved in almost 300 different enzyme activities. Enzymes are proteins that help speed up chemical reactions in the body. These chemical reactions help to:

Magnesium also helps balance the levels of calcium, copper, zinc, potassium, vitamin D, and other important nutrients in your body. And it aids the transport of calcium and potassium ions across cell membranes. This helps your nerves send signals, your muscles to contract, and your heart to beat in a normal, steady rhythm.

How to get more magnesium

The recommended daily amount of magnesium is 320-420 milligrams. If you eat a well-balanced diet you'll get all the magnesium you need. If you want to boost your levels, these foods are good sources:

You can take magnesium as a supplement, but dietitians recommend you try to get it from food sources before going that route. Always talk to your doctor before taking any supplement.

photo of Healthy food nutrition dieting concept

When to Get a Magnesium Test

Some health problems can affect the amount of magnesium in your body. Your doctor may want to monitor your magnesium levels with a test if you have:

Some medications can raise or lower your magnesium levels, such as:

What Do Magnesium Levels Mean?

Your body functions best when your magnesium levels are balanced—not too high and not too low.

Normal magnesium levels

A normal range for magnesium levels in your blood is 1.7 to 2.2 mg/dL. If, from time to time, your diet isn't giving you enough magnesium, your body can maintain this normal range because of the stores of magnesium in your bones. Your body also has a way to get rid of extra magnesium if your levels are high.

What is a magnesium deficiency?

A deficiency is when you have lower than normal levels of a nutrient. It's not common to have magnesium deficiency. Doctors don't test for magnesium levels in routine blood tests. But there are signs and symptoms that may tell them it's time to check out your magnesium levels.

Low Magnesium Levels

Having low magnesium levels is also called hypomagnesemia . Only about 2% of people in the general population have it.

What causes low magnesium levels?

Aside from medical conditions and medications that may cause it, your chances of having a magnesium deficiency go up if you have a stay in the hospital, have an alcohol use disorder, or your diabetes isn't well-controlled.

Low magnesium symptoms

Not having enough magnesium in your body can cause:

If your magnesium levels get dangerously low, you may:

High Magnesium Levels

It's very uncommon to have too much magnesium in your body, but if you do, it's called hypermagnesemia.

What causes high magnesium levels?

Most cases of high magnesium happen in people who live with kidney disease. Some older adults with kidney disease may not absorb magnesium correctly, causing it to build up in their body. Your risk of this goes up if you regularly take medications with magnesium, such as antacids or laxatives.

You may also get it if you have:

High magnesium symptoms

If you have too much magnesium in your system, you might have:

Blood Test for Magnesium

A test called a serum magnesium test measures the amount of magnesium you have in your bloodstream. To do the test, your doctor will draw a blood sample from a vein in your arm with a small needle. They'll send this sample to a lab to test the magnesium levels.

Magnesium Urine Test

Your doctor can also test the amount of magnesium in your urine. A magnesium urine test isn't the normal urine test you might be used to, where you pee into a cup at your doctor's office and they send only that sample for testing. A magnesium urine test usually involves collecting your pee over 24 hours This is because your levels may go up and down based on the foods you've eaten that day.

Magnesium Red Blood Cell Test

This test measures the levels of magnesium inside your red blood cells. It may be a more sensitive test for detecting low levels of magnesium than a regular magnesium blood test.

Just like a magnesium blood test, a technician takes a vial of blood from a vein in your arm and sends it to a lab for testing.

Magnesium EXA Test

For this test, your doctor gently swipes the inside of your cheeks to gather cells that they then wipe on a test strip. The test strip goes to a lab for analysis.

At the lab, an electron microscope scans the cells and sends X-rays through them. Different minerals in your cells release different amounts of energy. The test can see how much magnesium you have based on these readings.

Takeaways

Magnesium is an essential mineral your body needs for multiple functions, such as energy production, making protein, helping muscles contract, and maintaining healthy bones and a healthy heart. You can get it from foods such as green leafy vegetables, whole grains , beans, and nuts.

Most people get enough magnesium from a well-balanced diet, but certain conditions can raise or lower your levels. Having too much or too little magnesium causes certain symptoms, some of which can be serious. Your doctor can do tests to find out what your magnesium levels are.