Although the genetics are not fully understood, it is thought to be a recessive, and probably polygenetic, trait. Some have speculated that it is a sex-limited autosomal recessive trait; however, it is unlikely to be simple recessive. Dog testes usually descend by 10 days of age and it is considered to be cryptorchidism if they do not descend by the age of eight weeks. Cryptorchidism can be either bilateral (causing sterility) or unilateral, and inguinal or abdominal (or both). Because it is an inherited trait, affected dogs should not be bred and should be castrated. The parents should be considered carriers of the defect and a breeder should thoughtfully consider whether to breed the carrier parent or not. Littermates may be normal, carriers, or cryptorchid. Castration of the undescended teste(s) should be considered for cryptorchid dogs due to the high rate of testicular cancer, especially Sertoli cell tumors. The incidence of testicular cancer is 13.6 times higher in dogs with abdominally retained testicles compared with normal dogs. Testicular torsion is also more likely in retained testicles. Surgical correction is by palpation of the retained testicle and subsequent exploration of the inguinal canal or abdomen, but showing altered dogs is against AKC rules, making this correction pointless for breeding stock. Orchiopexy is an option for pet dogs that will not be used for breeding. Commonly affected breeds include:

Alaskan Klee Kai
Boxer
Chihuahua
Dachshund (miniature)
Bulldog
Maltese
Miniature Schnauzer
Pekingese
Pomeranian
Poodle (toy and miniature)
Pug
Shetland Sheepdog
Siberian Husky
Whippet
Yorkshire Terrier

Cats
Cryptorchidism is rarer in cats than it is in dogs. In one study, 1.9% of intact male cats were cryptorchid.
Cancer risk
One of the strongest arguments for early orchiopexy is reducing the risk of testicular cancer. About one in 500 men born with one or both testes undescended develops testicular cancer, roughly a four- to 40-fold increased risk. The peak incidence occurs in the third and fourth decades of life. The risk is higher for intra-abdominal testes and somewhat lower for inguinal testes, but even the normally descended testis of a man whose other testis was undescended has about a 20% higher cancer risk than those of other men.The most common type of testicular cancer occurring in undescended testes is seminoma. It is usually treatable if caught early, so urologists often recommend that boys who had orchiopexy as infants be taught testicular self-examination, to recognize testicular masses and seek early medical care for them. Cancer developing in an intra-abdominal testis would be unlikely to be recognized before considerable growth and spread, and one of the advantages of orchiopexy is that a mass developing in a scrotal testis is far easier to recognize than an intra-abdominal mass. Orchidopexy was originally thought to result in easier detection of testicular cancer, but did not lower the risk of actually developing cancer. However, recent data have shown a paradigm shift.