Heart failure involves metabolic alterations including increased glycolysis despite unchanged or decreased glucose oxidation. The mitochondrial pyruvate carrier (MPC) regulates pyruvate entry into the mitochondrial matrix, and cardiac deletion of the MPC in mice causes heart failure. How MPC deletion results in heart failure is unknown. We performed targeted metabolomics and isotope tracing in wildtype (fl/fl) and cardiac-specific Mpc2-/- (CS-Mpc2-/-) hearts after in vivo injection of U-13C-glucose. Cardiac glycogen was assessed biochemically and by transmission electron microscopy. Cardiac uptake of 2-deoxyglucose was measured and western blotting performed to analyze insulin signaling and enzymatic regulators of glycogen synthesis and degradation. Isotope tracing and glycogen analysis was also performed in hearts from mice fed either low-fat diet or a ketogenic diet previously shown to reverse the CS-Mpc2-/- heart failure. Cardiac glycogen was also assessed in mice infused with angiotensin-II that were fed low-fat or ketogenic diet. Failing CS-Mpc2-/- hearts contained normal levels of ATP and phosphocreatine, yet these hearts displayed increased enrichment from U-13C-glucose and increased glycolytic metabolite pool sizes. 13C enrichment and pool size was also increased for the glycogen intermediate UDP-glucose, as well as increased enrichment of the glycogen pool. Glycogen levels were increased ~6-fold in the failing CS-Mpc2-/- hearts, and glycogen granules were easily detected by electron microscopy. This increased glycogen synthesis occurred despite enhanced inhibitory phosphorylation of glycogen synthase and reduced expression of glycogenin-1. In young, non-failing CS-Mpc2-/- hearts, increased glycolytic 13C enrichment occurred, but glycogen levels remained low and unchanged compared to fl/fl hearts. Feeding a ketogenic diet to CS-Mpc2-/- mice reversed the heart failure and normalized the cardiac glycogen and glycolytic metabolite accumulation. Cardiac glycogen levels were also elevated in mice infused with angiotensin-II, and both the cardiac hypertrophy and glycogen levels were improved by ketogenic diet. Our results indicate that loss of MPC in the heart causes glycogen accumulation and heart failure, while a ketogenic diet can reverse both the glycogen accumulation and heart failure. We conclude that maintaining mitochondrial pyruvate import and metabolism is critical for the heart, unless cardiac pyruvate metabolism is reduced by consumption of a ketogenic diet.