Only a small proportion of cases of erectile dysfunction are caused by hormone abnormalities. The most frequent hormone abnormality is a reduced level of the male sex hormone testosterone required to get an erection which can be restored by appropriate hormone replacement. It's unwise to take testosterone preparations unless you've had tests that confirm a deficiency.
Erectile dysfunction is clearly a symptom of many conditions, and certain risk factors have been identified, some of which may be amenable to prevention strategies. Diabetes mellitus, hypogonadism in association with a number of endocrinologic conditions, hypertension, vascular disease, high levels of blood cholesterol, low levels of high density lipoprotein, drugs, neurogenic disorders, Peyronie's disease, priapism, depression, alcohol ingestion, lack of sexual knowledge, poor sexual techniques, inadequate interpersonal relationships or their deterioration, and many chronic diseases, especially renal failure and dialysis, have been demonstrated as risk factors. Vascular surgery is also often a risk factor. Age appears to be a strong indirect risk factor in that it is associated with an increased likelihood of direct risk factors. Other factors require more extensive study. Smoking has an adverse effect on erectile function by accentuating the effects of other risk factors such as vascular disease or hypertension. To date, vasectomy has not been associated with an increased risk of erectile dysfunction other than causing an occasional psychological reaction that could then have a psychogenic influence. Accurate risk factor identification and characterization are essential for concerted efforts at prevention of erectile dysfunction.