What Causes a Man Not to Get or Keep an Erection?

Erections depend on a chain of events that starts in the brain and ends with blood filling the spongy tissue inside the penis. A break anywhere in that chain can make getting or keeping an erection difficult or impossible. The causes range from blood vessel damage and nerve injuries to hormone shifts, medication side effects, and psychological stress, and most men with persistent trouble have more than one factor at work. Understanding which links in the chain are weakest is the first step toward fixing the problem.

How an Erection Actually Works

The penis contains two cylinders of spongy tissue called the corpora cavernosa. When a man becomes aroused, nerve signals trigger the release of nitric oxide from nerve endings and the cells lining blood vessels inside these cylinders. Nitric oxide sets off a chemical relay that relaxes the smooth muscle wrapped around the small arteries and spongy spaces, allowing blood to rush in. As the tissue fills, it compresses the veins that normally drain blood away, trapping it inside and producing rigidity.1PubMed Central. The role of nitric oxide in erectile dysfunction: implications for medical therapy When any step in this process falters, whether the arteries do not open wide enough, the smooth muscle does not relax, or the veins leak, the erection either never forms or fades too quickly.2International Journal of Impotence Research. Mechanisms of action of PDE5 inhibition in erectile dysfunction

Blood Vessel Problems Are the Most Common Physical Cause

Anything that narrows arteries or stiffens blood vessel walls can starve the penis of the blood flow it needs. High blood pressure, high cholesterol, and atherosclerosis all damage the inner lining of blood vessels, reducing the availability of nitric oxide and making it harder for smooth muscle to relax.3PubMed Central. Erectile Dysfunction Is a Hallmark of Cardiovascular Disease: Unavoidable Matter of Fact or Opportunity to Improve Men’s Health? Because the arteries feeding the penis are quite small compared with the ones supplying the heart, the same degree of vessel damage shows up in erections before it shows up as chest pain or a heart attack. A systematic review in European Urology framed erectile difficulty as a potential early warning sign of broader cardiovascular trouble, noting that the penile arteries’ small caliber makes them more sensitive to the same endothelial dysfunction that eventually affects coronary circulation.4PubMed. A systematic review of the association between erectile dysfunction and cardiovascular disease

This connection matters practically: if you develop erectile problems and have no obvious psychological explanation, it is worth getting your blood pressure, cholesterol, and blood sugar checked. Treating the cardiovascular risk factors can improve erections and may also reduce your risk of a future heart event.

Diabetes Hits Multiple Systems at Once

Erectile difficulty affects up to three-quarters of men with diabetes, making it one of the most strongly linked conditions.5Nature Reviews Urology. Molecular mechanisms associated with diabetic endothelial–erectile dysfunction The reason the rate is so high is that diabetes does not attack just one part of the erection pathway. Chronically elevated blood sugar damages the lining of blood vessels, generates harmful oxygen-containing molecules that degrade nitric oxide before it can do its job, and injures the small nerves that carry arousal signals to the penis.6PubMed. Diabetes-induced erectile dysfunction: epidemiology, pathophysiology and management High glucose also impairs the body’s ability to repair damaged blood vessels, so the problem compounds over time.5Nature Reviews Urology. Molecular mechanisms associated with diabetic endothelial–erectile dysfunction

Men with diabetes who keep blood sugar well controlled tend to preserve erectile function longer than those with poorly managed levels, though diabetes-related erectile difficulty can still develop even with good control because the damage is cumulative.

Nerve Damage and Neurological Conditions

Erection is a reflex that depends on intact nerve pathways from the brain down through the spinal cord and out to the pelvis. Conditions that interrupt those pathways, including multiple sclerosis, spinal cord injury, and Parkinson’s disease, frequently cause erectile problems.7PubMed Central. Male sexual dysfunction and infertility associated with neurological disorders The type and severity of the problem depend on where in the pathway the damage occurs. A spinal cord injury high on the spine may spare reflex erections triggered by touch but eliminate erections triggered by mental arousal, while a lower injury may do the opposite.8Spinal Cord. Neuroanatomy and neurophysiology related to sexual dysfunction in male neurogenic patients with lesions to the spinal cord or peripheral nerves

Pelvic surgery is another major source of nerve damage. Radical prostatectomy for prostate cancer can injure the cavernous nerves that run alongside the prostate, and even with nerve-sparing surgical techniques, many men experience at least temporary erectile difficulty afterward.9PubMed. Magnetic mesoporous silica nanoparticles loaded with peptides for the targeted repair of cavernous nerve injury underlying erectile dysfunction Recovery can take months to years, and some degree of lasting change is common.

Testosterone and Hormonal Shifts

Testosterone does not flip a simple on-off switch for erections, but it plays a supporting role at nearly every level of the process. It influences sexual desire, which initiates the brain signals that start the erection reflex. It also helps maintain the health of smooth muscle and endothelial cells inside the corpora cavernosa.10PubMed. A critical analysis of the role of testosterone in erectile function: from pathophysiology to treatment-a systematic review When testosterone drops significantly, as in clinical hypogonadism, erections can weaken and desire can fade.

Testosterone replacement in men with genuinely low levels has been shown to improve erections and even rescue the response to PDE5 inhibitor pills in men who previously did not respond to them.11PubMed. Testosterone and erectile dysfunction However, testosterone is not a cure-all. If blood levels are in the normal range, adding more does not help and carries its own risks. The hormone is also not the sole driver of erections; plenty of men with low-normal testosterone have no erectile issues, and plenty with solid levels do.

Psychological and Emotional Causes

The brain is the organ where arousal starts, so mental health conditions can sabotage erections before any physical process even begins. Performance anxiety is the classic example: worry about whether you will get hard enough triggers a stress response that constricts blood vessels and floods the body with adrenaline, which directly opposes the relaxation needed for an erection. Depression, chronic stress, and relationship conflict all work through similar pathways.12PubMed Central. Association of Sexual Health and Mental Health in Erectile Dysfunction: Expert Opinion From the Indian Context

The tricky part is that psychological and physical causes rarely exist in isolation. A man who has one bad night because of a vascular issue may develop performance anxiety that makes the next encounter worse, creating a self-reinforcing cycle. Teasing apart what started the problem and what is maintaining it often requires an honest conversation with a clinician and sometimes a referral for therapy alongside any medical treatment.

Medications That Can Interfere

A long list of prescription drugs can cause or worsen erectile problems. Blood pressure medications are among the most commonly implicated. A Mendelian randomization study found that drugs acting on the renin-angiotensin system, calcium channel blockers, and beta-blockers were all associated with higher odds of erectile difficulty.13Andrologia. Causal Relationship Between Antihypertensive Drugs and Erectile Dysfunction Revealed Using a Mendelian Randomization Study Antidepressants, particularly SSRIs, are also well-known culprits; they can blunt desire, delay orgasm, and impair erections.14PubMed Central. Antidepressant-associated sexual dysfunction: impact, effects, and treatment Even common over-the-counter anti-inflammatory drugs and certain antacids have been linked to erectile changes.15Postgraduate Medical Journal. Effect of prescription medications on erectile dysfunction

If you suspect a medication is the cause, do not stop taking it on your own. Abruptly dropping a blood pressure or psychiatric drug can be dangerous. Talk to the prescribing doctor; often there is an alternative drug in the same class with fewer sexual side effects, or the dose can be adjusted.

Lifestyle Factors You Can Change

Smoking, excess body weight, poor diet, and a sedentary routine all independently raise the risk of erectile trouble, and they tend to cluster together. Smoking damages blood vessels directly and accelerates atherosclerosis. Obesity promotes chronic low-grade inflammation that erodes nitric oxide availability. A cross-sectional study found that body mass index was the strongest lifestyle predictor of severe erectile difficulty, and smoking was independently associated with worsening severity as well.16PubMed Central. Impact of Obesity, Smoking, and Alcohol on Erectile Dysfunction: A Cross-Sectional Study of Lebanese Men

The encouraging flip side is that these risk factors are modifiable. Quitting smoking, losing weight, increasing physical activity, and improving diet have all been associated with better erectile function.17PubMed Central. Lifestyle modifications and erectile dysfunction: what can be expected? Exercise in particular seems to work by improving endothelial health, the same mechanism that keeps coronary arteries flexible. Even modest weight loss can make a noticeable difference for men whose erectile problems are tied to metabolic health.

Recreational Drugs and Heavy Alcohol Use

Chronic substance use takes a toll on erectile function through multiple routes: hormonal disruption, reduced blood flow, liver damage, and direct effects on nerve signaling.18PubMed Central. Substance Abuse and Sexual Functioning: An Overview of Mechanisms In one study of over 700 men who used illicit drugs, more than a third reported erectile difficulty. Heroin users had roughly five times the odds of having the problem compared with non-users, and amphetamine users had about three times the odds.19PubMed. Sexual dysfunction in men who abuse illicit drugs: a preliminary report

Alcohol is more nuanced. A drink or two may lower inhibitions and reduce performance anxiety, but heavy or chronic drinking damages nerves, suppresses testosterone production, and harms the liver in ways that compound over time. The line between “helpful” and “harmful” is lower than many men assume.

Sleep Apnea and Nocturnal Oxygen Drops

Obstructive sleep apnea, where the airway repeatedly collapses during sleep, is linked to erectile problems through a mechanism that many men would not expect. Each time breathing stops, oxygen levels dip. These repeated episodes of low oxygen drive inflammation, damage blood vessel linings, and suppress circulating nitric oxide, the same molecule that drives erections.20PubMed Central. Erectile Dysfunction and Obstructive Sleep Apnea: A Review Research has found that the average overnight blood oxygen level is an independent predictor of erectile and sexual difficulty, regardless of other known risk factors like obesity or age.21The Journal of Sexual Medicine. Sleep Apnea is an Independent Correlate of Erectile and Sexual Dysfunction

Treating sleep apnea with a continuous positive airway pressure (CPAP) machine has been shown to improve erectile function scores and nocturnal erection rigidity in a meta-analysis.22PubMed. The effect of CPAP and PDE5i on erectile function in men with obstructive sleep apnea and erectile dysfunction: A systematic review and meta-analysis If you snore heavily, feel unrested despite a full night’s sleep, and also struggle with erections, a sleep study may uncover a treatable root cause that has nothing to do with the usual suspects.

Aging and the Slow Loss of Smooth Muscle

Getting older does not automatically mean losing erections, but it does shift the odds. The spongy tissue that fills with blood gradually loses smooth muscle cells over the decades. When roughly 15 percent of those cells have degraded, the tissue can no longer trap blood effectively, and erections become softer or harder to maintain.23PubMed Central. Aging related erectile dysfunction-potential mechanism to halt or delay its onset This is a distinct process from arterial disease; even a man with clean arteries will eventually see some decline as the cellular makeup of the corpora cavernosa changes.

The rate of this loss varies enormously from person to person and is influenced by all the factors discussed above: vascular health, blood sugar control, hormone levels, exercise habits, and smoking history. Aging accelerates the problem, but it does not cause it in a vacuum.

Pelvic Floor Strength

The muscles at the base of the pelvis play a less-appreciated role in maintaining an erection. During arousal, two specific muscles, the bulbocavernosus and the ischiocavernosus, contract to boost pressure inside the filled corpora cavernosa, helping the penis go from partially firm to fully rigid.24Scientific Reports. A prospectively collected observational study of pelvic floor muscle strength and erectile function using a novel personalized extracorporeal perineometer Weak pelvic floor muscles have been hypothesized to contribute to erectile difficulty, and a randomized controlled trial found that pelvic floor exercises improved erectile function in men who performed them consistently.25PubMed Central. Randomised controlled trial of pelvic floor muscle exercises and manometric biofeedback for erectile dysfunction

Pelvic floor training is not a standalone fix for most cases, but it is free, has no side effects, and may be a useful addition to other treatments, particularly for men who have undergone prostate surgery or who notice that their erections lose rigidity during intercourse rather than failing to start at all.

Structural Problems Inside the Penis

Peyronie’s disease, a condition where scar tissue forms inside the penis and creates a noticeable curve, can contribute to erectile difficulty through two mechanisms. The scar plaque itself can prevent the spongy tissue from expanding fully, and the structural distortion can impair the normal vein-trapping process that maintains rigidity. Duplex ultrasound studies of men with Peyronie’s have found both impaired arterial inflow and vein leakage contributing to their problems.26The Journal of Sexual Medicine. Penile Duplex Ultrasonography in Men with Peyronie’s Disease: Is it Veno-Occlusive Dysfunction or Poor Cavernosal Arterial Inflow that Contributes to Erectile Dysfunction?

How Doctors Figure Out What Is Going On

The evaluation typically starts with a detailed sexual and medical history, a physical exam, and basic blood work covering blood sugar, cholesterol, and hormone levels. In many cases that is enough to identify the likely contributors and start treatment.27PubMed Central. Evaluation of young men with organic erectile dysfunction More specialized tests, like penile Doppler ultrasound to assess blood flow, or overnight monitoring of erections during sleep, are reserved for cases where the picture is unclear or surgery is being considered.

One of the more useful clinical clues is whether the problem is situational. A man who gets normal erections during sleep or with masturbation but not with a partner likely has a significant psychological component. Conversely, a man who never gets firm erections under any circumstances is more likely dealing with a physical issue. A questionnaire-based approach to separating these categories correctly classified the cause about three-quarters of the time in one study, underscoring that a good interview can do a lot before expensive testing comes into play.28Journal of Psychosomatic Research. Discrimination between psychogenic and organic erectile dysfunction

Emerging Research Areas

Gut microbiome research has begun poking into erectile function. The idea is that an imbalanced community of gut bacteria can increase system-wide inflammation, disrupt hormone metabolism, and alter neurotransmitter production, all of which feed into the same endothelial and nerve pathways that underpin erections.29PubMed Central. The Role of Gut Microbiota Dysbiosis in Erectile Dysfunction: From Pathophysiology to Treatment Strategies The research is early-stage and has not yet produced any microbiome-targeted treatments for erectile problems, but it is a window into how interconnected the body’s systems really are.

Environmental chemicals are another frontier. Animal studies have shown that exposure to estrogen-mimicking compounds found in some plastics and industrial waste can directly alter how penile smooth muscle contracts and relaxes, shifting the balance toward constriction. One study found that exposure to the synthetic estrogen diethylstilbestrol through drinking water significantly impaired the relaxation response in erectile tissue and increased sensitivity to a vessel-constricting signal.30Nature. Estrogenic endocrine disruptor exposure directly impacts erectile function Translating animal findings to humans is always uncertain, but the research raises questions about long-term environmental exposures that most men would never think to connect to bedroom difficulties.