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.
There are many different body parts that play an important role for a man to get and maintain an erection during sexual intercourse. Beyond the physical causes that can lead to ED, it has been reported that 20% of ED is related to psychological causes.2 With so many possibilities leading to erectile dysfunction, it becomes particularly important to find a specialist who can correctly diagnosis the direct cause of your ED and find a treatment option that is right for you.
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.
Supplements are popular and often cheaper than prescription drugs for ED. However, supplements have not been tested to see how well they work or if they are a safe treatment for ED. Patients should know that many over-the-counter drugs have been found on drug testing to have ‘bootlegged' PDE 5 Inhibitors as their main ingredient. The amounts of Viagra, Cialis, Levitra or Stendra that may be in these supplements is not under quality control and may differ from pill to pill. The FDA has issued consumer warnings and alerts.
A study published in May 2014 in The Journal of Sexual Medicine found that some men can reverse erectile dysfunction with healthy lifestyle changes, such as exercise, weight loss, a varied diet, and good sleep. The Australian researchers also showed that even if erectile dysfunction medication is required, it's likely to be more effective if you implement these healthy lifestyle changes.
Medication — When a medication is the cause of the dysfunction, a change in the medication may help. Men and women with hormone deficiencies may benefit from hormone shots, pills, or creams. For men, drugs, including sildenafil (Viagra®), tadalafil (Cialis®), vardenafil (Levitra®, Staxyn®), and avanafil (Stendra®) may help improve sexual function by increasing blood flow to the penis.
"Medications that create blood flow to the penis can't help when an erection is blocked by the fear or anxiety of the fight-or-flight response,” says Feloney. “This type of erectile dysfunction probably has a lot to do with evolution — men didn't need an erection when a dinosaur was chasing them." The best way to treat erectile dysfunction caused by performance anxiety, depression, a poor relationship, or stress may be with a combination of ED drug treatment and sex therapy, individual therapy, or couples therapy from sexual health professionals.
In some cases, ED can be a warning sign of more serious disease. One study suggests ED is a strong predictor of heart attack, stroke, and death from cardiovascular disease. The researchers say all men diagnosed with ED should be evaluated for cardiovascular disease. This does not mean every man with ED will develop heart disease, or that every man with heart disease has ED, but patients should be aware of the link.
Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing sexual dysfunction. 
Much of the emphasis on erectile pathophysiology has been placed on penile smooth muscle function and cavernosal hemodynamics. The neuroanatomy and neurophysiology of erection can be characterized but its full extent is poorly understood. Neurologic disease does not always reproducibly affect erections in a uniform manner compared to other types of sexual dysfunction (SD). This offers many obstacles to understanding the role the nervous systems plays in SD and consequently obscures what treatment options readily optimize erections specific to the neurologic insult.
VIP is a neurotransmitter with regulatory actions on blood flow, secretion and muscle tone with intracorporal adenylate cyclase activation and smooth muscle relaxation. VIP has been shown to elevate cAMP intracellular concentrations without affecting cGMP levels. However, when VIP is given alone it may not induce erection and requires combination with phentolamine or papaverine for it to be effective (88). Common associated adverse effects were facial flushing and headache. VIP in combination with phentolamine is currently being used in the UK and Europe and is seeking regulatory approval for use in the United States.
There are risks to prosthetic surgery and patients are counselled before the procedure. If there is a post-operative infection, the implant will likely be removed. The devices are reliable, but in the case of mechanical malfunction, the device or a part of the device will need to be replaced surgically. If a penile prosthesis is removed, other non-surgical treatments may no longer work.