Social environments can have a major impact on ageing profiles in many animals. However, such patterns in variation in ageing and their underlying mechanisms are not well understood, particularly because both social contact and isolation can be stressful. Here, we use Drosophila melanogaster fruitflies to examine sex-specific effects of social contact. We kept flies in isolation versus same-sex pairing throughout life, and measured actuarial (lifespan) and functional senescence (declines in climbing ability). To investigate underlying mechanisms, we determined whether an immune stress (wounding) interacted with effects of social contact, and assessed behaviours that could contribute to differences in ageing rates. Pairing reduced lifespan for both sexes, but the effect was greater for males. In contrast, pairing reduced the rate of decline in climbing ability for females, whereas for males, pairing caused more rapid declines with age. Wounding reduced lifespan for both sexes, but doubled the negative effect of pairing on male lifespan. We found no evidence that these effects are driven by behavioural interactions. These findings suggest that males and females are differentially sensitive to social contact, that environmental stressors can impact actuarial and functional senescence differently, and that these effects can interact with environmental stressors, such as immune challenges.