It is important that all erectile dysfunction is reported to your doctor, as sometimes it can be an indicator of something physically wrong with you that has to be treated. Also, your doctor is in the best position to find the reason for your erectile dysfunction. Routine questions and tests will provide a guide to the cause and allow your doctor to decide what kind of treatment you might need to deal with it. This may involve referral to a specialist. Detailed information can be found at the website of the Impotence Association – www.sda.uk.net
Physical examination should include the assessment of male secondary sex characteristics, femoral and lower extremity pulses, and a focused neurologic examination including perianal sensation, anal sphincter tone, and bulbocavernosus reflex. More extensive neurologic tests, including dorsal nerve conduction latencies, evoked potential measurements, and corpora cavernosal electromyography lack normative (control) data and appear at this time to be of limited clinical value. Examination of the genitalia includes evaluation of testis size and consistency, palpation of the shaft of the penis to determine the presence of Peyronie's plaques, and a digital rectal examination of the prostate with assessment of anal sphincter tone.
ED is often the result of atherosclerosis, and as a result, men with ED frequently have cardiovascular disease. Sexual activity is associated with increased physical exertion, which in some men may increase the risk of having a heart attack (myocardial infarction or MI). The major risk factors associated with cardiovascular disease are age, hypertension, diabetes mellitus, obesity, smoking, abnormal lipid/cholesterol levels in the blood, and lack of exercise. Individuals with three or more of these risk factors are at increased risk for a heart attack during sexual activity. The Princeton Consensus Panel developed guidelines for treating ED in men with cardiovascular disease. Thus, if you have ED and cardiovascular disease (for example, angina or prior heart attack), you should discuss whether or not treatment of ED and sexual activity are appropriate for you.
A lot of guys don’t want to admit it, but not being able to get or keep an erection happens more often than you’d think. Guys usually have trouble getting or keeping an erection when they’re nervous, scared or worried about something. They might be worried about how they’ll “perform,” or they could be feeling guilty about having sex. They might be afraid of getting a sexually transmitted disease (STD), or, if they are with a girl, getting their partner pregnant. Drugs (including some anti-depressants) and alcohol can also prevent you from getting and/or maintaining an erection.
In exchange for political impotence, they would be mostly left alone and allowed to get rich. — Paul Mozur, New York Times, "Inside China’s Dystopian Dreams: A.I., Shame and Lots of Cameras," 8 July 2018 Their suspicion is compounded by rumors that the polio vaccine causes impotence, death and, ironically, paralysis. — Meher Ahmad, New York Times, "Pakistan Has Just One New Polio Case, but Isn’t Declaring Victory Yet," 20 May 2018 Fighting back, even as an exercise in impotence, did a lot for McCain. — Alex Horton, Washington Post, "John McCain rebelled at the Naval Academy — and as a POW — long before he was a Senate maverick," 3 May 2018 Feelings of desperation and impotence are being felt throughout Central America, where the lawlessness, endemic poverty and levels of gang violence akin to war zones that have driven so many families from their homes show little signs of abating. — Washington Post, "Violence keeps Central Americans coming to US despite Trump," 21 June 2018 Uruguay's attacking impotence forced Oscar Tabarez to make two changes before the hour mark, with Nahitan Nandez and Giorgian de Arrascaeta replaced by Carlos Sanchez and Cristian Rodriguez. — SI.com, "Egypt 0-1 Uruguay: La Celeste Start With a Win as Gimenez Header Breaks Pharaohs' Hearts," 15 June 2018 It was fueled by physician ignorance and impotence, the habit of looking askance at patients whose symptoms could not be explained, and the arrival in the U.S. of German psychoanalysts who were disciples of Sigmund Freud. — Jim Carrier, STAT, "Lobotomies were once used to treat this gut disease, part of a shameful medical history," 12 June 2018 That signing's top attribute had better be goal-scoring, because the Sounders simply can't sustain with this level of attacking impotence. — Avi Creditor, SI.com, "The MLS XI, Week 14: Don't Hold Your Breath for an MLS Cup Threematch," 4 June 2018 Prostate cancer surgery in particular can have severe results, including incontinence and impotence. — Steven Petrow, Washington Post, "Watching but not treating cancer can be hard. Sometimes it’s the right approach.," 20 May 2018
#9 Smokers hell. Bad stimulants such as smoking cigarettes may be having a negative impact on more than just your lungs. That’s right, smoking may lead to a lazy penis. One study shows that 40% of men that suffer from erectile dysfunction are smokers. The good news is that 75% of men reported erectile issues disappear after quitting smoking. What better motivation to quit smoking than having amazing sex? [Read: How to keep an erection up for longer in 20 ways]
An analysis of 14 studies involving more than 90,000 patients with ED confirmed the relation between ED and an increased risk of cardiovascular events and mortality.  Compared with patients without ED, those with ED had a 44% increased risk of cardiovascular events, a 25% increased risk of all-cause mortality, a 62% increased risk of MI, and a 39% increased risk of cerebrovascular events. Treatment of ED, either through lifestyle interventions or by pharmacologic means, may improve prognosis and reduce risk.
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.
Conditions that may be associated with ED include diabetes, [25, 26, 27] hypertension,  , and CAD, as well as neurologic disorders, endocrinopathies, benign prostatic hyperplasia,  , sleep apnea  , COPD,  and depression (see Table 1 below). [32, 33, 34, 35] In fact, almost any disease may affect erectile function by altering the nervous, vascular, or hormonal systems. Various diseases may produce changes in the smooth muscle tissue of the corpora cavernosa or influence the patient’s psychological mood and behavior.
A useful and simple way to distinguish between physiological and psychological impotence is to determine whether the patient ever has an erection. If never, the problem is likely to be physiological; if sometimes (however rarely), it could be physiological or psychological. The current diagnostic and statistical manual of mental diseases (DSM-IV) has included a listing for impotence.
Sexual functioning involves a complex interaction among biologic, sociocultural, and psychological factors, and the complexity of this interaction makes it difficult to ascertain the clinical etiology of sexual dysfunction. Before any diagnosis of sexual dysfunction is made, problems that are explained by a nonsexual mental disorder or other stressors must first be addressed. Thus, in addition to the criteria for erectile disorder, the following must be considered:
Psychological factors — Psychological issues such as depression, anxiety, guilt or fear can sometimes cause sexual problems. At one time, these factors were thought to be the major cause of impotence. Doctors now know that physical factors cause impotence in most men with the problem. However, embarrassment or "performance anxiety" can make a physical problem worse.
Prevention of some of the causes that contribute to the development of erectile dysfunction can decrease the chances of developing the problem. For example, if a person decreases their chances of developing diabetes, heart disease, and hypertension, they will decrease their chances of developing erectile dysfunction. Other things like stopping smoking, eating a healthy diet (heart healthy with adequate vitamin intake), and exercising daily may reduce a person's risk.
In men of all ages, erectile failure may diminish willingness to initiate sexual relationships because of fear of inadequate sexual performance or rejection. Because males, especially older males, are particularly sensitive to the social support of intimate relationships, withdrawal from these relationships because of such fears may have a negative effect on their overall health.
Qaseem, A., Snow, V., Denberg, T. D., Casey, D. E., Forciea, M. A., Owens, D. K., & Shekelle, P. (2009). Hormonal testing and pharmacologic treatment of erectile dysfunction: A clinical practice guideline from the American College of Physicians. Annals of internal medicine, 151(9), 639-649. Retrieved from http://annals.org/aim/article/745155/hormonal-testing-pharmacologic-treatment-erectile-dysfunction-clinical-practice-guideline-from