
Located in the scrotum, the testicles (also called the testes) are a pair of male reproductive glands that produce sperm cells and testosterone, the primary male sex hormone and anabolic steroid which contributes to a man’s libido and helps with erections.
In some cases, a man might need to have one or both of his testicles removed in a procedure called an orchiectomy. (This word is sometimes spelled orchidectomy.) This operation may be necessary after trauma or injury or as part of cancer treatment.
A man’s sexual function after testicle removal depends on whether one or both testicles are removed.

Removal of One Testicle
If only one testicle is removed, sexual function usually isn’t affected. The testicle that remains usually produces enough testosterone and sperm so that a man can preserve his sexual function and his fertility..

Removal of Both Testicles
If both testicles are removed, the situation is different. Without both testicles, a man’s body is unable to produce testosterone. He might become less interested in sex, and might experience erection difficulties. Some men decide to have testosterone replacement therapy.
Men who have had both testicles removed are no longer able to produce sperm, so they cannot have biological children. Sometimes, men are able to bank their sperm before surgery. The sperm cells are then frozen and saved for in vitro fertilization later.

After Surgery
Body image concerns are common after orchiectomy. Men might feel self-conscious about the look of their genitals after surgery, and some decide to have a testicular prosthesis implanted. Others feel less masculine or worry how a sexual partner will react.
Being open and honest about these anxieties can help. Men might also consider seeing a counselor or sex therapist.
Resources
American Cancer Society
“Surgery for Testicular Cancer”
(Last revised: May 17, 2018)
https://www.cancer.org/cancer/testicular-cancer/treating/surgery.html
Urology Care Foundation
“What is Testicular Cancer?”
https://www.urologyhealth.org/urologic-conditions/testicular-cancer
Society of Endocrinology
“Testes”
(Last reviewed: February 2018)
https://www.yourhormones.info/glands/testes/
WebMD
“What Is Orchiectomy?”
(Reviewed: April 21, 2019)