摘要:Liver fibrosis represents the consequences of chronic liver injury. Individuals with alcoholic or nonalcoholic liver diseases are at high risk of magnesium deficiency. This study aimed to evaluate the association between magnesium and calcium intakes and significant liver fibrosis, and whether the associations differ by alcohol drinking status. Based on the National Health and Nutrition Examination Survey (NHANES) 2017–2018, the study included 4166 participants aged >18 years who completed the transient elastography examination and had data available on magnesium intake. The median liver stiffness of 8.2 kPa was used to identify subjects with significant fibrosis (≥F2). The age-adjusted prevalence of significant fibrosis was 12.81%. Overall total magnesium intake was marginally associated with reduced odds of significant fibrosis (p trend = 0.14). The inverse association of total magnesium intake with significant fibrosis was primarily presented among those who had daily calcium intake <1200 mg. There were no clear associations for significant fibrosis with calcium intake. Findings suggest that high total magnesium alone may reduce risk of significant fibrosis. Further studies are needed to confirm these findings.