Men with low levels of testosterone can experience ED. Taking testosterone may help maintain an erection.[30] Men with type 2 diabetes are twice as likely to have lower levels of testosterone, and are three times more likely to experience ED than non-diabetic men