Erectile dysfunction, or the inability to get or maintain an erection firm enough for sex, affects a surprisingly large number of men. Among healthy men with no other medical conditions, about 10% experience it by age 40, rising to 20% by age 50 and 68% by age 75. The causes range from blood vessel problems and hormonal shifts to stress, medications, and nerve damage. In most cases, the issue is treatable once the underlying cause is identified.
How Erections Work
An erection depends on a chain reaction between your brain, nerves, hormones, and blood vessels. When you become aroused, nerve signals trigger the release of a chemical called nitric oxide inside the penis. Nitric oxide relaxes the smooth muscle tissue in two sponge-like chambers that run the length of the shaft. As that muscle relaxes, blood rushes in, filling the chambers and creating pressure that produces firmness.
Anything that disrupts this chain, whether it’s restricted blood flow, damaged nerves, hormonal imbalance, or a mental block on arousal signals, can prevent an erection from happening or cause it to fade too quickly.
Blood Vessel and Heart Problems
The most common physical cause of erectile dysfunction is poor blood flow, and it starts with damage to the inner lining of blood vessels (called the endothelium). When this lining stops functioning properly, it reduces blood flow throughout the body, including to the penis. Over time, this damage leads to plaque buildup in the arteries, a condition known as atherosclerosis.
This is why erectile dysfunction and heart disease are closely linked. Both conditions begin with the same underlying process. The arteries supplying the penis are smaller than those feeding the heart, so restricted blood flow often shows up as erection problems before it causes chest pain or other cardiac symptoms. High blood pressure, high cholesterol, and smoking all accelerate this vascular damage. For men with hypertension, obesity, and diabetes combined, the probability of erectile dysfunction at age 50 jumps from 20% (in healthy men) to 41%.
Diabetes and Nerve Damage
Diabetes is one of the strongest risk factors for erectile dysfunction because it attacks the problem from two directions. Chronically elevated blood sugar damages both the small blood vessels that supply the penis and the nerves that carry arousal signals to it. This combination of vascular and nerve damage makes erections progressively harder to achieve or maintain.
Diabetic neuropathy is actually the single most common neurological cause of erectile dysfunction. The longer blood sugar remains poorly controlled, the more extensive the damage becomes. Men with diabetes who keep their blood sugar, blood pressure, and cholesterol well managed tend to preserve erectile function longer than those who don’t.
Low Testosterone
Testosterone plays a role in sex drive and helps maintain the tissue and chemical pathways involved in erections. Levels naturally decline with age, but when they drop below a certain threshold, problems can follow. European urology guidelines define low testosterone as a total level below about 12 nmol/L (roughly 346 ng/dL), with severe deficiency below 8 nmol/L (about 231 ng/dL).
Low testosterone doesn’t always cause erectile dysfunction directly. More often, it reduces desire, which means fewer arousal signals reaching the penis in the first place. When testosterone is severely low, the effect on erections is more pronounced, and men in that range tend to see more improvement when the deficiency is corrected. Fatigue, loss of muscle mass, mood changes, and reduced body hair often accompany low testosterone and can help signal the problem.
Psychological and Emotional Causes
Erections start in the brain, so mental and emotional factors can shut the process down before it begins. Data from the Massachusetts Male Aging Study found that men reporting depressive symptoms were nearly three times more likely to have erectile dysfunction, and those with a generally pessimistic outlook were almost four times more likely. Emotional stress carried a similarly strong association, with a 3.5 times greater risk.
Performance anxiety is one of the most recognized psychological triggers. It creates a cycle: a man worries about whether he’ll be able to perform, which activates a stress response that constricts blood vessels and suppresses arousal, which then confirms the fear and reinforces it for next time. This “spectator role,” where someone mentally monitors their own performance instead of being present during sex, was first described by Masters and Johnson and remains a central concept in sex therapy.
Relationship conflicts, low self-esteem, a history of sexual trauma, and untreated depression or anxiety disorders all contribute. Psychogenic erectile dysfunction frequently overlaps with reduced desire, and it often coexists with clinical depression or anxiety rather than appearing in isolation.
Neurological Conditions
Because erections require nerve signals traveling between the brain, spinal cord, and penis, any condition that disrupts those pathways can cause problems. Multiple sclerosis is a notable cause, particularly because it tends to appear in younger men (average age around 40), and erectile dysfunction may be one of its earliest symptoms. Parkinson’s disease is also associated with erection difficulties, though this typically develops later in the disease course.
Spinal cord injuries affect erections differently depending on where the damage occurs. Men with upper spinal injuries (in the thoracic region) may still achieve reflex erections from physical touch, while those with lower injuries (lumbar and sacral regions) may respond to mental arousal but not physical stimulation. Damage to the nerves at the very base of the spine (the cauda equina) tends to be the most severe, causing loss of sensation in the pelvic area entirely.
Epilepsy can also contribute, through a different mechanism. Seizure activity in certain brain regions can disrupt hormonal regulation, raising prolactin levels and lowering testosterone. Pelvic surgery, especially radical prostatectomy for prostate cancer, carries a well-known risk of damaging the nerve bundles responsible for erections.
Medications That Interfere
Several widely prescribed medication classes list erectile dysfunction as a side effect. Two of the most common culprits are SSRIs and SNRIs, the antidepressant families that include drugs like sertraline, fluoxetine, paroxetine, and venlafaxine. These medications can reduce sex drive, blunt arousal, and make it harder to achieve or maintain an erection. In some cases, sexual side effects persist even after stopping the medication.
Blood pressure medications, particularly older types like beta-blockers and certain diuretics, can also impair erections by lowering blood pressure to the point where not enough reaches the penis, or by interfering with the nerve signals involved in arousal. If you notice erection problems after starting a new medication, it’s worth discussing alternatives with your prescriber rather than stopping abruptly.
Sleep Apnea
Obstructive sleep apnea, a condition where the airway repeatedly collapses during sleep, has a strikingly strong link to erectile dysfunction. Between 50% and 80% of men with sleep apnea also experience erection problems. The connection likely involves several overlapping factors: repeated drops in blood oxygen during the night damage blood vessel linings, fragment sleep in ways that disrupt testosterone production, and increase overall inflammation.
Many men with sleep apnea don’t realize they have it. Loud snoring, waking up gasping, morning headaches, and daytime fatigue are common signs. Treating sleep apnea can improve erectile function in some men, sometimes enough to resolve the issue without additional treatment.
Lifestyle Factors
Smoking directly damages blood vessel linings and accelerates plaque buildup, making it one of the most modifiable risk factors for erectile dysfunction. Heavy alcohol use suppresses the nervous system and, over time, can cause nerve damage and hormonal disruption. Obesity contributes through multiple pathways: it increases the risk of diabetes, raises blood pressure, promotes inflammation, and lowers testosterone by converting it to estrogen in fat tissue.
Sedentary habits compound these risks. Regular physical activity improves blood vessel health, helps regulate blood sugar, supports healthy testosterone levels, and reduces stress. For men whose erectile dysfunction stems from early vascular damage or mild hormonal shifts, consistent exercise and weight management can produce meaningful improvement on their own.