Testosterone replacement therapy may improve energy, mood, and bone density, increase muscle mass and weight, and heighten sexual interest in older men who may have deficient levels of testosterone. Testosterone supplementation is not recommended for men who have normal testosterone levels for their age group due to the risk of prostate enlargement and other side effects. Testosterone replacement therapy is available as a cream or gel, topical solution, skin patch, injectable form and pellet form placed under the skin.
Medications: Many common medicines produce erectile dysfunction as a side effect. Medicines that can cause erectile dysfunction include many used to treat high blood pressure, antihistamines, antidepressants, tranquilizers, and appetite suppressants. Examples of common medicines that can cause erectile dysfunction include propranolol (Inderal) or other beta-blockers, hydrochlorothiazide, digoxin (Lanoxin), amitriptyline (Elavil), famotidine (Pepcid), cimetidine (Tagamet), metoclopramide (Reglan), naproxen, indomethacin (Indocin), lithium (Eskalith, Lithobid), verapamil (Calan, Verelan, Isoptin), phenytoin (Dilantin), gemfibrozil (Lopid), amphetamine/dextroamphetamine (Adderall), and phentermine. Prostate cancer medications that lower testosterone levels such as leuprolide (Lupron) may affect erectile function. Some chemotherapies such as cyclophosphamide (Cytoxan) may affect erectile function.
The association between low testosterone and ED is not entirely clear. Although these 2 processes certainly overlap in some instances, they are distinct entities. Some 2-21% of men have both hypogonadism and ED; however, it is unclear to what degree treating the former will improve erectile function.  About 35-40% of men with low testosterone see an improvement in their erections with testosterone replacement; however, almost 65% of these men see no improvement. 
The most common inflatable prosthesis is the three-piece penile prosthesis. It is composed of paired cylinders, which doctors surgically insert inside the penis. Patients can expand the cylinders using pressurized fluid (see figure 3). Tubes connect the cylinders to a fluid reservoir and pump, which doctors also surgically implant. The reservoir is usually in the pelvis. A doctor places the pump in the scrotum. By pressing on the pump, sterile fluid transfers from the reservoir into the cylinders in the penis. An erection is produced primarily by expansion of the width of the penis, however, one model can increase in length a small amount also. Lock-out valves in the tubing prevent the fluid from leaving the cylinder until a release valve is pressed. By pressing the relief valve and gently squeezing the penis, the fluid within the cylinders transfers back into the reservoir.
In 1983, Brindley injected the corpora of several SCI men with phentolamine (85). Two out of the three men had a sufficient erection produced. Since then multiple reports on the efficacy of intracavernosal therapy have been published using, phentolamine, papaverine, prostaglandin, vasoactive intestinal peptide (VIP), and these medications in combination (86-90). These medications have been found to be extremely effective for neurogenic ED due to their ability act locally and essentially bypassing neuronal pathways. Local therapies are usually considered second-line after PDE5i fail to elicit a desired response which can occur in about 25–30% of men with ED, in general (91). Furthermore, the locally delivered medications can be quite dangerous if not used appropriately as priapism and significant pain with injections can occur. These specific occurrences have been suggested as a reason for high discontinuation rates with intracavernosal therapy (92).
Monitoring erections that occur during sleep (nocturnal penile tumescence) can help you and your doctor to understand if the erectile dysfunction is due to psychological or physical causes. The nocturnal penile tumescence test is a study to evaluate erections at night. Normally men have three to five erections per eight hours of sleep. The test can be performed at home or in a sleep lab. The most accurate way to perform the test involves a special device that is connected to two rings. The rings are placed around the penis, one at the tip of the penis and the other at the bottom (base) of the penis. The device records how many erections occur, how long they last, and how rigid they are. The test is limited in that it does not assess the ability to penetrate.
In some cases, however, these drugs may be unsuitable for patients with heart disease. If you are considering one of these drugs and you have heart disease, as many diabetics do, be sure to tell your doctor. In rare cases, the pills may create “priapism,” a prolonged and painful erection lasting six hours or more (although reversible with prompt medical attention).
Injections: Injections are a reliable way to restore testosterone levels, but this therapy requires periodic injections (usually every two weeks) to sustain an effective level. It also causes high hormone levels right after the injection and low hormone levels just before the next shot. This is thought to be slightly more risky than other methods that maintain a moderate hormone level throughout the treatment period.
Erectile dysfunction is defined as the persistent inability to achieve or maintain penile erection sufficient for satisfactory sexual performance. The Massachusetts Male Aging Study surveyed 1,709 men aged 40–70 years between 1987 and 1989 and found there was a total prevalence of erectile dysfunction of 52 percent. It was estimated that, in 1995, over 152 million men worldwide experienced ED. For 2025, the prevalence of ED is predicted to be approximately 322 million worldwide.
3. Testosterone replacement. Before oral medications like Viagra, testosterone was routinely used to treat erectile dysfunction as it is central in the male sexual response, including the desire for sex and the process of getting an erection. Testosterone can be administered in a number of ways, for example orally, by means of an injection, skin patch, or subcutaneous (under the skin) pellet.
Her remark was entirely destructive of poetry, since it was to the effect that poetry had nothing whatever to do with her; all her friends spent their lives in making up phrases, she said; all his feeling was an illusion, and next moment, as if to taunt him with his impotence, she had sunk into one of those dreamy states which took no account whatever of his existence.
Alprostadil should not be used in men at higher risk for priapism (erection lasting longer than six hours) including men with sickle cell anemia, thrombocytopenia (low platelet count), polycythemia (increased red blood cell count), multiple myeloma (a cancer of the white blood cells), and is contraindicated in men prone to venous thrombosis (blood clots in the veins) or hyperviscosity syndrome who are at increased risk for priapism.
The primary nerve fibers to the penis are from the dorsal nerve of the penis, a branch of the pudendal nerve. The cavernosal nerves are a part of the autonomic nervous system and incorporate both sympathetic and parasympathetic fibers. They travel posterolaterally along the prostate and enter the corpora cavernosa and corpus spongiosum to regulate blood flow during erection and detumescence. The dorsal somatic nerves are also branches of the pudendal nerves. They are primarily responsible for penile sensation. 
Over a 2-year period, a third of the men randomized to a weight loss program demonstrated resolution of erectile dysfunction.10 A Mediterranean diet and nutritional counseling reported increased erectile quality.18 Little evidence supports that increased physical activity alone improves erectile quality; however, the strong association between physical activity and lower BMI is well described, and therefore recommended for men with erectile dysfunction and without a contraindication to physical activity.
A physical exam checks your total health. Examination focusing on your genitals (penis and testicles) is often done to check for ED. Based on your age and risk factors, the exam may also focus on your heart and blood system: heart, peripheral pulses and blood pressure. Based on your age and family history your doctor may do a rectal exam to check the prostate. These tests are not painful. Most patients do not need a lot of testing before starting treatment.