Erectile dysfunction (ED) can be treated by urologists or other specialists or even by your general practitioner. Your doctor may recommend medication that works by relaxing penis muscles and increasing blood flow into the penis. Other treatments include therapy, implants, surgery and lifestyle changes, like exercising regularly, losing weight and eating right.
Trauma to the pelvic blood vessels or nerves can also lead result in ED. Bicycle riding for long periods has been implicated as an etiologic factor; direct compression of the perineum by the bicycle seat may cause vascular and nerve injury.  On the other hand, bicycling for less than 3 hours per week may be somewhat protective against ED.  Some of the newer bicycle seats have been designed to diminish pressure on the perineum. [37, 38]
This penile tumescence monitor is placed at the base and near the corona of the penis. It is connected to a monitor that records a continuous graph depicting the force and duration of erections that occur during sleep. The monitor is strapped to the leg. The nocturnal penile tumescence test is conducted on several nights to obtain an accurate indication of erections that normally occur during the alpha phase of sleep.
Erectile dysfunction can occur as a side effect of medication taken for another health condition. Common culprits are high blood pressure meds, antidepressants, some diuretics, beta-blockers, heart medication, cholesterol meds, antipsychotic drugs, hormone drugs, corticosteroids, chemotherapy, and medication for male pattern baldness, among others.
Cosgrove et al reported a higher rate of sexual dysfunction in veterans with posttraumatic stress disorder (PTSD) than in veterans who did not develop this problem.  The domains on the International Index of Erectile Function (IIEF) questionnaire that demonstrated the most change included overall sexual satisfaction and erectile function. [43, 44] Men with PTSD should be evaluated and treated if they have sexual dysfunction.
According to a review of all randomized controlled trials evaluating sildenafil by the American Urological Association (AUA) Consensus Panel on Erectile Dysfunction, 36% to 76% of patients receiving the drug were "able to achieve intercourse" during treatment. For tadalafil, four randomized controlled trials revealed that 11% to 47% of patients were "able to achieve intercourse." Similar efficacy has been observed with vardenafil, although studies are fewer.19 A meta-analysis published in 2013 clearly demonstrated increased efficacy over placebo for all PDE5 inhibitors.24 Head-to-head comparison suggested that tadalafil outperforms sildenafil on validated measures of erectile dysfunction, including the international index of erectile function and sexual encounter profile-2 and -3.
In their extensive review, Bassil and coworkers summarise the benefits and risks, with benefits such as improvement of sexual function, bone density, muscle strength, cognition and overall improvement in quality of life. Among the risks that have been suggested include erythrocytosis, liver toxicity, worsening of sleep apnoea and cardiac function, possibly increasing symptoms of benign prostatic hyperplasia (BPH). They also note that although a possibility of stimulation of prostate cancer has been hypothesised, no scientific or clinical evidence exists to this possible risk.38
Treatment. prostatitis or another acute infection affecting the genitalia can cause temporary impotence that clears up in response to antibiotics. The smooth muscle relaxant sildenafil (viagra) was introduced in 1998 as a treatment for organic impotence. Administration of testosterone may be indicated if low levels of this hormone are found in a blood sample. If impotence is organic and does not respond to other therapies, a penile prosthesis can be implanted; this is usually done surgically by a urologist. Other therapies include the use of vacuum tumescence devices and penile injection of pharmacologic agents that cause dilation.
Phosphodiesterase type V inhibitors (PDE-5 inhibitors) are the most commonly used therapy for erectile dysfunction. These medications work by preventing the breakdown of chemicals that stimulate increased blood flow into the penis. Several different PDE-5 inhibitors are available, which differ slightly in how to use them and their side effects. They appear to be equally effective in the treatment of erectile dysfunction in general, but some individuals may respond to one of these medications more effectively than another.
Tests such as the bulbocavernosus reflex test are used to determine if there is sufficient nerve sensation in the penis. The physician squeezes the glans (head) of the penis, which immediately causes the anus to contract if nerve function is normal. A physician measures the latency between squeeze and contraction by observing the anal sphincter or by feeling it with a gloved finger inserted past the anus.
Caution is recommended regarding the use of PDE-5 inhibitors and alpha-blockers (for example, Hytrin, Cardura, Uroxatral, Flomax, Rapaflo), medications commonly used to treat benign prostate enlargement (BPH). The combination of these medications can cause lowering of the blood pressure. Stable use of one therapy should occur prior to the addition of the other therapy, which should start at a low dose.
Additionally, the physiologic processes involving erections begin at the genetic level. Certain genes become activated at critical times to produce proteins vital to sustaining this pathway. Some researchers have focused on identifying particular genes that place men at risk for ED. At present, these studies are limited to animal models, and little success has been reported to date.  Nevertheless, this research has given rise to many new treatment targets and a better understanding of the entire process.
Alprostadil self-injection. With this method, you use a fine needle to inject alprostadil (Caverject Impulse, Edex) into the base or side of your penis. In some cases, medications generally used for other conditions are used for penile injections on their own or in combination. Examples include papaverine, alprostadil and phentolamine. Often these combination medications are known as bimix (if two medications are included) or trimix (if three are included).
Approximately 95% of penile implant surgeries are successful in producing erections that enable men to have sexual intercourse. Moreover, patient satisfaction questionnaires show that up to 90% of men who have undergone penile implants say they would choose the surgery again, and overall satisfaction ratings are higher than those reported by men using oral medication or penile injection therapy.
It is essential to discuss erectile dysfunction with your doctor, so any serious underlying causes can be excluded and treatment options can be discussed. Many men are embarrassed discussing this issue with their doctor, or even their partner. Open communication with your doctor, and in your relationship, is important for effectively managing this common problem.
Since endothelial dysfunction, CVD and ED are closely associated in epidemiological studies, the question for clinicians is whether to recommend the man presenting with ED undergo a cardiovascular (CV) evaluation. Clearly, based on numerous studies, ED can be considered at least a ‘marker’ for possible further vascular disease or CVD.15 In their report, Vlachopoulos and coworkers make the point that the man presenting with ED, the clinician, is offered an opportunity to attempt to improve the health of the man by addressing lifestyle modification, and consider further vascular evaluation owing to the clear relationship between endothelial dysfunction, ED and CVD.19
Diabetes is a well-recognized risk factor for ED. A systematic review and meta-analysis found that the prevalence of ED was 37.5% in type 1 diabetes, 66.3% in type 2 diabetes, and 52.5% in diabetes overall—a rate approximately 3.5 times higher than that in controls.  The etiology of ED in diabetic men probably involves both vascular and neurogenic mechanisms. Evidence indicates that establishing good glycemic control can minimize this risk.
With drug therapy, there’s a risk of side effects such as headaches, back pain or an upset stomach. Before taking any medication for erectile dysfunction it is important to ensure your doctor is ok with that decision. Medication may not work for all men, for instance, if you have diabetes or have previously had prostate surgery. ED medication might also have serious risks if you’re currently taking nitrates (commonly prescribed for chest pain), have heart disease or have low blood pressure.22
Whenever I am prescribing a medication to a patient, I’m always asking myself, what can the patient do before requiring the medication? What changes do they have to make in order to reduce the amount of medication or preclude their even needing it? So a good candidate is somebody who has an understanding of a healthy lifestyle, about physical activity, about sleep, about nutrition, alcohol, smoking. So patients, individuals, have to do their share before they’re a candidate for anything. All right?
Currently, there are no therapies that cure erectile dysfunction. However, a number of effective therapies are available that allow an individual to have an erection when desired. Depending on the cause of the erectile dysfunction, certain therapies may be more effective than others. Although there is limited data on lifestyle modification, intuitively, decreasing risk factors for erectile dysfunction may help prevent progression of disease.
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.