Female longevity is observed in humans and much of the animal kingdom, but its causes remain elusive. Using a genetic manipulation that generates XX and XY mice, each with either ovaries or testes, we show that the female XX sex chromosome complement increases survival during aging in male and female mice. In combination with ovaries, it also extends lifespan. Understanding causes of sex-based differences in aging could lead to new pathways to counter age-induced decline in both sexes.