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.