When testosterone levels are low but then increase to a normal range, in the vast majority of cases, there is an improvement in erectile function. However, too much testosterone, which is often caused by testosterone injections or supplements, can have the reverse effect: testosterone can increase cortisol levels, which may lead to erectile dysfunction; if the testosterone shots have estrogen, excess levels of this hormone can also lead to erectile problems.