Healthy lifestyle minimizes risk of ED. Erection depends on blood flow through the penis. Anything that impairs it increases ED risk: smoking, diabetes, high cholesterol, high blood pressure, heart disease, being overweight, sedentary lifestyle, more than two alcoholic drinks a day, and fewer than five daily servings of fruits and vegetables. Avoiding these risk factors does not prevent post-50 erection changes, but it preserves erection function and helps prevent ED.
#6 It’s performance anxiety. Many men suffer from performance anxiety, and that’s another reason you can’t get hard. Simply put, you’re too nervous to get your dick up. And that’s okay, it happens! This is likely to happen if you haven’t had sex in a while or if you’re starting up with a new partner. Sex is supposed to be fun, but worrying over your prowess between the sheets can make sex the exact opposite of what’s it’s supposed to be. [Read: 13 ways to overcome sexual anxiety and perform]
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. 
Certain types of blood pressure medications, antiulcer drugs, antihistamines, tranquilizers (especially before intercourse), antifungals (hetoconazole), antipsychotics, antianxiety drugs, and antidepressants, known as selective serotonin reuptake inhibitors (SSRIs, including Prozac and Paxil), can interfere with erectile function. Smoking, excessive alcohol consumption, and illicit drug use may also contribute. In rare cases, low levels of the male hormone testosterone may contribute to erectile failure. Finally, psychological factors, such as stress, guilt, or anxiety, may also play a role, even when the impotence is primarily due to organic causes.
Psychotherapy, marital counseling, or sex therapy may be helpful in treating cases of impotence that have psychological or emotional causes. A range of other treatments exists for cases of impotence that arise from purely physiological causes. These treatments include vacuum devices, penile injections, and penile implants. These mechanical or physically invasive approaches have largely been superseded, however, by the drug sildenafil citrate (trade name Viagra), which is taken in pill form. This drug works by enhancing the effects of nitric oxide, a chemical that, upon sexual stimulation, is normally released to widen the blood vessels supplying the penis. The increased flow of blood through those vessels into certain tissues in the penis causes an erection. See also sexual dysfunction.
An alprostadil cream that patients apply into the tip of the penis (the urethral meatus, the opening that urine passes through) is currently available in the UK and Europe. It is currently under review by the U.S. Food and Drug Administration (FDA). After application of the cream, an erection occurs within five to 30 minutes, and the erection lasts one to two hours in men who respond to the cream. Doctors recommend that one use the cream for a maximum frequency of two to three times per week and no more frequent than once every 24 hours. It has essentially the same contraindications and side effects as the other formulations of alprostadil. The cream may cause vaginal burning in roughly 4% of partners. Men should not use alprostadil cream for sexual intercourse with women of childbearing potential unless a condom is used. Researchers have performed controlled trial studies to evaluate the safety and effectiveness of this drug. Overall, 52% of men reported improvement in their erections compared to 20% of men receiving placebo. A later analysis demonstrated that 36% of men using the alprostadil cream had a clinically relevant improvement in vaginal penetration ability and 31% clinically relevant improvement in ability to have successful intercourse to ejaculation.
Drugs for treating impotence can be taken orally or injected directly into the penis or inserted into the urethra at the tip of the penis. Oral testosterone can reduce impotence in some men with low levels of natural testosterone. Patients also have claimed effectiveness of other oral drugs--including yohimbine hydrochloride, dopamine and serotonin agonists, and trazodone--but no scientific studies have proved the effectiveness of these drugs in relieving impotence. Some observed improvements following their use may be examples of the placebo effect, that is, a change that results simply from the patient's believing that an improvement will occur.
In a randomized double-blind, parallel, placebo-controlled trial, sildenafil plus testosterone was not superior to sildenafil plus placebo in improving erectile function in men with ED and low testosterone levels.  The objective of the study was to determine whether the addition of testosterone to sildenafil therapy improves erectile response in men with ED and low testosterone levels.
Prostate cancer isn’t considered a cause of ED on its own, but radiation treatments, hormone therapy, and surgery to remove the entire prostate gland can lead to difficulty in getting or keeping an erection. Sometimes erectile dysfunction related to prostate cancer treatment is only temporary, but many guys experience ongoing difficulties that need to be addressed by other means.
As blood flows into the penis, the corpora cavernosa swell, and this swelling compresses the veins (blood vessels that drain the blood out of the penis) against the tunica albuginea. Compression of the veins prevents blood from leaving the penis. This creates a hard erection. When the amount of cGMP decreases by the action of a chemical called phosphodiesterase type 5 (PDE5), the muscles in the penis tighten, and the blood flow into the penis decreases. With less blood coming into the penis, the veins are not compressed, allowing blood to drain out of the penis, and the erection goes down.
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.
Sexual dysfunction and ED become more common as men age. The percentage of complete ED increases from 5% to 15% as age increases from 40 to 70 years. But this does not mean growing older is the end of your sex life. ED can be treated at any age. Also, ED may be more common in Hispanic men and in those with a history of diabetes, obesity, smoking, and hypertension. Research shows that African-American men sought medical care for ED twice the rate of other racial groups.