BackgroundSarcopenia is a major public health problem. Depressive symptoms and dietary inflammatory potential play important roles in the development of sarcopenia. We aimed to disentangle the relationships between depressive symptoms, dietary inflammatory potential, and sarcopenia.MethodsA total of 6,082 participants from the National Health and Nutrition Examination Survey (NHANES) were included in the analyses. Sarcopenia was defined according to the Foundation for the National Institutes for Health (FNIH) criteria. The Depressive symptoms were assessed using the nine-item Patient Health Questionnaire (PHQ-9). Dietary Inflammatory Index (DII) was calculated based on 24-h dietary recall interview. Two sets of mediation models were constructed separately.ResultsDepressive symptoms and DII were associated with sarcopenia, with odds ratios [ORs] (95% CIs) 2.54 (1.27, 5.13) and 1.17 (1.00, 1.37), respectively. DII score mediated the association of depressive symptoms with low muscle mass, explaining a total of 10.53% of the association (indirect effect = 0.004). Depressive symptoms had a significant mediating effects on the association between DII with low muscle mass, explaining a total of 12.50% of the association (indirect effect = 0.001).ConclusionsOur findings suggested that both depressive symptoms and dietary inflammatory potential had direct effects, and indirect effects on low muscle mass, handgrip strength, muscle mass, through each other. It provides important insights into integrated nutritional and psychological intervention strategies in preventing sarcopenia.