One report from a recent community survey concluded that erectile failure was the leading complaint of males attending sex therapy clinics. Other studies have shown that erectile disorders are the primary concern of sex therapy patients in treatment. This is consistent with the view that erectile dysfunction may be associated with depression, loss of self-esteem, poor self-image, increased anxiety or tension with one's sexual partner, and/or fear and anxiety associated with contracting sexually transmitted diseases, including AIDS.
If you can keep an erection when you’re alone, then you’re probably worried about something when you’re with your partner. Think about how you feel and then talk to your partner about your concerns. You might be putting too much pressure on yourself or not protecting yourself by using condoms and birth control. Or maybe you’ll discover that you’re really not ready for sex right now and need to wait until it feels right.
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.
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.
Her remark was entirely destructive of poetry, since it was to the effect that poetry had nothing whatever to do with her; all her friends spent their lives in making up phrases, she said; all his feeling was an illusion, and next moment, as if to taunt him with his impotence, she had sunk into one of those dreamy states which took no account whatever of his existence.
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.
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.