Having learned a great deal more about erectile dysfunction including its risk factors and causes, you should be equipped to assess your own erectile function. If you have experienced erectile issues or you have some of the risk factors mentioned above, it may be worth making a trip to your doctor’s office. If you choose to seek help, give your doctor as much information as you can about your symptoms including their frequency and severity as well as the onset. With your doctor’s help, you can determine the best course of treatment to restore sexual function.
Surgical intervention for a number of conditions may remove anatomical structures necessary to erection, damage nerves, or impair blood supply. Erectile dysfunction is a common complication of treatments for prostate cancer, including prostatectomy and destruction of the prostate by external beam radiation, although the prostate gland itself is not necessary to achieve an erection. As far as inguinal hernia surgery is concerned, in most cases, and in the absence of postoperative complications, the operative repair can lead to a recovery of the sexual life of people with preoperative sexual dysfunction, while, in most cases, it does not affect people with a preoperative normal sexual life.
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.
This penile tumescence monitor is placed at the base and near the corona of the penis. It is connected to a monitor that records a continuous graph depicting the force and duration of erections that occur during sleep. The monitor is strapped to the leg. The nocturnal penile tumescence test is conducted on several nights to obtain an accurate indication of erections that normally occur during the alpha phase of sleep.
In males, testosterone is synthesized primarily in Leydig cells. The number of Leydig cells in turn is regulated by luteinizing hormone (LH) and follicle-stimulating hormone (FSH). In addition, the amount of testosterone produced by existing Leydig cells is under the control of LH, which regulates the expression of 17β-hydroxysteroid dehydrogenase.
"Stress and anxiety can adversely affect sexual performance and are common causes of erectile dysfunction,” warns Feloney. “Feelings of stress and anxiety can also lead to depression and a loss of interest in sex." It's important to get these feelings out in the open where you can deal with them. Issues that can lead to erectile dysfunction include fear from previous bad experiences with sex, family or work related stress, poor communication with your partner, and unrealistic goals and expectations.
Sexual dysfunction is highly prevalent in men and women. In the MMAS, 52% of the respondents reported some degree of erectile difficulty. Complete ED, defined as (1) the total inability to obtain or maintain an erection during sexual stimulation and (2) the absence of nocturnal erections, occurred in 10% of the respondents. Mild and moderate ED occurred in 17% and 25% of responders, respectively. 
However, in contrast, a recent systematic review of published studies, the authors concluded that overall, the addition of testosterone to PDE-5 inhibitors might benefit patients with ED associated with testosterone levels of less than 300 ng/dL (10.4 nmol/L) who failed monotherapy.  A limitation of existing studies are their heterogeneous nature and methodological drawbacks.
Erectile dysfunction is the inability to develop or maintain an erection that is rigid enough to allow penetration of the vagina, and therefore functional sexual intercourse. Generally, the term erectile dysfunction is applied if this occurs frequently (75% of the time) over a significant period if time (several weeks to months). If this is the case, the term impotence may also be used.
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.
Associated morbidity may include various other male sexual dysfunctions, such as premature (early) ejaculation and male hypoactive sexual desire disorder. The NHSLS found that 28.5% of men aged 18-59 years reported premature ejaculation, and 15.8% lacked sexual interest during the past year. An additional 17% reported anxiety about sexual performance, and 8.1% had a lack of pleasure in sex. 
Hypogonadism is a disease in which the body is unable to produce normal amounts of testosterone due to a problem with the testicles or with the pituitary gland that controls the testicles. Testosterone replacement therapy can improve the signs and symptoms of low testosterone in these men. Doctors may prescribe testosterone as injections, pellets, patches or gels.