In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
Physicians make a diagnosis of erectile dysfunction in men who complain of troubles having a hard enough erection or a hard erection that does not last long enough. It is important as you talk with your doctor that you be candid in terms of when your troubles started, how bothersome your erectile dysfunction is, how severe it is, and discuss all your medical conditions along with all prescribed and nonprescribed medications that you are taking. Your doctor will ask several questions to determine if your symptoms are suggestive of erectile dysfunction and to assess its severity and possible causes. Your doctor will try to get information to answer the following questions:
The bad news: Men with diabetes are three times more likely to report having problems with sex than non-diabetic men. The most common sexual problem is Erectile Dysfunction, or ED, sometimes called impotence. Even worse, because ED is such a private issue, many men feel embarrassed to discuss the problem with their doctor, or even their partner, so the problem is never addressed.
Farag YM, Guallar E, Zhao D, Kalyani RR, Blaha MJ, Feldman DI, Martin SS, Lutsey PL, Billups KL, Michos ED. Vitamin D deficiency is independently associated with greater prevalence of erectile dysfunction: The National Health and Nutrition Examination Survey (NHANES) 2001-2004. Atherosclerosis. 2016 Sep;252:61-7. doi: 10.1016/j.atherosclerosis.2016.07.921. Epub 2016 Jul 29.
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.
Side effects include lightheadedness, fainting, priapism, urethral bleeding (intraurethral), dyspareunia in the partner (intraurethral), hematoma (intracavernosal) or penile curvature secondary to scar (intracavernosal). Efficacy of intraurethral alprostadil has been demonstrated to be around 50% ("able to have intercourse") in randomized controlled trials.31,32 For intracorporeal injection, typically alprostadil is tried alone, or compounded with papaverine (nonspecific phosphodiesterase inhibitor that increases intracellular cyclic adenosine monophosphate and cGMP) and/or phentolamine (competitive, non-selective alpha1- and alpha2-adrenoreceptor blocker). Pinsky et al33 reported an extensive review of the benefits and drawbacks of the combinations of these drugs.
Erectile dysfunction (ED) is the inability to get and keep an erection firm enough for sexual intercourse. Estimates suggest that one of every 10 men will suffer from ED at some point during his lifetime. It is important to understand that in most cases, ED is a symptom of another, underlying problem. ED is not considered normal at any age, and may be associated with other problems that interfere with sexual intercourse, such as lack of desire and problems with orgasm and ejaculation.
However, in contrast, a recent systematic review of published studies, the authors concluded that overall, the addition of testosterone to PDE-5 inhibitors might benefit patients with ED associated with testosterone levels of less than 300 ng/dL (10.4 nmol/L) who failed monotherapy.  A limitation of existing studies are their heterogeneous nature and methodological drawbacks.
The availability of phosphodiesterase-5 (PDE5) inhibitors—sildenafil, vardenafil, tadalafil, and avanafil—has fundamentally altered the medical management of ED. In addition, direct-to-consumer marketing of these agents over the last 15 years has increased the general public’s awareness of ED as a medical condition with underlying causes and effective treatments.
In the short term, alcohol relaxes muscles in the penis, letting blood to flow in (which is a good thing). However, alcohol also prevents other blood vessels from closing and trapping all the extra blood. Erections depend on trapping increased blood flow in the erectile tissue of the penis. If you don’t trap that extra blood, you don’t get an erection. In the long run, excessive alcohol consumption can cause liver scarring, high blood pressure, and can damage your blood vessels resulting in erectile dysfunction.
A vacuum erection device is a plastic tube that slips over the penis, making a seal with the skin of the body. A pump at the other end of the tube makes a low-pressure vacuum around the erectile tissue, which results in an erection. An elastic ring is then slipped onto the base of the penis. This holds the blood in the penis (and keeps it hard) for up to 30 minutes. With proper training, 75 out of 100 men can get a working erection using a vacuum erection device.