Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Nutr., 31 October 2025

Sec. Clinical Nutrition

Volume 12 - 2025 | https://doi.org/10.3389/fnut.2025.1676413

Magnesium deficiency score predicts erectile dysfunction risk and mortality: a population-based analysis of NHANES 2001–2004

Xiaobao Chen&#x;Xiaobao ChenKangqiang Weng&#x;Kangqiang WengRuoyun XieRuoyun XieJunwei LinJunwei LinLingjun LiuLingjun LiuShaoxing Zhu
&#x;Shaoxing Zhu*Huaiying Zheng
&#x;Huaiying Zheng*
  • Department of Urology, Fujian Medical University Union Hospital, Fuzhou, China

Background: Magnesium deficiency is associated with numerous cardiovascular and metabolic disorders, which are established risk factors for erectile dysfunction (ED). However, the role of the magnesium depletion score (MDS)—a composite measure of magnesium status—in relation to ED and subsequent mortality remains unclear.

Methods: We analyzed data from 3,917 participants in the National Health and Nutrition Examination Survey (NHANES) 2001–2004. Weighted multivariable logistic and Cox proportional hazards models were used to examine associations between MDS and ED and between MDS and mortality, respectively. Sensitivity analyses included subgroup analyses and propensity score matching.

Results: Of the participants, 1,090 were identified with ED. During follow-up, 654 deaths occurred. After full adjustment, each 1-point increase in MDS was associated with a 37% higher prevalence of ED (OR = 1.37, 95% CI: 1.16–1.62). Among those with ED, higher MDS was also associated with a 30% increased risk of all-cause mortality (HR = 1.30, 95% CI: 1.17–1.45). Sensitivity analyses supported the robustness of these findings.

Conclusion: Higher MDS is significantly associated with both increased prevalence of ED and greater all-cause mortality in men with ED. These results underscore the importance of assessing magnesium status as a potential target for risk stratification and nutritional intervention in the management of ED.

Introduction

Erectile dysfunction is a prevalent condition among men, particularly those over the age of 40, and it has significant implications for quality of life and overall health (1). ED is characterized by the persistent inability to achieve or maintain an erection sufficient for satisfactory sexual performance. The etiology of ED is multifactorial (29), with vascular, neurogenic, hormonal, and psychological factors all playing roles. In recent years, there has been increasing interest in the role of micronutrients, including magnesium, in the pathophysiology of ED (10).

Magnesium is an essential mineral involved in numerous physiological processes, including the metabolism of nitric oxide, a critical mediator of penile erection (11). Hypomagnesemia, or magnesium deficiency, has been implicated in various cardiovascular and metabolic disorders, which are also risk factors for ED. Despite the biological plausibility linking magnesium status to erectile function, the relationship between magnesium deficiency and ED has not been extensively studied.

Previous research has shown that hypomagnesemia is associated with an increased prevalence of ED in certain populations. For instance, a study on elderly men with chronic kidney disease found that those with hypomagnesemia had a significantly higher prevalence of ED compared to those with normal magnesium levels (10). Additionally, dietary intake of magnesium and other trace metals has been inversely associated with the prevalence of ED, suggesting that adequate intake of these nutrients may be protective against the development of ED (12). The concept of a Magnesium Depletion Score (MDS) has been proposed as a composite measure to assess magnesium status in individuals. Conventional methods rely on serum magnesium levels, which may not accurately reflect total body magnesium content, as serum levels constitute only 0.3% of total body magnesium (13). This discrepancy can lead to underdiagnosis of chronic magnesium deficiency, even when serum levels appear normal. The Magnesium Tolerance Test (MTT) is recognized as a reliable method for assessing magnesium status, but its complexity and procedural requirements limit its clinical use (14, 15). In response, Fan et al. (16). Developed the MDS, offering a more accessible and accurate tool for identifying magnesium deficiency. The MDS considers factors such as diuretic and proton pump inhibitor usage, changes in renal function, and alcohol consumption, providing a comprehensive assessment that surpasses the limitations of serum and urinary magnesium measures. Understanding the relationship between MDS and ED could provide insights into potential preventive and therapeutic strategies for ED.

Furthermore, magnesium deficiency has been linked to increased all-cause mortality, highlighting the broader health implications of maintaining adequate magnesium levels (17). Given the potential impact of magnesium on both erectile function and overall mortality, it is important to investigate these relationships comprehensively.

This study aims to explore the association between ED and MDS, utilizing data from the NHANES conducted between 2001 and 2004. Additionally, we will analyze the relationship between MDS and all-cause mortality, providing a holistic view of the health implications of magnesium deficiency. By leveraging a large, nationally representative dataset, this research seeks to contribute to the understanding of the role of magnesium in erectile function and overall health.

Materials and methods

Study population

This investigation employed data sourced from the NHANES conducted during the period from 2001 to 2004. The cohort consisted of individuals who had complete datasets pertaining to ED and MDS. Trained interviewers conducted extensive family interviews to collect relevant information, encompassing demographic characteristics, educational attainment, and personal medical histories. Individuals lacking complete demographic data, clinical outcomes, or laboratory results were excluded from the analysis. Ethical approval was secured, along with informed consent from the National Center for Health Statistics Research Ethics Review Board, which was duly communicated to all participants involved. Rigorous procedures were established for data collection and definition.

Assessment of ED

During the NHANES data collection period, interviews with participants were conducted in private rooms within the Mobile Examination Center (MEC). ED was assessed using the Audio Computer-Assisted Self-Interview (ACASI) method. Participants were asked to describe their ability to achieve and maintain satisfactory erectile function, with response options ranging from “always or almost always able to,” “usually able to,” “sometimes able to,” to “unable to” Participants who reported being “sometimes able to” or “unable to” in maintaining an erection were classified as having erectile dysfunction, while those who reported “always or almost always able to” or “usually able to” were considered not to have erectile dysfunction. This assessment question was adapted from the Massachusetts Male Aging Study (18).

All individuals who fulfilled the eligibility requirements and possessed adequate identifying information were connected with mortality records. This linkage was performed by the research data center at the National Center for Health Statistics, employing the National Death Index. The connection was established using the Linked Mortality Files, which are accessible to the public through the National Center for Health Statistics. The main emphasis of the outcomes was on fatalities attributed to any cause. The follow-up period commenced upon the completion of the NHANES questionnaire and concluded either at the time of death or on December 31, 2019.

Assessment of MDS

The MDS was calculated following the validated methodology established by Fan et al. (16), which quantifies the cumulative burden of factors known to influence magnesium homeostasis. The score incorporates four key determinants: (1) Diuretic use: current use of any diuretic medication was assigned 1 point, (2) Proton pump inhibitor (PPI) use: current use of any PPI was assigned 1 point, (3) Kidney function: participants with mildly reduced renal function [60 mL/(min·1.73 m2) ≤ eGFR <90 mL/(min·1.73 m2)] received 1 point; those with more significantly impaired renal function [eGFR < 60 mL/(min·1.73 m2)] received 2 points, and (4) Alcohol consumption: participants exceeding recommended consumption thresholds (>1 drink/day for women and >2 drinks/day for men) received 1 point. Current medication use was operationally defined as self-reported use within the preceding 30 days. A standard alcoholic drink was defined according to national guidelines as containing 14 grams of ethanol. The estimated glomerular filtration rate (eGFR) of participants was determined using the Chronic Kidney Disease Epidemiology Collaboration (CKD-EPI) equation (19). The renal function was categorized into three groups: normal renal function [eGFR ≥ 90 mL/(min 1.73 m2)], mild renal impairment [60 mL/(min 1.73 m2) ≤ eGFR < 90 mL/(min 1.73 m2)], and chronic kidney disease [eGFR < 60 mL/(min 1.73 m2)]. For analytical purposes, participants were stratified based on their composite MDS as follows: MDS = 0 (no risk factors), MDS = 1 (one risk factor), MDS = 2 (two risk factors), and MDS ≥ 3 (three or more risk factors).

Covariates

The collection of variables in this study includes demographic characteristics such as age, BMI, marital status, education level, race, and family income. Lifestyle habits like physical activity and smoking status are also considered, along with dietary consumption including dietary magnesium intake and total energy intake. Additionally, comorbid conditions such as coronary heart disease, hypertension, metabolic syndrome, anemia, and hypertension are taken into account, as well as laboratory biochemical indicators.

Diabetes was diagnosed based on a glycosylated hemoglobin (HbA1c) level ≥6.5%, fasting blood glucose level ≥126 mg/dL, use of antidiabetic medications, or self-report. Diagnosis of hypertension was based on systolic/diastolic blood pressure values ≥140/90 mmHg, use of antihypertensive medications, or self-report. Diagnoses of coronary artery disease included heart failure, coronary artery disease, angina, or myocardial infarction. Anemia is determined by hemoglobin levels, with two groups: no anemia (≥130 g/L) and anemia (<130 g/L).

The identification of metabolic syndrome in adult populations is based on the criteria established by the National Cholesterol Education Program’s Adult Treatment Panel III. This framework stipulates that the diagnosis requires the presence of a minimum of three risk factors, which include: (1) waist circumference ≥102 cm for men and ≥88 cm for women; (2) Serum triglycerides ≥150 mg/dL; (3) HDL cholesterol <40 mg/dL for males and <50 mg/dL for females; (4) Systolic blood pressure ≥130 mmHg or diastolic blood pressure ≥85 mmHg; (5) Fasting blood glucose ≥100 mg/dL.

Information regarding dietary magnesium consumption (mg/day) and overall energy intake was gathered through two separate 24-h dietary recall interviews. These interviews documented the participants’ comprehensive energy and nutrient consumption from all food items and beverages. The first phase of data collection took place at the Mobile Examination Center (MEC), while a subsequent interview was carried out via telephone between 3 to 10 days later. To ensure the objectivity of the results, we computed the mean magnesium intake alongside the total energy intake for each participant, utilizing the data obtained from both interview sessions.

Statistical analysis

In the course of our data analysis, we adhered to the analytical protocols established by the NHANES. Importantly, none of the variables examined in our study exhibited missing data that surpassed the threshold of 10%. To accommodate the intricate sampling design inherent to NHANES, all statistical analyses were conducted utilizing the designated sample weights. We calculated weighted means along with standard errors for continuous variables, and comparisons were performed employing either Student’s t-test or one-way analysis of variance. For categorical data, we presented the results as weighted percentages accompanied by standard errors, and intergroup comparisons were executed using chi-square tests.

A comprehensive weighted multivariable logistic regression analysis was performed to explore the association between MDS and ED. The analysis included adjustments for sociodemographic characteristics, lifestyle behaviors, dietary factors, comorbidities, and laboratory data. To evaluate potential dose–response relationships across MDS categories, we conducted trend tests by incorporating the ordinal MDS variable (0, 1, 2, ≥3) as a continuous term in our regression models. The resulting p-value for this term—reported as p for trend—assesses the statistical significance of the linear relationship between increasing MDS categories and the odds of erectile dysfunction. In addition, a multivariable weighted Cox proportional hazards regression analysis was utilized to investigate the relationship between MDS and all-cause mortality. Moreover, weighted Kaplan–Meier curves and log-rank tests were used to analyze cumulative survival differences across different MDS categories.

To ensure the robustness of our study results, we conducted several sensitivity tests. Initially, MDS was categorized as a categorical variable, with MDS = 0 as the reference category, to assess distinct patterns in the relationships. Subsequently, the population was stratified based on factors such as diabetes, cardiovascular diseases, hypertension, anemia, cancer, metabolic syndrome, and magnesium intake for subgroup analysis. Interaction tests were utilized to evaluate heterogeneity among different subgroups. Furthermore, different definitions of ED were employed for analysis, distinguishing participants who were unable or sometimes able to achieve and maintain satisfactory erections for sexual intercourse as having mild or severe erectile dysfunction. Lastly, the MDS was split into two groups: MDS = 0 and MDS > 0. Propensity score matching analysis was then conducted to further investigate the relationship between MDS and ED, as well as the survival outcomes in patients with ED.

All analyses were performed using the statistical software packages R (R version 4.2.0) and Free Statistics software version 1.9.

Results

Participant characteristics

Participant demographic characteristics are summarized in Table 1, with unweighted data provided in Supplementary Table 1. Following screening, 3,917 cases fulfilled the criteria (Figure 1). The MDS for the ED group was 1.32 ± 0.05, with a magnesium intake of 291.74 ± 7.17 mg. In contrast, the non-ED group exhibited an MDS of 0.72 ± 0.03, with an intake of 336.22 ± 4.32 mg. The proportion of older adults and cohabitants is higher in the ED group compared to the non-ED group. Furthermore, the ED group exhibits higher proportions of elevated BMI, smoking rate, diabetes, cardiovascular disease, hypertension, cancer, anemia, and MetS. Additionally, the MDS in the ED group is significantly higher than that in the non-ED group (Figure 2A). Within each subgroup of MDS, the prevalence of ED increased significantly with higher MDS (Figure 2B).

Table 1
www.frontiersin.org

Table 1. Demographic and clinical parameters according to MDS.

Figure 1
Flowchart illustrating participant selection from a prostate conditions questionnaire in NHANES 2001-2004. Out of 4661 participants, 3923 remained after excluding those with missing data or prostate cancer. Six were further excluded for missing follow-up information, leaving 3917. Among these, 2827 were non-ED and 1090 had ED. The chart links to analyses on the correlation between MDS and ED and associations with all-cause mortality.

Figure 1. Flowchart of the sample selection from the National Health and Nutrition Examination Survey 2001–2004.

Figure 2
Two stacked bar charts display the percentage of participants by ED and MDS categories. Chart A compares Non-ED and ED participants, showing varying percentages across MDS scores 0 to greater than or equal to 3. Chart B shows ED participants' MDS distribution. Each chart indicates percentages for MDS levels, differentiated by color: MDS 0 (gray), MDS 1 (orange), MDS 2 (pink), and MDS greater than or equal to 3 (purple).

Figure 2. The distribution of MDS and ED in different groups. (A) The MDS distribution in non-ED and ED groups. (B) The non-ED and ED distribution in different MDS groups.

The association between MDS and ED

Table 2 displays the outcomes of the weighted logistic regression analysis examining the relationship between MDS and ED. The findings reveal a positive association between MDS and ED across various adjusted models. In the unadjusted model, the ORs were 2.11 (95% CI: 1.88–2.35, p < 0.001). Following adjustment for all covariates, the ORs decreased to 1.41 (95% CI: 1.20–1.67, p < 0.001).

Table 2
www.frontiersin.org

Table 2. Association between MDS and ED.

To further analyze the data, we stratified the MDS into comparative groups, establishing the MDS = 0 category as the reference point. In the unadjusted model, the OR demonstrated a significant increase, ranging from 2.03 (95% CI: 1.58–2.61) to a notably higher value of 12.99 (95% CI: 8.47–19.91). Upon adjustment, the increment in OR was attenuated; however, it still exhibited a substantial rise from 1.50 (95% CI: 0.84–2.66) to 3.01 (95% CI: 1.1–8.21). To quantify the potential impact of unmeasured confounding, we calculated E-values for the fully adjusted associations. The E-value for the continuous MDS (OR = 1.37) was 1.61, indicating that an unmeasured confounder would need to be associated with both MDS and ED by risk ratios of at least 1.61-fold to explain away the observed association. For categorical MDS, the E-values were 1.74 (MDS = 1), 2.00 (MDS = 2), and 2.86 (MDS ≥ 3), suggesting that relatively strong confounding would be necessary to nullify these associations. This pattern of correlation remained consistent across various adjusted models, confirming a linear trend that achieved statistical significance (p for trend < 0.05).

Subgroup analysis

Table 3 delineates the intricate results of subgroup analyses and interaction tests, which explore the influence of stratification on the correlation between MDS and ED. The data consistently reveal a positive association between MDS and ED across all examined subgroups, with this relationship persisting even after meticulous adjustments for potential confounding covariates. In the realm of interaction effects, a noteworthy interaction was identified solely in the context of cancer history, with statistical significance indicated by a p-value less than 0.05. Conversely, no such interactions were observed for the remaining variables. The subgroup analysis, particularly among participants without a history of cancer, demonstrates that those with an MDS of ≥3 are at a significantly elevated risk of ED, with a 2.68-fold increase compared to those with an MDS of 0 (95% CI: 1.83–7.41). Furthermore, a compelling linear relationship between the MDS and the risk of ED is evident, underscored by a highly significant p-value for the trend test (p < 0.001). Regarding trend tests, the linear association was found to be non-significant for anemia, cancer, and high levels of magnesium intake, as indicated by a p-value exceeding 0.05. However, for all other variables, a pronounced linear relationship is discernible.

Table 3
www.frontiersin.org

Table 3. Subgroup analysis of the association between MDS and ED.

Sensitivity analysis

To further minimize the impact of confounding variables, we utilized PSM analysis to categorize MDS into MDS = 0 and MDS > 0 groups. The findings (Supplementary Table 2) consistently reveal a significant association between MDS and ED across different propensity score techniques. Specifically, using the IPTW method, the likelihood of developing ED was found to be 67% higher in the MDS > 0 group compared to the MDS = 0 group (OR 1.67, 95% CI 1.41–1.97).

The association of mortality with different MDS and ED status

Over a median follow-up period of 206 months, our study meticulously identified 1,116 cases of all-cause mortality within the entire cohort, with a notable 654 cases occurring in the ED group. The baseline characteristics of the ED participants, categorized by overall survival (OS), are succinctly detailed in Supplementary Table 3. A rigorous multifactorial Cox regression analysis revealed significant prognostic disparities associated with various combinations of MDS and ED status. Specifically, the prognosis for the MDS > 0 and ED group was markedly poorer compared to the MDS = 0 and non-ED group, with a HR of 2.18 (95% CI, 1.61–2.96) (Table 4). The Kaplan–Meier curves, delineated in Figure 3, vividly portray the survival rates for all-cause mortality across these distinct MDS and ED groupings. Further assessment of the influence of MDS on prognosis within the ED group, outlined in Table 5, underscored a direct correlation that higher MDS were linked to a more adverse prognosis. After accounting for various confounding factors, individuals with MDS of 1, 2, and ≥3 were observed to have a 98, 161, and 179% increased risk of all-cause mortality, respectively, compared to those with an MDS of 0 (HR 1.98, 95% CI 1.22–3.21; HR 2.61, 95% CI 1.58–4.3; HR 2.79, 95% CI 1.73–4.49). The Kaplan–Meier curves, elegantly depicted in Figure 4, illustrate the stark survival differences based on MDS. Notably, participants with MDS of ≥3 exhibited the lowest survival rate, while those with scores of 1 or 2 demonstrated an intermediate rate. In contrast, participants with an MDS of 0 enjoyed the highest survival rate, with the survival disparities being statistically significant as indicated by the log-rank test (p < 0.001).

Table 4
www.frontiersin.org

Table 4. The Association of mortality with different statuses of MDS and ED.

Figure 3
Kaplan-Meier survival curve showing survival probabilities of four groups over months. Group0 (red) and Group1 (blue) have higher survival, while Group2 (orange) and Group3 (green) are lower. Shaded areas indicate confidence intervals. Significant difference with p < 0.0001. A table below lists the number at risk for each group at various time points.

Figure 3. Kaplan–Meier curves were used to present the status of MDS and ED with all-cause mortality.

Table 5
www.frontiersin.org

Table 5. The association between MDS and mortality in ED.

Figure 4
Kaplan-Meier survival curve showing survival probability over time in months based on MDS score categories. MDS equals zero has the highest survival, depicted in red, while MDS greater than three has the lowest, in green. A significant p-value of less than 0.0001 is indicated. The number at risk table below shows data for each MDS category at various follow-up intervals.

Figure 4. Kaplan-Maier cures were used to present the relationship of the MDS with all-cause mortality among participants with ED.

To address potential confounding factors, PSM was conducted as a sensitivity analysis (Supplementary Table 4). The consistent findings across various PSM methods demonstrated that individuals with MDS > 0 had a 0.67–1.4 times higher risk of all-cause mortality compared to those with MDS of 0.

Discussion

In this nationwide population-based study, we demonstrate for the first time a significant dose-dependent association between magnesium deficiency score (MDS) and erectile dysfunction (ED), independent of established risk factors. Furthermore, we reveal that concurrent magnesium deficiency substantially amplifies mortality risk among individuals with ED, suggesting important clinical and public health implications. These results highlight the necessity of considering magnesium status in the therapeutic approach to ED and emphasize the potential public health significance of addressing magnesium deficiency.

Our investigation provides novel insights into the complex relationship between magnesium homeostasis and erectile function, addressing a significant knowledge gap in current literature. Previous studies have primarily focused on the role of individual micronutrients in ED or the broader implications of magnesium deficiency on cardiovascular and metabolic health. However, the comprehensive assessment of MDS, which includes factors like diuretic use, proton pump inhibitor use, excessive alcohol consumption, and renal function decline, offers a more holistic view of how magnesium status affects ED. The weighted multivariable logistic regression analysis demonstrating a positive correlation between MDS and ED, even after adjusting for confounding variables, underscores the potential pathophysiological link between magnesium deficiency and erectile function. To our knowledge, this study is the first to systematically quantify both ED risk and mortality outcomes using a composite magnesium deficiency score, providing new insights for risk stratification and targeted intervention strategies.

The clinical implications of our findings are substantial and potentially transformative for ED management. The observed positive correlation between MDS and ED highlights the potential role of magnesium in maintaining vascular health and erectile function. Given that magnesium is involved in numerous physiological processes (20, 21), including vasodilation and endothelial function, its deficiency could exacerbate vascular conditions that contribute to ED. MDS provides a practical clinical tool for identifying patients at risk of magnesium deficiency. Based on our findings, we recommend that patients with MDS ≥ 2 should undergo comprehensive magnesium status evaluation, particularly those with comorbid diabetes, hypertension, or cardiovascular diseases. Our results suggest that addressing magnesium deficiency through dietary modifications or targeted supplementation could represent a novel, modifiable therapeutic target for both ED prevention and mortality reduction. This is particularly relevant for older adults and individuals with chronic health conditions who are at higher risk of both magnesium deficiency and ED. Additionally, the strong association between higher MDS and increased all-cause mortality underscores the importance of comprehensive nutritional assessments in clinical practice. By identifying and correcting magnesium deficiency, healthcare providers may not only improve erectile function but also enhance long-term survival outcomes. Future randomized controlled trials are warranted to determine whether magnesium supplementation can effectively improve erectile function and reduce mortality risk in deficient individuals.

Our subgroup analyses revealed a particularly pronounced association between MDS and ED among cancer survivors, with substantially elevated odds ratios compared to the general population. This pronounced interaction may be explained by several synergistic pathways. Magnesium deficiency is prevalent in cancer patients (2227) due to multiple mechanisms, including decreased nutritional intake, malabsorption, and increased renal excretion induced by chemotherapeutic agents. The profound magnesium depletion characteristic of cancer populations may exacerbate underlying vascular dysfunction through impaired nitric oxide bioavailability and enhanced oxidative stress (28). Additionally, cancer-related inflammation and endothelial damage likely compound the detrimental effects of magnesium deficiency on erectile function. Furthermore, certain chemotherapeutic agents and analgesics (21) may directly contribute to both magnesium wasting and neurological or vascular erectile dysfunction. Given these synergistic pathways, our findings suggest that magnesium status assessment and correction should be integrated into comprehensive oncological care protocols, not only for general health maintenance but also for preserving sexual function and quality of life in cancer survivors. However, these interpretations should be approached with caution given the relatively small sample size in the cancer subgroup, and further research specifically targeting this population is warranted.

Our mortality analysis employed two complementary analytical approaches that consistently demonstrate the clinical significance of magnesium deficiency. The first approach (Table 4) categorized participants into four groups based on combined MDS and ED status, revealing that individuals with both elevated MDS and ED (Group 3) exhibited significantly higher mortality risk (HR = 2.20, 95% CI: 1.71–2.83) compared to those without either condition (Group 0). This finding suggests a potential synergistic effect between magnesium deficiency and ED on mortality risk. The second approach (Table 5) specifically examined the ED subpopulation, demonstrating a dose–response relationship between MDS severity and mortality, with MDS ≥ 3 associated with the highest risk (HR = 2.79, 95% CI: 1.73–4.49). Both analytical approaches consistently demonstrate that while ED independently increases mortality risk, this association is substantially magnified with concurrent magnesium deficiency, and the risk appears proportional to the severity of magnesium depletion. These findings emphasize the clinical relevance of assessing magnesium status in patients with ED as a potential strategy for improving long-term outcomes.

Several interconnected biological mechanisms may elucidate the observed relationship between magnesium deficiency and erectile dysfunction. Magnesium serves as a critical cofactor for endothelial nitric oxide synthase (eNOS), and its deficiency significantly compromises nitric oxide (NO) production while simultaneously enhancing oxidative stress (21, 29, 30), thereby diminishing the essential vasodilatory capacity required for penile erection. Furthermore, magnesium functions as an endogenous calcium channel antagonist in vascular smooth muscle; consequently, magnesium depletion results in elevated intracellular calcium concentrations, promoting pathological vasoconstriction and impeding the necessary relaxation of corpus cavernosum smooth muscle (21). Magnesium deficiency also induces a pro-inflammatory state characterized by increased levels of inflammatory cytokines and oxidative stress markers, contributing to endothelial dysfunction and vascular impairment specifically within penile microvasculature (31, 32). Compelling evidence indicates magnesium’s regulatory role in testosterone biosynthesis and hormonal homeostasis, both fundamental to normal erectile physiology (33, 34). Additionally, magnesium deficiency is intricately linked with insulin resistance and various components of metabolic syndrome, established independent risk factors for erectile dysfunction (12, 35). Lastly, magnesium modulates autonomic nervous system function, with its deficiency potentially disrupting the parasympathetic predominance essential for initiating and maintaining erection (21). These physiological mechanisms likely operate synergistically in magnesium-deficient states to compromise erectile function, providing robust biological plausibility for the epidemiological associations observed in our study.

This study presents several methodological strengths that enhance the validity and generalizability of our findings. Firstly, it benefits from a large and representative sample of the US population, encompassing two cycles of cross-sectional data. This ample sample size ensures sufficient statistical power for rigorous analysis. Secondly, the application of sampling weights enhances the generalizability and representativeness of the survey findings at a national level. Thirdly, the researchers meticulously accounted for various potential confounding factors, drawing on prior research and clinical expertise to bolster the reliability and validity of the results. Fourthly, the study opted for MDS over serum magnesium, as the former offers a more accurate reflection of magnesium’s physiological status. Lastly, sensitivity analyses were performed to confirm the robustness and reliability of the findings.

Nevertheless, several important limitations warrant consideration in interpreting our results. The primary limitation is the cross-sectional design for the core MDS-ED association, which precludes establishing causal relationships. While our mortality analysis employed a longitudinal approach, the fundamental association between MDS and ED remains correlational. Our findings should therefore be interpreted as indicating associations rather than implying that magnesium deficiency causes ED. Secondly, despite attempts to control for potential confounders, the impact of unmeasured or residual confounders cannot be entirely eradicated. Thirdly, while we rely on MDS as our primary magnesium status indicator based on its theoretical superiority over serum magnesium levels, we cannot empirically validate this assertion within our dataset due to the unavailability of serum magnesium data in the NHANES 2001–2004 cycles. This limitation prevents direct comparison of MDS performance against serum magnesium measurements in our specific population. Additionally, while MDS demonstrates superior predictive ability compared to serum magnesium for magnesium deficiency, both methods have limitations in accurately detecting subclinical magnesium deficiency. This limitation may have resulted in underestimating the true association between magnesium deficiency and ED in our study. Fourthly, participants with MDS ≥ 3 showed substantially increased risk for both ED (adjusted OR = 3.01) and mortality (HR = 2.79), but the corresponding confidence intervals are relatively wide (ED: 1.10–8.21; Mortality: 1.73–4.49), reflecting considerable statistical uncertainty likely due to the small number of participants in this high-risk category. Therefore, while severe magnesium depletion appears associated with significantly increased risk, the precise magnitude should be interpreted cautiously. Lastly, caution should be exercised when extrapolating the study results to other populations, as they may be specific to the US population.

Future research should prioritize two key directions to advance our understanding. First, prospective longitudinal studies measuring magnesium status before ED development are essential to establish temporal relationships and explore potential causal mechanisms. Additionally, randomized controlled trials (RCTs) investigating the effects of magnesium supplementation on ED and overall mortality are warranted. Second, studies with access to both MDS components and serum magnesium data would be valuable to validate the comparative utility of these assessment approaches in relation to ED outcomes. Such studies should also explore the underlying biological mechanisms linking magnesium deficiency to ED and mortality. Moreover, the development and validation of more precise and comprehensive tools for assessing magnesium status in clinical settings could enhance the accuracy of future research. By addressing these gaps, future studies can provide more definitive evidence on the role of magnesium in ED and broader health outcomes, potentially informing clinical guidelines and public health strategies for the prevention and management of magnesium deficiency and its associated risks.

Conclusion

In conclusion, our findings reveal a significant dose-dependent association between magnesium deficiency score and both erectile dysfunction and subsequent mortality. These robust relationships persist after comprehensive confounder adjustment, indicating that magnesium status represents a potentially modifiable risk factor in erectile physiology and overall health outcomes. While prospective studies are needed to establish causality, our results provide compelling evidence that magnesium deficiency assessment and correction could represent a novel therapeutic approach in ED management and mortality risk reduction. Given the high prevalence of both magnesium deficiency and erectile dysfunction worldwide, these findings have substantial implications for clinical practice and public health strategies.

Data availability statement

The original contributions presented in the study are included in the article/Supplementary material, further inquiries can be directed to the corresponding authors.

Ethics statement

The studies involving humans were approved by National Centre for Health Statistics (NCHS) ethics review board. The studies were conducted in accordance with the local legislation and institutional requirements. The participants provided their written informed consent to participate in this study.

Author contributions

XC: Methodology, Investigation, Conceptualization, Software, Data curation, Writing – original draft, Formal analysis, Visualization. KW: Software, Visualization, Writing – original draft, Formal analysis, Data curation, Methodology, Conceptualization, Investigation. RX: Resources, Validation, Writing – original draft. JL: Writing – review & editing, Investigation. LL: Methodology, Visualization, Supervision, Writing – review & editing. SZ: Methodology, Visualization, Supervision, Writing – review & editing. HZ: Project administration, Writing – review & editing, Supervision, Funding acquisition.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. This work was supported by the Fujian Provincial Natural Science Foundation of China (Grant nos. 2023J01685 and 2022J01724).

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The authors declare that no Gen AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fnut.2025.1676413/full#supplementary-material

References

1. Guay, AT, Spark, RF, Bansal, S, Cunningham, GR, Goodman, NF, Nankin, HR, et al. American association of clinical endocrinologists medical guidelines for clinical practice for the evaluation and treatment of male sexual dysfunction: a couple's problem--2003 update. Endocr Pract. (2003) 9:77–95. doi: 10.4158/EP.9.1.77

PubMed Abstract | Crossref Full Text | Google Scholar

2. Yafi, FA, Jenkins, L, Albersen, M, Corona, G, Isidori, AM, Goldfarb, S, et al. Erectile dysfunction. Nat Rev Dis Primers. (2016) 2:16003. doi: 10.1038/nrdp.2016.3

PubMed Abstract | Crossref Full Text | Google Scholar

3. Goldstein, I, Goren, A, Li, VW, Tang, WY, and Hassan, TA. Epidemiology update of erectile dysfunction in eight countries with high burden. Sex Med Rev. (2020) 8:48–58. doi: 10.1016/j.sxmr.2019.06.008

PubMed Abstract | Crossref Full Text | Google Scholar

4. Pellegrino, F, Sjoberg, DD, Tin, AL, Benfante, NE, Briganti, A, Montorsi, F, et al. Relationship between age, comorbidity, and the prevalence of erectile dysfunction. Eur Urol Focus. (2023) 9:162–7. doi: 10.1016/j.euf.2022.08.006

PubMed Abstract | Crossref Full Text | Google Scholar

5. Hadisuyatmana, S, Malik, G, Efendi, F, Reisenhofer, S, and Boyd, J. The experiences and barriers in addressing type 2 diabetes mellitus-associated erectile dysfunction: a mixed method systematic review. Syst Rev. (2023) 12:138. doi: 10.1186/s13643-023-02303-4

PubMed Abstract | Crossref Full Text | Google Scholar

6. Terentes-Printzios, D, Ioakeimidis, N, Rokkas, K, and Vlachopoulos, C. Interactions between erectile dysfunction, cardiovascular disease and cardiovascular drugs. Nat Rev Cardiol. (2022) 19:59–74. doi: 10.1038/s41569-021-00593-6

PubMed Abstract | Crossref Full Text | Google Scholar

7. Pizzol, D, Xiao, T, Yang, L, Demurtas, J, McDermott, D, Garolla, A, et al. Prevalence of erectile dysfunction in patients with chronic kidney disease: a systematic review and meta-analysis. Int J Impot Res. (2021) 33:508–15. doi: 10.1038/s41443-020-0295-8

PubMed Abstract | Crossref Full Text | Google Scholar

8. Verze, P, Margreiter, M, Esposito, K, Montorsi, P, and Mulhall, J. The link between cigarette smoking and erectile dysfunction: a systematic review. Eur Urol Focus. (2015) 1:39–46. doi: 10.1016/j.euf.2015.01.003

PubMed Abstract | Crossref Full Text | Google Scholar

9. Lai, LTF, Balaraman, J, Zhou, F, and Matthies, D. Cryo-EM structures of human magnesium channel MRS2 reveal gating and regulatory mechanisms. Nat Commun. (2023) 14:7207. doi: 10.1038/s41467-023-42599-3

PubMed Abstract | Crossref Full Text | Google Scholar

10. Toprak, O, Sarı, Y, Koç, A, Sarı, E, and Kırık, A. The impact of hypomagnesemia on erectile dysfunction in elderly, non-diabetic, stage 3 and 4 chronic kidney disease patients: a prospective cross-sectional study. Clin Interv Aging. (2017) 12:437–44. doi: 10.2147/CIA.S129377

PubMed Abstract | Crossref Full Text | Google Scholar

11. First, MR, Henning, AK, and Fitzsimmons, WE. Use of low-dose tacrolimus and associated hypomagnesemia in the prevention of erectile dysfunction following prostatectomy for prostate cancer. Pharmacol Rep. (2016) 68:1154–8. doi: 10.1016/j.pharep.2016.07.009

PubMed Abstract | Crossref Full Text | Google Scholar

12. Liu, RJ, Li, SY, Xu, ZP, Yu, JJ, Mao, WP, Sun, C, et al. Dietary metal intake and the prevalence of erectile dysfunction in US men: Results from National Health and nutrition examination survey 2001-2004. Front Nutr. (2022) 9:974443. doi: 10.3389/fnut.2022.974443

PubMed Abstract | Crossref Full Text | Google Scholar

13. Dominguez, LJ, Veronese, N, and Barbagallo, M. Magnesium and the hallmarks of aging. Nutrients. (2024) 16:496. doi: 10.3390/nu16040496

PubMed Abstract | Crossref Full Text | Google Scholar

14. Witkowski, M, Hubert, J, and Mazur, A. Methods of assessment of magnesium status in humans: a systematic review. Magnes Res. (2011) 24:163–80. doi: 10.1684/mrh.2011.0292

PubMed Abstract | Crossref Full Text | Google Scholar

15. Simşek, E, Karabay, M, and Kocabay, K. Assessment of magnesium status in newly diagnosed diabetic children: measurement of erythrocyte magnesium level and magnesium tolerance testing. Turk J Pediatr. (2005) 47:132–7.

Google Scholar

16. Fan, L, Zhu, X, Rosanoff, A, Costello, RB, Yu, C, Ness, R, et al. Magnesium depletion score (MDS) predicts risk of systemic inflammation and cardiovascular mortality among US adults. J Nutr. (2021) 151:2226–35. doi: 10.1093/jn/nxab138

PubMed Abstract | Crossref Full Text | Google Scholar

17. Petrakis, I, Bacharaki, D, Kyriazis, P, Balafa, O, Dounousi, E, Tsirpanlis, G, et al. Cardiovascular and all-cause mortality is affected by serum magnesium and diet pattern in a cohort of Dialysis patients. J Clin Med. (2024) 13:4024. doi: 10.3390/jcm13144024

PubMed Abstract | Crossref Full Text | Google Scholar

18. O'Donnell, AB, Araujo, AB, Goldstein, I, and McKinlay, JB. The validity of a single-question self-report of erectile dysfunction. Results from the Massachusetts male aging study. J Gen Intern Med. (2005) 20:515–9. doi: 10.1111/j.1525-1497.2005.0076.x

PubMed Abstract | Crossref Full Text | Google Scholar

19. Sprenkle, PC, Power, N, Ghoneim, T, Touijer, KA, Dalbagni, G, Russo, P, et al. Comparison of open and minimally invasive partial nephrectomy for renal tumors 4-7 centimeters. Eur Urol. (2012) 61:593–9. doi: 10.1016/j.eururo.2011.11.040

PubMed Abstract | Crossref Full Text | Google Scholar

20. Teragawa, H, Kato, M, Yamagata, T, Matsuura, H, and Kajiyama, G. Magnesium causes nitric oxide independent coronary artery vasodilation in humans. Heart. (2001) 86:212–6. doi: 10.1136/hrt.86.2.212

Crossref Full Text | Google Scholar

21. Saito, M, Ohmura, M, Kondo, A, and Miyake, K. Effect of magnesium on the function of the rabbit corpus cavernosum. Urol Res. (1996) 24:33–7. doi: 10.1007/BF00296731

Crossref Full Text | Google Scholar

22. Houston, M. The role of magnesium in hypertension and cardiovascular disease. J Clin Hypertens. (2011) 13:843–7. doi: 10.1111/j.1751-7176.2011.00538.x

PubMed Abstract | Crossref Full Text | Google Scholar

23. Nguyen, LTD, Gunathilake, M, Lee, J, Oh, JH, Chang, HJ, Sohn, DK, et al. The interaction between magnesium intake, the genetic variant INSR rs1799817 and colorectal cancer risk in a Korean population: a case-control study. Int J Food Sci Nutr. (2024) 1-11:396–406. doi: 10.1080/09637486.2024.2314678

Crossref Full Text | Google Scholar

24. Liu, W, Meyer, L, Morse, M, Li, Y, Song, J, Engle, R, et al. Dietary magnesium replacement for prevention of hypomagnesemia in patients with ovarian Cancer receiving carboplatin-based chemotherapy. JCO Oncol Pract, Op2300660. (2024):517–24. doi: 10.1200/OP.23.00660

Crossref Full Text | Google Scholar

25. Ashique, S, Kumar, S, Hussain, A, Mishra, N, Garg, A, Gowda, BHJ, et al. A narrative review on the role of magnesium in immune regulation, inflammation, infectious diseases, and cancer. J Health Popul Nutr. (2023) 42:74. doi: 10.1186/s41043-023-00423-0

PubMed Abstract | Crossref Full Text | Google Scholar

26. Song, IA, Oh, TK, and Do, SH. Trends in perioperative magnesium sulfate use in patients who underwent major Cancer surgery: a retrospective population-based cohort study in South Korea. Cancer Control. (2023) 30:10732748231180977. doi: 10.1177/10732748231180977

PubMed Abstract | Crossref Full Text | Google Scholar

27. Kumar, G, Chatterjee, PK, Madankumar, S, Mehdi, SF, Xue, X, and Metz, CN. Magnesium deficiency with high calcium-to-magnesium ratio promotes a metastatic phenotype in the CT26 colon cancer cell line. Magnes Res. (2020) 33:68–85. doi: 10.1684/mrh.2020.0470

PubMed Abstract | Crossref Full Text | Google Scholar

28. Scibior, A, Adamczyk, A, Golebiowska, D, and Niedzwiecka, I. Effect of 12-week vanadate and magnesium co-administration on chosen haematological parameters as well as on some indices of iron and copper metabolism and biomarkers of oxidative stress in rats. Environ Toxicol Pharmacol. (2012) 34:235–52. doi: 10.1016/j.etap.2012.04.006

PubMed Abstract | Crossref Full Text | Google Scholar

29. Xu, K, Zang, X, Peng, M, Zhao, Q, and Lin, B. Magnesium Lithospermate B downregulates the levels of blood pressure, inflammation, and oxidative stress in pregnant rats with hypertension. Int J Hypertens. (2020) 2020:6250425. doi: 10.1155/2020/6250425

Crossref Full Text | Google Scholar

30. Kim, SH, Kim, SH, Choi, M, Lee, Y, Kim, YO, Ahn, DS, et al. Natural therapeutic magnesium lithospermate B potently protects the endothelium from hyperglycaemia-induced dysfunction. Cardiovasc Res. (2010) 87:713–22. doi: 10.1093/cvr/cvq089

PubMed Abstract | Crossref Full Text | Google Scholar

31. An, J, Xiang, B, Peng, J, and Li, D. Understanding the erectile dysfunction-cardiovascular disease connection: clinical and pathophysiological insights. Sex Med Rev. (2025) 13:406–22. doi: 10.1093/sxmrev/qeaf014

PubMed Abstract | Crossref Full Text | Google Scholar

32. Nielsen, FH. Magnesium deficiency and increased inflammation: current perspectives. J Inflamm Res. (2018) 11:25–34. doi: 10.2147/JIR.S136742

PubMed Abstract | Crossref Full Text | Google Scholar

33. Maggio, M, De Vita, F, Lauretani, F, Nouvenne, A, Meschi, T, Ticinesi, A, et al. The interplay between magnesium and testosterone in modulating physical function in men. Int J Endocrinol. (2014) 2014:525249. doi: 10.1155/2014/525249

Crossref Full Text | Google Scholar

34. Ryl, A, Ciosek, Ż, Szylińska, A, Jurewicz, A, Bohatyrewicz, A, and Rotter, I. Concentrations of bioelements (Zn, cu, Fe, Cr, Mg, Mn) in serum and bone tissue of aging men undergoing hip arthroplasty: implications for erectile dysfunction. Biomolecules. (2024) 14:565. doi: 10.3390/biom14050565

PubMed Abstract | Crossref Full Text | Google Scholar

35. Piuri, G, Zocchi, M, Della Porta, M, Ficara, V, Manoni, M, Zuccotti, GV, et al. Magnesium in obesity, metabolic syndrome, and type 2 diabetes. Nutrients. (2021) 13:320. doi: 10.3390/nu13020320

PubMed Abstract | Crossref Full Text | Google Scholar

Keywords: erectile dysfunction, sexual dysfunction, magnesium deficiency, mortality, NHANES

Citation: Chen X, Weng K, Xie R, Lin J, Liu L, Zhu S and Zheng H (2025) Magnesium deficiency score predicts erectile dysfunction risk and mortality: a population-based analysis of NHANES 2001–2004. Front. Nutr. 12:1676413. doi: 10.3389/fnut.2025.1676413

Received: 30 July 2025; Accepted: 08 October 2025;
Published: 31 October 2025.

Edited by:

Kristian Leisegang, University of the Western Cape, South Africa

Reviewed by:

RuiJi Liu, Sichuan Academy of Medical Sciences and Sichuan Provincial People’s Hospital, China
Yan kai Dong, Lishui University, China

Copyright © 2025 Chen, Weng, Xie, Lin, Liu, Zhu and Zheng. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Huaiying Zheng, dXJvMjE1OUAxMjYuY29t; Shaoxing Zhu, enN4aW5nMjAwNUAxMjYuY29t

These authors have contributed equally to this work

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.