Having trouble getting or keeping an erection happens now and then to all men. Even younger men have occasional bouts of ED, although it’s more common in older men. But ED is not an inevitable part of aging. It might be a warning sign that you’re developing a chronic disease. If you have ongoing ED, your doctor should screen you for heart disease.