Performance deteriorates when subjects must shift between two different tasks relative to performing either task separately. This switching cost is thought to result from executive processes that are not inherent to the component operations of either task when performed alone. Medial and dorsolateral frontal cortices are theorized to subserve these executive processes. Here we show that larger areas of activation were seen in dorsolateral and medial frontal cortex in both younger and older adults during switching than repeating conditions, confirming the role of these frontal brain regions in executive processes. Younger subjects activated these medial and dorsolateral frontal cortices only when switching between tasks; in contrast, older subjects recruited similar frontal regions while performing the tasks in isolation as well as alternating between them. Older adults recruit medial and dorsolateral frontal areas, and the processes computed by these areas, even when no such demands are intrinsic to the current task conditions. This neural recruitment may be useful in offsetting the declines in cognitive function associated with ageing.