A variety of lifestyle choices can affect the ability to achieve and maintain an erection, so preventing ED is possible in some cases. Men are encouraged to manage chronic health problems with their doctors and to exercise regularly. They also should avoid smoking and excess alcohol and get help for anxiety or depression, according to the Mayo Clinic.
Trauma to the pelvic blood vessels or nerves can also lead result in ED. Bicycle riding for long periods has been implicated as an etiologic factor; direct compression of the perineum by the bicycle seat may cause vascular and nerve injury.  On the other hand, bicycling for less than 3 hours per week may be somewhat protective against ED.  Some of the newer bicycle seats have been designed to diminish pressure on the perineum. [37, 38]
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.
ED may occur with or without other sexual dysfunction, including decreased libido (decreased interest in sexual activity), orgasmic dysfunction (troubles achieving an orgasm/climax), and ejaculatory dysfunction (problems with the fluid released during sex, including lack of ejaculation [anejaculation], small volume ejaculate, ejaculation that occurs too quickly [premature ejaculation], ejaculate that goes backward into the bladder [retrograde ejaculation] and pain with ejaculation).
The inability to achieve or sustain a sufficiently firm penile erection (tumescence) to allow normal vaginal sexual intercourse. The great majority of cases are not caused by organic disease and most men experience occasional periods of impotence. It is often related to anxiety about performance and is usually readily corrected by simple counselling methods which prescribe sensual massage but forbid coitus. Organic impotence may be caused by DIABETES, MULTIPLE SCLEROSIS, spinal cord disorders and heart disease. Many cases can be helped by the drug SILDENAFIL (Viagra).
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.
If PDE-5 inhibitors are not suitable or don’t work, other therapies include injections into the base of the penis, which cause flow of blood into the penis and a fairly immediate erection that lasts around an hour. The drugs injected are alprostadil (Caverject and Erectile dysfunctionex) and Invicorp (VIP and phentolamine). Alprostadil may also be inserted as a gel into the opening of the penis. This is not suitable if your partner is pregnant.
The vascular processes that produce an erection are controlled by the nervous system and certain prescription medications may have the side effect of interfering with necessary nerve signals. Among the possible culprits are a variety of stimulants, sedatives, diuretics, antihistamines, and drugs to treat high blood pressure, cancer, or depression. But never stop a medication unless your doctor tells you to. In addition, alcohol, tobacco, and illegal drugs, such as marijuana, may contribute to the dysfunction.
Both ED and low testosterone (hypogonadism) increase with age. The incidence of the latter is 40% in men aged 45 years and older.  Testosterone is known to be important in mood, cognition, vitality, bone health, and muscle and fat composition. It also plays a key role in sexual dysfunction (eg, low libido, poor erection quality, ejaculatory or orgasmic dysfunction, reduced spontaneous erections, or reduced sexual activity). 
When it comes to boosting sexual performance, many men will walk all over God’s green earth looking for ways to maintain a good sex life. Luckily men, all you have to do is walk — not run — 2 miles a day. This, along with other healthier lifestyle interventions can help obese men reduce their risk of ED, or even “reverse” current impotence, according to a 2005 study. This comes of importance, since maintaining a trim waistline is a good defense for ED, as men with a 42-inch waist are 50 percent more likely to have ED than those with a 32-inch waist. Getting to a healthy weight and maintaining it is a good strategy for preventing and treating ED.
Erectile dysfunction is known to be associated with general health status, thus, lifestyle modification improves erectile function and decreases the rate of decline of function with aging. One year after discontinuation of smoking, patients were found to have a 25% improvement in erectile quality.16 In addition, multivariate analysis found obesity is associated with erectile dysfunction with an approximately 50% increase in ED in obese men as compared with normal weight men.17
"The good news is, our study also found that a large proportion of men were naturally overcoming erectile dysfunction issues. The remission rate of those with erectile dysfunction was 29%, which is very high. This shows that many of these factors affecting men are modifiable, offering them an opportunity to do something about their condition," Professor Wittert says.
An occasional problem achieving an erection is nothing to worry about. But failure to do so more than 50% of the time at any age may indicate a condition that needs treatment. About 40% of men in their 40s report at least occasional problems getting and maintaining erections. So do more than half (52%) of men aged 40 to 70, and about 70% of men in their 70s.
If a trial of oral therapy and withdrawal of offending medications do not restore erectile function or if a patient has medical or financial contraindications to pharmacologic therapy, most primary care practitioners should consider referring the patient to a specialist for additional evaluation and discussion of alternative treatment options. However, some primary care practitioners may recommend vacuum constriction devices.
Alprostadil is injected into the side of penis with a very fine needle. It's of great value to have the first shot in the doctor's office before doing this on your own. Self-injection lessons should be given in your doctor's office by an experienced professional. The success rate for getting an erection firm enough to have sex is as high as 85% with this treatment. Many men who do not respond to oral PDE5 inhibitors can be ‘rescued' with ICI.