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. 
In the last few years, a lot of men and women have switched over to a pellet that goes under your skin. This is probably the best way to take testosterone now. The pellet is life-changing for both men and women (the dose for women is much lower than it is for men). Women, you won’t get bulky and grow a beard when you take testosterone to achieve normal levels, but you will probably lean out a little without losing your curves, and your energy and sex drive will be amazing. Female bodybuilders who experience weird scary side effects are taking anabolic steroids.
In a recent study of male workers, men with low testosterone levels had an increased chance of severe erectile dysfunction (Kratzik et al 2005), although such a link had not been found previously (Rhoden et al 2002). Certainly erectile dysfunction is considered part of the clinical syndrome of hypogonadism, and questions regarding erectile dysfunction form part of the clinical assessment of patients with hypogonadism (Morley et al 2000; Moore et al 2004).
It appears that testosterone has NOS-independent pathways as well. In one study, castrated rats were implanted with testosterone pellets and then divided into a group that received an NOS inhibitor (L-nitro-L-arginine methyl ester [L-NAME]) and a control group that received no enzyme.  The castrated rats that were given testosterone pellets and L-NAME still had partial erections, a result suggesting the presence of a pathway independent of NOS activity.
Given the high risk of priapism during escalation of therapy for intracorporeal injection, it is recommended that the drugs be administered in a supervised office visit initially and that the patient be given a well-articulated plan for treatment of priapism if it occurs. Escalation guidelines for alprostadil alone vary, but a general guideline is to start at 2.5 mcg and increase by 2.5 mcg to a dose of 5 mcg and then in increments of 5 mcg to 10 mcg until an erection sufficient for penetration, not lasting more than 1 hour, is achieved. If there is no response to the initial 2.5-mcg dose, escalation dosing can be slightly more liberal.34 A European prospective trial of PGE1 alone found 91% of the 54 patients completing the 4 years of the study reported good or better tolerability and satisfaction with therapy.35
Psychological Causes of ED – Between 10% and 20% of ED cases have a psychological cause. Because arousal starts in the brain, psychological issues can be a significant contributing factor to erectile dysfunction. Mental health conditions like depression or anxiety can negatively impact your libido, making it more difficult for you to become aroused.
Low testosterone levels can cause mood disturbances, increased body fat, loss of muscle tone, inadequate erections and poor sexual performance, osteoporosis, difficulty with concentration, memory loss and sleep difficulties. Current research suggests that this effect occurs in only a minority (about 2%) of ageing men. However, there is a lot of research currently in progress to find out more about the effects of testosterone in older men and also whether the use of testosterone replacement therapy would have any benefits.
^ Jump up to: a b Lazaridis I, Charalampopoulos I, Alexaki VI, Avlonitis N, Pediaditakis I, Efstathopoulos P, Calogeropoulou T, Castanas E, Gravanis A (2011). "Neurosteroid dehydroepiandrosterone interacts with nerve growth factor (NGF) receptors, preventing neuronal apoptosis". PLoS Biol. 9 (4): e1001051. doi:10.1371/journal.pbio.1001051. PMC 3082517. PMID 21541365.
These oral medications reversibly inhibit penile-specific PDE5 and enhance the nitric oxide–cGMP pathways of cavernous smooth muscle relaxation; that is, all prevent the breakdown of cGMP by PDE5. It is important to emphasize to patients that these drugs augment the body’s natural erectile mechanisms, therefore the neural and psychoemotional stimuli typically needed for arousal still need to be activated for the drugs to be efficacious.
Male hypogonadism becomes more common with increasing age and is currently an under-treated condition. The diagnosis of hypogonadism in the aging male requires a combination of symptoms and low serum testosterone levels. The currently available testosterone preparations can produce consistent physiological testosterone levels and provide for patient preference.