A physical examination is necessary. The doctor will pay particular attention to the genitals and nervous, vascular, and urinary systems. Your blood pressure will be checked because several studies have demonstrated a connection between high blood pressure and erectile dysfunction. The physical examination will confirm information you gave the doctor in your medical history and may help reveal unsuspected disorders such as diabetes, vascular disease, penile plaques (scar tissue or firm lumps under the skin of the penis), testicular problems, low male hormone production, injury, or disease to the nerves of the penis and various prostate disorders.
Sexual functioning involves a complex interaction among biologic, sociocultural, and psychological factors, and the complexity of this interaction makes it difficult to ascertain the clinical etiology of sexual dysfunction. Before any diagnosis of sexual dysfunction is made, problems that are explained by a nonsexual mental disorder or other stressors must first be addressed. Thus, in addition to the criteria for erectile disorder, the following must be considered:
Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing sexual dysfunction. 
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. 
When sexually stimulated/aroused, the nerves supplying the penis release a chemical, nitric oxide (NO). Nitric oxide is important because it stimulates the production of a chemical called cyclic guanosine monophosphate (cGMP). cGMP causes the muscle in arteries of the penis to relax and increase blood flow into the penis. NO is broken down in the body by phosphodiesterase enzymes. PDE5 inhibitors thus prevent the breakdown of NO and thus promote increased blood flow into the penis.
The link between chronic disease and ED is most striking for diabetes. Men who have diabetes are two to three times more likely to have erectile dysfunction than men who do not have diabetes. Among men with erectile dysfunction, those with diabetes may experience the problem as much as 10 to 15 years earlier than men without diabetes. Yet evidence shows that good blood sugar control can minimize this risk. Other conditions that may cause ED include cardiovascular disease, atherosclerosis (hardening of the arteries), kidney disease, and multiple sclerosis. These illnesses can impair blood flow or nerve impulses throughout the body.
4. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Erectile dysfunction (updated Nov 2015). https://www.niddk.nih.gov/health-information/health-topics/urologic-disease/erectile-dysfunction/Pages/facts.aspx (accessed Nov 2016). myDr myDr provides comprehensive Australian health and medical information, images and tools covering symptoms, diseases, tests, medicines and treatments, and nutrition and fitness.Related ArticlesImpotence causesFind out the physical and psychological causes of impotence, also called erectile dysfunction or ED.Erectile dysfunction: visiting your doctorFind out what questions a doctor may ask when discussing erectile dysfunction (ED, or impotence8 Surprising causes of erectile dysfunctionOccasional erectile dysfunction is not uncommon, but if it's persistent, erectile dysfunction caAdvertisement
If PDE5 drugs don't work or cannot be used because of potential side effects, your doctor can recommend other therapies. The drug alprostadil (Caverject, Edex, Muse) allows blood to flow more freely in the penis, leading to an erection. The drug can be injected with a tiny needle into your penis. Or, a small pellet (suppository) can be inserted into the opening of the penis. Suppositories and injections are effective in the majority of men.
ICI therapy often produces a reliable erection, which comes down after 20-30 minutes or with climax. Since the ICI erection is not regulated by your penile nerves, you should not be surprised if the erection lasts after orgasm. The most common side effect of ICI therapy is a prolonged erection. Prolonged erections (>1 hour) can be reversed by a second injection (antidote) in the office.