You are currently viewing Can Being Sick Cause Erectile Dysfunction?

Can Being Sick Cause Erectile Dysfunction?

Quick Answer

Yes, being sick can cause erectile dysfunction (ED). Short-term illnesses such as the flu or COVID-19 can suppress erections temporarily through fever, fatigue, inflammation and a drop in testosterone. Chronic conditions, including diabetes, heart disease, kidney disease and hormonal or neurological disorders, cause longer-lasting ED by damaging the blood vessels, nerves or hormones that erections depend on. Medications used to treat illness can also be the cause. In most cases, ED improves once the underlying condition or medication is addressed.

An erection depends on three systems working together: healthy blood flow, intact nerves and balanced hormones. When your body is fighting an illness, any one of them can be disrupted, and ED is often the first sign that something else is going on.

This guide explains how illness affects erections, which conditions are most strongly linked to ED, which medications can cause it, whether it is temporary, and when to see a specialist. For a broader overview, start with our page on the symptoms and causes of erectile dysfunction.

How Does Illness Affect Erections?

An erection follows a precise chain of events. Sexual arousal signals the nerves in the penis to release nitric oxide, which relaxes the smooth muscle in the erectile tissue and lets blood flow in and stay there. Any condition that damages blood vessels, nerves or hormone production can break that chain at one or more points.

Illness does this in four main ways:

  • Inflammation. Acute infections and chronic disease both raise inflammatory markers that impair the lining of blood vessels (the endothelium) and reduce nitric oxide production. In chronic illness this damage builds up over years.
  • Hormonal shifts. Serious illness lowers testosterone, sometimes sharply. This is well documented in acute infections, chronic kidney disease, liver disease and sleep apnea.
  • Fatigue and stress. Being unwell suppresses libido and arousal before the physical process even begins. Anxiety about health or about performance can then keep ED going after the body has recovered; see our guide to psychological erectile dysfunction.
  • Medication. Many drugs used to treat illness interfere with blood flow, nerve signaling or hormones. This is covered in its own section below.

Which Illnesses Are Most Commonly Linked to ED?

Doctor reviewing blood test results with a glucose meter and blood pressure cuff, showing conditions linked to erectile dysfunction

The conditions below have the strongest documented connection to erectile dysfunction. Several of them often occur together, which is why ED frequently has more than one cause.

ConditionHow it causes EDWhat the evidence shows
Diabetes (Type 1 and Type 2)High blood sugar damages small blood vessels and the peripheral nerves that carry arousal signalsA 2017 meta-analysis in Diabetic Medicine found about 52% of men with diabetes have ED, roughly 3.5 times the odds of men without it. ED also tends to appear 10 to 15 years earlier
Cardiovascular disease and high blood pressureAtherosclerosis narrows arteries; the penile arteries are small, so they are affected firstED often precedes a heart attack or other cardiac event by two to five years, which is why it is treated as an early warning sign
Chronic kidney diseaseDisrupts testosterone and other hormones, lowers red blood cell count, damages nerves and blood vesselsAround 70 to 80% of men with advanced kidney disease, especially on dialysis, report some degree of ED
Hormonal disordersLow testosterone (hypogonadism), high prolactin (hyperprolactinemia), and both overactive and underactive thyroid alter the hormonal environment needed for arousal and erectionTestosterone, prolactin and thyroid levels are part of a standard ED blood workup
Neurological conditionsMultiple sclerosis, Parkinson’s disease, stroke and spinal cord injury damage the nerve pathways between brain and penisED is reported in a majority of men with MS and is common after stroke
Obstructive sleep apneaRepeated oxygen drops and poor sleep lower testosterone and damage blood vesselsED is more common in men with untreated sleep apnea; CPAP treatment often improves it
Liver diseaseAlters sex hormone metabolism and lowers testosteroneED is common in cirrhosis and chronic liver disease
Acute infections, including flu and COVID-19Fever, inflammation, fatigue and a temporary drop in testosteroneUsually short-lived. Some studies report higher ED rates after COVID-19, possibly through blood vessel inflammation; most men recover, but persistent symptoms warrant a check-up

Depression and chronic anxiety are also illnesses in their own right, and both cause ED independently of any physical damage. They are covered in our post on psychological erectile dysfunction.

Do Medications for Illness Cause ED?

Man reading a prescription medication label, illustrating medications that can cause erectile dysfunction

Yes. Sometimes the illness is not the problem; the treatment is. Several drug classes are known to interfere with erections:

  • Blood pressure medications. Beta-blockers and thiazide diuretics carry the highest ED risk. Newer classes, including ACE inhibitors, ARBs and calcium channel blockers, are low risk and sometimes improve erections by protecting blood vessels. If you are on amlodipine, read our post on whether amlodipine causes erectile dysfunction.
  • Antidepressants. SSRIs and SNRIs commonly reduce libido, delay orgasm and cause ED. Bupropion and mirtazapine have lower sexual side-effect rates.
  • Androgen deprivation therapy for prostate cancer. GnRH agonists shut down testosterone production, and antiandrogens block its action. ED is an expected effect of both.
  • Opioid painkillers. Long-term use suppresses testosterone production.
  • 5-alpha reductase inhibitors (finasteride, dutasteride) for enlarged prostate or hair loss cause ED in a minority of men.
  • Antihistamines and some acid reducers can contribute in some men, though the effect is usually mild.

If you started a new medication and noticed ED soon after, bring that timeline to your doctor. A dose adjustment or a switch to an alternative drug often resolves it. Never stop a prescribed medication on your own.

It depends on the cause. ED from a short-term illness such as a fever, flu or viral infection is almost always temporary. Normal function usually returns within a few weeks of recovery. Our guide on how long temporary erectile dysfunction lasts covers what to expect.

ED linked to chronic conditions is more complex. If diabetes is brought under control and nerve damage is caught early, ED often improves significantly. If cardiovascular disease has already caused structural changes in the blood vessels, improvement may be partial, though treatments remain effective. The earlier the underlying condition is addressed, the better the chance of restoring function.

Psychological ED triggered by the stress of being ill usually resolves once the illness is under control and anxiety eases. When it does not, counseling or sex therapy is effective.

When Should You See a Doctor About ED?

See a doctor if:

  • ED has lasted longer than a few weeks after an illness has cleared
  • You have a known chronic condition such as diabetes, high blood pressure or heart disease
  • You recently started a new medication
  • ED appeared suddenly rather than gradually
  • You have other symptoms such as fatigue, low libido, unexplained weight change or poor sleep

ED is often the first visible sign of a wider health problem, particularly cardiovascular disease. Treat it as a symptom to be investigated, not a separate issue to be managed on its own.

Taking the Right Next Step

Illness-related ED is common and, in most cases, treatable. The first job is to work out whether the cause is the illness itself, a medication side effect, a hormonal imbalance, a psychological reaction, or some combination.

A proper evaluation includes a physical exam, blood tests (glucose or HbA1c, lipids, testosterone, prolactin and thyroid), a medication review and, where indicated, a cardiovascular assessment. Our page on ED diagnosis and treatment explains what each step involves. Treatment then follows the cause: controlling the underlying condition, switching medication, correcting hormone levels, PDE5 inhibitors, shockwave therapy, or, for men who have not responded to other options, a penile implant. Diet and lifestyle changes support every one of these; see our list of foods that help erectile function.

For a neutral medical overview of the condition, the Wikipedia article on erectile dysfunction summarizes the causes, diagnosis and treatment options.

If you are in the San Jose area, the urologists at Erectile Specialist have treated ED for more than 25 years and can identify the cause behind your symptoms. Book a confidential consultation or learn more about our team.

Frequently Asked Questions

Can a viral illness like the flu cause temporary ED?

Yes. Fever, inflammation, fatigue and a temporary drop in testosterone can all suppress erections during and shortly after a viral illness. Most men return to normal within a few weeks of recovering. If ED persists beyond that, see a doctor.

Can COVID-19 cause erectile dysfunction?

Several studies have reported higher rates of ED in men after COVID-19, likely through inflammation of the blood vessel lining and, in some cases, lower testosterone. For most men this is temporary. If symptoms continue for more than a few weeks after recovery, it is worth a check-up, since it can also unmask an underlying vascular problem.

Can treating the underlying condition reverse ED?

Often, yes. Men with well-controlled diabetes, treated low testosterone, managed sleep apnea or a medication switch frequently see meaningful improvement. How much depends on how much nerve or vascular damage has already occurred, which is why early evaluation matters.

Is ED from medication reversible?

Usually. Drug-induced ED typically resolves when the medication is stopped, reduced or switched to an alternative with fewer sexual side effects. Never stop a prescribed medication without talking to your doctor first.

How do doctors find the cause of ED?

A physical exam, blood tests (blood sugar, lipids, testosterone, prolactin and thyroid), a full medication review and questions about sleep, mood and relationships. Where heart disease is suspected, a cardiovascular evaluation follows. Morning erections that still occur point toward a psychological rather than physical cause.

Can stress from being ill cause ED even without physical damage?

Yes. Anxiety, low mood and worry about health or performance can cause ED on their own, and often keep it going after the body has recovered. This form responds well to counseling and, where needed, short-term medication.

Board-Certified Urologists · San Jose, CA

Don’t suffer in silence. Let’s fix your erectile dysfunction.

Confidential consultations with urologists who have treated ED in the San Jose area for over 30 years. Medication, shockwave therapy and advanced options, all in one clinic.

Mon–Fri, 9 AM – 5 PM · 2460 Samaritan Dr, San Jose, CA 95124

Leave a Reply