Can You Take Metformin and Magnesium Together?

Medical Disclaimer

This article is for informational purposes only and does not constitute medical advice. Always consult your physician or a qualified healthcare provider regarding any medical condition or treatment.

Key Takeaways

  • The metformin prescribing information does not list magnesium as a clinically significant drug interaction, so the two are not known to clash directly.
  • Both can cause diarrhea, so a magnesium supplement or magnesium laxative may add to the stomach upset many people feel on metformin.
  • With kidney disease, magnesium can build up in the blood, and reduced kidney function also limits metformin use, so ask your doctor first.
  • Long-term acid reducers called proton pump inhibitors and some diuretics are recognized causes of low magnesium; metformin's label does not list it.
  • Ask your doctor or pharmacist before adding magnesium, and consider a magnesium blood test if you have symptoms of low levels.

Metformin and magnesium do not have a major labeled interaction. The metformin prescribing information does not list magnesium among its clinically significant drug interactions. Two practical issues still matter: both can loosen stools, and kidney disease changes how safely your body handles both.

Many people with type 2 diabetes or prediabetes wonder about magnesium because it plays a role in how the body uses glucose. Here is what the evidence and the labels say about taking the two together.

Metformin boxed warning: Metformin carries an FDA boxed warning for lactic acidosis, a rare but serious build-up of acid in the blood. Risk factors include kidney impairment, age 65 or older, heavy alcohol use, liver problems, contrast dye imaging, surgery and certain drugs. The patient information says to call your doctor right away for unusual weakness or muscle pain, trouble breathing, unusual sleepiness, stomach pain with nausea or vomiting, feeling cold in your hands or feet, dizziness, or a slow or irregular heartbeat.

Is There an Interaction Between Metformin and Magnesium?

The metformin prescribing information lists these groups as clinically significant interactions:

  • Carbonic anhydrase inhibitors such as topiramate, zonisamide and acetazolamide, which may increase lactic acidosis risk
  • Drugs that reduce metformin clearance such as ranolazine, vandetanib, dolutegravir and cimetidine
  • Alcohol, which can increase metformin’s effect on lactate
  • Insulin and insulin secretagogues such as sulfonylureas, which raise the risk of low blood sugar
  • Drugs that tend to raise glucose, such as thiazide diuretics, corticosteroids and thyroid products

Magnesium supplements and magnesium-containing antacids or laxatives are not on that list. That does not mean every person can safely take any amount of magnesium. It means the issues are practical ones, covered below.

Issue Metformin Magnesium supplements or laxatives What it means together
Diarrhea and stomach upset Among the most common side effects Can have a laxative effect GI symptoms may add up
Kidney disease Not used below an eGFR of 30; limits apply below 45 Excess may build up when kidney function is reduced Ask your doctor before using magnesium
Labeled drug interaction Magnesium not listed Interacts with some other drugs No direct clash on the metformin label
Effect on blood sugar Lowers glucose Small trials show modest effects at most Not a substitute for treatment

Diarrhea: The Most Likely Problem

According to the metformin label, the most common side effects include diarrhea, nausea and vomiting, gas, indigestion and abdominal discomfort. Magnesium, especially in laxative forms such as magnesium citrate or magnesium hydroxide (milk of magnesia), draws water into the bowel and can cause loose stools.

Combining them can make diarrhea more likely or more severe. Ongoing diarrhea is not just uncomfortable. It can lead to dehydration, and the metformin patient information lists getting dehydrated as something that raises the chance of lactic acidosis. If you already struggle with stomach upset, our guide to metformin diarrhea covers what may help.

Why Kidney Function Matters Most

Kidney function is the main factor that makes this combination risky. Metformin is removed from the body unchanged by the kidneys. Its label says it should not be used when the estimated glomerular filtration rate (eGFR) is below 30 mL/min/1.73 m², starting it is not recommended between 30 and 45, and the benefits and risks should be reassessed if eGFR falls below 45. You can learn more about this measurement in our eGFR test and diabetes guide.

Magnesium is also handled by the kidneys. According to MedlinePlus, side effects from high magnesium intake are not common except in people with significantly reduced kidney function, and magnesium excess most often comes from supplements or magnesium-containing laxatives. Over-the-counter milk of magnesia labels say to ask a doctor before use if you have kidney disease or a magnesium-restricted diet.

If you have chronic kidney disease, avoid magnesium supplements and magnesium laxatives unless your doctor prescribes them.

Does Metformin Cause Low Magnesium?

Low magnesium is not listed as a side effect in the metformin prescribing information. People with type 2 diabetes are more likely to have low magnesium, though. MedlinePlus lists them among the groups who may absorb less magnesium, and it names excessive urination from uncontrolled diabetes as one cause of low blood magnesium.

Medicines are a common cause too. MedlinePlus lists diuretics and proton pump inhibitors (PPIs), among others. The Prilosec (omeprazole) label warns that low magnesium has been reported rarely with PPI use for at least three months, in most cases after a year of therapy. Serious effects can include muscle spasms (tetany), heart rhythm problems and seizures.

Metformin does affect another nutrient. Its label notes that it can lower vitamin B12 levels and recommends periodic B12 checks. See our vitamin B12 test guide for details.

Signs of low magnesium

MedlinePlus lists fatigue, muscle spasms or cramps, muscle weakness, numbness, abnormal eye movements and convulsions. A blood test can check your level; MedlinePlus gives a typical normal range of 1.6 to 2.6 mg/dL (0.66 to 1.07 mmol/L), though lab ranges vary. Our magnesium test and diabetes page explains the test.

Can Magnesium Help Blood Sugar?

Magnesium helps the body adjust blood glucose, according to MedlinePlus, which also notes ongoing research into its role in diabetes. It adds that taking magnesium supplements is not currently advised for this purpose.

A 2016 meta-analysis in the European Journal of Clinical Nutrition pooled 18 small randomized trials. It found that magnesium supplements modestly lowered fasting glucose in people with diabetes and improved 2-hour glucose test results in people at high risk, but the results varied a lot between studies. That is not strong enough to treat magnesium as a diabetes medicine. For more, see magnesium and blood sugar.

Food is the simplest way to get magnesium. MedlinePlus lists dark leafy greens, nuts such as almonds and cashews, beans and peas, seeds, soy foods, whole grains and milk. Many of these also fit well in a prediabetes diet.

Practical Tips If You Take Both

  • Ask your doctor or pharmacist before starting a magnesium supplement or laxative, especially if you have kidney disease.
  • If diarrhea starts or worsens after adding magnesium, stop the supplement and tell your care team. Do not stop metformin on your own.
  • Stay hydrated, and follow your sick-day plan if you have vomiting or diarrhea.
  • Keep your yearly kidney tests and periodic B12 checks.
  • If you take a PPI or diuretic long term, ask whether your magnesium should be checked.

Ask your pharmacist: Bring a full list of your medicines, including over-the-counter antacids, laxatives, vitamins and supplements. Magnesium can affect how some other medicines are absorbed. Do not start, stop or change any prescribed medicine on your own.

The Bottom Line

Metformin and magnesium have no major labeled interaction, but they can add up to more diarrhea, and kidney disease makes magnesium supplements and laxatives risky. PPIs and diuretics, not metformin, are the recognized medicine causes of low magnesium. Magnesium supplements are not a diabetes treatment, so talk with your doctor or pharmacist before adding one. For more on diabetes medicines, visit our treatment hub.

Frequently Asked Questions

Can I take magnesium and metformin at the same time of day?

The metformin label does not list magnesium as an interaction, and it does not give special spacing instructions for magnesium supplements. Metformin is usually taken with meals to ease stomach upset. Magnesium antacid labels warn that they may interact with certain prescription drugs, and the gabapentin label, for example, advises a 2-hour gap. Ask your pharmacist how to time magnesium around your full medicine list.

Does metformin lower magnesium levels?

Low magnesium is not listed as a side effect in the metformin prescribing information. Low magnesium is more common in people with type 2 diabetes, and MedlinePlus lists excessive urination from uncontrolled diabetes, chronic diarrhea, diuretics and proton pump inhibitors among its causes. If you have muscle cramps, weakness or tingling, ask your doctor about a blood test.

Will magnesium lower my A1C?

Evidence is limited. A 2016 meta-analysis of small randomized trials found magnesium supplements modestly lowered fasting glucose in people with diabetes, but results varied widely between studies. MedlinePlus says magnesium supplements are not currently advised for managing diabetes. Magnesium is not a substitute for metformin or any prescribed treatment.

Is magnesium citrate safe with metformin?

Magnesium citrate is commonly used as a laxative, and both it and metformin can cause loose stools, so combining them may worsen diarrhea. Diarrhea can also lead to dehydration, which matters for kidney function. Magnesium laxative labels say to ask a doctor before use if you have kidney disease. Check with your pharmacist first.

Sources

  1. National Library of Medicine. Metformin hydrochloride tablets prescribing information, DailyMed. https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=b8004451-7b26-425b-b5ea-cbb1b08e30e3
  2. MedlinePlus. Magnesium in diet. https://medlineplus.gov/ency/article/002423.htm
  3. MedlinePlus. Low blood magnesium. https://medlineplus.gov/ency/article/000315.htm
  4. Prilosec (omeprazole magnesium) prescribing information, DailyMed. https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=b6761f84-53ac-4745-a8c8-1e5427d7e179
  5. Veronese N, et al. Effect of magnesium supplementation on glucose metabolism in people with or at risk of diabetes. Eur J Clin Nutr. 2016;70(12):1354-1359. https://pubmed.ncbi.nlm.nih.gov/27530471/