It is important to understand that ED is frequently, if not usually, directly related to endothelial dysfunction, and that the release of NO by the vasculature of the penile arteries is directly related to the function of intact, healthy endothelium. In the face of endothelial dysfunction, the process of erection fails to occur in a normal fashion.16
Fortunately, impotence is usually treatable. A thorough evaluation starting with a history and physical exam is needed to help diagnose the underlying cause. Once the cause of impotence is determined, treatment can be tailored to target that cause and any other contributing factors. Treatments used for impotence may include medications, vacuum devices, surgery, and psychotherapy.
In a prospective study from the Prostate Cancer Prevention Trial database, Thompson et al reported that men presenting with ED had a significantly higher chance of developing a cardiovascular event over a 7-year follow-up period.  The hazard ratio was 1.45, which is in the range of risk associated with current smoking or a family history of MI.
ED may occur with or without other sexual dysfunction, including decreased libido (decreased interest in sexual activity), orgasmic dysfunction (troubles achieving an orgasm/climax), and ejaculatory dysfunction (problems with the fluid released during sex, including lack of ejaculation [anejaculation], small volume ejaculate, ejaculation that occurs too quickly [premature ejaculation], ejaculate that goes backward into the bladder [retrograde ejaculation] and pain with ejaculation).
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.
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.
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.