High-fat diets are closely implicated in the pathogenesis of chronic conditions, including obesity and hepatic steatosis. Recently, coconut oil, which is rich in medium-chain fatty acids, has attracted significant attention for its potential anti-obesity and anti-inflammatory properties. This study aimed to evaluate the effects of medium-chain fatty acids derived from coconut oil on metabolic disorders, particularly fatty liver, using a mouse model established by a high-fat diet. C57BL/6J mice were assigned to either the lard diet group or the coconut oil diet group and fed for 12 weeks. Glucose tolerance was assessed, and biochemical parameters, liver histology, and gene expression in the liver were analysed. Additionally, the concentrations of medium-chain fatty acids within the liver were determined through gas chromatography-mass spectrometry analysis. Mice fed a coconut oil diet exhibited suppressed weight gain and improved glucose tolerance compared to mice fed a lard diet. Furthermore, the coconut oil diet resulted in reduced hepatic fat accumulation, decreased expression levels of genes implicated in inflammation and lipid metabolism within the liver, and higher concentrations of medium-chain fatty acids in the liver. Coconut oil may contribute to the suppression of hepatic fat accumulation in the liver and the prevention of non-alcoholic fatty liver disease/metabolic dysfunction-associated steatotic liver disease by increasing the levels of medium-chain fatty acids in the liver and suppressing the expression of genes implicated in inflammation and lipid metabolism.