What Causes Loss Of Erection

Loss of erection happens when blood flow into the penis is restricted, blood drains out too quickly, or the nerve signals that trigger the process are interrupted. About 52% of men between 40 and 70 experience some degree of erectile difficulty, and the causes range from blood vessel problems and medications to stress and hormonal shifts. In most cases, it’s not a single factor but a combination.

How Erections Work (and Where Things Break Down)

An erection is fundamentally a blood flow event controlled by your nervous system. When you’re aroused, nerve signals trigger the release of nitric oxide, a small gas molecule, inside the tissue of the penis. Nitric oxide causes the smooth muscle lining the two spongy chambers (the corpora cavernosa) to relax. As that muscle relaxes, blood rushes in and fills the chambers, creating pressure that makes the penis rigid. Veins that normally drain blood get compressed against a tough outer membrane, trapping blood inside.

Anything that interferes with nitric oxide production, damages the blood vessels feeding the penis, stiffens the smooth muscle, or disrupts the nerve signals from the brain and spinal cord can cause you to lose an erection before or during sex.

Blood Vessel and Heart-Related Causes

The most common physical cause of erection loss is vascular disease, meaning problems with your blood vessels. The arteries supplying the penis are relatively small, so they’re often the first place where reduced blood flow becomes noticeable. Conditions like high blood pressure, high cholesterol, and atherosclerosis (plaque buildup in artery walls) all narrow these vessels and limit the surge of blood an erection requires.

This is why erectile difficulty often serves as an early warning sign for cardiovascular problems. A large meta-analysis of prospective studies found that men with erectile dysfunction had a 48% higher risk of cardiovascular disease, a 46% higher risk of coronary heart disease, and a 35% higher risk of stroke compared to men without it. Those elevated risks held even after accounting for traditional heart risk factors like smoking and obesity. If you’re under 50 and losing erections without an obvious explanation, it’s worth having your cardiovascular health checked.

Diabetes and Blood Sugar Damage

Diabetes is one of the strongest risk factors for erectile problems because it attacks the system from two directions at once: nerves and blood vessels.

Chronically high blood sugar damages peripheral nerves, including the sensory and parasympathetic nerves that control erection. When those nerves degenerate, the signal to release nitric oxide weakens or stops entirely. At the same time, elevated glucose makes blood thicker and more prone to clotting, increases fibrinogen (the main clotting protein in plasma), and causes the walls of small arteries to stiffen through a process where sugar molecules bond permanently to proteins in the vessel walls. The result is blood vessels that are less flexible and less responsive, reducing the rush of blood needed for a firm erection.

Diabetes also changes the smooth muscle cells inside the penis itself, making them more prone to contraction and less responsive to the relaxation signals that allow blood to flow in. Men with poorly controlled blood sugar are significantly more likely to develop erectile problems earlier and more severely than those who manage their glucose levels.

Low Testosterone

Testosterone plays a supporting role in erections rather than a starring one. Its biggest impact is on sex drive. Men with low testosterone often notice reduced desire first, with erection quality declining as a secondary effect. The American Urological Association defines low testosterone as a total level below 300 ng/dL.

The relationship between testosterone and erection quality is complicated because low testosterone frequently coexists with obesity, diabetes, and other conditions that independently cause erectile problems. That makes it hard to pin erection loss on testosterone alone. Still, men treated with testosterone therapy often report improved nighttime erections, easier arousal, and about a 31% improvement in sex drive, with greater gains in men who started with the lowest levels.

Medications That Interfere

A surprisingly long list of prescription and over-the-counter medications can cause or worsen erection loss. The most common culprits fall into a few categories:

  • Blood pressure drugs: Thiazide diuretics (water pills) are the most frequent offenders among blood pressure medications, followed by beta-blockers. Alpha-blockers tend to cause fewer problems.
  • Antidepressants and psychiatric medications: SSRIs like fluoxetine and sertraline are well known for affecting sexual function. Older tricyclic antidepressants and anti-anxiety medications like diazepam and lorazepam also contribute.
  • Opioid painkillers: Codeine, oxycodone, morphine, fentanyl, and methadone all suppress testosterone production and dampen nerve signaling.
  • Antihistamines: Common allergy and heartburn medications, including diphenhydramine and cimetidine, can temporarily affect erections.
  • Hormonal and cancer treatments: Anti-androgen therapies used for prostate cancer directly block the hormones involved in sexual function.

If erection problems started around the same time as a new medication, that connection is worth raising with whoever prescribed it. In many cases, an alternative drug in the same class has fewer sexual side effects.

Smoking, Alcohol, and Weight

Smoking is a strong independent risk factor. Current smokers have roughly 1.7 times the odds of erectile dysfunction compared to men who have never smoked, and former smokers carry a similar elevated risk of 1.6 times. Notably, this association is strongest in men who don’t already have cardiovascular disease or diabetes. In men who do have those conditions, smoking doesn’t add much additional risk because the vascular damage is already present. Nicotine constricts blood vessels and damages the endothelial lining that produces nitric oxide.

Excess body weight contributes through multiple pathways: it promotes inflammation, raises blood sugar and blood pressure, and increases the conversion of testosterone into estrogen in fat tissue. Heavy alcohol use depresses the central nervous system and, over time, causes nerve damage. Recreational drugs including cocaine, amphetamines, marijuana, and heroin all affect erection quality through different mechanisms, from blood vessel constriction to hormonal disruption.

Psychological and Situational Causes

Not all erection loss stems from a physical problem. Psychological causes include performance anxiety, relationship conflict, depression, major life stress, and unresolved trauma. These can trigger erection loss even in men with perfectly healthy blood vessels and nerves.

There are practical ways to tell the difference. Psychogenic erection loss tends to come on suddenly, often in specific situations. You might lose your erection early during sex but still wake up with morning erections or have no trouble when masturbating alone. Organic (physical) erection loss typically develops gradually over months or years, affects all situations equally, and comes with normal ejaculation and desire. If your nighttime and morning erections are reliably firm, the issue is more likely psychological than vascular or neurological.

In practice, many men have a mix of both. A physical problem creates anxiety, and the anxiety makes the physical problem worse. That cycle is common and treatable.

Neurological Conditions

Any condition that disrupts nerve pathways between the brain, spinal cord, and pelvis can cause erection loss. Multiple sclerosis damages the protective coating on nerve fibers, which means stimulation that previously triggered arousal may no longer generate a strong enough signal. Parkinson’s disease affects both the autonomic nervous system and dopamine pathways involved in arousal. Spinal cord injuries can partially or completely sever the nerve connections required for erection, depending on the level and completeness of the injury.

Surgery and Pelvic Trauma

Surgeries in the pelvic region, especially radical prostatectomy for prostate cancer, carry a significant risk of erectile problems. The nerves responsible for erection run along the surface of the prostate, and even with nerve-sparing surgical techniques, damage can occur through several mechanisms: physical stretching of the nerves during retraction of the prostate, heat damage from surgical cautery tools, injury during efforts to control bleeding, and inflammation from the surgery itself.

Recovery of erections after prostate surgery is often slow, taking 12 to 24 months or longer. Radiation therapy to the pelvis and trauma such as pelvic fractures or perineal injuries (the area between the scrotum and anus, often from cycling accidents or straddle injuries) can also damage the nerves and blood vessels involved.

How Age Fits In

Age is the single strongest predictor of erectile difficulty, but aging itself isn’t the direct cause. Rather, the conditions that damage blood vessels and nerves accumulate over time. In a nationally representative U.S. sample, the prevalence of erectile dysfunction was about 16% among men aged 40 to 60 and jumped to 57% among men aged 60 to 80. The European Male Aging Study found that about 19% of men aged 40 to 79 had moderate to severe erectile dysfunction.

These numbers mean that erectile problems are common but not inevitable with age. Men who maintain cardiovascular fitness, healthy blood sugar levels, a reasonable weight, and avoid smoking have substantially lower rates of erection loss at every age.