Relation between erectile dysfunction prevalence and type of coronary syndrome (A). Time interval (months) between erectile dysfunction and coronary artery disease symptom onset in chronic coronary syndrome according to the number of vessels involved (B). ACS, acute coronary syndrome; CCS, chronic coronary syndrome, G1: ACS and 1-VD; G2: ACS and 2-,3-VD; G3: CCS. VD, vessel disease; C: the control group with normal coronary angiography. With permission from Montorsi et al.15
Powerful clinical and scientific experience suggests a close link between erectile dysfunction and heart disease. Studies like the Health Professionals Follow-up Study have revealed the risk factors for erectile dysfunction to be very similar to those for heart disease. Hypertension, smoking, diabetes, high cholesterol, obesity, and physical inactivity all strongly predict sexual dysfunction in men, as they do heart disease.1
Crossref | PubMed | Scopus (24) | Google ScholarSee all References Almost every class of antihyper-tensive medication has been implicated in causing ED; however, most of these studies, published as case reports or patient surveys, have been relatively subjective and uncontrolled.4x4Feldman, HA, Goldstein, I, Hatzichristou, DG, Krane, RJ, and McKinlay, JB. Impotence and its medical and psychosocial correlates: results of the Massachusetts Male Aging Study. J Urol. 1994; 151: 54–61

The safety of PDE5 inhibitors in patients with IHD has been shown in multiple trials. Arruda-Olson et al. investigated the safety of sildenafil during exercise stress tests in patients with IHD to ascertain whether the drug induces or exacerbates myocardial ischaemia. This was a prospective, randomised crossover study that demonstrated safety of sildenafil when given 1 hour before an exercise stress test.69 Another study that investigated 120 trials of sildenafil revealed that the rates of MI and cardiovascular death with sildenafil are as low as with placebo.70
Erne P,  Schoenenberger AW,  Zuber M,  Burckhardt D,  Kiowski W,  Dubach P,  Resink T,  Pfisterer M. Effects of anti-ischaemic drug therapy in silent myocardial ischaemia type I: the Swiss Interventional Study on Silent Ischaemia type I (SWISSI I): a randomized, controlled pilot study, Eur Heart J , 2007, vol. 28 (pg. 2110-2117)https://doi.org/10.1093/eurheartj/ehm273

If you take a diuretic, you should stay on it until high blood pressure is under control. If erection problems persist, or blood pressure goes back up, then your doctor might switch to a drug that's less likely to cause erectile dysfunction. Or, a combination of medications might work better to control high blood pressure and lower the risk of erectile dysfunction.
Unfortunately, government agencies often are slow to respond to new scientific information and economic and political forces make it difficult for our population to receive clear information informing them that heart disease is nutritionally induced and totally avoidable with dietary excellence. Sadly, even the American Heart Association advocates a diet that has been shown to actually increase heart disease.
According to the Mayo Clinic, oral medications are usually the first-line treatment for ED. Those medications include Sildenafil (Viagra), vardenafil (Levitra, Staxyn), tadalafil (Cialis) and avanafil (Stendra). They operate by helping relax muscles in the penis by strengthening the effects of nitric oxide, a naturally occurring chemical in the body. The drugs increase blood flow to allow patients to get an erection.
For those patients who cannot take erectile dysfunction medications, the authors counsel that an exercise training regimen may be an appropriate substitute therapy to enhance sexual function and quality of life. The authors stress that clinicians should focus on the sexual activity history of chronic heart failure patients and not ignore it, since addressing this element can substantially improve their quality of life.
A component of the increased risk conferred by ED could be testosterone deficiency.24 Low testosterone leads to increased levels of total and LDL cholesterol, as well as to increased production of pro-inflammatory markers and mediators.25 Endothelial dysfunction and increased arterial wall thickness, stiffening, and calcification also ensue. On this basis it has been hypothesized that chronically lowered testosterone may increase CVD risk. Indeed, androgen deficiency has emerged as a predictor of CV events, as well as of all-cause and CV mortality, both in the general population and in patients with CV risk factors, with hypertension, with established CVD, and with ED.26 Viewed from the opposite angle, higher serum testosterone showed a protective role for CV events in elderly men.27 A 2010 meta-analysis limited to studies in middle-aged men found no association between total testosterone (TT) levels and CVD risk.28 However, a more recent meta-analysis involving a larger number of studies identified significant associations between androgen deficiency and increased risk of CVD and CVD mortality.29 It should be stressed, however, that the nature of these studies cannot prove causality. The possibility that low testosterone may be an epiphenomenon, marking poor general health rather than modulating CVD risk per se has to be explored.
Crossref | PubMed | Scopus (35) | Google ScholarSee all References Also, if lower blood pressure level was the primary etiology of ED, all classes of antihypertensive agents should be expected to have relatively similar effects on erectile function because of their efficacy in lowering pressure, which has not been seen.6x6Kloner, RA. Erectile dysfunction and cardiovascular risk factors. Hosp Pract (Off Ed). 2001; 36: 41–44 (49-51.)

Diabetes is known to sabotage two body parts that provide essential components of an erection: nerves and blood vessels. Studies suggest that diabetic nerve damage (neuropathy) is the most important risk factor for ED in people with diabetes. If pelvic nerves that trigger penis muscles to relax are impaired, there may be a break in the chain between brain and penis, disrupting erection. Some researchers suspect that an inadequate supply of oxygen to the nerves causes this damage.
Abstract | Full Text PDF | PubMed | Scopus (1528) | Google ScholarSee all References After sexual intercourse, this risk increases approximately 2-fold, to 2 chances per million per hour, but only for the 2 hours after intercourse. For low-risk patients with no history of cardiovascular disease and an annual myocardial infarction risk of 1% per year, the risk increases to 1.01% with weekly sexual activity.8x8Muller, JE, Mittleman, A, Maclure, M, Sherwood, JB, Tofler, GH, and Determinants of Myocardial Infarction Onset Study Investigators. Triggering myocardial infarction by sexual activity: low absolute risk and prevention by regular physical exertion. JAMA. 1996; 275: 1405–1409

No matter what the cause of erectile dysfunction, it is likely to cause feelings of stress and other emotional reactions. It’s also not uncommon for erection problems to cause tension in a relationship, particularly if one or both partners withdraws emotionally and the problem is not talked about. And it’s possible for a man’s renewed ability to have intercourse after a period of no sexual activity to stir up relationship issues.
×