The causes of erectile dysfunction include aging, high blood pressure, diabetes mellitus, cigarette smoking, atherosclerosis (hardening of the arteries), depression, nerve or spinal cord damage, medication side effects, alcoholism or other substance (drug) abuse, pelvic surgery including radical prostatectomy, pelvic radiation, penile/perineal/pelvic trauma such as pelvic fracture, Peyronie's disease (a disorder that causes curvature of the penis and sometimes painful erections), and low testosterone levels.
Oral ED medication is considered highly effective and studies show it works on the majority of men. But no medication works for everyone and ED medication is no exception. Everyone’s reaction to a medication is unique and anything potent enough to help is strong enough to have side effects. If the medication isn’t working, it is important to tell your doctor. Sometimes it is a matter of needing a higher dose. Also, it has been shown that it takes 6 to 8 tries using the medication to experience the best result.
Another approach is vacuum therapy. The man inserts his penis into a clear plastic cylinder and uses a pump to force air out of the cylinder. This forms a partial vacuum around the penis, which helps to draw blood into the corpora cavernosa. The man then places a special ring over the base of the penis to trap the blood inside it. The only side effect with this type of treatment is occasional bruising if the vacuum is left on too long.
early 15c., "physical weakness," also "poverty," from Middle French impotence "weakness," from Latin impotentia "lack of control or power," from impotentem (nominative impotens); see impotent. In reference to a want of (male) sexual potency, from c.1500. The figurative senses of the word in Latin were "violence, fury, unbridled passion." Related: Impotency.
The physical examination can reveal clues for physical causes of erectile dysfunction. A doctor will perform an assessment of BMI and waist circumference to evaluate for abdominal obesity. A genital examination is part of the evaluation of erectile dysfunction. The examination will focus on the penis and testes. The doctor will ask you about penile curvature and will examine the penis to see if there are any plaques (hard areas) palpable. The doctor will examine the testes to make sure they are in the proper location in the scrotum and are normal in size. Small testicles, lack of facial hair, and enlarged breasts (gynecomastia) can point to hormonal problems such as hypogonadism with low testosterone levels. A health care provider may check pulses in your groin and feet to determine if there is a suggestion of hardening of the arteries that could also affect the arteries to the penis.
Stress is your body responding to your environment. And it’s a good thing—in limited doses. When you get stressed out your body makes chemicals like adrenaline that make you stronger, faster, fitter, and even able to think more clearly. Most people call this reaction the “fight-or-flight” response, and it’s a life-saver in dangerous situations. In a very real sense, adrenaline makes you a part-time superhero. The problems happen when your body deals with constant stress.
The Cancer of the Prostate Strategic Urologic Research Endeavor (CaPSURE) study, designed to determine whether an individual man’s sexual outcomes after most common treatments for early-stage prostate cancer could be accurately predicted on the basis of baseline characteristics and treatment plans, found that 2 years after treatment, 177 (35%) of 511 men who underwent prostatectomy reported the ability to attain functional erections suitable for intercourse. 
Parasympathetic pathways originate from the intermediolateral cell columns of the 2nd, 3rd and 4th sacral spinal cord segments. Preganglionic fibers pass through the pelvic plexus where they coalesce with sympathetic fibers from the superior hypogastric plexus. The cavernous nerves that innervate the penis arise from the portion of the pelvic plexus. The pelvic plexus also contains nerves that innervate the rectum, bladder and urinary sphincter and the nerve projections can be damaged during radical excision of the bladder, prostate and rectum, leading to iatrogenic ED (4).
Nearly every primary care physician, internist and geriatrician now understand that many older men retain an interest in sexual activity as they age. Some primary care physicians think that sexual potency in older men is the norm, and that if it is lacking, it is ‘all in the head.’ This viewpoint has not been supported by current literature. The Massachusetts Male Aging Study (MMAS) found that 52% of men between 40 and 70 years old reported having some form of erectile dysfunction (ED).1 The reality is that ED is a natural part of ageing and that the prevalence increases with age. In the MMAS, they found that roughly 50% of men at 50 years old, 60% of men at 60 years old and 70% of men at 70 years old had ED. Thus, nearly all men who live long enough should develop ED. The myths that surround the problems of impotence or ED confound the attempts of patients to receive treatment and the attempts of physicians to help them.1
In a prospective, multicenter, single-armed study of ED patients who exhibited a suboptimal response to PDE5 inhibitors, the investigators found that percutaneous implantation of zotarolimus-eluting stents in focal atherosclerotic lesions was both safe and feasible and was associated with clinically meaningful improvement on subjective and objective measures of erectile function. 
In their extensive review, Bassil and coworkers summarise the benefits and risks, with benefits such as improvement of sexual function, bone density, muscle strength, cognition and overall improvement in quality of life. Among the risks that have been suggested include erythrocytosis, liver toxicity, worsening of sleep apnoea and cardiac function, possibly increasing symptoms of benign prostatic hyperplasia (BPH). They also note that although a possibility of stimulation of prostate cancer has been hypothesised, no scientific or clinical evidence exists to this possible risk.38
Oral therapies via the PDE5i sildenafil, vardenafil, and tadalafil have been proven to be generally safe and effective in select NED populations. The majority of the treatment effectiveness data has been generated in the SCI population. Data regarding the use of PDE5i outside of the SCI population is lacking (58). Furthermore, the ED that exists in the population with neurologic disorders is often multifactorial and may be caused by psychogenic, psychosocial, hormonal, medication-related and disability-related factors. A careful evaluation of each patient must be performed to isolate these factors prior to initiating vasoactive therapy.
Treatment. prostatitis or another acute infection affecting the genitalia can cause temporary impotence that clears up in response to antibiotics. The smooth muscle relaxant sildenafil (viagra) was introduced in 1998 as a treatment for organic impotence. Administration of testosterone may be indicated if low levels of this hormone are found in a blood sample. If impotence is organic and does not respond to other therapies, a penile prosthesis can be implanted; this is usually done surgically by a urologist. Other therapies include the use of vacuum tumescence devices and penile injection of pharmacologic agents that cause dilation.
Conditions that may be associated with ED include diabetes, [25, 26, 27] hypertension,  , and CAD, as well as neurologic disorders, endocrinopathies, benign prostatic hyperplasia,  , sleep apnea  , COPD,  and depression (see Table 1 below). [32, 33, 34, 35] In fact, almost any disease may affect erectile function by altering the nervous, vascular, or hormonal systems. Various diseases may produce changes in the smooth muscle tissue of the corpora cavernosa or influence the patient’s psychological mood and behavior.
Oral therapy (pills) is the least effective and the most likely to be associated with liver problems, even though this is a small risk. This is related to the first-pass effect of all medications ingested via the digestive system. Once absorbed from the intesting, all food materials must pass through the hepatic (liver) system and be metabolized. As such, the actual delivery to the systemic blood system is low due to the liver metabolism of the testosterone. For this reason, the oral doses are quite high in order to get serum levels higher.
Penile prosthesis is the primary form of surgical therapy and is reserved for those men who fail, are intolerant of, or have contraindications to other forms of therapy. Currently, there are several different types of penile prostheses. The simplest is the malleable penile prosthesis, and the most complex is the three-piece inflatable penile prosthesis.
Infection is a concern after placement of a penile prosthesis and is reported as a complication in up to 20% of men undergoing placement of a penile prosthesis. If the device becomes infected more commonly, it needs to be removed. Another prosthesis can be placed after the infection is treated and the penile tissues have healed, but it is a difficult surgery. Erosion of the prosthesis, whereby it compresses through the corporal tissue, into the urethra may occur. Symptoms include pain, blood in the urine, discharge, abnormal stream, and malfunction of the prosthesis. If the prosthesis erodes, it will need to be removed. A catheter is placed to allow the urethra to heal.
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.