AimsThe evidence for joint and independent associations of low muscle mass and low muscle strength with diabetes is limited and mixed. The study aimed to determine the associations of muscle parameters (muscle mass, strength, quality, and sarcopenia) and sarcopenia obesity with diabetes, and the previously unstudied mediating effect of inflammation. Materials and MethodsA total of 13,420 adults from the 2023 China National Health Survey (CNHS) and 5,380 adults from the 2011–2014 National Health and Nutrition Examination Survey (NHANES) were included in this study. Muscle mass was determined using bioelectrical impedance analysis (BIA) in the CNHS, and whole-body dual X-ray absorptiometry (DXA) in the NHANES. Muscle strength was assessed using digital hand dynamometer. Multivariate logistic regression models were used to evaluate the associations of muscle parameters and sarcopenia obesity with diabetes. Inflammatory status was assessed using blood cell counts and two systemic inflammation indices (platelet-to-lymphocyte ratio (PLR) and system inflammation response index (SIRI)). Mediation analysis was conducted to examine inflammation’s role in these associations. ResultsLow muscle mass and strength were independently related to diabetes. Low muscle quality was associated with elevated diabetes risk. Sarcopenia has a stronger association with diabetes compared to low muscle strength alone or mass alone (CNHS, odds ratio (OR) = 1.93, 95 % confidence interval (CI):1.64–2.27; NHANES, OR = 3.80, 95 %CI:2.58–5.58). Participants with sarcopenia obesity exhibit a higher risk of diabetes than those with obesity or sarcopenia alone (CNHS, OR = 2.21, 95 %CI:1.72–2.84; NHANES, OR = 6.06, 95 %CI:3.64–10.08). Associations between muscle parameters and diabetes were partially mediated by inflammation (mediation proportion: 1.99 %-36.64 %, P < 0.05). ConclusionLow muscle mass and muscle strength are independently or jointly associated with diabetes, and inflammation might be a potential mechanism underlying this association. Furthermore, the synergistic effects of sarcopenia and obesity could significantly increase diabetes risk.