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.
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.
Erections occur in response to tactile, olfactory, and visual stimuli. The ability to achieve and maintain a full erection depends not only on the penile portion of the process but also on the status of the peripheral nerves, the integrity of the vascular supply, and biochemical events within the corpora. The autonomic nervous system is involved in erection, orgasm, and tumescence. The parasympathetic nervous system is primarily involved in sustaining and maintaining an erection, which is derived from S2-S4 nerve roots.
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. 
There have been some studies to suggest that a placebo effect that improves ED may work for some men. One study found that men taking an oral placebo pill showed as much improvement in ED symptoms as men who took actual medication to improve ED. Conversely, men who were given therapeutic suggestions to improve ED did not see signs of symptom improvement.
Vardenafil and tadalafil belong to the same group of chemical compounds as sildenafil, namely phos-phodiesterase type 5 (PDE-5) inhibitors. Some men cannot benefit from sildenafil or the two newer PDE-5 inhibitors because they have low levels of nitric oxide. British investigators reported in late 2002 that three different types of compounds are being studied as possible medications for men with low levels of nitric oxide. They are Rho-kinase inhibitors, soluble guanylate cyclase activators, and nitric oxide-releasing PDE-5 inhibitors.
Qaseem, A., Snow, V., Denberg, T. D., Casey, D. E., Forciea, M. A., Owens, D. K., & Shekelle, P. (2009). Hormonal testing and pharmacologic treatment of erectile dysfunction: A clinical practice guideline from the American College of Physicians. Annals of internal medicine, 151(9), 639-649. Retrieved from http://annals.org/aim/article/745155/hormonal-testing-pharmacologic-treatment-erectile-dysfunction-clinical-practice-guideline-from
Dr Kenny du Toit is a urologist practicing in Rondebosch, Cape Town. He is also consultant at Tygerberg hospital, where he is a senior lecturer at Stellenbosch University. He is a member of the South African Urological Association, Colleges of Medicine South Africa and Société Internationale d’Urologie. Board registered with both the HPCSA (Health professions council of South Africa) and GMC (General medical council UK). He has a keen interest in oncology, kidney stones and erectile dysfunction.http://www.dutoiturology.co.za
Experiencing ED can also be a reason to try not penetrative sex. Try planning a sex session with your partner hat isn't focused on your erection at all. Things like kissing, licking, sucking, foreplay and teasing all are super stimulating and don't focus on penetration. Feel free to bring each other to orgasm using these ideas and see if you are able to relax and enjoy the experience. Many men feel like failures when their erections become unreliable. Having a few successful sexual sessions that lead to orgasm without penetration can put the fun back into having sex. Many couples find success using this technique and begin to reengage sexually instead of avoiding being sexual for fear of failure.