Common side effects from testosterone medication include acne, swelling, and breast enlargement in males. Serious side effects may include liver toxicity, heart disease, and behavioral changes. Women and children who are exposed may develop virilization. It is recommended that individuals with prostate cancer not use the medication. It can cause harm if used during pregnancy or breastfeeding.
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.
Begot, I., Peixoto, T. C. A., Gonzaga, L. R. A., Bolzan, D. W., Papa, V., Carvalho, A. C. C., ... & Guizilini, S. (2015, March 1). A Home-Based Walking Program Improves Erectile Dysfunction in Men With an Acute Myocardial Infarction. The American Journal of Cardiology, 115(5), 5741-575. Retrieved from http://www.ajconline.org/article/S0002-9149(14)02270-X/abstract
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. 
When stimulated by the nerves, the spongy tissue arranges itself in such a way that more blood can be stored in the penis. The veins running through the outer sheath of the penis then compress which stops the blood from leaving the penis. As the blood is stopped from flowing out, the penis fills with blood and stretches within the outer casing, giving an erection.
An international consensus document was recently published and provides guidance on the diagnosis, treatment and monitoring of late-onset hypogonadism (LOH) in men. The diagnosis of LOH requires biochemical and clinical components. Controversy in defining the clinical syndrome continues due to the high prevalence of hypogonadal symptoms in the aging male population and the non-specific nature of these symptoms. Further controversy surrounds setting a lower limit of normal testosterone, the limitations of the commonly available total testosterone result in assessing some patients and the unavailability of reliable measures of bioavailable or free testosterone for general clinical use. As with any clinical intervention testosterone treatment should be judged on a balance of risk versus benefit. The traditional benefits of testosterone on sexual function, mood, strength and quality of life remain the primary goals of treatment but possible beneficial effects on other parameters such as bone density, obesity, insulin resistance and angina are emerging and will be reviewed. Potential concerns regarding the effects of testosterone on prostate disease, aggression and polycythaemia will also be addressed. The options available for treatment have increased in recent years with the availability of a number of testosterone preparations which can reliably produce physiological serum concentrations.
The Massachusetts Male Aging Study (MMAS) documented an inverse correlation between ED risk and high-density lipoprotein (HDL) cholesterol levels but did not identify any effect from elevated total cholesterol levels.  Another study involving male subjects aged 45-54 years found a correlation with abnormal HDL cholesterol levels but also found a correlation with elevated total cholesterol levels. The MMAS included a preponderance of older men.
show that total testosterone levels increase after exercising, especially after resistance training. Low testosterone levels can affect your sex drive and your mood. The good news is that exercise improves mood and stimulates brain chemicals to help you feel happier and more confident. Exercise also boosts energy and endurance, and helps you to sleep better. Fitness experts recommend 30 minutes of exercise every day.
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:
When I first started TRT, my physician prescribed a cream that you rub into your skin. The cream version of TRT is not too convenient, because if someone touches you while you have the cream on, the testosterone can rub off on him/her. This can be really bad around kids or pregnant women. If you’re sleeping next to someone, the cream can get on the sheets and transfer over that way, too. The cream can be annoying, but it works. There’s also a gel version called AndroGel; I skipped it because it doesn’t absorb as well as the cream does.