Scientists have uncovered an evolutionary paradox where men damage their ability to have children during efforts to make themselves look more attractive.
Taking steroids to get a buff physique or anti-baldness pills to keep a full head of hair can damage fertility.
It has been named the Mossman-Pacey paradox after the scientists who first described it.
They say it causes a lot of heartache in couples struggling to conceive.
“I noticed some men coming in to have their fertility tested and these guys were huge,” says Dr James Mossman, now at Brown University in the United States.
He was studying for his doctorate in Sheffield when he made the connection with steroid abuse.
He told the BBC: “They are trying to look really big, to look like the pinnacles of evolution.
“But they are making themselves very unfit in an evolutionary sense, because without exception they had no sperm in their ejaculation at all.”
Anabolic steroids mimic the effect of the male hormone testosterone in the body and are used as performance-enhancing drugs to increase muscle growth.
They are regularly used by bodybuilders.
Prof Allan Pacey, from the University of Sheffield, added: “Isn’t it ironic that men go to the gym to look wonderful, for the most part to attract women, and inadvertently decrease their fertility.”
Anabolic steroids fool the brain’s pituitary gland into thinking the testes are going into overdrive.
So the glands react by shutting down the production of two hormones – called FSH and LH – which are the key hormones that drive the production of sperm.
The researchers say there is a similar theme in men using medication to prevent male pattern baldness.
The drug finasteride changes the way testosterone is metabolised in the body and can limit hair loss, but side effects can include erectile dysfunction and a hit to fertility.
Prof Pacey told the BBC: “I would say more anabolic steroid users are likely to become sterile than you would think – 90% probably.
“Baldness is a bit more hit-and-miss, but sales are going through the roof and that makes it an increasingly common problem.”