Disrupted sleep is more common in older adults (OLD) than younger adults (YOUNG), often co-morbid with other conditions. How these sleep disturbances affect cognitive performance is an area of active study. We examined whether brain activation during verbal encoding correlates with sleep quantity and quality the night before testing in a group of healthy OLD and YOUNG. Twenty-seven OLD (ages 59-82) and 27 YOUNG (ages 19-36) underwent one night of standard polysomnography. Twelve hours post-awakening, subjects performed a verbal encoding task while undergoing functional magnetic resonance imaging. Analyses examined the group (OLD vs. YOUNG) by prior sleep quantity (total sleep time, TST) or quality (sleep efficiency, SE) interaction on cerebral activation, controlling for performance. Longer TST promoted higher levels of activation in the bilateral anterior parahippocampal in OLD and lower activation levels in the left anterior parahippocampus in YOUNG. Greater SE promoted higher activation levels in the left posterior parahippocampus and right inferior frontal gyrus in YOUNG, but not in OLD. The roles of these brain regions in verbal encoding suggest, in OLD, longer sleep duration may be linked to the ability to engage in functional compensation during cognitive challenges. By contrast, in YOUNG, shorter sleep duration may necessitate functional compensation to maintain cognitive performance, similar to what is seen following acute sleep deprivation. Additionally, in YOUNG, better sleep quality may improve semantic retrieval processes, thereby aiding encoding.