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.
Relationship problems can make it difficult for you to get or stay hard when you’re attempting to have sex with the person you’re in a relationship with. However, if you have this problem and you’re in a relationship that doesn’t mean your relationship is necessarily the reason. There are lots of other reasons you might not be able to get or stay hard (see above).
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