The general medical history is important in identifying specific risk factors that may account for or contribute to the patient's erectile dysfunction. These include vascular risk factors such as hypertension, diabetes, smoking, coronary artery disease, peripheral vascular disorders, pelvic trauma or surgery, and blood lipid abnormalities. Decreased sexual desire or history suggesting a hypogonadal state could indicate a primary endocrine disorder. Neurologic causes may include a history of diabetes mellitus or alcoholism with associated peripheral neuropathy. Neurologic disorders such as multiple sclerosis, spinal injury, or cerebrovascular accidents are often obvious or well defined prior to presentation. It is essential to obtain a detailed medication and illicit drug history since an estimated 25 percent of cases of erectile dysfunction may be attributable to medications for other conditions. Past medical history can reveal important causes of erectile dysfunction, including radical pelvic surgery, radiation therapy, Peyronie's disease, penile or pelvic trauma, prostatitis, priapism, or voiding dysfunction. Information regarding prior evaluation or treatment for "impotence" should be obtained. A detailed sexual history, including current sexual techniques, is important in the general history obtained. It is also important to determine if there have been previous psychiatric illnesses such as depression or neuroses.
The physical examination can reveal clues for physical causes of erectile dysfunction. A doctor will perform an assessment of BMI and waist circumference to evaluate for abdominal obesity. A genital examination is part of the evaluation of erectile dysfunction. The examination will focus on the penis and testes. The doctor will ask you about penile curvature and will examine the penis to see if there are any plaques (hard areas) palpable. The doctor will examine the testes to make sure they are in the proper location in the scrotum and are normal in size. Small testicles, lack of facial hair, and enlarged breasts (gynecomastia) can point to hormonal problems such as hypogonadism with low testosterone levels. A health care provider may check pulses in your groin and feet to determine if there is a suggestion of hardening of the arteries that could also affect the arteries to the penis.
In order to establish whether normal erections are occurring overnight (nocturnal erections), the doctor may organise nocturnal penile tumescence (NPT) testing. This involves wearing a monitor overnight in your own home. The data from this monitor is then assessed to analyse how often erections occurred, how long they lasted, and how rigid and large the penis was during the erections. If NPT testing is normal, the cause of erectile dysfunction is usually psychological. If not, further testing of the blood flow in the genital area may be required to see if there is blockage or leakage. The doctor may also organise a blood test of levels of hormones such as testosterone, prolactin and thyroid stimulating hormone to see if these are contributing to the erectile dysfunction.
#4 You’re just plain turned off. It happens. Whether it’s the weight your partner has put on, the realization that you’re having period sex, or you’re just not getting what you need in the bedroom, at some point in your life, you’re going to be turned off enough to lose *or be unable to attain* your hard-on. [Read: Not attracted to your girlfriend anymore? The why and the fixes]
The Cancer of the Prostate Strategic Urologic Research Endeavor (CaPSURE) study, designed to determine whether an individual man’s sexual outcomes after most common treatments for early-stage prostate cancer could be accurately predicted on the basis of baseline characteristics and treatment plans, found that 2 years after treatment, 177 (35%) of 511 men who underwent prostatectomy reported the ability to attain functional erections suitable for intercourse. 
The most important organic causes of impotence are cardiovascular disease and diabetes, neurological problems (for example, trauma from prostatectomy surgery), hormonal insufficiencies (hypogonadism) and drug side effects. Psychological impotence is where erection or penetration fails due to thoughts or feelings (psychological reasons) rather than physical impossibility; this is somewhat less frequent but can often be helped. In psychological impotence, there is a strong response to placebo treatment.
Lifestyle choices that impair blood circulation can contribute to ED. Smoking, excessive drinking, and drug abuse may damage the blood vessels and reduce blood flow to the penis. Smoking makes men with atherosclerosis particularly vulnerable to ED. Being overweight and getting too little exercise also contribute to ED. Studies indicate that men who exercise regularly have a lower risk of ED.