Erectile dysfunction (ED) affects 50% of men older than 40 years,  exerting substantial effects on quality of life.  This common problem is complex and involves multiple pathways. Penile erections are produced by an integration of physiologic processes involving the central nervous, peripheral nervous, hormonal, and vascular systems. Any abnormality in these systems, whether from medication or disease, has a significant impact on the ability to develop and sustain an erection, ejaculate, and experience orgasm.
As it turns out, there are actually tons of things that can keep guys from getting an erection that have nothing to do with you (also, all that stuff you learned in middle school about how all guys are hump-crazed sex lunatics might have been slightly off). Between 20 and 30 million American men experience recurring erection difficulties, and almost all men have, at one time or another, had their top ramen refuse to boil. And while erectile issues are often seen as an older man's problem, in reality, one quarter of men seeking medical treatment for erectile difficulties are under 40.
Occasional successful sexual function and early morning erections do not preclude the possibility of endocrine dysfunction. Since abnormally low levels of testosterone frequently are the primary cause of impotence, it is recommended that determination of the blood level of testosterone be an integral part of the total evaluation of the impotent patient.
Among their findings, the panel concluded that (1) the term "erectile dysfunction" should replace the term "impotence"; (2) the likelihood of erectile dysfunction increases with age but is not an inevitable consequence of aging; (3) embarrassment of patients and reluctance of both patients and health care providers to discuss sexual matters candidly contribute to underdiagnosis of erectile dysfunction; (4) many cases of erectile dysfunction can be successfully managed with appropriately selected therapy; (5) the diagnosis and treatment of erectile dysfunction must be specific and responsive to the individual patient's needs and that compliance as well as the desires and expectations of both the patient and partner are important considerations in selecting appropriate therapy; (6) education of health care providers and the public on aspects of human sexuality, sexual dysfunction, and the availability of successful treatments is essential; and (7) erectile dysfunction is an important public health problem deserving of increased support for basic science investigation and applied research.
The health care provider will ask about the firmness and duration of erections at different times (e.g., sex with partners, erections after sleep). Discussing sexual dysfunction with a health care provider is very important because many conditions causing it can be successfully treated. If a man has no diseases that cause ED and can have an erection with masturbation or early morning awakening, he likely has ED due to psychological causes.
While we may think the penis has a mind of it’s own, it’s actually heavily dependent to the brain, and too much stress can interfere with a man’s ability to obtain and hold an erection. According to Healthline, stress can interrupt how your brain sends messages to the penis to allow extra blood flow. Even though a man may want to have sex, too much stress can make this impossible.
Erectile dysfunction affects millions of men. Although for some men erectile function may not be the best or most important measure of sexual satisfaction, for many men erectile dysfunction creates mental stress that affects their interactions with family and associates. Many advances have occurred in both diagnosis and treatment of erectile dysfunction. However, its various aspects remain poorly understood by the general population and by most health care professionals. Lack of a simple definition, failure to delineate precisely the problem being assessed, and the absence of guidelines and parameters to determine assessment and treatment outcome and long-term results, have contributed to this state of affairs by producing misunderstanding, confusion, and ongoing concern. That results have not been communicated effectively to the public has compounded this situation.
There are no formal tests to diagnose erectile dysfunction. Some blood tests are generally done to exclude underlying disease, such as hypogonadism and prolactinoma. Impotence is also related to generally poor physical health, poor dietary habits, obesity, and most specifically cardiovascular disease such as coronary artery disease and peripheral vascular disease. Therefore, a thorough physical examination is helpful, in particular the simple search for a previously undetected groin hernia since it can affect sexual functions in men and is easily curable.
In the majority of patients the impotence is organic, though not endocrinologic, and there is no easily remedied cause. These patients require physiologic testing and urologic consultation for specific diagnosis. Likely causes of impotence in this group include vascular and neurologic diseases. These patients are candidates for penile prostheses or, in special cases, for revascularization. Patients interested in surgical approaches should be referred for further testing. There is little to be gained by continuing the work-up of patients who prefer not to have an operation.
Arterial revascularization procedures have a very limited role (e.g., in congenital or traumatic vascular abnormality) and probably should be restricted to the clinical investigation setting in medical centers with experienced personnel. All patients who are considered for vascular surgical therapy need to have appropriate preoperative evaluation, which may include dynamic infusion pharmaco-cavernosometry and cavernosography (DICC), duplex ultrasonography, and possibly arteriography. The indications for and interpretations of these diagnostic procedures are incompletely standardized; therefore, difficulties persist with using these techniques to predict and assess the success of surgical therapy, and further investigation to clarify their value and role in this regard is indicated.
The inability to achieve or sustain a sufficiently firm penile erection (tumescence) to allow normal vaginal sexual intercourse. The great majority of cases are not caused by organic disease and most men experience occasional periods of impotence. It is often related to anxiety about performance and is usually readily corrected by simple counselling methods which prescribe sensual massage but forbid coitus. Organic impotence may be caused by DIABETES, MULTIPLE SCLEROSIS, spinal cord disorders and heart disease. Many cases can be helped by the drug SILDENAFIL (Viagra).
Many common medications for treating hypertension, depression, and high blood lipids (high cholesterol) can contribute to erectile dysfunction (see above). Treatment of hypertension is an example. There are many different types (classes) of medications for high blood pressure; these include beta-blockers, calcium channel blockers, diuretics (medications that increase urine volume), angiotensin converting enzyme inhibitors (ACE inhibitors), and angiotensin receptor blockers (ARBs). Patients may use these medications alone or in combination to control blood pressure. Some of these medications can cause troubles with erections. For example, Inderal (a beta-blocker) and hydrochlorothiazide (a diuretic) cause erectile dysfunction, while calcium channel blockers and ACE inhibitors do not seem to affect erectile function. On the other hand, other medications (such as angiotensin receptor blockers [ARB] including losartan [Cozaar] and valsartan [Diovan]) may actually help with erections. Therefore, if possible, you may benefit from changing your medications, but this requires approval by your prescribing health care provider.