In medical terms, ED stands for erectile dysfunction, the persistent inability to achieve or maintain an erection firm enough for sexual intercourse. It is one of the most common sexual health conditions in men, affecting roughly 39% of men by age 40 and 67% by age 70 to some degree. ED is classified in medical records under the diagnostic code N52.9, and while it’s often thought of as an older man’s problem, it can occur at any age and frequently signals underlying health issues worth investigating.
How an Erection Works
An erection is a vascular event. When a man becomes sexually aroused, nerve signals trigger the release of a chemical messenger called nitric oxide in the penile tissue. Nitric oxide sets off a chain reaction that produces a second molecule (cyclic GMP), which relaxes the smooth muscle cells lining the blood vessels and spongy tissue inside the penis. This relaxation allows the penile arteries to open wide, flooding the tissue with blood. At the same time, the expanding tissue compresses the veins that normally drain blood away, trapping it inside and producing rigidity.
ED happens when any step in this chain breaks down. The arteries may not open fully, the smooth muscle may not relax, the nerve signals may be weak or absent, or the veins may leak blood before sufficient pressure builds. Understanding this process matters because it explains why so many different conditions, from diabetes to anxiety, can cause the same symptom.
Physical Causes
The majority of ED cases, especially in men over 50, have a physical origin. The most common culprit is vascular disease. Hardening of the arteries (arteriosclerosis) restricts blood flow to the penis the same way it restricts flow to the heart. This is why ED and heart disease share so many risk factors: high blood pressure, high cholesterol, smoking, obesity, and a sedentary lifestyle.
Diabetes deserves special mention because it attacks from two directions at once. It accelerates artery hardening earlier and more severely than usual, and it damages the peripheral nerves responsible for triggering erections. Other neurological causes include multiple sclerosis, spinal cord injuries, heavy metal poisoning, chronic alcoholism, and nerve damage from pelvic surgeries such as prostate removal.
Over time, the smooth muscle tissue inside the penis can also deteriorate. When this tissue wastes away or becomes fibrous, it loses its ability to expand and compress the veins properly. This is sometimes called “venous leak,” though the real problem is the muscle malfunction rather than the veins themselves.
Hormonal imbalances play a role as well, though less often than people assume. Low testosterone can contribute to ED but is rarely the sole cause. Other hormonal triggers include elevated prolactin levels, thyroid disorders, and hormone therapies used for prostate cancer. Steroid abuse in bodybuilders is another recognized cause.
Psychological Causes
When ED stems predominantly from psychological or interpersonal factors, it’s classified as psychogenic erectile dysfunction. The hallmark difference is context: a man with psychogenic ED may still get erections during sleep or with masturbation but not during partnered sex. Clinicians sometimes measure overnight erections to help distinguish psychological from physical causes.
Performance anxiety is the most widely recognized psychological trigger. First described by the sex researchers Masters and Johnson, it involves a man mentally “spectating” during sex, monitoring his own arousal rather than experiencing it, which creates a self-defeating cycle. Relationship conflict, lack of adequate stimulation, depression, and anxiety disorders all contribute as well.
Data from the Massachusetts Male Aging Study found that men reporting depressive symptoms were nearly three times more likely to have ED. A pessimistic outlook on life nearly quadrupled the odds. The National Health and Social Life Survey found that emotional stress more than tripled the risk, and even socioeconomic factors like a recent drop in household income were significantly associated with new-onset ED. In many cases, physical and psychological factors overlap, producing what clinicians call mixed organic-psychogenic ED.
How ED Is Diagnosed
Diagnosis typically starts with a medical history and physical exam. Doctors often use a standardized five-question survey called the IIEF-5 (International Index of Erectile Function). Each question is scored, and the total falls into one of five categories:
- 22 to 25: No ED
- 17 to 21: Mild ED
- 12 to 16: Mild to moderate ED
- 8 to 11: Moderate ED
- 1 to 7: Severe ED
Blood tests may be ordered to check testosterone levels, blood sugar, cholesterol, and thyroid function. These help identify or rule out underlying conditions. If the clinical picture suggests psychogenic ED, overnight monitoring of erections during sleep can confirm that the physical machinery still works.
ED as a Cardiovascular Warning Sign
One of the most important things to understand about ED is that it can be an early warning sign of heart disease. The arteries supplying the penis are smaller than coronary arteries, so they tend to show the effects of arteriosclerosis sooner. Research published by the American Heart Association tracked over 1,700 men without prior cardiovascular disease and found that those with ED had a meaningfully higher rate of heart attacks and other cardiovascular events over the following four years. For men under 60, new-onset ED with no obvious psychological explanation is a reason to get a cardiovascular workup, not just a prescription for an erection pill.
First-Line Treatment
The most commonly prescribed medications for ED are PDE5 inhibitors, a class of drugs that work by blocking the enzyme that breaks down cyclic GMP, the molecule responsible for relaxing penile smooth muscle. By keeping cyclic GMP levels elevated, these medications make it easier to achieve and maintain an erection in response to sexual stimulation. They do not cause spontaneous erections on their own.
The most well-known options in this class differ mainly in how long they last. One (sildenafil) works for about four to six hours, while another (tadalafil) can remain effective for up to 36 hours, which is why it’s sometimes taken daily at a lower dose rather than on demand. Common side effects across the class include headache, flushed skin, nasal congestion, and occasionally dizziness from a drop in blood pressure. Tadalafil is more associated with muscle aches, while sildenafil at higher doses can temporarily cause a blue tint to vision. These medications cannot be used safely with certain heart drugs, particularly nitrates.
When Medications Don’t Work
If oral medications fail, other options exist. Vacuum erection devices use negative pressure to draw blood into the penis, with a constriction band placed at the base to maintain the erection. Injections directly into the penile tissue can produce erections independent of the nerve signaling pathway, which makes them useful for men with nerve damage.
For men who don’t respond to any of these approaches, penile implants (prostheses) are the most definitive solution. Two main types exist: semi-rigid rods that keep the penis firm at all times (it’s simply bent into position when needed) and inflatable devices with a pump placed in the scrotum that fills cylinders inside the penis on demand. A study of 883 men who received implants found that couples’ satisfaction was significantly higher with inflatable models than with semi-rigid ones. Only 0.2% of men with a three-piece inflatable device chose to switch to a different type, compared to 7.7% of men with semi-rigid implants who upgraded to inflatable ones. The trade-off is that inflatable devices have a slightly higher rate of mechanical malfunction (5.5%) requiring revision surgery.
Lifestyle Changes That Help
Because ED so often traces back to vascular health, the same lifestyle changes that protect your heart also protect erectile function. Regular aerobic exercise improves blood flow and endothelial function. Losing excess weight reduces inflammation and can improve testosterone levels. Quitting smoking removes a direct source of arterial damage. Reducing alcohol consumption helps both nerve function and hormonal balance. For men with mild to moderate ED, these changes alone can sometimes restore function, and they improve the effectiveness of medications for men who need them.

