For general information only. This library does not replace advice, diagnosis or treatment from a qualified health professional. In an emergency, call 911.

Library / Conditions

Magnesium deficiency

Magnesium deficiency means your body has too little magnesium, a mineral needed for muscles, nerves, heart rhythm and bones, often from illness, medicines or alcohol.

Clinician view: includes diagnostic criteria, management and safety detail.

Overview

Magnesium is a mineral your body uses in hundreds of everyday jobs. It helps your muscles relax after they tighten, keeps nerve signals working, supports a steady heartbeat, helps build strong bones and teeth, and plays a part in turning food into energy. Most of your magnesium is stored in your bones and inside your cells. Only a small amount is in your blood.

Magnesium deficiency means your body does not have enough magnesium. When the level in your blood is low, doctors call it hypomagnesemia (hy-po-mag-nee-SEE-mee-uh). It is fairly common in people who are in hospital, people who drink a lot of alcohol, and people who take certain medicines for a long time. It is much less common in healthy people who eat a varied diet, because healthy kidneys are good at holding on to magnesium when intake is low.

Mild magnesium deficiency often causes no symptoms. A more serious shortage can cause muscle cramps, shaking, weakness and, in some cases, a dangerous heart rhythm. The good news is that it can usually be found with a simple blood test and treated once the cause is known.

Symptoms

Symptoms often build slowly and can be easy to miss, because they look like many other problems. Early signs may include:

  • Loss of appetite
  • Nausea or vomiting
  • Tiredness and weakness
  • Feeling irritable or having trouble paying attention

As the shortage gets worse, you may notice:

  • Muscle cramps, twitching or spasms
  • Tingling or numbness, often in the hands, feet or around the mouth
  • Shaking (tremor)
  • A fast, pounding or irregular heartbeat (palpitations)
  • Confusion or changes in mood

Severe deficiency can cause seizures (fits) and serious heart rhythm problems. Low magnesium also often comes with low potassium or low calcium in the blood, which can add to muscle and heart symptoms.

Causes

Magnesium deficiency usually happens because your body is losing too much magnesium, absorbing too little from food, or both. A poor diet alone rarely causes it, but it can add to other causes.

Losing magnesium through the gut

  • Long-lasting diarrhea
  • Conditions that affect how your gut absorbs food, such as celiac disease or Crohn's disease
  • Surgery that removes part of the bowel, or some types of weight-loss surgery
  • Inflammation of the pancreas (pancreatitis)

Losing magnesium through the kidneys

  • Some "water pills" (diuretics), such as furosemide and hydrochlorothiazide
  • Diabetes that is not well controlled, because high blood sugar makes you pass more urine
  • Rare inherited kidney conditions, such as Gitelman syndrome

Medicines

Several medicines can lower magnesium, especially when taken for a long time. These include stomach acid medicines called proton pump inhibitors (such as omeprazole and pantoprazole), some cancer medicines (such as cisplatin and cetuximab), some medicines used after an organ transplant (such as tacrolimus and cyclosporine), and some strong antibiotics and antifungals given in hospital.

Alcohol

Heavy drinking is one of the most common causes. Alcohol makes the kidneys release more magnesium, and people who drink heavily often eat poorly and may have vomiting or diarrhea.

Other causes

Magnesium can also drop when someone starts eating again after a long period of very poor nutrition (called refeeding), and after some types of surgery.

Risk factors

You are more likely to have low magnesium if you:

  • Drink a lot of alcohol
  • Have type 2 diabetes, especially if blood sugar is often high
  • Have a bowel condition that causes diarrhea or poor absorption
  • Take a proton pump inhibitor or a diuretic for many months or years
  • Are receiving certain cancer or transplant medicines
  • Are an older adult, since older people often absorb less magnesium, lose more through the kidneys and take more medicines
  • Are very ill in hospital

Diagnosis

Your health care provider will ask about your symptoms, what you eat and drink, your other health conditions and all the medicines and supplements you take. They will then usually order a blood test to measure magnesium. In adults, a level below about 0.70 mmol/L (1.7 mg/dL) is usually considered low, although each laboratory has its own normal range.

Because most magnesium is stored inside cells and bones, a normal blood level does not always rule out a shortage. Your provider may also:

  • Check potassium, calcium, kidney function and blood sugar, since these are often linked
  • Test your urine to see whether your kidneys are losing magnesium
  • Do an electrocardiogram (ECG), a painless test that records your heart's electrical activity, if your level is low or you have heart symptoms

Finding the reason for the low magnesium is just as important as the number itself.

Treatment

Treatment has two parts: bringing your magnesium back up and dealing with the cause.

Magnesium by mouth

For mild deficiency, your provider may suggest magnesium tablets or liquid. Common forms include magnesium oxide, magnesium chloride and magnesium citrate. They work by adding magnesium that your gut can absorb. The most common side effect is loose stools or diarrhea. Taking the dose spread out during the day, with food, often helps. Your provider will tell you which form and how much to take, because the right amount depends on your level, your kidneys and your other health conditions.

Magnesium through a vein

If your level is very low, you have serious symptoms such as seizures or an abnormal heart rhythm, or you cannot take tablets, you may be given magnesium sulfate through a drip (intravenous, or IV) in hospital. This raises the level more quickly and safely under close monitoring.

Treating the cause

  • Reviewing medicines that may be lowering your magnesium. Do not stop a prescribed medicine on your own; your provider can tell you whether a change is safe.
  • Treating diarrhea or a bowel condition
  • Getting support to cut down or stop drinking alcohol
  • Improving blood sugar control if you have diabetes
  • For some people who lose magnesium through the kidneys, a provider may add a medicine such as amiloride, which helps the kidneys hold on to magnesium

Low potassium and low calcium often do not improve until magnesium is corrected, so these are usually treated together.

Living with magnesium deficiency

Food is a good everyday source of magnesium. Foods that are naturally rich in it include:

  • Green leafy vegetables, such as spinach
  • Nuts and seeds, such as almonds, cashews and pumpkin seeds
  • Beans, lentils and soy foods such as tofu
  • Whole grains, such as oats, brown rice and whole wheat bread
  • Some fish, avocado, bananas and plain yogurt

Other tips that can help:

  • Keep a list of all your medicines and supplements and share it at every appointment.
  • Ask your provider whether you need regular blood tests if you take a medicine known to lower magnesium.
  • Do not take large amounts of magnesium supplements without advice, especially if you have kidney disease. Your kidneys remove extra magnesium, and if they are not working well, magnesium can build up to harmful levels.
  • Be aware that some laxatives and antacids contain magnesium. Check with a pharmacist before combining products.

Complications

If it is not treated, severe magnesium deficiency can lead to:

  • Abnormal heart rhythms, including a dangerous type called torsades de pointes
  • Seizures
  • Low potassium and low calcium levels that are hard to correct

Over the long term, low magnesium intake has been linked to weaker bones and may be linked to other health problems, but research on these links is still ongoing.

Outlook

Most people do well once magnesium is replaced and the cause is found. Symptoms such as cramps and weakness usually improve as levels return to normal. If the cause continues, such as a medicine you need to keep taking or a long-term bowel or kidney condition, you may need ongoing supplements and regular blood tests.

Prevention

You can lower your risk by eating a varied diet with plenty of vegetables, beans, nuts, seeds and whole grains, and by limiting alcohol. If you take a medicine that can lower magnesium, or you have a condition that causes ongoing diarrhea, talk with your provider about checking your level from time to time.

In the United States

In the United States, most oral magnesium products are sold as dietary supplements, which the FDA does not approve for safety or effectiveness before they are sold. Ask a pharmacist for help choosing a product. The NIH Office of Dietary Supplements provides fact sheets on magnesium intake.

Diagnosis

Hypomagnesemia is usually defined as serum magnesium below about 0.70 mmol/L (1.7 mg/dL); levels below 0.50 mmol/L (1.2 mg/dL) are generally regarded as severe. Serum magnesium reflects under 1% of total body stores, so total-body depletion can coexist with a normal serum level; consider empirical repletion in high-risk patients with refractory hypokalemia or hypocalcemia.

Key investigations: potassium, calcium (ionised if available), phosphate, creatinine and eGFR, glucose, and ECG (QT prolongation, wide QRS, peaked or flattened T waves, ventricular arrhythmias). To separate renal from gastrointestinal loss, measure 24-hour urinary magnesium or fractional excretion of magnesium (FEMg). In the setting of hypomagnesemia, FEMg above about 2% (or 24-hour urinary magnesium above about 1 mmol/day, 24 mg/day) suggests renal wasting.

Common causes: GI loss (chronic diarrhea, malabsorption, short bowel, pancreatitis), long-term proton pump inhibitors, loop and thiazide diuretics, alcohol use disorder, poorly controlled diabetes, refeeding syndrome, hungry bone syndrome, and drugs including cisplatin, EGFR inhibitors (cetuximab, panitumumab), calcineurin inhibitors, aminoglycosides, amphotericin B, foscarnet and pentamidine. Inherited tubulopathies (Gitelman, Bartter, familial hypomagnesemia with hypercalciuria and nephrocalcinosis) should be considered in young patients with unexplained renal wasting.

Management

Mild, asymptomatic: oral replacement (magnesium oxide, chloride, citrate or lactate), given in divided doses to limit diarrhea. Oral repletion is slow and limited by GI tolerance and absorption.

Severe or symptomatic (seizures, tetany, arrhythmia): IV magnesium sulfate with cardiac monitoring. For torsades de pointes, 2 g (8 mmol) IV over several minutes is standard. Otherwise give a loading dose followed by slower infusion; because renal excretion rises sharply as serum levels increase, slow infusion over hours retains more magnesium than rapid boluses, and repletion often needs several days.

Cautions: reduce doses and monitor closely in reduced eGFR because of hypermagnesemia risk (loss of deep tendon reflexes, hypotension, bradycardia, respiratory depression). Correct magnesium before or alongside potassium and calcium, since hypokalemia and hypocalcemia are often refractory until magnesium is restored. Review causative drugs, particularly PPIs; amiloride may reduce renal magnesium wasting, including in diuretic-related or Gitelman-associated loss.

Monitoring: recheck serum magnesium, potassium and calcium after IV therapy and periodically on oral therapy; consider periodic magnesium checks in patients on long-term PPIs, diuretics, cisplatin or calcineurin inhibitors.

Red flags: QT prolongation or ventricular arrhythmia, seizures, tetany, concurrent digoxin therapy (low magnesium increases toxicity risk). Prognosis is good when the cause is identified and treated; ongoing losses may require long-term supplementation.

When to get medical help

See your doctor or nurse practitioner if you:

  • Have muscle cramps, twitching, tingling or weakness that keep coming back
  • Take a proton pump inhibitor, a diuretic or another medicine that can lower magnesium, and you notice these symptoms
  • Have ongoing diarrhea, or you drink heavily and want help
  • Have side effects from a magnesium supplement, such as diarrhea that does not settle

Call emergency services or go to the nearest emergency department if you or someone else has:

  • A seizure
  • Chest pain, fainting, or a very fast or irregular heartbeat
  • Sudden confusion or severe muscle spasms
  • Very slow breathing, extreme drowsiness or very low blood pressure after taking magnesium products, especially with kidney disease

In an emergency, call 911.

References

  1. U.S. National Library of Medicine. MeSH: Magnesium Deficiency. meshb.nlm.nih.gov
  2. NIH Office of Dietary Supplements: Magnesium fact sheet for consumers. ods.od.nih.gov/factsheets/Magnesium-Consumer/
  3. NIH Office of Dietary Supplements: Magnesium fact sheet for health professionals. ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
  4. Merck Manual Professional Version: Hypomagnesemia. merckmanuals.com/professional/endocrine-and-metabolic-disorders/electrolyte-disorders/hypomagnesemia