Key takeaways:
Magnesium is a mineral that helps your body work properly. But your body can’t make magnesium on its own, so it’s important to get enough of it from your diet.
A low magnesium level, also called “hypomagnesemia,” is a blood magnesium below 1.7 mg/dL. There are several different causes, like low dietary intake, medications, or poor absorption in the digestive tract.
Severe magnesium deficiency can affect your nervous system and heart. It can lead to things like muscle spasms, seizures, or heart arrhythmias.
Low magnesium is treated with oral or intravenous magnesium supplements.
Magnesium is a mineral that the body uses for many processes. You’ve probably heard more about other electrolytes — like sodium, potassium, and calcium. But like these other electrolytes, magnesium plays a critical role in your nervous system, heart health, and metabolism.
Low magnesium levels, also called “hypomagnesemia,” can cause a variety of problems. Some are more serious than others. Here, we’ll discuss the symptoms, causes, and diagnosis of this condition, along with treatment options.
Magnesium deficiency can cause a range of symptoms in different parts of the body. Many of the symptoms relate to the role of magnesium in the electrical conduction of your nervous system and heart.
Some of the symptoms of magnesium deficiency include:
Weakness and fatigue
Tremors or muscle twitching
Muscle cramping
Heart palpitations or heart arrhythmias
Numbness
Seizures
Confusion or mood changes
In many cases, magnesium deficiency is linked with low levels of other important electrolytes. Low calcium and low potassium are especially common. That’s partly because low levels of these electrolytes share common causes.
There are several causes of low magnesium levels.
This can happen if you’re malnourished or don’t eat enough foods that have magnesium. The good news is that there are a lot of foods that are rich in magnesium (check out the list below).
Intestinal conditions can affect how magnesium is absorbed in the gut. This can happen even if you eat enough magnesium in your diet. Examples of these conditions include:
Gastric bypass surgery
Can magnesium help with anxiety? Learn why people are taking magnesium supplements to help lower stress and anxiety — and if it actually works.
What's the best type of magnesium for constipation? There are many different types of magnesium supplements. Here’s your guide to the best types for constipation.
Should you take magnesium and vitamin D together? If you’re low on vitamin D or magnesium, it may be important to take these supplements together. Learn why.
You can also lose magnesium through your digestive tract when you vomit or have diarrhea for any reason.
Health conditions can affect how your kidneys process magnesium. The result is that your kidneys pass extra magnesium through urine. And this can cause a magnesium deficiency.
These conditions include kidney diseases, as well as others that affect the kidneys, such as:
High blood sugar from diabetes
Thyroid disease
Bartter syndrome and Gitelman syndrome, two inherited conditions
Certain medications can lead to magnesium deficiency. Diuretics, for example, can increase the amount of magnesium passed through the urine. And proton pump inhibitors (PPIs) can affect the amount of magnesium absorbed in the gut.
Medications that can lead to low magnesium include:
Diuretics, like hydrochlorothiazide
Antibiotics, like aminoglycosides
Chemotherapy medications, like cisplatin
PPIs, like pantoprazole
Laxatives
Regular heavy drinking can lead to magnesium deficiency in several ways, such as:
Not eating enough while drinking alcohol or afterward
Magnesium not being absorbed well in the intestine
Peeing more often, meaning more magnesium is passed
The causes of magnesium deficiency aren’t limited to the conditions above. Your magnesium levels go up and down, based on changes in your body and levels of other electrolytes. Many different health conditions can affect how much magnesium in the blood. Some examples include:
Inflammation of the pancreas (pancreatitis)
Advanced pregnancy
Electrolyte loss from excessive sweating or burn injuries
Hyperaldosteronism (increased levels of the hormone aldosterone in the body, which can be caused by many different health conditions)
To diagnose hypomagnesemia, a healthcare professional can check the level of magnesium in your blood. A normal magnesium level is 1.7 mg/dL to 2.2 mg/dL. So a level at or below 1.6 mg/dL is considered magnesium deficiency.
But most people don’t experience any symptoms until the magnesium level is below 1.2 mg/dL.
Treatment for low magnesium levels includes oral (by mouth) magnesium supplements. If your levels are severely low or cause symptoms, intravenous (IV) magnesium may be a better option.
Depending on the cause of your low magnesium level, there are also medications — aldosterone antagonists — that can help decrease the loss of magnesium in the urine.
Your primary care provider can help you figure out the underlying cause and decide how to best manage your low magnesium level.
But milder cases of magnesium deficiency may not always need supplements or medications for treatment. Sometimes, all that’s needed is eating more foods with magnesium.
If your magnesium is low because you aren’t getting enough in your diet, you can eat more foods high in magnesium:
Nuts and nut butters — especially almonds, peanuts, and cashews
Spinach
Grains, like rice and whole-wheat breads and cereals
Black beans and edamame
Soy milk
Yogurt
Potatoes
A serving of each of the above foods contains 40 mg to 80 mg of magnesium. Experts recommend that adults consume 400 mg of magnesium every day. This may be easier than you think. For example, a small serving of pumpkin or chia seeds contains up to 150 mg of magnesium.
Magnesium is an important mineral in the body. It plays an especially important role in nerve conduction and heart function. A low magnesium level can have many different causes. And it’s important to identify and address the underlying reason in addition to treating magnesium deficiency itself.
Luckily, many causes of low magnesium are easily treated. And you can often fix low magnesium levels by taking oral supplements and adding magnesium-rich foods to your diet.
Dominguez, A., et al. (2025). Hyperaldosteronism. StatPearls.
Gragossian, A., et al. (2023). Hypomagnesemia. StatPearls.
Office of Dietary Supplements. (2022). Magnesium: Fact sheet for health professionals. National Institutes of Health.
Pham, P. T., et al. (2014). Hypomagnesemia: A clinical perspective. International Journal of Nephrology and Renovascular Disease.