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.
Instead of injecting a medicine, some men insert a suppository of alprostadil into the urethra. A suppository is a solid piece of medicine that you insert into your body where it dissolves. A health care professional will prescribe a prefilled applicator for you to insert the pellet about an inch into your urethra. An erection will begin within 8 to 10 minutes and may last 30 to 60 minutes.
This procedure is usually performed before and after injection of a smooth-muscle-relaxing medication into the penis, which normally should significantly increase the diameter of the penile arteries. The procedure itself is painless. Duplex ultrasonography is most useful in evaluating possible penile arterial disorders, but in those individuals considering surgery for problems with the arteries to the penis, a more invasive study, angiogram, is needed to identify the location of the damaged artery.
Between 10 and 88% of patients diagnosed with cancer experience sexual problems following diagnosis and treatment. The prevalence varies according to the location and type of cancer, and the treatment modalities used. Sexuality may be affected by chemotherapy, alterations in body image due to weight change, hair loss or surgical disfigurement, hormonal changes, and cancer treatments that directly affect the pelvic region.
The dorsal artery provides for engorgement of the glans during erection, whereas the bulbourethral artery supplies the bulb and the corpus spongiosum. The cavernous artery effects tumescence of the corpus cavernosum and thus is principally responsible for erection. The cavernous artery gives off many helicine arteries, which supply the trabecular erectile tissue and the sinusoids. These helicine arteries are contracted and tortuous in the flaccid state and become dilated and straight during erection. 
The art of acupuncture has become the new treatment for everything from back pain, depression, and even ED. Impotence could be more of a state of mind, and acupuncture may help. Through this alternative therapy, fine needles are placed in various parts of the body to relieve pain or stress. Although there are many mixed studies for acupuncture and ED, many tend to confirm positive results. A 1999 study found acupuncture improved the quality of erection and even restored sexual activity in 39 percent of participants.
This technique is effective in 60%-90% of men. It is not recommended to leave the tension ring in place longer than 30 minutes. The vacuum device may be the only therapy that is effective after removal of a penile prosthesis. The vacuum device has become a commonly used therapy as part of penile rehabilitation after radical prostatectomy to preserve the tissue of the penis and prevent scarring within the penis and loss of penile length.
A physical cause can be identified in about 80% of cases. These include cardiovascular disease, diabetes mellitus, neurological problems such as following prostatectomy, hypogonadism, and drug side effects. Psychological impotence is where erection or penetration fails due to thoughts or feelings; this is somewhat less frequent, in the order of about 10% of cases. In psychological impotence, there is a strong response to placebo treatment.
Psychological factors — Psychological issues such as depression, anxiety, guilt or fear can sometimes cause sexual problems. At one time, these factors were thought to be the major cause of impotence. Doctors now know that physical factors cause impotence in most men with the problem. However, embarrassment or "performance anxiety" can make a physical problem worse.
The most common treatment for erectile dysfunction is drugs known as phosphodiesterase-5 (PDE-5) inhibitors. These include tadalafil (Cialis), vardenafil (Levitra), and sildenafil citrate (Viagra). These are effective for about 75% of men with erectile dysfunction. They are tablets that are taken around an hour before sex, and last between 4 and 36 hours. Sexual stimulation is required before an erection will occur. The PDE-5 inhibitors cause dilation of blood vessels in the penis to allow erection to occur, and help it to stay rigid. Men using nitrate medication (e.g. GTN spray or sublingual tablets for angina) should not use PDE-5 inhibitors.
The first stem cell study for the treatment of ED was published in 2004. This study used embryonic stem cells to treat ED. At this time, there is a total of 36 published basic studies assessing stem cell therapy for ED, with two clinical trials. The mechanism of action of stem cells is to generate angiogenesis with subsequent increase in cavernosal smooth muscle cells within the corporal bodies.46
It is important for clinicians prescribing these drugs to make the patient aware of the action of the drugs especially the fact that they do not result in an immediate erection, and that they do not cause an erection without sexual stimulation. There is frequently a great expectation when men begin using these drugs and it is wise to temper their enthusiasm and explain they do not work immediately, and may not work every time, but also let the patient know that if these drugs do not work, there are other options.
The Massachusetts Male Aging Study (MMAS) documented an inverse correlation between ED risk and high-density lipoprotein (HDL) cholesterol levels but did not identify any effect from elevated total cholesterol levels.  Another study involving male subjects aged 45-54 years found a correlation with abnormal HDL cholesterol levels but also found a correlation with elevated total cholesterol levels. The MMAS included a preponderance of older men.
A physical exam checks your total health. Examination focusing on your genitals (penis and testicles) is often done to check for ED. Based on your age and risk factors, the exam may also focus on your heart and blood system: heart, peripheral pulses and blood pressure. Based on your age and family history your doctor may do a rectal exam to check the prostate. These tests are not painful. Most patients do not need a lot of testing before starting treatment.