It’s common for men to experience occasional problems getting or maintaining an erection, due to a minor illness or stress. But if erectile dysfunction (ED) occurs more than 25% of the time you should see your doctor.
ED is often a sign that you have a health-related problem, such as heart disease, diabetes or an endocrine (hormonal) disorder. These health conditions cause or contribute to erectile dysfunction, so treating them can help. If erection problems persist, your doctor can prescribe treatments that can help you get and maintain an erection.