ResearchPLOS Medicine · Mar 6, 2026

SGLT2 inhibitors, GLP-1 RAs, and DPP4 inhibitors and the risk of hypomagnesemia in type 2 diabetes: A target trial emulation

Shao SC, Tsai DH, Chuang AT, Liu KH, Lai EC
Endocrinology & DiabetesAdult

Study type: Observational study: it can show a link, but not prove that one thing causes another.

Read the full paper free at PubMed Central ↗

Abstract

Background Recent studies have suggested potential effects on magnesium homeostasis associated with sodium-glucose cotransporter 2 (SGLT2) inhibitors and glucagon-like peptide-1 receptor agonists (GLP-1 RA). We sought to determine whether these effects lead to a reduced risk of hypomagnesemia among adults with type 2 diabetes in clinical practice. Methods and findings We conducted a target trial emulation study using the multi-institutional cohort data from the TriNetX Global Collaborative Network. We compared 1:1 propensity score-matched patients with type 2 diabetes newly initiating SGLT2 inhibitors versus dipeptidyl peptidase-4 (DPP4) inhibitors (n = 718,798), GLP-1 RAs versus DPP4 inhibitors (n = 623,390), and SGLT2 inhibitors versus GLP-1 RAs (n = 702,808) from 2016 to 2024. Propensity scores were estimated using logistic regression models that included baseline covariates such as age, sex, race, comorbidities, and medication and laboratory data. In each comparison, patients receiving DPP4 inhibitors were considered the active-comparator group. The primary outcome was incident hypomagnesemia, defined by clinical diagnosis or serum magnesium <1.80 mg/dL. Patients were followed until the occurrence of an outcome of interest, last clinical visit, death, or the end of database period (March 31, 2025), whichever came first. We found that initiation of SGLT2 inhibitors was associated with a significantly lower risk of hypomagnesemia, compared with both DPP4 inhibitors (Hazard ratio [HR]: 0.80, 95% confidence interval [CI]: 0.79, 0.82; p < 0.05) and GLP-1 RAs (HR: 0.92; 95% CI: 0.91, 0.93; p < 0.05). Similarly, GLP-1 RA use was associated with a lower risk of hypomagnesemia, compared with DPP4 inhibitors (HR: 0.89; 95% CI: 0.88, 0.91; p < 0.05). These associations were consistent across individual agents within each drug class. The main limitation of our study is that residual confounding inherent to retrospective observational research cannot be completely ruled out. Conclusions Treatment with SGLT2 inhibitors and GLP-1 RAs was associated with a lower risk of hypomagnesemia, compared with DPP4 inhibitors. These findings suggest that SGLT2 inhibitors and GLP-1 RAs may be preferable options for patients at risk of hypomagnesemia.

More on this topic

SGLT2 inhibitorsGLP-1 receptor agonists (semaglutide, tirzepatide)Type 2 diabetes

Subject terms

Aged; Female; Humans; Male; Middle Aged; Diabetes Mellitus, Type 2; Dipeptidyl-Peptidase IV Inhibitors; Glucagon-Like Peptide-1 Receptor Agonists; Hypoglycemic Agents; Magnesium; Risk Factors; Sodium-Glucose Transporter 2 Inhibitors

DOI: 10.1371/journal.pmed.1004968 · PubMed: 41790761

Cite this article

Shao SC, Tsai DH, Chuang AT, Liu KH, Lai EC. SGLT2 inhibitors, GLP-1 RAs, and DPP4 inhibitors and the risk of hypomagnesemia in type 2 diabetes: A target trial emulation. PLoS Med. 2026;23(3):e1004968. doi:10.1371/journal.pmed.1004968

RIS (EndNote, Zotero, Mendeley)BibTeX

Spotted a mistake? Suggest a correction

Top Endocrinology & Diabetes studies every Monday

The week’s key trials and guidelines, free to read, in one short email. No account; unsubscribe in one click.

Choose specialties and topics

Similar articles

Research · Diabetes Obes Metab · Jun 14, 2026 · Endocrinology & Diabetes

Healthcare Cost Trends in New Users of SGLT-2i, DPP-4i and GLP-1 RA for Type 2 Diabetes: An Observational Longitudinal Study

Meta-analysis n = 46,292 · Diabetes Obes Metab · Jun 6, 2022 · Endocrinology & Diabetes, Nephrology

SGLT2 inhibitors showed better kidney and heart outcomes than GLP-1RAs or DPP-4 inhibitors

Meta-analysis n = 80,670 · Diabetes Obes Metab · Oct 28, 2025 · Endocrinology & Diabetes, Nephrology

SGLT-2 inhibitors show greater renal protection than other diabetes drugs in patients with kidney disease

Research · Diabetes Obes Metab · Jul 28, 2026 · Endocrinology & Diabetes, Oncology

GLP-1 Receptor Agonists and Risk of Skin Cancer in Adults With Type 2 Diabetes: A Target Trial Emulation

Meta-analysis n = 198,177 · Diabetes Obes Metab · Dec 26, 2024 · Endocrinology & Diabetes

GLP-1 drugs cut heart risks but raise thyroid cancer odds in diabetes patients