Treatment involves addressing the underlying causes, lifestyle modifications, and addressing psychosocial issues. In many cases, a trial of pharmacological therapy with a PDE5 inhibitor, such as sildenafil, can be attempted. In some cases, treatment can involve inserting prostaglandin pellets into the urethra, injecting smooth muscle relaxants and vasodilators into the penis, a penile prosthesis, a penis pump, or vascular reconstructive surgery. It is the most common sexual problem in men.
However, a review of a United Kingdom medical record database found no evidence that the use of 5-alpha reductase inhibitors independently increase the risk for ED. In 71,849 men with benign prostatic hyperplasia (BPH), the risk of ED was not increased with the use of finasteride or dutasteride only (odds ratio [OR] 0.94), or a 5-alpha reductase inhibitor plus an alpha blocker (OR 0.92) compared with an alpha blocker only. In addition, the risk of ED was not increase in 12 346 men prescribed finasteride 1 mg for alopecia, compared with unexposed men with alopecia (OR 0.95). The risk of ED did increase with longer duration of BPH, regardless of drug exposure. 
So here’s something that’s really fascinating. Healthy eating is a way to reduce anxiety and stress. Now how, you may be asking, right? Well, think about it. We live in a world where there are so many variables and where we don’t have control over our lives. But now, with healthy eating, we have control over what goes into our body. And now having that control empowers us to be even healthier, to be more directive in what we do. And certainly, that begins then to reduce the anxiety and the stress. So all in one, you have a healthier body, but certainly a healthier mind.
Erectile dysfunction can be embarrassing and difficult to talk about for some men. Many men may feel like they need to hide their diagnosis from their partner. "Failure to communicate openly about erectile dysfunction can result in both partners drawing away from the relationship," warns Feloney. Remember that your partner is also affected by your problem; being open and honest is the best way to decrease fear and anxiety. Discuss options for achieving sexual satisfaction together, and be positive — most erectile dysfunction problems can be treated.
If a trial of oral therapy and withdrawal of offending medications do not restore erectile function or if a patient has medical or financial contraindications to pharmacologic therapy, most primary care practitioners should consider referring the patient to a specialist for additional evaluation and discussion of alternative treatment options. However, some primary care practitioners may recommend vacuum constriction devices.
Alteration of NO levels is the focus of several approaches to the treatment of ED. Inhibitors of phosphodiesterase, which primarily hydrolyze cGMP type 5, provided the basis for the development of the PDE5 inhibitors. Chen et al administered oral L-arginine and reported subjective improvement in 50 men with ED.  These supplements are readily available commercially. Reported adverse effects include nausea, diarrhea, headache, flushing, numbness, and hypotension.
Between 10 and 88% of patients diagnosed with cancer experience sexual problems following diagnosis and treatment. The prevalence varies according to the location and type of cancer, and the treatment modalities used. Sexuality may be affected by chemotherapy, alterations in body image due to weight change, hair loss or surgical disfigurement, hormonal changes, and cancer treatments that directly affect the pelvic region.
The association between low testosterone and ED is not entirely clear. Although these 2 processes certainly overlap in some instances, they are distinct entities. Some 2-21% of men have both hypogonadism and ED; however, it is unclear to what degree treating the former will improve erectile function.  About 35-40% of men with low testosterone see an improvement in their erections with testosterone replacement; however, almost 65% of these men see no improvement. 
Testosterone is the primary sex hormone in men, and it is responsible for the development of many of the physical characteristics that are considered typically male. Women also produce the hormone in much smaller amounts. Testosterone, part of a hormone class known as androgens, is produced by the testicles after stimulation by the pituitary gland, which is located near the base of the brain, and it sends signals to a male's testicles (or to a woman's ovaries) that spark feelings of sexual desire. (1)
Her remark was entirely destructive of poetry, since it was to the effect that poetry had nothing whatever to do with her; all her friends spent their lives in making up phrases, she said; all his feeling was an illusion, and next moment, as if to taunt him with his impotence, she had sunk into one of those dreamy states which took no account whatever of his existence.
Although vardenafil does not seem to produce significant clinical QT prolongation, it has been suggested that it be avoided in patients who have congenital QT prolongation abnormalities and in patients using class I antiarrhythmic drugs, such as quinidine and procainamide. It is also best to avoid the use of vardenafil with class III antiarrhythmic drugs, such as amiodarone or sotalol.
In some cases, ED can be a warning sign of more serious disease. One study suggests ED is a strong predictor of heart attack, stroke, and death from cardiovascular disease. The researchers say all men diagnosed with ED should be evaluated for cardiovascular disease. This does not mean every man with ED will develop heart disease, or that every man with heart disease has ED, but patients should be aware of the link.
Men with medical conditions that may cause a sustained erection, such as sickle cell anemia, leukemia, or multiple myeloma, or a man who has an abnormally-shaped penis, may not benefit from these medications. Also, men with liver diseases or a disease of the retina, such as macular degeneration or retinitis pigmentosa, may not be able to take these medications, or may need to take the lowest dosage.
The chemical synthesis of testosterone from cholesterol was achieved in August that year by Butenandt and Hanisch. Only a week later, the Ciba group in Zurich, Leopold Ruzicka (1887–1976) and A. Wettstein, published their synthesis of testosterone. These independent partial syntheses of testosterone from a cholesterol base earned both Butenandt and Ruzicka the joint 1939 Nobel Prize in Chemistry. Testosterone was identified as 17β-hydroxyandrost-4-en-3-one (C19H28O2), a solid polycyclic alcohol with a hydroxyl group at the 17th carbon atom. This also made it obvious that additional modifications on the synthesized testosterone could be made, i.e., esterification and alkylation.
Usually there will not be a specific treatment that will lead to the improvement of erectile dysfunction. However, there are treatments that will allow erections to happen and can be used to allow sexual activity to take place. There are three main types of treatments: non-invasive treatments such as tablet medicines and external devices (e.g. vacuum device); penile injections; or for men who have not had success with other treatments, surgery may be an option.
The mechanisms by which testosterone plays a role in erectile function are not completely understood. A study evaluating the effect of testosterone on erections in surgically castrated rabbits and control animals, in which the rabbits’ intracavernosal pressures were compared after cavernosal nerve stimulation, determined that castrated rabbits had much lower pressures after stimulation than control rabbits did.  Notably, the pressures increased when castrated rabbits received exogenous testosterone replacement.
A common and important cause of ED is vasculogenic. Many men with ED have comorbid conditions such as hyperlipidemia, hypercholesterolemia, tobacco abuse, diabetes mellitus, or coronary artery disease (CAD).  The Princeton III Consensus recommends screening men who present with ED for cardiovascular risk factors; ED may be the earliest presentation of atherosclerosis and vascular disease. 
If you have low testosterone, your functional medicine or anti-aging physician will help you diagnose it. There are several different hormones your physician should measure, but the most important two are your free testosterone and estrogen levels, because converting too much testosterone to estrogen is a problem that’s different from not making enough testosterone in the first place. In my case, I wasn’t making very much testosterone, and what I was making my body converted to estrogen way too effectively.
Implantation of penile prosthesis remains an important option for men with ED if medical treatment fails or is inappropriate. Prostheses are available as a saline-filled silicone device or a malleable device. The benefit of the former is a more natural appearance in the deflated state, closely approximating the appearance of a flaccid penis. The trade-off is a higher mechanical failure rate and higher cost. Satisfaction rates for patients who underwent penile prosthesis surgery have been reported to be near 90%.36 However, in the majority of patients who receive this treatment, less invasive alternatives have failed and therefore satisfaction with this treatment would be expected to be higher in this subset of patients. Risks of these devices include surgical and anesthetic risk, device infection, and device malfunction. Mechanical failure rates depend on the specific device being investigated. Overall, the percentage of devices that are free from mechanical failure at 5 years ranges from 84% to 94%.19 Infection rates in the era of coated devices and improved techniques are reported to be less than 1%.37
Before assessing the evidence of testosterone’s action in the aging male it is important to note certain methodological considerations which are common to the interpretation of any clinical trial of testosterone replacement. Many interventional trials of the effects of testosterone on human health and disease have been conducted. There is considerable heterogenicity in terms of study design and these differences have a potential to significantly affect the results seen in various studies. Gonadal status at baseline and the testosterone level produced by testosterone treatment in the study are of particular importance because the effects of altering testosterone from subphysiological to physiological levels may be different from those of altering physiological levels to supraphysiological. Another important factor is the length of treatment. Randomised controlled trials of testosterone have ranged from one to thirty-six months in duration (Isidori et al 2005) although some uncontrolled studies have lasted up to 42 months. Many effects of testosterone are thought to fully develop in the first few months of treatment but effects on bone, for example, have been shown to continue over two years or more (Snyder et al 2000; Wang, Cunningham et al 2004).
While studies are limited, it has been shown that male sexual dysfunction can also negatively impact the sexual function of female partners. A study comparing the sexual function of women with partners with erectile dysfunction to those without showed that sexual arousal, lubrication, orgasm, satisfaction, pain and total score were significantly lower in those who had partners with erectile dysfunction. Later in that study, a large proportion of the men with erectile dysfunction underwent treatment. Following treatment, sexual arousal, lubrication, orgasm, satisfaction and pain were all significantly increased. It was concluded that female sexual function is impacted by male erection status, which may improve following treatment of male sexual dysfunction.
Obesity and metabolic syndrome can cause changes in blood pressure, body composition, and cholesterol which may lead to ED. Other conditions that may contribute to erectile dysfunction include Parkinson’s, multiple sclerosis, Peyronie’s disease, sleep disorders, alcoholism, and drug abuse. Taking certain medications can also increase your risk for ED.
Dr. Adriane Fugh-Berman, associate professor of pharmacology and director of the industry watchdog group PharmedOut.org at Georgetown University School of Medicine, calls this kind of direct-to-consumer pharmaceutical advertising "evil." She likened the efforts to sell TRT to earlier campaigns to push hormone replacement therapy for post-menopausal women. "They stole the playbook," she said. "This hormone is being thrown around like sugar water."