Penile erection is managed by two mechanisms: the reflex erection, which is achieved by directly touching the penile shaft, and the psychogenic erection, which is achieved by erotic or emotional stimuli. The former uses the peripheral nerves and the lower parts of the spinal cord, whereas the latter uses the limbic system of the brain. In both cases, an intact neural system is required for a successful and complete erection. Stimulation of the penile shaft by the nervous system leads to the secretion of nitric oxide (NO), which causes the relaxation of smooth muscles of corpora cavernosa (the main erectile tissue of penis), and subsequently penile erection. Additionally, adequate levels of testosterone (produced by the testes) and an intact pituitary gland are required for the development of a healthy erectile system. As can be understood from the mechanisms of a normal erection, impotence may develop due to hormonal deficiency, disorders of the neural system, lack of adequate penile blood supply or psychological problems. Spinal cord injury causes sexual dysfunction including ED. Restriction of blood flow can arise from impaired endothelial function due to the usual causes associated with coronary artery disease, but can also be caused by prolonged exposure to bright light.
Alprostadil is injected into the side of penis with a very fine needle. It's of great value to have the first shot in the doctor's office before doing this on your own. Self-injection lessons should be given in your doctor's office by an experienced professional. The success rate for getting an erection firm enough to have sex is as high as 85% with this treatment. Many men who do not respond to oral PDE5 inhibitors can be ‘rescued' with ICI.
"For men who are unwilling or unable to self-inject alprostadil, the FDA has approved this dissolvable pellet that can be inserted directly into the urethra, the opening of the penis," says Dr. Feloney. MUSE, with an inspiring name that actually stands for medicated urethral system for erection, will trigger an erection in about 10 minutes that may last as long as an hour. Using MUSE to treat ED can result in somewhat unpleasant side effects, however — including an aching sensation, burning, redness, and minor bleeding.
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. 
The truth is medication or psychosexual counselling are the first treatments a doctor will suggest because they’ve been proven to work. If a doctor has approved a medication for you then it’s safe. If you would still like to see if herbal supplements work for you, then there is a list below of supplements thought to work for erectile dysfunction. Just before you invest your money in them, remember they aren’t proven to work:
The physical examination can reveal clues for physical causes of erectile dysfunction. A doctor will perform an assessment of BMI and waist circumference to evaluate for abdominal obesity. A genital examination is part of the evaluation of erectile dysfunction. The examination will focus on the penis and testes. The doctor will ask you about penile curvature and will examine the penis to see if there are any plaques (hard areas) palpable. The doctor will examine the testes to make sure they are in the proper location in the scrotum and are normal in size. Small testicles, lack of facial hair, and enlarged breasts (gynecomastia) can point to hormonal problems such as hypogonadism with low testosterone levels. A health care provider may check pulses in your groin and feet to determine if there is a suggestion of hardening of the arteries that could also affect the arteries to the penis.
In patients who either fail to respond to first or second-line therapy, or are not interested in the conservative therapies, penile prosthesis implantation is available. Malleable and rigid implants were available for many years, but in 1973 the world of penile prosthetics took a giant leap forward with the advent of the inflatable penile implant. Most implants done nowadays are of the inflatable variety. Adverse events including malfunction and infection are rare, and patient satisfaction is very high.45
In general, PDE5i works successfully in about 65%-70% of all men with erectile dysfunction (impotence). The greater the degree of damage to the normal erection mechanism and severity of the ED, the lower the overall success rate. Men with diabetes and those with spinal cord injury reported between 50%-60% responding successfully to treatment with oral PDE5i medications. The lowest success rate has been in men who developed ED (impotence) after prostate cancer surgery (radical prostatectomy) for more advanced prostate cancer that required removal of both sets of nerves around the prostate. In men who did not have the nerves removed/damage, there is a better chance of response to PDE5 inhibitors.
A variety of personal habits and lifestyle choices have been linked to ED. In some ways, this is a good thing, since habits can be broken and choices reconsidered. What's more, many of the lifestyle factors that contribute to sexual problems are ones that affect overall health and well-being, both physical and mental. Addressing these factors, therefore, can have benefits beyond improving erectile dysfunction.
Talk with your doctor about going to a counselor if psychological or emotional issues are affecting your ED. A counselor can teach you how to lower your anxiety or stress related to sex. Your counselor may suggest that you bring your partner to counseling sessions to learn how to support you. As you work on relieving your anxiety or stress, a doctor can focus on treating the physical causes of ED.
Conditions that may be associated with ED include diabetes, [25, 26, 27] hypertension,  , and CAD, as well as neurologic disorders, endocrinopathies, benign prostatic hyperplasia,  , sleep apnea  , COPD,  and depression (see Table 1 below). [32, 33, 34, 35] In fact, almost any disease may affect erectile function by altering the nervous, vascular, or hormonal systems. Various diseases may produce changes in the smooth muscle tissue of the corpora cavernosa or influence the patient’s psychological mood and behavior.
The association between low testosterone and ED is not entirely clear. Although these 2 processes certainly overlap in some instances, they are distinct entities. Some 2-21% of men have both hypogonadism and ED; however, it is unclear to what degree treating the former will improve erectile function.  About 35-40% of men with low testosterone see an improvement in their erections with testosterone replacement; however, almost 65% of these men see no improvement. 
If you can't take one of these oral medications, your physician may have you try Caverject (alprostadil for injection), a hormone that you inject into your penis using a fine needle, or Muse (alprostadil urogenital), a tiny suppository that you insert into the tip of the penis. Both of these will bring on an erection within five to 15 minutes without sexual stimulation.
ED usually has a multifactorial etiology. Organic, physiologic, endocrine, and psychogenic factors are involved in the ability to obtain and maintain erections. In general, ED is divided into 2 broad categories, organic and psychogenic. Although most ED was once attributed to psychological factors, pure psychogenic ED is in fact uncommon; however, many men with organic etiologies may also have an associated psychogenic component.
Recently, the US Food and Drug Administration (FDA) has issued a safety announcement regarding TRT. In part it reads ‘The benefit and safety of these medications have not been established. We are also requiring these manufacturers to add information to the labeling about a possible increased risk of heart attacks and strokes in patients taking testosterone.’37
Before taking any medication for erectile dysfunction, including over-the-counter supplements and herbal remedies, get your doctor's OK. Medications for erectile dysfunction do not work in all men and might be less effective in certain conditions, such as after prostate surgery or if you have diabetes. Some medications might also be dangerous if you:
Other hormone levels: Measurement of other hormones beside testosterone (luteinizing hormone [LH], prolactin level, and cortisol level) may provide clues to other underlying causes of testosterone deficiency and erectile problems, such as pituitary disease or adrenal gland abnormalities. Doctors may check thyroid levels in some individuals as both hypothyroidism (low thyroid function) and hyperthyroidism (overactive thyroid function) can contribute to erectile dysfunction.
Occasional successful sexual function and early morning erections do not preclude the possibility of endocrine dysfunction. Since abnormally low levels of testosterone frequently are the primary cause of impotence, it is recommended that determination of the blood level of testosterone be an integral part of the total evaluation of the impotent patient.
ED usually has something physical behind it, particularly in older men. But psychological factors can be a factor in many cases of ED. Experts say stress, depression, poor self-esteem, and performance anxiety can short-circuit the process that leads to an erection. These factors can also make the problem worse in men whose ED stems from something physical.