What Is Erectile Dysfunction? Causes and Treatment

Erectile dysfunction (ED) is the persistent inability to achieve or maintain an erection firm enough for satisfying sexual activity. It affects roughly 22% of men at age 40 and 49% by age 70, making it one of the most common sexual health concerns men face. While occasional difficulty with erections is normal, ongoing problems typically signal something worth paying attention to, whether that’s a circulatory issue, a hormonal shift, stress, or a combination of factors working together.

How an Erection Works

An erection is fundamentally a blood flow event controlled by your nervous system. When you become aroused, nerve endings and blood vessel walls inside the penis release a signaling molecule called nitric oxide. This molecule triggers a chain reaction: it activates an enzyme that produces a second messenger molecule, which in turn causes the smooth muscle lining the penile blood vessels to relax. As that muscle relaxes, the vessels dilate and blood rushes in, filling two sponge-like chambers that run the length of the penis. The expanding chambers compress the veins that normally drain blood away, trapping it inside and creating rigidity.

The entire process depends on healthy blood vessels, functioning nerves, adequate hormone levels, and the right mental state. A breakdown at any point in this chain can cause ED.

How Common ED Is by Age

Data from the Massachusetts Male Aging Study, one of the largest investigations into ED prevalence, found that about 39% of men experience some degree of erectile difficulty by age 40, rising to 67% by age 70. Roughly 10% of men between 40 and 70 have complete ED, meaning they cannot achieve an erection at all, while an additional 25% deal with moderate or intermittent problems. The Baltimore Longitudinal Study of Aging reported similar patterns: 8% of men under 55, 25% of men at 65, 55% at 75, and 75% at 80 reported erectile impairment.

These numbers make clear that ED becomes more likely with age, but it is not an inevitable part of aging. Many older men maintain healthy erectile function, and many younger men develop problems when risk factors are present.

Physical Causes

Most ED has a physical component. The same conditions that damage blood vessels throughout the body damage the smaller vessels in the penis, often earlier than larger arteries elsewhere. The primary physical risk factors include diabetes, high blood pressure, high cholesterol, cardiovascular disease, obesity, smoking, and physical inactivity.

Diabetes is one of the strongest risk factors. Chronically elevated blood sugar damages the inner lining of blood vessels, reducing their ability to produce nitric oxide and relax on demand. It also accelerates atherosclerosis (the buildup of fatty deposits inside arteries) and damages the small nerve fibers that initiate the erection process. Men with diabetes may experience hormonal shifts and structural changes in penile tissue that compound the problem further.

High blood pressure works through a similar pathway. Sustained pressure damages vessel walls, making them stiffer and less responsive. Over time, the delicate vascular network in the penis loses its ability to dilate fully and trap blood efficiently.

ED as an Early Warning for Heart Disease

Because the arteries supplying the penis are significantly smaller than coronary arteries, they tend to show the effects of vascular damage sooner. ED symptoms typically appear two to three years before coronary artery disease symptoms and three to five years before a cardiovascular event like a heart attack. In studies of men with confirmed heart disease, ED came first in virtually all cases, with an average lead time of about three years.

This window matters. A man in his 40s or 50s who develops ED with no obvious psychological explanation has a meaningful opportunity to get screened for cardiovascular risk factors and address them before a serious event occurs.

Psychological and Mixed Causes

ED is not always rooted in a physical problem. Anxiety, depression, relationship conflict, and performance pressure can all interfere with arousal. The proposed mechanism is that an abnormal anxiety response ramps up the body’s fight-or-flight system, increasing sympathetic nervous activity. This distracts from erotic stimuli and actively counteracts the blood vessel relaxation needed for an erection. Elevated sympathetic tone constricts rather than dilates blood vessels.

Performance anxiety in particular creates a self-reinforcing cycle. One episode of difficulty leads to worry about the next, which increases sympathetic activity during the next encounter, which makes failure more likely. Over time this can erode self-esteem and satisfaction with sexual activity, deepening the problem and sometimes straining communication with a partner.

In practice, many men have both physical and psychological factors at play. A mild vascular issue might go unnoticed until anxiety amplifies it into a noticeable problem. One useful clue: men who still get firm erections during sleep or upon waking likely have intact vascular and nerve function, which points toward a primarily psychological cause. Those who rarely or never wake with erections are more likely dealing with a physical issue.

How Lifestyle Changes Help

For men with mild to moderate ED, especially those who are overweight or sedentary, lifestyle changes can produce measurable improvement. In a study of middle-aged men with vascular ED, 150 minutes per week of aerobic exercise improved erectile function scores significantly within three months, alongside improvements in the health of their blood vessel lining cells.

Weight loss has a particularly strong effect. Losing just 10% of body weight has been associated with increased insulin sensitivity, higher testosterone levels, and meaningful improvements on standardized erectile function questionnaires in both diabetic and non-diabetic men. These improvements tend to continue over time: in one trial, men who maintained their weight loss at one year saw their erectile function scores improve even further compared to the initial three-month mark. In a separate trial of over 300 overweight men with type 2 diabetes, only 8% of those in an intensive lifestyle program saw their erectile function worsen over one year, compared to 22% who received standard care.

Quitting smoking, reducing alcohol, and managing blood sugar and blood pressure all contribute as well, since each of these directly affects the vascular health that erections depend on.

Oral Medications

The most widely used ED treatments are oral medications that work by blocking an enzyme responsible for breaking down the signaling molecule that keeps penile blood vessels relaxed. By slowing the breakdown of that molecule, these drugs amplify the natural erection process when a man is sexually aroused. They do not cause an erection on their own.

The two most commonly prescribed options differ mainly in timing. Sildenafil works within about 30 minutes, though waiting closer to an hour tends to give better results. Its effects last roughly four to six hours. Tadalafil can begin working in as little as 15 to 20 minutes at higher doses and lasts significantly longer, up to 36 hours, which is why it is sometimes taken daily at a lower dose rather than on demand.

The most common side effects across this class of medication are headache, facial flushing, and visual disturbances. Visual changes are more frequently reported with sildenafil because of its slight activity on a related enzyme found in the retina. These side effects are generally mild and temporary.

Other Treatment Options

When oral medications are not effective or cannot be used, several alternatives exist. Current guidelines from the American Urological Association emphasize shared decision-making: rather than following a rigid step-by-step ladder, men should be informed about all available options and choose based on their preferences, the severity of their condition, and any contraindications.

Options beyond oral medication include vacuum erection devices, which use negative pressure to draw blood into the penis and a constriction band to maintain it. Penile injections deliver medication directly into the erectile tissue, bypassing the need for the oral pathway entirely. For men who do not respond to any of these, a surgically implanted penile prosthesis provides a mechanical solution with high satisfaction rates among men who choose it.

For men whose ED has a significant psychological component, therapy focused on reducing performance anxiety, improving partner communication, or treating underlying depression or anxiety can be effective on its own or alongside other treatments. Addressing the mental health side of ED is not a lesser option; for the right person, it targets the actual root cause.