ABSTRACT The brain aging process triggers cognitive function impairment, such as memory loss and compromised quality of life. Cognitive impairment is based on bioenergetic status, with reduced glucose uptake and metabolism in aged brains. Anaplerotic substrates are reported to promote mitochondrial ATP generation, having been tested in clinical trials for the treatment of neurological disorders and metabolic diseases. Objectives and Methods: To assess whether the improvement in oxidative capacity ameliorates cognitive function in adults (12 weeks), and aged (22-month-old) C57/6BJ mice, they received (1) a ketogenic diet, (2) a ketogenic diet supplemented with the anaplerotic substance, triheptanoin, or (3) a control diet for 12 weeks. Spontaneous alternation and time spent in a previously closed arm in the Y-maze test and time interacting with an unknown object in the novel object recognition test (NORT) were used to evaluate working memory. Acetylcholinesterase (AChE) activity in the prefrontal lobe, brain left hemisphere, and cerebellum was also evaluated. Glucose transporter 3 (GLUT3) expression in the prefrontal lobe was analyzed by western blotting. Results: The ketogenic diet (KD) reduced spontaneous alternation in aged mice, leading to lower AChE activity in the aged prefrontal lobe and cerebellum, and in the parieto-temporal-occipital lobe of adult mice. Furthermore, KD decreased GLUT3 protein expression in the frontal lobe of the adults. Discussion: Supplementation of KD with triheptanoin prevented memory impairment and showed similar values of AChE activity and GLUT3 expression compared to the controls. Our data suggest that triheptanoin has a potential role in the bioenergetic capacity of the brain, improving cognitive function.