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.
medicines called alpha-blockers such as Hytrin (terazosin HCl), Flomax (tamsulosin HCl), Cardura (doxazosin mesylate), Minipress (prazosin HCl), Uroxatral (alfuzosin HCl), Jalyn (dutasteride and tamsulosin HCl), or Rapaflo (silodosin). Alpha-blockers are sometimes prescribed for prostate problems or high blood pressure. In some patients, the use of Sildenafil with alpha-blockers can lead to a drop in blood pressure or to fainting
Soler et al. compared sildenafil to vardenafil and tadalafil (69). Sildenafil was effective in 85% of SCI patients, 74% of the patients on vardenafil and 72% of the patients on tadalafil. Sildenafil was associated with more rigid and longer lasting erections. Additionally, 50 mg of sildenafil was effective in 55% of patients compared to more than 70% of the patients on vardenafil and tadalafil requiring 20 mg for a similar response. Men who used tadalafil were able to achieve erections 24 hours after administration, improving overall satisfaction related to the possible spontaneity of sexual encounters. Del Popolo also evaluated the time/duration effectiveness of PDE5i sildenafil 50 mg versus tadalafil 10 mg (64). Tadalafil 10 mg significantly increased the percentage of successful intercourse attempts at 12–24 hours compared with sildenafil. One can suspect that vardenafil, which has a longer half-life than sildenafil, could offer a similar benefit but a study investigating this occurrence has yet to be performed.
Depression and anxiety: Psychological factors may be responsible for erectile dysfunction. These factors include stress, anxiety, guilt, depression, widower syndrome, low self-esteem, posttraumatic stress disorder, and fear of sexual failure (performance anxiety). It is also worth noting that many medications used for treatment of depression and other psychiatric disorders may cause erectile dysfunction or ejaculatory problems.
In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
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.
Sexual stimulation causes the release of neurotransmitters from cavernosal nerve endings and relaxation factors from endothelial cells lining the sinusoids. NOS produces NO from L-arginine, and this, in turn, produces other muscle-relaxing chemicals, such as cGMP and cyclic adenosine monophosphate (cAMP), which work via calcium channel and protein kinase mechanisms (see the image below). This results in the relaxation of smooth muscle in the arteries and arterioles that supply the erectile tissue, producing a dramatic increase in penile blood flow.
ICI Alprostadil may be used as a mixture with two other drugs to treat ED. This combination therapy called "bimix or trimix" is stronger than alprostadil alone and has become standard treatment for ED. Only the Alprostadil ingredient is FDA approved for ED. The amount of each drug used can be changed based on the severity of your ED, by an experienced health professional. You will be trained by your health professional on how to inject, how much to inject and how to safely raise the drug's dosage if necessary.