Replacement therapy may produce desired results, such as greater muscle mass and a stronger sex drive. However, the treatment does carry some side effects. Oily skin and fluid retention are common. The testicles may also shrink, and sperm production could decrease significantly. Some studies have found no greater risk of prostate cancer with testosterone replacement therapy, but it continues to be a topic of ongoing research.
Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing sexual dysfunction. 
Another study compared the response of surgically and medically castrated rabbits to vardenafil with that of control rabbits.  Castrated rabbits did not respond to vardenafil, whereas noncastrated rabbits did respond appropriately. This result suggests that a minimum amount of testosterone is necessary for PDE5 inhibitors to produce an erection.
Abnormally high levels of testosterone could be the result of an adrenal gland disorder, or even cancer of the testes. High levels may also occur in less serious conditions. Congenital adrenal hyperplasia, which can affect males and females, is a rare but natural cause for elevated testosterone production. Your doctor may order other tests if your levels are exceedingly high.
A larger national study, the National Health and Social Life Survey, looked at sexual function in men and women.4 This study surveyed 1,410 men aged 18 to 59 and also documented an increase in ED with age. Additionally, the study found a decrease in sexual desire with increasing age. Men in the oldest cohort (50 to 59) were more than 3 times as likely to experience erection problems and to report low sexual desire compared with men 18 to 29. Experience of sexual dysfunction was more likely among men in poor physical and emotional health. The study also concluded that sexual dysfunction is an important public health concern and that emotional issues are likely to contribute to the experience sexual dysfunction.
However, testosterone is only one of many factors that aid in adequate erections. Research is inconclusive regarding the role of testosterone replacement in the treatment of erectile dysfunction. In a review of studies that looked at the benefit of testosterone in men with erection difficulties, nearly half showed no improvement with testosterone treatment. Many times, other health problems play a role in erectile difficulties. These can include:
Cross-sectional studies conducted at the time of diagnosis of BPH have failed to show consistent differences in testosterone levels between patients and controls. A prospective study also failed to demonstrate a correlation between testosterone and the development of BPH (Gann et al 1995). Clinical trials have shown that testosterone treatment of hypogonadal men does cause growth of the prostate, but only to the size seen in normal men, and also causes a small increase in prostate specific antigen (PSA) within the normal range (Rhoden and Morgentaler 2005). Despite growth of the prostate a number of studies have failed to detect any adverse effects on symptoms of urinary obstruction or physiological measurements such as flow rates and residual volumes (Snyder et al 1999; Kenny et al 2000, 2001). Despite the lack of evidence linking symptoms of BPH to testosterone treatment, it remains important to monitor for any new or deteriorating problems when commencing patients on testosterone treatment, as the small growth of prostate tissue may adversely affect a certain subset of individuals.