Age-related cognitive decline has been linked to distinct patterns of cellular dysfunction in the prelimbic cortex (PL) and the CA3 subregion of the hippocampus. Because higher cognitive functions require both structures, selectively targeting a neurobiological change in one region, at the expense of the other, is not likely to restore normal behavior in older animals. One change with age that both the PL and CA3 share, however, is a reduced ability to utilize glucose, which can produce aberrant neural activity patterns. The current study used a ketogenic diet (KD) intervention, which reduces the brain's reliance on glucose, and has been shown to improve cognition, as a metabolic treatment for restoring neural ensemble dynamics in aged rats. Expression of the immediate-early genes Arc and Homer1a were used to quantify the neural ensembles that were active in the home cage prior to behavior, during a working memory/biconditional association task, and a continuous spatial alternation task. Aged rats on the control diet had increased activity in CA3 and less ensemble overlap in PL between different task conditions than did the young animals. In the PL, the KD was associated with increased activation of neurons in the superficial cortical layers. The KD did not lead to any significant changes in CA3 activity. These observations suggest that the KD does not restore neuron activation patterns in aged animals, but rather the availability of ketone bodies in the frontal cortices may permit the engagement of compensatory mechanisms that produce better cognitive outcomes.