Usually there will not be a specific treatment that will lead to the improvement of erectile dysfunction. However, there are treatments that will allow erections to happen and can be used to allow sexual activity to take place. There are three main types of treatments: non-invasive treatments such as tablet medicines and external devices (e.g. vacuum device); penile injections; or for men who have not had success with other treatments, surgery may be an option.
An occasional problem achieving an erection is nothing to worry about. But failure to do so more than 50% of the time at any age may indicate a condition that needs treatment. About 40% of men in their 40s report at least occasional problems getting and maintaining erections. So do more than half (52%) of men aged 40 to 70, and about 70% of men in their 70s.
The physical side effects of chemotherapy are usually temporary and resolve within one to two weeks after stopping the chemotherapy. However, chemotherapy agents, such as Ciplatin or Vincristine, may interfere with the nerves that control erection leading to possible impotence. Make sure you discuss potential side effects of cancer chemotherapy with your doctor or healthcare provider.
Hormone deficiency or hypogonadism, whether primary or secondary, has been thought to impact erectile function. Approximately a third of men in the European Male Aging Study demonstrated low testosterone, suggesting that hypogonadism is overrepresented among men with ED.11 Hormone deficiency, however, is less frequently the cause of ED than diabetes or vascular disease. Many entities with a strong relationship to ED also diminish bioavailable testosterone, including obesity, diabetes, and opioid use. Other hormones involved in testosterone metabolism or availability, like thyroid stimulating hormone and gonadotropins, also may impact erectile quality, presumably through regulating bioavailable testosterone. Understanding the relationship between testosterone and ED has been impaired by a lack of standardized measurement of this hormone and the cyclic nature of its release and consumption.
Erectile dysfunction in older men. Because erections primarily involve the blood vessels, it is not surprising that the most common causes in older men are conditions that block blood flow to the penis, such as atherosclerosis or diabetes. Another vascular cause may be a faulty vein, which lets blood drain too quickly from the penis. Other physical disorders, as well as hormonal imbalances and certain operations, may also result in erectile dysfunction.
The bones and the brain are two important tissues in humans where the primary effect of testosterone is by way of aromatization to estradiol. In the bones, estradiol accelerates ossification of cartilage into bone, leading to closure of the epiphyses and conclusion of growth. In the central nervous system, testosterone is aromatized to estradiol. Estradiol rather than testosterone serves as the most important feedback signal to the hypothalamus (especially affecting LH secretion). In many mammals, prenatal or perinatal "masculinization" of the sexually dimorphic areas of the brain by estradiol derived from testosterone programs later male sexual behavior.
Sexual dysfunction is highly prevalent in men and women. In the MMAS, 52% of the respondents reported some degree of erectile difficulty. Complete ED, defined as (1) the total inability to obtain or maintain an erection during sexual stimulation and (2) the absence of nocturnal erections, occurred in 10% of the respondents. Mild and moderate ED occurred in 17% and 25% of responders, respectively. 
In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
In some cases, ED can be a warning sign of more serious disease. One study suggests ED is a strong predictor of heart attack, stroke, and death from cardiovascular disease. The researchers say all men diagnosed with ED should be evaluated for cardiovascular disease. This does not mean every man with ED will develop heart disease, or that every man with heart disease has ED, but patients should be aware of the link.
Between 10 and 88% of patients diagnosed with cancer experience sexual problems following diagnosis and treatment. The prevalence varies according to the location and type of cancer, and the treatment modalities used. Sexuality may be affected by chemotherapy, alterations in body image due to weight change, hair loss or surgical disfigurement, hormonal changes, and cancer treatments that directly affect the pelvic region.
In males, the majority of testosterone is secreted from the testes, hence the term “testosterone”. The hormone is also produced in small amounts by the adrenal gland. The production of this hormone is controlled by the hypothalamus and pituitary gland in the brain. The pituitary gland receives instructions from the hypothalamus on how much testosterone needs producing and passes this information onto the testicles via chemicals and hormones circulating in the bloodstream.
Early infancy androgen effects are the least understood. In the first weeks of life for male infants, testosterone levels rise. The levels remain in a pubertal range for a few months, but usually reach the barely detectable levels of childhood by 4–7 months of age. The function of this rise in humans is unknown. It has been theorized that brain masculinization is occurring since no significant changes have been identified in other parts of the body. The male brain is masculinized by the aromatization of testosterone into estrogen, which crosses the blood–brain barrier and enters the male brain, whereas female fetuses have α-fetoprotein, which binds the estrogen so that female brains are not affected.