Magnesium deficiency happens when your body does not get enough magnesium from food, loses too much of it, or cannot absorb what you take in. The most common causes are a diet low in whole foods, digestive conditions that block absorption, certain medications, and chronic health problems like type 2 diabetes. Uncontrolled stress and heavy alcohol use also drain magnesium from the body faster than normal.
What Causes Magnesium Deficiency in Daily Life?
Diet is the most common reason people fall short. Magnesium is found in leafy greens, nuts, seeds, beans, and whole grains. If your meals rely heavily on processed foods, refined grains, and soft drinks, your magnesium intake drops quickly.
The typical Western diet provides less magnesium than older, more traditional eating patterns did. Refining grains removes most of their magnesium. White flour, white rice, and many breakfast cereals have had the magnesium-rich parts stripped away.
Soil depletion also plays a role. Some research suggests that modern farming practices have reduced the magnesium content of certain crops compared with decades past. The exact impact is debated, but eating a varied diet with plenty of plant foods remains the best protection.
How Do Digestive Conditions Cause Magnesium Deficiency?
Your body absorbs magnesium in the small intestine. Any condition that damages this area or speeds food through it can reduce how much magnesium actually enters your bloodstream.
Celiac disease is a well-documented cause. The immune reaction to gluten damages the lining of the small intestine, which is exactly where magnesium absorption happens. Even with a good diet, people with untreated celiac disease often have low magnesium levels.
Crohn’s disease and ulcerative colitis also interfere with absorption. Inflammation in the intestinal wall reduces its ability to pull magnesium from food. People who have had parts of their small intestine surgically removed face the same problem.
Chronic diarrhea of any cause increases magnesium loss. Loose stools carry magnesium out of the body before it can be absorbed. Long-term laxative use has the same effect.
Which Medications Deplete Magnesium?
Several common medications increase magnesium loss through the kidneys. This is not a rare side effect — it is a well-established mechanism that doctors monitor for.
Proton pump inhibitors (PPIs) are among the most frequently used drugs linked to magnesium deficiency. These include omeprazole, esomeprazole, and lansoprazole, which treat acid reflux. Long-term use — usually more than a year — reduces magnesium absorption in the intestine. Some people develop dangerously low levels without any other risk factor.
Diuretics increase urine output, and magnesium goes with it. Loop diuretics like furosemide and thiazide diuretics like hydrochlorothiazide both increase urinary magnesium loss. This matters because these drugs are often prescribed for high blood pressure and heart failure, conditions that already strain the body.
Antibiotics such as aminoglycosides can increase magnesium excretion. Certain antifungal drugs and chemotherapy agents do the same. If you take any of these medications long term, your doctor may check your magnesium level periodically.
How Do Chronic Diseases Cause Magnesium Deficiency?
Type 2 diabetes is one of the strongest disease-related causes. High blood sugar makes the kidneys excrete more urine, and magnesium is lost in that extra urine. Poorly controlled diabetes can double urinary magnesium loss compared with healthy controls.
Insulin resistance itself is tied to low magnesium. Some research suggests that magnesium deficiency worsens insulin resistance, creating a cycle where diabetes depletes magnesium and low magnesium makes blood sugar control harder.
Alcohol use disorder is another major cause. Alcohol increases urinary magnesium excretion and reduces dietary intake. People with alcohol dependence often eat poorly and absorb fewer nutrients, compounding the problem. Liver disease from alcohol further disrupts magnesium handling.
What Are the Symptoms of Low Magnesium?
Early magnesium deficiency is often silent. Blood tests can show normal levels even when body stores are low because most magnesium lives inside cells and bones, not in the blood.
When symptoms do appear, they tend to be vague at first. Fatigue, muscle twitches, and weakness are common early signs. Some people notice eyelid twitching or leg cramps, especially at night.
More severe deficiency produces clearer symptoms. Numbness and tingling in the hands and feet, muscle spasms, and changes in heart rhythm can all occur. Very low magnesium can cause seizures or abnormal heart rhythms that require emergency treatment.
Low magnesium often occurs alongside low potassium and low calcium. This is because magnesium regulates how the body handles these other minerals. Correcting potassium deficiency sometimes fails until magnesium is also replaced.
Who Is at the Highest Risk?
Some groups face a much higher risk of magnesium deficiency than the general population.
- Older adults absorb less magnesium and often eat less of it. Kidney function also declines with age, changing how magnesium is regulated.
- People with type 2 diabetes lose more magnesium in urine, as described above.
- People with gastrointestinal diseases including celiac and Crohn’s disease absorb less magnesium.
- People taking PPIs or diuretics long term are at increased risk.
- People with alcohol dependence face multiple overlapping causes.
- Pregnant women need more magnesium to support fetal development and increased blood volume.
Hospitalized patients are also frequently deficient. Critical illness, burns, and major surgery all increase magnesium needs and losses. In intensive care units, low magnesium is common enough that it is routinely checked.
How Is Magnesium Deficiency Diagnosed?
Doctors usually start with a blood test called serum magnesium. The normal reference range is roughly 1.7 to 2.2 mg/dL, though exact values vary slightly by laboratory.
Serum magnesium has an important limitation. Only about 1 percent of the body’s magnesium circulates in the blood. The rest sits in bone and cells. A normal blood level does not guarantee that total body stores are adequate. Conversely, a low blood level almost always indicates real deficiency.
More sensitive tests exist, such as the magnesium loading test or measuring magnesium inside red blood cells. These are not routine. They are reserved for cases where deficiency is strongly suspected but blood levels look normal.
How Is Magnesium Deficiency Treated?
Treatment depends on severity. Mild deficiency is usually corrected with diet changes or oral magnesium supplements. Severe deficiency, especially with heart rhythm problems or seizures, requires intravenous magnesium in a hospital.
Oral magnesium supplements come in several forms. Magnesium citrate and magnesium glycinate are well absorbed. Magnesium oxide is cheaper but less bioavailable. Magnesium chloride is another option. There is no single best form for everyone — what matters is that the supplement is taken consistently and tolerated without diarrhea.
Food sources remain the safest foundation. Pumpkin seeds, almonds, spinach, cashews, peanuts, black beans, and edamame are all rich in magnesium. A single ounce of pumpkin seeds provides roughly 150 mg of magnesium, which is a substantial portion of the daily need.
The recommended dietary allowance for magnesium is 400 to 420 mg per day for adult men and 310 to 320 mg per day for adult women. Pregnant women need slightly more. Most people in the United States do not reach these targets.
Can You Get Too Much Magnesium?
Yes, but it is difficult through food alone. The body tightly regulates magnesium from dietary sources, excreting excess through the kidneys.
Supplements are different. High doses of oral magnesium — typically above 350 mg per day from supplements — can cause diarrhea, nausea, and abdominal cramping. These are not dangerous in healthy people but are unpleasant.
Serious toxicity is rare and almost always involves kidney failure or massive supplement overdose. People with chronic kidney disease cannot excrete magnesium properly and should not take magnesium supplements without medical supervision. For them, even normal doses can build to dangerous levels.
Frequently Asked Questions
What is the most common cause of magnesium deficiency?
A diet low in magnesium-rich foods is the most common cause. Digestive diseases and certain medications are also frequent contributors.
Can stress cause magnesium deficiency?
Severe or prolonged stress can increase magnesium loss through urine. The effect is real but usually secondary to poor diet and other lifestyle factors.
How long does it take to correct a magnesium deficiency?
With consistent oral supplementation, blood levels typically improve within weeks. Rebuilding total body stores in bone and cells can take several months.
Does coffee deplete magnesium?
Caffeine increases urinary magnesium loss modestly. The effect is small and does not cause deficiency in people who eat a reasonable diet.

