Nocturnal penile tumescence testing (NPT) may be useful in distinguishing mental from physical impotence. This test involves the placement of a band around the penis that you would wear during two or three successive nights. If an erection occurs, which is expected during rapid eye movement (REM) sleep, the force and duration are measured on a graph. Inadequate or no erections during sleep suggests an organic or physical problem, while a normal result may indicate a high likelihood of emotional, psychological, or mental causes.
Medications: Many common medicines produce erectile dysfunction as a side effect. Medicines that can cause erectile dysfunction include many used to treat high blood pressure, antihistamines, antidepressants, tranquilizers, and appetite suppressants. Examples of common medicines that can cause erectile dysfunction include propranolol (Inderal) or other beta-blockers, hydrochlorothiazide, digoxin (Lanoxin), amitriptyline (Elavil), famotidine (Pepcid), cimetidine (Tagamet), metoclopramide (Reglan), naproxen, indomethacin (Indocin), lithium (Eskalith, Lithobid), verapamil (Calan, Verelan, Isoptin), phenytoin (Dilantin), gemfibrozil (Lopid), amphetamine/dextroamphetamine (Adderall), and phentermine. Prostate cancer medications that lower testosterone levels such as leuprolide (Lupron) may affect erectile function. Some chemotherapies such as cyclophosphamide (Cytoxan) may affect erectile function.
The prostaglandin E1 is contained in a small suppository located at the tip of an applicator. You should urinate first as this lubricates the urethra and makes it easier to insert the applicator into the tip of the urethra (urethral meatus, the opening at the tip of the penis that urine passes through). A patient can release the suppository into urethra by gently wiggling the applicator and pressing the button at the end. Rubbing the penis allows the suppository to dissolve, and the prostaglandin is absorbed through the tissue of the urethra into the penis. It takes 15 to 30 minutes for this occur. Once into the penis, the prostaglandin causes increased blood flow into the penis. The prostaglandin can be present in the ejaculate, and thus doctors recommend that men use a condom when having intercourse with a pregnant partner. Men may need to use a condom if vaginal irritation occurs in female partner.
The role of the endothelium in ED has been noted for a number of years and the overlapping of ED and other conditions, especially coronary heart disease, CVD, affecting endothelial function/dysfunction, is clearly present. The endothelial cell is now known to affect vascular tone and impact the process of atherosclerosis, and impacting ED, CVD and peripheral vascular disease.16
Ginseng, specifically “red ginseng,” is known as the “herbal Viagra” that helps puts to rest men’s bedroom woes. Red ginseng is when the root has been steamed and then dried. The ginseng root is the part of the plant that is mostly used as a natural remedy when in its supplement form. However, the plant must be grown for a minimum of five years before it can be used. In a 2008 review, seven studies on red ginseng and ED, ranging in dosages from 600 to 1,000 milligrams three times a day, were found to provide evidence for the effectiveness of the herb in ED treatment.
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 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. 
While erectile dysfunction can occur at any age, the risk of developing erectile dysfunction increases with age. According to the Massachusetts Male Aging Study, the prevalence of erectile dysfunction was 52% in men 40-70 years of age. The prevalence of complete erectile dysfunction increases from 5% at 40 years of age to 15% among men 70 years of age and older.
…have traditionally been classified as impotence (inability of a man to achieve or maintain penile erection) and frigidity (inability of a woman to achieve arousal or orgasm during sexual intercourse). Because these terms—impotence and frigidity—have developed pejorative and misleading connotations, they are no longer used as scientific classifications, having been…
And surgery comes with its own serious risks, such as developing incontinence or impotence, while radiation can result in urinary problems. — Peter Loftus, WSJ, "Surgery Adds Three Years to Lives of Prostate-Cancer Patients, Study Finds," 12 Dec. 2018 Male-impotence pill Viagra began facing generic competition late last year, while the Lyrica pain treatment is expected to confront generics at the end of this year. — Jonathan D. Rockoff, WSJ, "Pfizer Narrows Guidance on Tougher Pricing, Generic Competition," 30 Oct. 2018 Arkham Horror Third Edition is a classic struggle of agency versus impotence, set in the uncanny world of H.P. Lovecraft’s Cthulhu mythos. — Charlie Theel, Ars Technica, "Arkham Horror Third Edition: The classic Lovecraft adventure returns," 24 Nov. 2018 There’s obviously a lot of anger and frustration here toward the US government at the moment—along with side effects like bottled rage and sometimes a creeping sense of ineptitude or impotence about our ability to do anything about it. — Corey Seymour, Vogue, "Pussy Riot's Nadya Tolokonnikova On Her New Guide To Activism, Raising The Next President Of Russia, And Her "Holy War" On Fairy Tales," 12 Oct. 2018 In exchange for political impotence, they would be mostly left alone and allowed to get rich. — Paul Mozur, New York Times, "Inside China’s Dystopian Dreams: A.I., Shame and Lots of Cameras," 8 July 2018 Their suspicion is compounded by rumors that the polio vaccine causes impotence, death and, ironically, paralysis. — Meher Ahmad, New York Times, "Pakistan Has Just One New Polio Case, but Isn’t Declaring Victory Yet," 20 May 2018 Fighting back, even as an exercise in impotence, did a lot for McCain. — Alex Horton, Washington Post, "John McCain rebelled at the Naval Academy — and as a POW — long before he was a Senate maverick," 3 May 2018 Feelings of desperation and impotence are being felt throughout Central America, where the lawlessness, endemic poverty and levels of gang violence akin to war zones that have driven so many families from their homes show little signs of abating. — Washington Post, "Violence keeps Central Americans coming to US despite Trump," 21 June 2018
Vascular damage may result from radiation therapy to the pelvis and prostate in the treatment of prostate cancer.  Both the blood vessels and the nerves to the penis may be affected. Radiation damage to the crura of the penis, which are highly susceptible to radiation damage, can induce ED. Data indicate that 50% of men undergoing radiation therapy lose erectile function within 5 years after completing therapy; fortunately, some respond to one of the PDE5 inhibitors.
Talk with your doctor before trying supplements for ED. They can contain 10 or more ingredients and may complicate other health conditions. Asian ginseng and ginkgo biloba (seen here) are popular, but there isn't a lot of good research on their effectiveness. Some men find that taking a DHEA supplement improves their ability to have an erection. Unfortunately, the long-term safety of DHEA supplements is unknown. Most doctors do not recommend using it.
Aging, liver and kidney problems, and concurrent use of certain medications (such as erythromycin [an antibiotic] and protease inhibitors for HIV) slows the metabolism (breakdown) of sildenafil. Slowed breakdown allows sildenafil to accumulate in the body and potentially may increase the risk of side effects. Therefore, in men over 65 years of age, in men with significant kidney and liver disease, and in men who also are taking medications called protease inhibitors, the doctor will initiate sildenafil at a lower dose (25 mg) to avoid accumulation of sildenafil in the body. A protease inhibitor ritonavir (Norvir) is especially potent in increasing the accumulation of sildenafil, thus men who are taking Norvir should not take sildenafil doses higher than 25 mg and at a frequency of no greater than once in 48 hours. Other medications that may affect the level of sildenafil include erythromycin and ketoconazole.
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.
The lab testing obtained for the evaluation of erectile dysfunction may vary with the information obtained on the health history, physical examination, and recent lab testing. A testosterone level is not necessary in all men; however, a physician will order labs to determine a patient's testosterone level if other signs and symptoms of hypogonadism (low testosterone) such as decreased libido, loss of body hair, muscle loss, breast enlargement, osteoporosis, infertility, and decreased penile/testicular size are present.
Alprostadil is a potent vasodilator and smooth muscle relaxant identical to the naturally occurring PGE1. PGE1 binds with specific receptors on smooth muscle cells and activates intracellular adenylate cyclase to produce cAMP, which in turn induces tissue relaxation through a second messenger system (96). PGE1 is the only FDA approved form of intracavernosal therapy and is available commercailly as EDEX, or Caverject. Its efficacy was demonstrated in several clinical trials where the rate of responders ranged from 40% to 80% (97,98). The most common adverse event is penile pain, which is not related to the injection of the medication itself. In men with prolonged use the pain is usually self-limited (99).
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.