Ketogenic diet (KD) has been proven to be an optional avenue in weight control. However, the impacts of KD on muscle strength and exercise endurance remain unclear. In this study, mice were randomly allocated to normal diet and KD groups to assess their exercise tolerance and transcriptomic changes of the gastrocnemius. KD suppressed body-weight and glucose levels and augmented blood ketone levels of mice. The total cholesterol, free fatty acids, and β-hydroxybutyric acid levels were higher and triglycerides and aspartate aminotransferase levels were lower in KD group. There was no notable difference in running distance/time and weight-bearing swimming time between the two groups. Furthermore, KD alleviated the protein levels of PGC-1α, p62, TnI FS, p-AMPKα, and p-Smad3, while advancing the LC3 II and TnI SS protein levels in the gastrocnemius tissues. RNA-sequencing found that 387 differentially expressed genes were filtered, and Cpt1b, Acadl, Eci2, Mlycd, Pdk4, Ptprc, C1qa, Emr1, Fcgr3, and Ctss were considered to be the hub genes. Our findings suggest that KD effectively reduced body weight but did not affect skeletal muscle strength and exercise endurance via AMPK/PGC-1α, Smad3, and p62/LC3 signaling pathways and these hub genes could be potential targets for muscle function in KD-treated mice.