What Causes Erectile Dysfunction? Understanding Why It Happens and What You Can Do

If you have ever found yourself lying awake wondering “why can’t I get an erection?”, you have already taken the first step that many men avoid entirely: asking the question. Erectile dysfunction (ED) affects an estimated 4.3 million men across the UK, yet the actual mechanics of why it happens remain poorly understood by most of those affected. And when you do not understand the cause, it is much harder to find a solution that works.

The truth is that erectile dysfunction is rarely caused by a single factor. It usually involves an interplay between your physical health, your mental state, your lifestyle habits, and sometimes the medications you are taking. This article breaks down each of these areas honestly, so you can start to identify what might be contributing to your own experience — and understand why there is almost always something that can be done about it.

How an Erection Actually Works: The Basics

Before we look at what goes wrong, it helps to understand what needs to go right. An erection is not as simple as it might seem. It requires the coordinated effort of three major body systems working in sequence.

The Three Systems Involved

  1. The nervous system: Sexual arousal starts in the brain. Whether triggered by physical touch, visual stimuli, or thought, the brain sends signals down the spinal cord and through the pelvic nerves to the penis.
  2. The vascular system: Those nerve signals cause the smooth muscle in the penile arteries to relax, allowing blood to rush into the two cylindrical chambers (corpora cavernosa) that run the length of the penis. As these chambers fill, the penis becomes firm.
  3. The endocrine system: Hormones — particularly testosterone — regulate sexual desire, arousal response, and the overall health of the tissues involved. Without adequate hormonal support, the process can falter before it begins.

An erection is maintained when the blood flowing in exceeds the blood flowing out, kept in place by the expansion of the chambers compressing the veins. When any part of this chain is disrupted — nerve signalling, blood flow, or hormonal balance — the result can be difficulty achieving or maintaining an erection.

Understanding this helps explain why ED has so many potential causes. Anything that affects your blood vessels, nerves, or hormones can affect your erections.

Physical Causes of Erectile Dysfunction

Physical causes account for the majority of persistent ED cases, particularly in men over 40. These are conditions or changes in the body that interfere with the blood flow, nerve function, or hormonal balance needed for an erection.

Cardiovascular Disease and Atherosclerosis

This is the most significant physical cause of ED. Atherosclerosis — the gradual narrowing and hardening of arteries due to fatty deposits — reduces blood flow throughout the body. The arteries supplying the penis are considerably narrower than those supplying the heart (roughly 1-2mm in diameter compared to 3-4mm for coronary arteries), which means they tend to show the effects of vascular damage earlier.

This is why ED is now recognised as a potential early marker for cardiovascular disease. Research cited by the NHS indicates that men with ED are at a significantly elevated risk of experiencing a cardiac event within the following three to five years. The erection problem is, in effect, your body raising a flag about your vascular health.

High Blood Pressure (Hypertension)

Chronic high blood pressure damages the lining of blood vessels over time, making them less flexible and less able to dilate in response to arousal signals. This directly impacts the ability to achieve an erection. To compound the issue, several commonly prescribed antihypertensive medications — particularly older beta-blockers and thiazide diuretics — can themselves contribute to ED as a side effect.

If you are taking blood pressure medication and have noticed a change in erectile function, it is worth discussing with your prescriber. Alternative medications with fewer sexual side effects are often available, and switching should never be done without medical guidance.

Diabetes (Type 1 and Type 2)

Diabetes is one of the most common conditions associated with ED. Men with diabetes are approximately three times more likely to experience erectile dysfunction than men without the condition. The mechanisms are twofold: high blood sugar levels damage both the small blood vessels that supply the penis and the nerves that transmit arousal signals.

This combination of vascular and neurological damage means that diabetes-related ED can be particularly stubborn, but it is still treatable. Effective blood sugar management can slow or prevent further damage, and PDE5 inhibitor medications remain effective for many men with diabetes-related ED.

Low Testosterone (Hypogonadism)

Testosterone plays a fundamental role in sexual desire and function. While testosterone levels naturally decline with age — typically by about 1-2% per year after age 30 — some men experience a more significant drop that affects their libido, energy levels, mood, and erectile function.

Low testosterone alone does not always cause ED directly (many men with low testosterone can still achieve erections), but it frequently contributes to reduced desire and a weakened arousal response, which can make other contributing factors worse. A simple blood test can determine your testosterone levels, and treatment options exist if levels are clinically low.

Neurological Conditions

Any condition that disrupts nerve signalling between the brain and the penis can cause ED. These include:

  • Multiple sclerosis (MS): Damages the myelin sheath that insulates nerve fibres, disrupting signal transmission.
  • Parkinson’s disease: Affects the autonomic nervous system, which controls involuntary functions including erection.
  • Spinal cord injuries: Can partially or completely sever the nerve pathways required for erection, depending on the level and severity of injury.
  • Peripheral neuropathy: Damage to peripheral nerves, often associated with diabetes or excessive alcohol use.

Prostate Surgery and Treatment

Surgical treatment for prostate cancer, particularly radical prostatectomy, carries a well-documented risk of erectile dysfunction due to potential damage to the cavernous nerves that run alongside the prostate. Nerve-sparing surgical techniques have improved outcomes significantly, but some degree of erectile difficulty following prostate surgery is common and may be temporary or lasting. Radiotherapy for prostate cancer can also affect erectile function over time.

Peyronie’s Disease

Peyronie’s disease involves the development of fibrous scar tissue (plaque) inside the penis, causing curved or painful erections. In more severe cases, the structural changes can make achieving or maintaining an erection difficult. The condition affects an estimated 3-9% of men and is more common in middle age.

Psychological Causes of Erectile Dysfunction

The brain is arguably the most important sexual organ, and psychological factors are a significant cause of ED — particularly in younger men. Mental health conditions, emotional states, and relational dynamics can all interfere with the arousal process, even when the physical plumbing is working perfectly.

Performance Anxiety

This is the single most common psychological cause of ED, and it creates a particularly vicious cycle. A man experiences difficulty with an erection — perhaps due to tiredness, stress, or alcohol. The next time he is in a sexual situation, he worries about whether it will happen again. That worry triggers a stress response, releasing adrenaline, which constricts blood vessels and makes an erection physiologically harder to achieve. The failure confirms the fear, and the cycle deepens.

Performance anxiety can affect men of any age and any relationship status. It is especially common in new relationships, after a period of sexual inactivity, or following a single episode of ED caused by something entirely unrelated.

Stress and Cortisol

Chronic stress — whether from work, financial pressures, family responsibilities, or other life events — keeps the body in a sustained state of heightened alertness. The stress hormone cortisol, when elevated over long periods, actively suppresses the production of testosterone and interferes with the brain’s ability to initiate the arousal cascade.

Men under significant stress often report a global reduction in libido alongside erectile difficulties. The body is essentially prioritising survival over reproduction, and sexual function drops down the list of biological priorities.

Depression and Anxiety Disorders

Depression and ED have a bidirectional relationship: depression can cause ED, and ED can cause or worsen depression. The neurochemical changes associated with depression — particularly alterations in serotonin and dopamine — directly affect sexual desire and arousal.

Complicating matters further, several commonly prescribed antidepressants (particularly SSRIs such as sertraline, fluoxetine, and citalopram) list sexual dysfunction as one of their most frequent side effects. This puts some men in a difficult position: the medication helping their mental health is contributing to a problem that affects their mental health. If this is your situation, speak to your prescriber — alternatives and strategies exist.

Relationship Issues

Unresolved conflict, poor communication, loss of emotional intimacy, or trust issues within a relationship can manifest as erectile dysfunction. The body’s sexual response is closely linked to feelings of safety, connection, and emotional engagement. When those are absent, the physical response may follow suit.

This is not about blame. It is about recognising that sexual function does not exist in a vacuum and that relationship health and sexual health are closely connected.

Lifestyle Factors That Contribute to ED

Some of the most modifiable causes of erectile dysfunction are the everyday habits that, over time, take a toll on the vascular, nervous, and hormonal systems that erections depend on.

Smoking

Smoking is one of the most significant preventable risk factors for ED. The chemicals in cigarette smoke damage the endothelium — the inner lining of blood vessels — reducing their ability to dilate and allow blood flow. Smokers are roughly twice as likely to develop ED compared to non-smokers. The good news is that quitting can lead to measurable improvements in erectile function, sometimes within months, as vascular health begins to recover.

Excessive Alcohol Consumption

Alcohol is a central nervous system depressant. In the short term, it slows nerve signalling and reduces the sensitivity needed for arousal and erection. In the long term, chronic heavy drinking can cause lasting nerve damage, liver dysfunction (which disrupts hormone metabolism), and cardiovascular problems — all of which contribute to persistent ED.

Moderate alcohol consumption does not typically cause ED, but the line between moderate and excessive is often blurrier than people think. The NHS recommends no more than 14 units per week, spread over three or more days.

Obesity and Poor Diet

Carrying excess weight — particularly abdominal fat — is strongly associated with ED. Obesity contributes to the problem through multiple pathways: it increases the risk of diabetes and cardiovascular disease, promotes chronic inflammation, and disrupts hormonal balance. Excess body fat converts testosterone to oestrogen through a process called aromatisation, which can lower testosterone levels and reduce sexual drive.

A diet high in processed foods, saturated fats, and refined sugars accelerates vascular damage, while a Mediterranean-style diet rich in fruits, vegetables, whole grains, lean protein, and healthy fats has been shown in studies to improve erectile function.

Physical Inactivity

Regular physical activity improves cardiovascular health, reduces stress, promotes healthy hormone levels, and improves mood — all of which support erectile function. Conversely, a sedentary lifestyle allows vascular fitness to decline and contributes to weight gain, creating conditions favourable for ED.

Research published in the British Journal of Sports Medicine has shown that men who engage in regular moderate-to-vigorous exercise have a significantly lower risk of developing ED. Even walking briskly for 30 minutes a day can make a meaningful difference.

Recreational Drug Use

Cannabis, cocaine, MDMA, and anabolic steroids are all associated with erectile dysfunction through various mechanisms. Cannabis affects the endocannabinoid receptors involved in smooth muscle relaxation. Cocaine and MDMA cause vasoconstriction. Anabolic steroids suppress natural testosterone production, often leading to significant erectile problems during and after use.

Medications That Can Cause Erectile Dysfunction

A number of commonly prescribed medications list ED among their potential side effects. This does not mean they will definitely cause problems, but if you have noticed a change in erectile function that coincided with starting a new medication, it is worth considering the connection.

Medications frequently associated with ED include:

  • Antidepressants: Particularly SSRIs (sertraline, fluoxetine, paroxetine, citalopram).
  • Blood pressure medications: Especially beta-blockers (atenolol, propranolol) and thiazide diuretics.
  • Anti-androgens: Used in prostate cancer treatment (e.g., bicalutamide, goserelin).
  • Antihistamines: Some older antihistamines (e.g., diphenhydramine) can affect erectile function.
  • Opioid painkillers: Long-term use can lower testosterone levels and reduce sexual function.
  • Statins and fibrates: Occasionally reported, though the evidence is less clear-cut.
  • Anti-epileptics: Some anticonvulsant medications affect hormonal levels.

If you suspect a medication is contributing to your ED, do not stop taking it without medical advice. A clinician can often adjust your dose, switch you to an alternative, or add a treatment for ED that works alongside your existing medication.

The Combination Effect: Why ED Is Usually Multifactorial

In clinical practice, ED is rarely caused by one thing alone. A man in his 50s might have mildly elevated blood pressure, carry a stone or two of extra weight, drink a bit more than recommended, and be under pressure at work. None of these factors in isolation might be sufficient to cause ED, but together they can tip the balance.

This is actually encouraging, because it means that addressing even one or two contributing factors can produce meaningful improvement. You do not need to overhaul your entire life overnight. Losing some weight, reducing alcohol intake, or managing stress more effectively can shift the equation — often enough to restore function, particularly when combined with appropriate medical treatment.

What to Do If You Think You Know the Cause

Understanding what causes erectile dysfunction is valuable, but self-diagnosis has its limits. A healthcare professional can confirm or rule out suspected causes through simple assessments, blood tests (for conditions like diabetes, cholesterol, and low testosterone), and a review of your medication and lifestyle.

The important thing is not to wait until you have it all figured out before seeking help. A clinician can help you identify the cause and recommend the right combination of treatment, whether that involves medication, lifestyle modifications, psychological support, or all three.

At Evernu, our qualified clinicians offer confidential online consultations for men across England, Scotland, Wales, and Northern Ireland. We can assess your situation, identify likely contributing factors, and recommend evidence-based treatment options — all without the need for an in-person appointment.

Start your confidential ED assessment with Evernu

Frequently Asked Questions

Can stress alone cause erectile dysfunction?

Yes. Chronic stress elevates cortisol levels, which suppresses testosterone and interferes with the brain’s ability to initiate arousal. Stress-related ED is common and typically improves once the source of stress is addressed or managed. Acute stress, such as worry about a specific sexual encounter, can cause situational ED through performance anxiety, even in men who are otherwise healthy.

Why can I get an erection on my own but not with a partner?

This pattern strongly suggests a psychological cause, most commonly performance anxiety. When you are alone, there is no pressure to perform and no fear of judgment, so the arousal process proceeds without interference. With a partner, the added psychological pressure can trigger a stress response that inhibits erection. This is one of the most treatable forms of ED, often responding well to a combination of medication and psychological strategies.

Does watching too much pornography cause erectile dysfunction?

This is a debated topic in the medical community. Some researchers have proposed that heavy pornography use can lead to a condition sometimes called “porn-induced ED,” where the brain becomes desensitised to real-world sexual stimuli. However, the clinical evidence for this as a distinct condition remains limited and contested. What is more established is that pornography can contribute to unrealistic sexual expectations and performance anxiety, both of which can affect erectile function. If you suspect pornography use is affecting your sexual life, it may be worth discussing with a clinician or therapist.

At what point should I see a doctor about my erection problems?

The NHS recommends seeking advice if erectile difficulties have persisted for several weeks. However, there is no need to wait for a specific threshold. If the problem is affecting your quality of life, your confidence, or your relationships, that is reason enough to have a conversation with a healthcare professional. Earlier assessment also allows for the detection of underlying conditions such as diabetes or cardiovascular disease.

Can cycling cause erectile dysfunction?

Prolonged cycling, particularly on narrow saddles, can compress the perineal nerves and blood vessels that supply the penis. Some studies have found a correlation between heavy cycling (more than three hours per week on a traditional saddle) and temporary erectile or genital numbness. Using a properly fitted saddle with a cut-out design, adjusting handlebar height, and taking regular breaks during long rides can significantly reduce this risk. Occasional recreational cycling is unlikely to cause problems.

Ready to take the next step?

Take the first step towards better health. Our quick assessment connects you with the right treatment plan, tailored to your unique needs.

Get Started Now

Cart