In many cases, diagnosing erectile dysfunction requires little more than a physical exam and a review of your symptoms. If your doctor suspects that an underlying health problem may be at play, however, he may request additional testing. Once you’ve determined the cause for your ED, you and your doctor can decide on a form of treatment – here are some of the options:
Obesity and metabolic syndrome can cause changes in blood pressure, body composition, and cholesterol which may lead to ED. Other conditions that may contribute to erectile dysfunction include Parkinson’s, multiple sclerosis, Peyronie’s disease, sleep disorders, alcoholism, and drug abuse. Taking certain medications can also increase your risk for ED.
Tests such as the bulbocavernosus reflex test are used to determine if there is sufficient nerve sensation in the penis. The physician squeezes the glans (head) of the penis, which immediately causes the anus to contract if nerve function is normal. A physician measures the latency between squeeze and contraction by observing the anal sphincter or by feeling it with a gloved finger inserted past the anus.
The primary nerve fibers to the penis are from the dorsal nerve of the penis, a branch of the pudendal nerve. The cavernosal nerves are a part of the autonomic nervous system and incorporate both sympathetic and parasympathetic fibers. They travel posterolaterally along the prostate and enter the corpora cavernosa and corpus spongiosum to regulate blood flow during erection and detumescence. The dorsal somatic nerves are also branches of the pudendal nerves. They are primarily responsible for penile sensation. 
This is similar to magnetic resonance imaging. Magnetic resonance angiography uses magnetic fields and radio waves to provide detailed images of the blood vessels. Doctors may inject a "contrast agent" into the person's bloodstream that causes vascular tissues to stand out against other tissues. The contrast agent provides for enhanced information regarding blood supply and vascular anomalies.
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.
If you are taking medications (alpha-blockers) for problems with an enlarged prostate, you should discuss your prostate medications with your doctor. Alpha-blockers also can cause lowering of the blood pressure. Thus your doctor will need to carefully watch your blood pressure when you start the PDE5 inhibitor. Common alpha-blockers include doxazosin (Cardura), terazosin (Hytrin), and tamsulosin (Flomax).
Vacuum pumps are effective in most men. Successful erections are achieved in up to 90% of men using the vacuum device, however only about 69% men continue to use the device for two years or longer. The most common cause of failure is improper use of or unfamiliarity with the device. Other drawbacks to the use of vacuum devices include the need to assemble the equipment and the difficulty in transporting it. Many men also lose interest in the device because of
One of the first steps is to distinguish between physiological and psychological ED. Determining whether involuntary erections are present is important in eliminating the possibility of psychogenic causes for ED. Obtaining full erections occasionally, such as nocturnal penile tumescence when asleep (that is, when the mind and psychological issues, if any, are less present), tends to suggest that the physical structures are functionally working. Similarly, performance with manual stimulation, as well as any performance anxiety or acute situational ED, may indicate a psychogenic component to ED.
A vacuum erection device is a plastic tube that slips over the penis, making a seal with the skin of the body. A pump at the other end of the tube makes a low-pressure vacuum around the erectile tissue, which results in an erection. An elastic ring is then slipped onto the base of the penis. This holds the blood in the penis (and keeps it hard) for up to 30 minutes. With proper training, 75 out of 100 men can get a working erection using a vacuum erection device.