The availability of phosphodiesterase-5 (PDE5) inhibitors—sildenafil, vardenafil, tadalafil, and avanafil—has fundamentally altered the medical management of ED. In addition, direct-to-consumer marketing of these agents over the last 15 years has increased the general public’s awareness of ED as a medical condition with underlying causes and effective treatments.
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.
Side effects include lightheadedness, fainting, priapism, urethral bleeding (intraurethral), dyspareunia in the partner (intraurethral), hematoma (intracavernosal) or penile curvature secondary to scar (intracavernosal). Efficacy of intraurethral alprostadil has been demonstrated to be around 50% ("able to have intercourse") in randomized controlled trials.31,32 For intracorporeal injection, typically alprostadil is tried alone, or compounded with papaverine (nonspecific phosphodiesterase inhibitor that increases intracellular cyclic adenosine monophosphate and cGMP) and/or phentolamine (competitive, non-selective alpha1- and alpha2-adrenoreceptor blocker). Pinsky et al33 reported an extensive review of the benefits and drawbacks of the combinations of these drugs.
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.
If you’re experiencing psychological ED, you may benefit from talk therapy. Therapy can help you manage your mental health. You’ll likely work with your therapist over several sessions, and your therapist will address things like major stress or anxiety factors, feelings around sex, or subconscious conflicts that could be affecting your sexual well-being.
Both ED and low testosterone (hypogonadism) increase with age. The incidence of the latter is 40% in men aged 45 years and older.  Testosterone is known to be important in mood, cognition, vitality, bone health, and muscle and fat composition. It also plays a key role in sexual dysfunction (eg, low libido, poor erection quality, ejaculatory or orgasmic dysfunction, reduced spontaneous erections, or reduced sexual activity). 
I’m telling you all of this because no matter who you are, keeping your testosterone levels balanced is more important now than ever before. Modern living has not been kind to our hormones. In American men, serum testosterone levels have declined by about 1% each year for the past 30 years , and you can make a few educated guesses about why. Hormone-disrupting chemicals are more prevalent than ever before, physical activity is less and less common, veganism is popular (I was a raw vegan for a while), and many doctors insist on pushing a low-fat, low-cholesterol diet for health (by the way, the concept of a low-fat diet began in the mid-70s, shortly before the nationwide testosterone decline. It could be a coincidence, but I doubt it).
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.