Trade-offs between growth, reproduction, and lifespan constrain animal life histories, leading to evolutionary diversification of life history cycles in different environments. In female mammals, gestation and lactation are expected to impose the major costs of reproduction, driving reproductive trade-offs, although mating also requires interactions with males that could themselves influence life history. Here we show that a male's presence by itself leads to lifelong alterations in life history in female mice. Housing C57BL/6J female mice with sterilized males early in life led to an increase in body weight, an effect that persisted across life even when females were later allowed to produce pups. We found that those females previously housed with sterile males also showed enhanced late-life offspring production when allowed to reproduce, indicating that earlier mating can influence subsequent fecundity. This effect was the opposite to that seen in females previously housed with intact males, which showed the expected trade-off between early-life and late-life reproduction. However, housing with a sterile male early in life came at a cost to lifespan, which was observed in the absence of females ever undergoing fertilization. Endocrinologically, mating also permanently reduced the concentration of circulating prolactin, a pituitary hormone influencing maternal care. Changes in hormone axes that influence reproduction could therefore help alter life history allocation in response to opposite-sex stimuli. Our results demonstrate that mating itself can increase growth and subsequent fecundity in mammals, and that responses to sexual stimuli could account for some lifespan trade-offs normally attributed to pregnancy and lactation.