For middle-aged adults, the benefits of PA on cognitive performance may be strongest among adults living with greater neighbourhood social and material disadvantages. For older adults, PA may be beneficial to cognitive performance irrespective of neighbourhood disadvantages.