A number of treatments are available to treat erectile dysfunction. The typical treatment strategy starts with simple to use, noninvasive therapies and progresses to more invasive surgical therapies as needed. In all men, the first step is determining if there are any modifiable risks factors that can either improve or prevent progression of erectile dysfunction. Since the risk of developing ED is increased in the presence of diabetes, heart disease, and hypertension, it is thought that better control/prevention of these conditions may have a benefit in ED. Similarly, it is thought that lifestyle modifications to improve vascular function such as avoiding smoking, maintaining ideal body weight, and engaging in regular exercise might either prevent or reverse ED. Sexual counseling may also be useful in addressing relationship stressors as you work on improving your erectile function.
Alprostadil should not be used in men at higher risk for priapism (erection lasting longer than six hours) including men with sickle cell anemia, thrombocytopenia (low platelet count), polycythemia (increased red blood cell count), multiple myeloma (a cancer of the white blood cells), and is contraindicated in men prone to venous thrombosis (blood clots in the veins) or hyperviscosity syndrome who are at increased risk for priapism.
In addition, when research has shown a nutrient such as zinc or niacin to improve sexual function, it's usually in people who are deficient in it. So, before you stock up on over-the-counter nutritional supplements for ED, speak with your doctor. He can test you for deficiencies and steer you toward the most effective and safest way to treat your erectile dysfunction.
Sildenafil (Viagra) was the first oral phosphodiesterase type 5 (PDE5) inhibitor approved by the FDA in the United States for the treatment of erectile dysfunction (it is not approved for women). Sildenafil inhibits PDE5, which is an enzyme that destroys cGMP. By inhibiting the destruction of cGMP by PDE5, sildenafil allows cGMP to accumulate. The cGMP in turn prolongs relaxation of the smooth muscle of the corpora cavernosa. Relaxation of the corpora cavernosa smooth muscle allows blood to flow into the penis resulting in increased engorgement of the penis. In short, sildenafil increases blood flow into the penis and decreases blood flow out of the penis.
Causes of impotence are many and include heart disease, high cholesterol, high blood pressure, obesity, metabolic syndrome, Parkinson's disease, Peyronie's disease, substance abuse, sleep disorders, BPH treatments, relationship problems, blood vessel diseases (such as peripheral vascular disease and others), systemic disease, hormonal imbalance, and medications (such as blood pressure and heart medications).
Performance anxiety can be another cause of impotence. If a person wasn’t able to achieve an erection in the past, he may fear he won’t be able to achieve an erection in the future. A person may also find he can’t achieve an erection with a certain partner. Someone with ED related to performance anxiety may be able to have full erections when masturbating or when sleeping, yet he isn’t able to maintain an erection during intercourse.
The mechanisms by which testosterone plays a role in erectile function are not completely understood. A study evaluating the effect of testosterone on erections in surgically castrated rabbits and control animals, in which the rabbits’ intracavernosal pressures were compared after cavernosal nerve stimulation, determined that castrated rabbits had much lower pressures after stimulation than control rabbits did.  Notably, the pressures increased when castrated rabbits received exogenous testosterone replacement.
Erectile dysfunction (ED) affects 50% of men older than 40 years,  exerting substantial effects on quality of life.  This common problem is complex and involves multiple pathways. Penile erections are produced by an integration of physiologic processes involving the central nervous, peripheral nervous, hormonal, and vascular systems. Any abnormality in these systems, whether from medication or disease, has a significant impact on the ability to develop and sustain an erection, ejaculate, and experience orgasm.
The somatosensory pathways for erections originate in the penile skin, glans and urethra. Glans afferent sensory free nerve endings are 10-fold more than their corpuscular receptors, and are derived from Aδ and unmyelinated C fibers. The nerve endings coalesce to form the dorsal penile nerve along with other sensory nerve fibers. Through the pudendal nerve they enter the S2-4 nerve roots to terminate on spinal neurons and interneurons. The dorsal nerve is not purely somatic, however. Nerve bundles within the dorsal nerve contain nitric oxide (NO) synthase, found typically in autonomic nerves, and stimulation of the sympathetic chain can leak to evoked potentials from the dorsal nerve and vice versa (10-12).
Medical conditions, such as hypertension, diabetes mellitus, and cardiovascular disease (CVD), and psychological conditions, such as depression and anxiety, also contribute to sexual dysfunction in middle-aged or elderly men. CVD and hypertension cause a narrowing and hardening of the arteries, leading to reduced blood flow to the corporal bodies, which is essential for achieving an erection. Diabetes is a common aetiology of sexual dysfunction, because it can affect both the blood vessels and the nerves that supply the penis. Men with diabetes are four times more likely to experience ED, and on average, experience ED 15 years earlier than men without diabetes.7 Obesity is also correlated to the development of several types of dysfunction, including a decrease in sex drive and an increase in episodes of ED.8
Erosion of the prosthesis, whereby it presses through the corporal tissue into the urethra, may occur. Symptoms and signs may include pain, blood in the urine, discharge, abnormal urine stream, and malfunction. If the prosthesis erodes into the urethra, a physician must remove it. If the other cylinder remains intact, it can be left in place. A physician leaves a catheter in place to allow the urethra to heal.
Other factors leading to erectile dysfunction are diabetes mellitus, which is a well-known cause of neuropathy). ED is also related to generally poor physical health, poor dietary habits, obesity, and most specifically cardiovascular disease, such as coronary artery disease and peripheral vascular disease. Screening for cardiovascular risk factors, such as smoking, dyslipidemia, hypertension, and alcoholism is helpful.
The Cancer of the Prostate Strategic Urologic Research Endeavor (CaPSURE) study, designed to determine whether an individual man’s sexual outcomes after most common treatments for early-stage prostate cancer could be accurately predicted on the basis of baseline characteristics and treatment plans, found that 2 years after treatment, 177 (35%) of 511 men who underwent prostatectomy reported the ability to attain functional erections suitable for intercourse. 
If you are taking medications (alpha-blockers) for problems with an enlarged prostate, you should discuss your prostate medications with your doctor. Alpha-blockers also can cause lowering of the blood pressure. Thus your doctor will need to carefully watch your blood pressure when you start the PDE5 inhibitor. Common alpha-blockers include doxazosin (Cardura), terazosin (Hytrin), and tamsulosin (Flomax).
Besides PDE5 inhibitors and among second-line therapies are VCDs which are clear plastic chambers placed over the penis, tightened against the lower abdomen with a mechanism to create a vacuum inside the chamber. This directs blood into the penis. If an adequate erection occurs inside the chamber, the patient slips a small constriction band off the end of the VCD and onto the base of the penis. An erection beyond 30 min is not recommended. These devices can be a bit cumbersome, but are very safe.40
It is common for a healthy older man to still want sex and be able to have sex within appropriate limitations. Understanding what is normal in older age is important to avoid frustration and concern. Older men and their partners often value being able to continue sexual activity and there is no age where the man is ‘too old’ to think about getting help with his erection or other sexual problems.