We aimed to examine whether lower-limb muscle quantity and quality assessed by bioelectrical impedance analysis (BIA) were associated with knee extension strength and if the association differed with knee osteoarthritis (OA) severity. We included 1,525 participants (63.6% women; mean age, 68.0±5.3 years) from the Nagahama Prospective Cohort. Knee extension strength was measured during maximum voluntary isometric contraction. Lower limb muscle mass and extracellular-to-intracellular water (ECW/ICW) ratio were used as indicators of muscle quantity and quality, respectively, and assessed via a BIA device. We executed multiple linear regression analyses to investigate the association of muscle quantity and quality with knee extension strength. Additionally, participants were classified into three groups with respect to OA severity and symptoms: control, early, and advanced OA groups; subgroup analyses were also executed. The muscle mass (p<0.001) and ECW/ICW ratio (p=0.009) were significantly associated with knee extension strength. In the subgroup analysis, the muscle mass was significantly associated with knee extension strength (p<0.001), but there was no association between ECW/ICW ratio and knee extension strength (p=0.731) in the control group. In the early and advanced OA groups, the muscle mass (both p<0.001) and ECW/ICW ratio (early OA: p=0.034, advanced OA: p=0.015) were significantly associated with knee extension strength. Lower limb muscle quality was associated with knee extension strength, and the association was stronger in patients with knee OA. These findings suggest that both muscle quantity as well as quality should be assessed to better understand muscle function in patients with knee OA.