The human genome contains 24 gag-like capsid genes derived from deactivated retrotransposons conserved among eutherians. Although some of their encoded proteins retain the ability to form capsids and even transfer cargo, their fitness benefit has remained elusive. Here we show that the gag-like genes PNMA1 and PNMA4 support reproductive capacity. Six-week-old mice lacking either Pnma1 or Pnma4 are indistinguishable from wild-type littermates, but by six months the mutant mice become prematurely subfertile, with precipitous drops in sex hormone levels, gonadal atrophy, and abdominal obesity; overall they produce markedly fewer offspring than controls. Analysis of donated human ovaries shows that expression of both genes declines normally with aging, while several PNMA1 and PNMA4 variants identified in genome-wide association studies are causally associated with low testosterone, altered puberty onset, or obesity. These findings expand our understanding of factors that maintain human reproductive health and lend insight into the domestication of retrotransposon-derived genes.