Treatment depends on the underlying cause. In general, exercise, particularly of the aerobic type, is effective for preventing ED during midlife. Exercise as a treatment is under investigation.:6, 18–19 For tobacco smokers, cessation often results in a significant improvement. Oral pharmacotherapy and vacuum erection devices are first-line treatments,:20, 24 followed by injections of drugs into the penis, as well as penile implants.:25–26 Vascular reconstructive surgeries are beneficial in certain groups.
The lab testing obtained for the evaluation of erectile dysfunction may vary with the information obtained on the health history, physical examination, and recent lab testing. A testosterone level is not necessary in all men; however, a physician will order labs to determine a patient's testosterone level if other signs and symptoms of hypogonadism (low testosterone) such as decreased libido, loss of body hair, muscle loss, breast enlargement, osteoporosis, infertility, and decreased penile/testicular size are present.
The development of an erection is a complex event involving integration of psychologic, neurologic, endocrine, vascular, and local anatomic systems. Positron emission tomography scanning studies have suggested that sexual arousal is activated in higher cortical centers that then stimulate the medial preoptic and paraventricular nuclei of the hypothalamus.5 These signals ultimately descend through a complex neural network involving the parasympathetic nervous system and eventually activate parasympathetic nerves in the sacral area (S2 to S4).
The vacuum constriction device consists of a vacuum cylinder, various sizes of tension rings, and a vacuum pump, either hand-operated or electric. The penis is placed in a cylinder to which a tension ring is attached. Air is evacuated from the cylinder by means of the pump, creating a vacuum, which produces the erection. The cylinder is removed, leaving the tension ring at the base of the penis to maintain the erection.
The main surgical treatment of ED involves insertion of a penile implant (also called penile prostheses). Because penile vascular surgery is not recommended for aging males who have failed oral PDE5 inhibitors, ICI or IU therapies, implants are the next step for these patients. Although placement of a penile implant is a surgery which carries risks, they have the highest rates of success and satisfaction among ED treatment options.
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. 
These medications don’t work for everyone but they are easy to use and work for around 60% of people who try them. They work by making it easier to get an erection by reducing the effect of (inhibiting) the chemical PDE-5. This chemical is used in the body to make sure there isn’t too much blood in the penis during an erection, but if you have erectile dysfunction then this chemical ends up over-compensating.
Penile prostheses are very effective, and most patients who have a prosthesis placed are satisfied with the prosthesis. However, placement of a prosthesis causes scarring of the tissue within the corpora cavernosa, and if the prosthesis requires removal, other forms of therapy, except for the vacuum device, are often not effective. Thus, most physicians reserve placement of a prosthesis for men who have tried and failed or have contraindications to other therapies.
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. 
Cavallini, G., Modenini, F., Vitali, G., & Koverech, A. (2005, November). Acetyl-L-carnitine plus propionyl-L-carnitine improve efficacy of sildenafil in treatment of erectile dysfunction after bilateral nerve-sparing radical retropubic prostatectomy. Urology, 66(5), 1080-5. Retrieved from http://www.sciencedirect.com/science/article/pii/S0090429505006515
Q. I started to suffer from erectile dysfunction? Why is this happening and what can I do to treat it? I am a healthy 52 year old. I have hypertension but i take pills to treat it and my levels are around 130/80. except that I am at great shape. In the last few months I feel that a problem in my sex life. I want to have sex but i can't due to erectile dysfunction. What can be the reason for this? and more important what can I do?
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.
Following a detailed discussion about the history of erectile dysfunction and its risk factors, your doctor will examine the testicles and penis to help determine the cause of erectile dysfunction. Your doctor will check reflexes and pulses in the area to see if problems with blood vessels or nerves are contributing to the erectile dysfunction. If necessary, your doctor will order tests to help diagnose erectile dysfunction.
Can apple cider vinegar treat erectile dysfunction? Apple cider vinegar is thought to have many health benefits, but can it help treat erectile dysfunction (ED)? ED can result from cardiovascular problems, diabetes, and other factors. Apple cider vinegar may help improve symptoms of conditions related to ED. Find out how it may help, and how to use it safely. Read now
ED can also occur as a side effect of some medications, for example some high blood pressure medications such as certain diuretics and beta blockers. If you think that a medication you are taking has a negative effect on your sex life, you should discuss this with your prescribing doctor. Your doctor may be able to recommend an alternative treatment.
Before taking any medication for erectile dysfunction, including over-the-counter supplements and herbal remedies, get your doctor's OK. Medications for erectile dysfunction do not work in all men and might be less effective in certain conditions, such as after prostate surgery or if you have diabetes. Some medications might also be dangerous if you:
There are, as you listen to all of the advertisements, if your erection lasts for more than four hours, there are very, very unusual cases where that can happen. There are very rare cases of visual problems. There are even rarer cases of hearing problems. But with every medication, there always a potential downside. But the absolute contraindication is an unstable medical condition, an unstable cardiovascular condition, being on nitrates.
In some cases, ED can be a warning sign of more serious disease. One study suggests ED is a strong predictor of heart attack, stroke, and death from cardiovascular disease. The researchers say all men diagnosed with ED should be evaluated for cardiovascular disease. This does not mean every man with ED will develop heart disease, or that every man with heart disease has ED, but patients should be aware of the link.