Your doctor will ask you questions about your symptoms and health history. They may do tests to determine if your symptoms are caused by an underlying condition. You should expect a physical exam where your doctor will listen to your heart and lungs, check your blood pressure, and examine your testicles and penis. They may also recommend a rectal exam to check your prostate. Additionally, you may need blood or urine tests to rule out other conditions.
Cardiovascular diseases: The most common cause of cardiovascular diseases in the United States is atherosclerosis, the narrowing and hardening of arteries that reduces blood flow. Atherosclerosis (a type of vascular disease) typically affects arteries throughout the body; hypertension, high blood cholesterol levels, cigarette smoking, and diabetes mellitus aggravate atherosclerosis. Hardening of the arteries to the penis and pelvic organs, atherosclerosis, causes insufficient blood flow into the penis. There is a close correlation between the severity of atherosclerosis in the coronary arteries and erectile dysfunction. For example, men with more severe coronary artery atherosclerosis (hardening of the arteries in the heart) also tend to have more erectile dysfunction than men with mild or no coronary artery atherosclerosis. Some doctors suggest that men with new onset erectile dysfunction undergo evaluation for silent coronary artery diseases (advanced coronary artery atherosclerosis that has not yet caused angina or heart attacks).
The Cancer of the Prostate Strategic Urologic Research Endeavor (CaPSURE) study, designed to determine whether an individual man’s sexual outcomes after most common treatments for early-stage prostate cancer could be accurately predicted on the basis of baseline characteristics and treatment plans, found that 2 years after treatment, 177 (35%) of 511 men who underwent prostatectomy reported the ability to attain functional erections suitable for intercourse. 
Research has even found possible links to frequent ejaculation and a lower risk of prostate cancer. In one study of 32,000 men published in 2016 in the journal European Urology, for example, men who ejaculated at least 21 times per month while in their 20s were less likely to be diagnosed with prostate cancer than those who ejaculated four to seven times per month. And men who ejaculated more often in their 40s were 22 percent less likely to get a prostate cancer diagnosis.
An alprostadil cream that patients apply into the tip of the penis (the urethral meatus, the opening that urine passes through) is currently available in the UK and Europe. It is currently under review by the U.S. Food and Drug Administration (FDA). After application of the cream, an erection occurs within five to 30 minutes, and the erection lasts one to two hours in men who respond to the cream. Doctors recommend that one use the cream for a maximum frequency of two to three times per week and no more frequent than once every 24 hours. It has essentially the same contraindications and side effects as the other formulations of alprostadil. The cream may cause vaginal burning in roughly 4% of partners. Men should not use alprostadil cream for sexual intercourse with women of childbearing potential unless a condom is used. Researchers have performed controlled trial studies to evaluate the safety and effectiveness of this drug. Overall, 52% of men reported improvement in their erections compared to 20% of men receiving placebo. A later analysis demonstrated that 36% of men using the alprostadil cream had a clinically relevant improvement in vaginal penetration ability and 31% clinically relevant improvement in ability to have successful intercourse to ejaculation.
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.
Moemen et al. compared the effectiveness and satisfaction associated with use of several ED therapies including sildenafil alone, intracavernosal injections (ICI) followed by sildenafil after ICI discontinuation and vacuum erections devices (VED) followed by sildenafil therapy after VED discontinuation (60). Seventy percent of men receiving vasoactive medications preferred sildenafil to ICI, even though rigidity was superior in the ICI group. All men using VEDs were dissatisfied with that form of therapy.
These are not currently approved by the FDA for ED management, but they may be offered through research studies (clinical trials). Patients who are interested should discuss the risks and benefits (informed consent) of each, as well as costs before starting any clinical trials. Most therapies not approved by the FDA are not covered by government or private insurance benefits.
If you have a neurological disorder or spinal cord injury and other erectile dysfunction treatments aren’t effective, two types of surgical implants could offer solutions to your ED. “An implantable pump can be used to manually create an erection by pumping fluid into cylinders placed inside the penis,” explains Feloney. “The other option is a malleable prosthesis that works like a gooseneck lamp to direct the penis into position for intercourse." Risks for these ED treatments include infection and mechanical breakdown.
Erosion of the prosthesis, whereby it presses through the corporal tissue into the urethra, may occur. Symptoms and signs may include pain, blood in the urine, discharge, abnormal urine stream, and malfunction. If the prosthesis erodes into the urethra, a physician must remove it. If the other cylinder remains intact, it can be left in place. A physician leaves a catheter in place to allow the urethra to heal.
Many common medications for treating hypertension, depression, and high blood lipids (high cholesterol) can contribute to erectile dysfunction (see above). Treatment of hypertension is an example. There are many different types (classes) of medications for high blood pressure; these include beta-blockers, calcium channel blockers, diuretics (medications that increase urine volume), angiotensin converting enzyme inhibitors (ACE inhibitors), and angiotensin receptor blockers (ARBs). Patients may use these medications alone or in combination to control blood pressure. Some of these medications can cause troubles with erections. For example, Inderal (a beta-blocker) and hydrochlorothiazide (a diuretic) cause erectile dysfunction, while calcium channel blockers and ACE inhibitors do not seem to affect erectile function. On the other hand, other medications (such as angiotensin receptor blockers [ARB] including losartan [Cozaar] and valsartan [Diovan]) may actually help with erections. Therefore, if possible, you may benefit from changing your medications, but this requires approval by your prescribing health care provider.
Knowing about your history of ED will help your health provider learn if your problems are because of your desire for sex, erection function, ejaculation, or orgasm (climax). Some of these questions may seem private or even embarrassing. However, be assured that your doctor is a professional and your honest answers will help find the cause and best treatment for you.