Patient can inject medications directly into the corpora cavernosa to help attain and maintain erections. Medications such as papaverine hydrochloride, phentolamine, and prostaglandin E1 (alprostadil) can be used alone or in combinations to attain erections. All of these medications are vasodilators and work by increasing blood flow into the penis. Prostaglandin E1 (Caverject, Edex) is easier to obtain; however, it is associated with penile pain in some individuals. The use of combinations of two or three of these medications can decrease the risk of having penile pain.
However, a review of a United Kingdom medical record database found no evidence that the use of 5-alpha reductase inhibitors independently increase the risk for ED. In 71,849 men with benign prostatic hyperplasia (BPH), the risk of ED was not increased with the use of finasteride or dutasteride only (odds ratio [OR] 0.94), or a 5-alpha reductase inhibitor plus an alpha blocker (OR 0.92) compared with an alpha blocker only. In addition, the risk of ED was not increase in 12 346 men prescribed finasteride 1 mg for alopecia, compared with unexposed men with alopecia (OR 0.95). The risk of ED did increase with longer duration of BPH, regardless of drug exposure. 
Surgical intervention for a number of conditions may remove anatomical structures necessary to erection, damage nerves, or impair blood supply. Erectile dysfunction is a common complication of treatments for prostate cancer, including prostatectomy and destruction of the prostate by external beam radiation, although the prostate gland itself is not necessary to achieve an erection. As far as inguinal hernia surgery is concerned, in most cases, and in the absence of postoperative complications, the operative repair can lead to a recovery of the sexual life of people with preoperative sexual dysfunction, while, in most cases, it does not affect people with a preoperative normal sexual life.
Finally, gene therapy and stem cell research has widened the frontier of ED treatment proposed as possibility to even reverse ED. Specifically, gene therapy pertains to repairing the cause of ED by restoring defective gene function and/or altering the expression of the mutant gene (32). Most of the available data on gene therapy are in the animal model. However, a phase I clinical trial in men with ED undergoing intracavernous injection with a DNA plasmid carrying the alpha-subunit of the corporal smooth muscle Maxi-K channel showed promise in increased erectile function based on IIEF assessment sustained throughout the 3-month study period (122).
If laboratory tests are performed, they would normally start with an evaluation of your hormone status (testosterone or male hormone), particularly if one of your symptoms is low sexual desire (low libido). Blood tests for testosterone should ideally be taken early in the morning because that's when levels are usually at their highest. It is recommended that if the first testosterone level is low to repeat it as testosterone levels can vary. If the testosterone level is low, other blood tests, such a luteinizing hormone and prolactin, can help determine if there is a problem with the pituitary gland.
A variety of lifestyle choices can affect the ability to achieve and maintain an erection, so preventing ED is possible in some cases. Men are encouraged to manage chronic health problems with their doctors and to exercise regularly. They also should avoid smoking and excess alcohol and get help for anxiety or depression, according to the Mayo Clinic.
Then you have to be able to make the right diagnosis. What is the basis for their erectile dysfunction? Is it psychogenic? Is it some sort of neurological or blood vessel or hormonal issue? So you have to make a diagnosis. You have to be able to make an assessment. And then only after those things are done, then you start to think about medications.
So here’s something that’s really fascinating. Healthy eating is a way to reduce anxiety and stress. Now how, you may be asking, right? Well, think about it. We live in a world where there are so many variables and where we don’t have control over our lives. But now, with healthy eating, we have control over what goes into our body. And now having that control empowers us to be even healthier, to be more directive in what we do. And certainly, that begins then to reduce the anxiety and the stress. So all in one, you have a healthier body, but certainly a healthier mind.
However, in contrast, a recent systematic review of published studies, the authors concluded that overall, the addition of testosterone to PDE-5 inhibitors might benefit patients with ED associated with testosterone levels of less than 300 ng/dL (10.4 nmol/L) who failed monotherapy.  A limitation of existing studies are their heterogeneous nature and methodological drawbacks.
Psychosocial problems are important and may cause erectile dysfunction by themselves or together with other causes of erectile dysfunction, such as diabetes and heart disease. Relationships are complicated and many factors cause tensions, which can affect sexual relations. For some men, these problems can become ongoing and it can help to talk through the issue with a skilled counsellor. It is important to know that the longer erectile dysfunction is left untreated, the greater the effect on relationships. This is another reason why early treatment of erectile dysfunction is important.
Instead of injecting a medicine, some men insert a suppository of alprostadil into the urethra. A suppository is a solid piece of medicine that you insert into your body where it dissolves. A health care professional will prescribe a prefilled applicator for you to insert the pellet about an inch into your urethra. An erection will begin within 8 to 10 minutes and may last 30 to 60 minutes.
While pills for ED are convenient, some men sustain stronger erections by injecting medication directly into the penis. Drugs approved for this purpose work by widening the blood vessels, causing the penis to become engorged with blood. Another option is inserting a medicated pellet into the urethra. The pellet can trigger an erection within 10 minutes.
A vacuum erection device is a plastic tube that slips over the penis, making a seal with the skin of the body. A pump at the other end of the tube makes a low-pressure vacuum around the erectile tissue, which results in an erection. An elastic ring is then slipped onto the base of the penis. This holds the blood in the penis (and keeps it hard) for up to 30 minutes. With proper training, 75 out of 100 men can get a working erection using a vacuum erection device.