Diabetes is a well-recognized risk factor for ED. A systematic review and meta-analysis found that the prevalence of ED was 37.5% in type 1 diabetes, 66.3% in type 2 diabetes, and 52.5% in diabetes overall—a rate approximately 3.5 times higher than that in controls.  The etiology of ED in diabetic men probably involves both vascular and neurogenic mechanisms. Evidence indicates that establishing good glycemic control can minimize this risk.
Hypogonadism (as well as age-related low testosterone) is diagnosed with blood tests that measure the level of testosterone in the body. The Endocrine Society recommends testing for suspected low T with a total testosterone test. It may be performed in the morning when testosterone levels tend to be highest in young men, although this isn't necessarily the case in older men. The test may be repeated on another day if the results show a low T level. (5)
Currently available testosterone preparations in common use include intramuscular injections, subcutaneous pellets, buccal tablets, transdermal gels and patches (see Table 2). Oral testosterone is not widely used. Unmodified testosterone taken orally is largely subject to first-pass metabolism by the liver. Oral doses 100 fold greater than physiological testosterone production can be given to achieve adequate serum levels. Methyl testosterone esters have been associated with hepatotoxicity. There has been some use of testosterone undecanoate, which is an esterified derivative of testosterone that is absorbed via the lymphatic system and bypasses the liver. Unfortunately, it produces unpredictable testosterone levels and increases testosterone levels for only a short period after each oral dose (Schurmeyer et al 1983).
The physical side effects of chemotherapy are usually temporary and resolve within one to two weeks after stopping the chemotherapy. However, chemotherapy agents, such as Ciplatin or Vincristine, may interfere with the nerves that control erection leading to possible impotence. Make sure you discuss potential side effects of cancer chemotherapy with your doctor or healthcare provider.
Longitudinal studies in male aging studies have shown that serum testosterone levels decline with age (Harman et al 2001; Feldman et al 2002). Total testosterone levels fall at an average of 1.6% per year whilst free and bioavailable levels fall by 2%–3% per year. The reduction in free and bioavailable testosterone levels is larger because aging is also associated with increases in SHBG levels (Feldman et al 2002). Cross-sectional data supports these trends but has usually shown smaller reductions in testosterone levels with aging (Feldman et al 2002). This is likely to reflect strict entry criteria to cross-sectional studies so that young healthy men are compared to older healthy men. During the course of longitudinal studies some men may develop pathologies which accentuate decreases in testosterone levels.
ED usually has something physical behind it, particularly in older men. But psychological factors can be a factor in many cases of ED. Experts say stress, depression, poor self-esteem, and performance anxiety can short-circuit the process that leads to an erection. These factors can also make the problem worse in men whose ED stems from something physical.
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.
There have been case reports of development of prostate cancer in patients during treatment with testosterone, including one case series of twenty patients (Gaylis et al 2005). It is not known whether this reflects an increase in incidence, as prostate cancer is very common and because the monitoring for cancer in patients treated with testosterone is greater. Randomized controlled trials of testosterone treatment have found a low incidence of prostate cancer and they do not provide evidence of a link between testosterone treatment and the development of prostate cancer (Rhoden and Morgentaler 2004). More large scale clinical trials of longer durations of testosterone replacement are required to confirm that testosterone treatment does not cause prostate cancer. Overall, it is not known whether testosterone treatment of aging males with hypogonadism increases the risk of prostate cancer, but monitoring for the condition is clearly vital. This should take the form of PSA blood test and rectal examination every three months for the first year of treatment and yearly thereafter (Nieschlag et al 2005). Age adjusted PSA reference ranges should be used to identify men who require further assessment. The concept of PSA velocity is also important and refers to the rate of increase in PSA per year. Patients with abnormal rectal examination suggestive of prostate cancer, PSA above the age specific reference range or a PSA velocity greater than 0.75 ng/ml/yr should be referred to a urologist for consideration of prostate biopsy.
More can be learned from a large, randomized, placebo-controlled trial of finasteride treatment in 18,800 men aged 55 or more. Finasteride is a 5α-reductase inhibitor which acts to prevent the metabolism of testosterone to dihydrotestosterone (DHT) – the most active androgen in the prostate. The trial showed a greater overall incidence of prostate cancer in the control group, but men treated with finasteride were more likely to have high grade tumors (Thompson et al 2003), suggesting that reduced androgen exposure of the prostate may delay the presentation of prostate cancer and/or promote advanced disease in some other way.
Oral/buccal (by mouth). The buccal dose comes in a patch that you place above your incisor (canine or "eyetooth"). The medication looks like a tablet but you should not chew or swallow it. The drug is released over 12 hours. This method has fewer harmful side effects on the liver than if the drug is swallowed, but it may cause headaches or cause irritation where you place it.
Sexual stimulation causes the release of neurotransmitters from cavernosal nerve endings and relaxation factors from endothelial cells lining the sinusoids. NOS produces NO from L-arginine, and this, in turn, produces other muscle-relaxing chemicals, such as cGMP and cyclic adenosine monophosphate (cAMP), which work via calcium channel and protein kinase mechanisms (see the image below). This results in the relaxation of smooth muscle in the arteries and arterioles that supply the erectile tissue, producing a dramatic increase in penile blood flow.
As blood levels of testosterone increase, this feeds back to suppress the production of gonadotrophin-releasing hormone from the hypothalamus which, in turn, suppresses production of luteinising hormone by the pituitary gland. Levels of testosterone begin to fall as a result, so negative feedback decreases and the hypothalamus resumes secretion of gonadotrophin-releasing hormone.
The dorsal artery provides for engorgement of the glans during erection, whereas the bulbourethral artery supplies the bulb and the corpus spongiosum. The cavernous artery effects tumescence of the corpus cavernosum and thus is principally responsible for erection. The cavernous artery gives off many helicine arteries, which supply the trabecular erectile tissue and the sinusoids. These helicine arteries are contracted and tortuous in the flaccid state and become dilated and straight during erection. 
Erectile dysfunction (ED) affects 50% of men older than 40 years,  exerting substantial effects on quality of life.  This common problem is complex and involves multiple pathways. Penile erections are produced by an integration of physiologic processes involving the central nervous, peripheral nervous, hormonal, and vascular systems. Any abnormality in these systems, whether from medication or disease, has a significant impact on the ability to develop and sustain an erection, ejaculate, and experience orgasm.
This inflatable penile prosthesis has 3 major components. The 2 cylinders are placed within the corpora cavernosa, a reservoir is placed beneath the rectus muscle, and the pump is placed in the scrotum. When the pump is squeezed, fluid from the reservoir is transferred into the 2 cylinders, producing a firm erection. The deflation mechanism is also located on the pump and differs by manufacturer.
"By expanding the boundaries of this disease to common symptoms in aging males, such as fatigue and reduced libido, drug companies seek to increase their markets and boost their sales," wrote Barbara Mintzes, an assistant professor at the University of British Columbia School of Public Health, and Agnes Vitry, a senior research fellow at the University of South Australia, in a 2012 article in the Medical Journal of Australia .
Talk with your doctor before trying supplements for ED. They can contain 10 or more ingredients and may complicate other health conditions. Asian ginseng and ginkgo biloba (seen here) are popular, but there isn't a lot of good research on their effectiveness. Some men find that taking a DHEA supplement improves their ability to have an erection. Unfortunately, the long-term safety of DHEA supplements is unknown. Most doctors do not recommend using it.
If a trial of oral ED therapy and withdrawal of offending medications prove to be ineffective in restoring erectile function, it is appropriate for most primary care practitioners to consider referral to a specialist for additional evaluation and discussion of alternative treatment options. These include intracavernous injection therapy, vacuum constriction devices, intraurethral therapy, and possible surgery.
Additionally, the physiologic processes involving erections begin at the genetic level. Certain genes become activated at critical times to produce proteins vital to sustaining this pathway. Some researchers have focused on identifying particular genes that place men at risk for ED. At present, these studies are limited to animal models, and little success has been reported to date.  Nevertheless, this research has given rise to many new treatment targets and a better understanding of the entire process.