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.
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.
When sexually stimulated there is a release of a chemical, nitric oxide (NO) in the blood vessels of the corpus cavernosum. The NO stimulates the production of a compound called cGMP, which causes relaxation of the smooth muscle in the blood vessels supplying the corpus cavernosum. PDE 5 is an enzyme that breaks down cGMP. By inhibiting the breakdown of cGMP by PDE5, these medications allow cGMP to build up in the penis. cGMP causes muscles in the corpora cavernosa of the penis to relax. When the muscle is relaxed, more blood can flow into the penis and fill the spaces in the penis. As the penis fills with blood, the veins in the penis are compressed, and this results a hard erection. When the effect on PDE5 decreases, the cGMP levels go down and the muscle in the penis contracts, causing less blood to flow into the penis and allowing the veins to open up and drain blood out of the penis.
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.
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. 
There are so many potential reasons a man might develop erectile dysfunction (ED), it's nearly impossible to generalize the best ways to treat it. What works for one man may not work for another simply because they are having problems for different reasons. That said, it may encouraging to hear that there are a variety of options that may be considered, from psychological counseling to lifestyle changes, medications to treatments and devices.
THIS TOOL DOES NOT PROVIDE MEDICAL ADVICE. It is intended for general informational purposes only and does not address individual circumstances. It is not a substitute for professional medical advice, diagnosis or treatment and should not be relied on to make decisions about your health. Never ignore professional medical advice in seeking treatment because of something you have read on the WebMD Site. If you think you may have a medical emergency, immediately call your doctor or dial 911.
Alprostadil injections, which produce an erection in five to 20 minutes that lasts for about an hour. Patients use a fine needle to inject alprostadil (commonly known by the brand names Caverject Impulse and Edex) into the base or side of the penis. Side effects can include bleeding or fibrous tissue formation at the injection site as well as prolonged erection, according to the Mayo Clinic.
You may find that using a vacuum device requires some practice or adjustment. Using the device may make your penis feel cold or numb and have a purple color. You also may have bruising on your penis. However, the bruises are most often painless and disappear in a few days. Vacuum devices may weaken ejaculation but, in most cases, the devices do not affect the pleasure of climax, or orgasm.
Penile erection is managed by two mechanisms: the reflex erection, which is achieved by directly touching the penile shaft, and the psychogenic erection, which is achieved by erotic or emotional stimuli. The former uses the peripheral nerves and the lower parts of the spinal cord, whereas the latter uses the limbic system of the brain. In both cases, an intact neural system is required for a successful and complete erection. Stimulation of the penile shaft by the nervous system leads to the secretion of nitric oxide (NO), which causes the relaxation of smooth muscles of corpora cavernosa (the main erectile tissue of penis), and subsequently penile erection. Additionally, adequate levels of testosterone (produced by the testes) and an intact pituitary gland are required for the development of a healthy erectile system. As can be understood from the mechanisms of a normal erection, impotence may develop due to hormonal deficiency, disorders of the neural system, lack of adequate penile blood supply or psychological problems. Spinal cord injury causes sexual dysfunction including ED. Restriction of blood flow can arise from impaired endothelial function due to the usual causes associated with coronary artery disease, but can also be caused by prolonged exposure to bright light.
L-arginine, an amino acid that is naturally present in the body and helps make nitric oxide, supports a successful erection. Nitric oxide is responsible for making the blood vessels relax, which helps sustain an erection for men. A 1999 study, observed the effects of six weeks of high-dose (5 grams/day) orally administered nitric oxide (NO) donor L-arginine on men with organic ED. Thirty-one percent of those who took 5 grams/day of L-arginine experienced significant improvements in sexual function. Burns told Medical Daily, “l-arginine and deer antler velvet” have been the most popular go-to natural treatments for men.
Currently, placement of a penile prosthesis is the most common surgical procedure performed for erectile dysfunction. Penile prosthesis placement is typically reserved for men who have tried and failed (either from efficacy or tolerability) or have contraindications to other forms of therapy including PDE5 inhibitors, intraurethral alprostadil, and injection therapy.
Alprostadil is a potent vasodilator and smooth muscle relaxant identical to the naturally occurring PGE1. PGE1 binds with specific receptors on smooth muscle cells and activates intracellular adenylate cyclase to produce cAMP, which in turn induces tissue relaxation through a second messenger system (96). PGE1 is the only FDA approved form of intracavernosal therapy and is available commercailly as EDEX, or Caverject. Its efficacy was demonstrated in several clinical trials where the rate of responders ranged from 40% to 80% (97,98). The most common adverse event is penile pain, which is not related to the injection of the medication itself. In men with prolonged use the pain is usually self-limited (99).
If PDE5 drugs don't work or cannot be used because of potential side effects, your doctor can recommend other therapies. The drug alprostadil (Caverject, Edex, Muse) allows blood to flow more freely in the penis, leading to an erection. The drug can be injected with a tiny needle into your penis. Or, a small pellet (suppository) can be inserted into the opening of the penis. Suppositories and injections are effective in the majority of men.
"Erectile dysfunction can be a very serious issue because it's a marker of underlying cardiovascular disease, and it often occurs before heart conditions become apparent. Therefore, men should consider improving their weight and overall nutrition, exercise more, drink less alcohol and have a better night's sleep, as well as address risk factors such as diabetes, high blood pressure and cholesterol.
Inside the cell, NOS catalyzes the oxidation of L-arginine to NO and L-citrulline. Endogenous blockers of this pathway have been identified. The gaseous NO that is produced acts as a neurotransmitter or paracrine messenger. Its biologic half-life is only 5 seconds. NO may act within the cell or diffuse and interact with nearby target cells. In the corpora cavernosa, NO activates guanylate cyclase, which in turn increases cyclic guanosine monophosphate (cGMP). Relaxation of vascular smooth muscles by cGMP leads to vasodilation and increased blood flow.
Certain street drugs such as "poppers" also can cause serious problems if taken with PDE5i medications. These poppers are often types of nitrates and can cause severe drops in blood pressure. Ecstasy is another street drug that may increase sexual desire but interferes with performance. This has prompted some men to combine ecstasy with PDE5i medications. This mixture (a combination sometimes called "sextasy") can improve erection ability but also causes severe headache and priapism. (Priapism is an abnormally prolonged erection that becomes extremely painful and may result in permanent damage to the erection mechanism.) There are also potentially dangerous effects to your heart from mixing PDE5i medications with various other street drugs.
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 a 2005 study, three months of twice-daily sets of kegel exercises combined with biofeedback and advice on lifestyle changes, such as quitting smoking, losing weight, and limiting alcohol, worked far better than just giving the participants advice. “Wearing tight pants will affect impotence along with some other medical conditions like diabetes and heart disease,” which can also affect a man’s degree of impotence, Dr. Jennifer Burns, specializing in family practice with an emphasis on gastrointestinal health at the BienEtre Center, told Medical Daily.
There are risks to prosthetic surgery and patients are counselled before the procedure. If there is a post-operative infection, the implant will likely be removed. The devices are reliable, but in the case of mechanical malfunction, the device or a part of the device will need to be replaced surgically. If a penile prosthesis is removed, other non-surgical treatments may no longer work.