It is essential to discuss erectile dysfunction with your doctor, so any serious underlying causes can be excluded and treatment options can be discussed. Many men are embarrassed discussing this issue with their doctor, or even their partner. Open communication with your doctor, and in your relationship, is important for effectively managing this common problem.
Treatment depends on the underlying cause. In general, exercise, particularly of the aerobic type, is effective for preventing ED during midlife. Exercise as a treatment is under investigation.:6, 18–19 For tobacco smokers, cessation often results in a significant improvement. Oral pharmacotherapy and vacuum erection devices are first-line treatments,:20, 24 followed by injections of drugs into the penis, as well as penile implants.:25–26 Vascular reconstructive surgeries are beneficial in certain groups.
The first step in treating the patient with ED is to take a thorough sexual, medical, and psychosocial history. Questionnaires are available to assist clinicians in obtaining important patient data. (See Presentation.) Successful treatment of sexual dysfunction has been demonstrated to improve sexual intimacy and satisfaction, improve sexual aspects of quality of life, improve overall quality of life, and relieve symptoms of depression. (See Treatment.)
With drug therapy, there’s a risk of side effects such as headaches, back pain or an upset stomach. Before taking any medication for erectile dysfunction it is important to ensure your doctor is ok with that decision. Medication may not work for all men, for instance, if you have diabetes or have previously had prostate surgery. ED medication might also have serious risks if you’re currently taking nitrates (commonly prescribed for chest pain), have heart disease or have low blood pressure.22
Factors that mediate contraction in the penis include noradrenaline, endothelin-1, neuropeptide Y, prostanoids, angiotensin II, and others not yet identified. Factors that mediate relaxation include acetylcholine, nitric oxide (NO), vasoactive intestinal polypeptide, pituitary adenylyl cyclase–activating peptide, calcitonin gene–related peptide, adrenomedullin, adenosine triphosphate, and adenosine prostanoids.
A common and important cause of ED is vasculogenic. Many men with ED have comorbid conditions such as hyperlipidemia, hypercholesterolemia, tobacco abuse, diabetes mellitus, or coronary artery disease (CAD).  The Princeton III Consensus recommends screening men who present with ED for cardiovascular risk factors; ED may be the earliest presentation of atherosclerosis and vascular disease. 
The development of an erection is a complex event involving integration of psychologic, neurologic, endocrine, vascular, and local anatomic systems. Positron emission tomography scanning studies have suggested that sexual arousal is activated in higher cortical centers that then stimulate the medial preoptic and paraventricular nuclei of the hypothalamus.5 These signals ultimately descend through a complex neural network involving the parasympathetic nervous system and eventually activate parasympathetic nerves in the sacral area (S2 to S4).
Erectile problems can happen to men of any age. There are many factors that contribute to ED including poor health, untreated medical problems, medications and pornography use. Many men struggle with understanding when they are experiencing situational sexual dysfunction verses when is your erectile issue an ongoing problem that requires medical help.
Additionally, the physiologic processes involving erections begin at the genetic level. Certain genes become activated at critical times to produce proteins vital to sustaining this pathway. Some researchers have focused on identifying particular genes that place men at risk for ED. At present, these studies are limited to animal models, and little success has been reported to date.  Nevertheless, this research has given rise to many new treatment targets and a better understanding of the entire process.
In some cases, however, these drugs may be unsuitable for patients with heart disease. If you are considering one of these drugs and you have heart disease, as many diabetics do, be sure to tell your doctor. In rare cases, the pills may create “priapism,” a prolonged and painful erection lasting six hours or more (although reversible with prompt medical attention).
medicines called alpha-blockers such as Hytrin (terazosin HCl), Flomax (tamsulosin HCl), Cardura (doxazosin mesylate), Minipress (prazosin HCl), Uroxatral (alfuzosin HCl), Jalyn (dutasteride and tamsulosin HCl), or Rapaflo (silodosin). Alpha-blockers are sometimes prescribed for prostate problems or high blood pressure. In some patients, the use of Sildenafil with alpha-blockers can lead to a drop in blood pressure or to fainting
In a randomized double-blind, parallel, placebo-controlled trial, sildenafil plus testosterone was not superior to sildenafil plus placebo in improving erectile function in men with ED and low testosterone levels.  The objective of the study was to determine whether the addition of testosterone to sildenafil therapy improves erectile response in men with ED and low testosterone levels.
In addition, when research has shown a nutrient such as zinc or niacin to improve sexual function, it's usually in people who are deficient in it. So, before you stock up on over-the-counter nutritional supplements for ED, speak with your doctor. He can test you for deficiencies and steer you toward the most effective and safest way to treat your erectile dysfunction.
ED is easily and successfully treated! If your sex drive is unaffected, but you experience problems achieving or sustaining erection for a period of four to five weeks, you may have ED. Talk to your doctor immediately. Don’t delay—erectile dysfunction doesn’t “just go away!” Additionally, ED could be a sign of a serious, even life-threatening complication, such as congestive heart failure or kidney disease. Ignoring your ED because it’s embarrassing could jeopardize your health.
Like all diabetic complications, ED can occur even when you have followed your doctor’s advice and carefully managed your diabetes. Also like all diabetes complications, ED is less likely to occur with good blood sugar control. Poorly controlled diabetes and high cholesterol increase the chances of vascular complications, which may lead to ED or other circulatory problems. In addition, regular smoking and alcohol use can contribute to ED.