Myocardial damage significantly impacts the prognosis of patients with cancer; however, the mechanisms of myocardial damage induced by cancer and its treatment remain unknown. We previously reported that medium-chain fatty acids (MCFAs) improve cancer-induced myocardial damage but did not evaluate the differences in effect according to MCFA type. Therefore, this study investigated the role of inflammatory cytokines in cancer-induced myocardial damage and the effects of three types of MCFAs (caprylic acid [C8], capric acid [C10], and lauric acid [C12]). In a mouse model, the C8 diet showed a greater effect on improving myocardial damage compared with C10 and C12 diets. Myocardial tubes differentiated from H9C2 cardiomyoblasts demonstrated increased mitochondrial oxidative stress, decreased membrane potential and mitochondrial volume, and inhibited myocardial tube differentiation following treatment with high-mobility group box-1 (HMGB1) but not interleukin-6 and tumor necrosis factor-α cytokines. However, HMGB1 treatment combined with C8 improved HMGB1-induced mitochondrial damage, enhanced autophagy, and increased mitochondrial biogenesis and maturation. However, these effects were only partial when combined with beta-hydroxybutyrate, a C8 metabolite. Thus, HMGB1 may play an important role in cancer-related myocardial damage. C8 counteracts HMGB1’s effects and improves cancer-related myocardial damage. Further clinical studies are required to investigate the effects of C8.