For some patients with an established diagnosis of testicular failure (hypogonadism), androgen replacement therapy may sometimes be effective in improving erectile function. A trial of androgen replacement may be worthwhile in men with low serum testosterone levels if there are no other contraindications. In contrast, for men who have normal testosterone levels, androgen therapy is inappropriate and may carry significant health risks, especially in the situation of unrecognized prostate cancer. If androgen therapy is indicated, it should be given in the form of intramuscular injections of testosterone enanthate or cypionate. Oral androgens, as currently available, are not indicated. For men with hyperprolactinemia, bromocriptine therapy often is effective in normalizing the prolactin level and improving sexual function. A wide variety of other substances taken either orally or topically have been suggested to be effective in treating erectile dysfunction. Most of these have not been subjected to rigorous clinical studies and are not approved for this use by the Food and Drug Administration (FDA). Their use should therefore be discouraged until further evidence in support of their efficacy and indicative of their safety is available.
Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing sexual dysfunction. 
How’s this for a win-win: The more sex you have, the less likely you are to suffer from erectile dysfunction, according to a 2008 study published in The American Journal of Medicine. Men aged 55-75 who reported having sex less than once per week had twice the incidence of erectile dysfunction (there were 79 cases of ED per 1,000) as men who have sex once a week (32 cases of ED per 1,000). But if you really want to up your odds, shoot for three times per week (only 16 cases of ED per 1,000). Can you really argue with science, or a perscription to have more sex?
The more you puff, the more you put your penis at risk, according to a study from the Tulane University School of Public Health and Tropical Medicine. The researchers examined 7,684 men between the ages of 35-74 and concluded about 23 percent of erectile dysfunction cases can be chalked up to cigarette smoking. This is probably the best motivator If you've been struggling to quit.
Half of all men between the ages of 40 and 70 will experience erectile dysfunction. While the problem doesn't cause heart disease, the two often occur together – study after study has shown that men with ED are dramatically more likely to develop heart disease and have a heart attack or stroke. One German study from 2010 found men with erectile dysfunction are twice as likely to die within the next two years as those without, prompting some experts to call the phenomenon "the canary in the trousers".
Constriction of the trabecular smooth muscle and helicine arteries induced by sympathetic innervation makes the penis flaccid, with blood pressure in the cavernosal sinuses of the penis near venous pressure. Acetylcholine is thought to decrease sympathetic tone. This may be important in a permissive sense for adequate trabecular smooth muscle relaxation and consequent effective action of other mediators in achieving sufficient inflow of blood into the lacunar spaces. When the trabecular smooth muscle relaxes and helicine arteries dilate in response to parasympathetic stimulation and decreased sympathetic tone, increased blood flow fills the cavernous spaces, increasing the pressure within these spaces so that the penis becomes erect. As the venules are compressed against the tunica albuginea, penile pressure approaches arterial pressure, causing rigidity. Once this state is achieved, arterial inflow is reduced to a level that matches venous outflow.
Associated morbidity may include various other male sexual dysfunctions, such as premature (early) ejaculation and male hypoactive sexual desire disorder. The NHSLS found that 28.5% of men aged 18-59 years reported premature ejaculation, and 15.8% lacked sexual interest during the past year. An additional 17% reported anxiety about sexual performance, and 8.1% had a lack of pleasure in sex. 
It is estimated that up to 20 million American men frequently suffer from impotence and that it strikes up to half of all men between the ages of 40 and 70. Doctors used to think that most cases of impotence were psychological in origin, but they now recognize that, at least in older men, physical causes may play a primary role in 60% or more of all cases. In men over the age of 60, the leading cause is atherosclerosis, or narrowing of the arteries, which can restrict the flow of blood to the penis. Injury or disease of the connective tissue, such as Peyronie's disease, may prevent the corpora cavernosa from completely expanding. Damage to the nerves of the penis, from certain types of surgery or neurological conditions, such as Parkinson's disease or multiple sclerosis, may also cause impotence. Men with diabetes are especially at risk for impotence because of their high risk of both atherosclerosis and a nerve disease called diabetic neuropathy.
Another potential new treatment consists of penile low-intensity shock wave lithotripsy. This consists of 1500 shocks twice a week for 3–6 weeks. The purpose is to stimulate neovascularisation to the corporal bodies with improvement in penile blood flow and endothelial function. The use of low-intensity shock wave lithotripsy may convert PDE5 inhibitor non-responders to responders.47
If you’re no longer having intercourse, you don’t need erections. Most men assume that erections are necessary for sex. No. Couples can have great sex without them. Intercourse becomes problematic for older couples. Men have erection issues and post-menopausal women develop vaginal dryness and atrophy that can make intercourse uncomfortable (or worse) even with lubricants. Many older couples jettison intercourse in favor of mutual massage, oral sex, and sex toys—and still enjoy hot sex.
Patients with both ED and cardiovascular disease who receive treatment with an oral PDE5 inhibitor require education regarding what to do if anginal episodes develop while the drug is in their system. Such education includes stressing the importance of alerting emergency care providers to the presence of the drug so that nitrate treatment is avoided.
Vacuum devices for ED, also called pumps, offer an alternative to medication. The penis is placed inside a cylinder. A pump draws air out of the cylinder, creating a partial vacuum around the penis. This causes it to fill with blood, leading to an erection. An elastic band worn around the base of the penis maintains the erection during intercourse.