In order to establish whether normal erections are occurring overnight (nocturnal erections), the doctor may organise nocturnal penile tumescence (NPT) testing. This involves wearing a monitor overnight in your own home. The data from this monitor is then assessed to analyse how often erections occurred, how long they lasted, and how rigid and large the penis was during the erections. If NPT testing is normal, the cause of erectile dysfunction is usually psychological. If not, further testing of the blood flow in the genital area may be required to see if there is blockage or leakage. The doctor may also organise a blood test of levels of hormones such as testosterone, prolactin and thyroid stimulating hormone to see if these are contributing to the erectile 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.

I suffered from sporadic limp dick in my 20s. It was usually when I was nervous because I was with a girl I actually liked. A doctor prescribed me Viagra. When I took it, my whole body went bright red, my nose became so congested that I had to breath through my mouth—almost impossible to do while kissing—and I stayed hard for an uncomfortably long nine hours.
Among the phenomena in the ageing man are a decrease in erectile function and testosterone levels. Add to these, increased risk for CVD, muscle wasting, decrease in bone density and libido, with all of these factors having an interplay with testosterone metabolism.33 Androgens play a key role in maintaining erectile function through four main mechanisms. Androgen deprivation has been shown to result in impairment of NO synthase release, altered PDE5 expression and activity, impaired cavernosal nerve function, and contribution to veno-occlusive disease in the penis.34 The role of testosterone replacement therapy (TRT) as a potential to improve erectile function in the man with ED remains an issue for patient and physicians who are comfortable treating androgen deficiency which include primary care physicians and specialists. Androgens are known to have a significant impact on the function of the smooth musculature within the corpus spongiosum.35

"Sexual relations are not only an important part of people's wellbeing. From a clinical point of view, the inability of some men to perform sexually can also be linked to a range of other health problems, many of which can be debilitating or potentially fatal," says Professor Gary Wittert, Head of the Discipline of Medicine at the University of Adelaide and Director of the University's Freemasons Foundation Centre for Men's Health.
In patients who either fail to respond to first or second-line therapy, or are not interested in the conservative therapies, penile prosthesis implantation is available. Malleable and rigid implants were available for many years, but in 1973 the world of penile prosthetics took a giant leap forward with the advent of the inflatable penile implant. Most implants done nowadays are of the inflatable variety. Adverse events including malfunction and infection are rare, and patient satisfaction is very high.45
There are two kinds of surgery for ED: one involves implantation of a penile prosthesis; the other attempts vascular reconstruction. Expert opinion about surgical implants has changed during recent years; today, surgery is no longer so widely recommended. There are many less-invasive and less-expensive options, and surgery should be considered only as a last resort.
Diabetes is an example of an endocrine disease that can cause a person to experience impotence. Diabetes affects the body’s ability to utilize the hormone insulin. One of the side effects associated with chronic diabetes is nerve damage. This affects penis sensations. Other complications associated with diabetes are impaired blood flow and hormone levels. Both of these factors can contribute to impotence.
ICI Alprostadil may be used as a mixture with two other drugs to treat ED. This combination therapy called "bimix or trimix" is stronger than alprostadil alone and has become standard treatment for ED. Only the Alprostadil ingredient is FDA approved for ED. The amount of each drug used can be changed based on the severity of your ED, by an experienced health professional. You will be trained by your health professional on how to inject, how much to inject and how to safely raise the drug's dosage if necessary.
×