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.

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