# Can Being Sick Cause Erectile Dysfunction?

> Being sick can make erections harder for a while. Here is why it happens, which cold medicines may play a part, and when to see a doctor.

By The Invigor Editorial Team · Published January 4, 2023 · Updated December 3, 2026

## The short answer

Yes, being sick can cause erection problems for a while. Fatigue, stress, a stuffy nose and some cold and allergy medicines can all get in the way. For most short illnesses, things may go back to normal as you recover. If problems last after you feel better, see a doctor, because ED can be an early sign of another health problem such as heart disease.

If you have been sick and noticed your erections are not what they usually are, you are not imagining it, and you are not alone. An erection depends on your brain, nerves, hormones and blood vessels all working together. When your body is busy fighting an illness, any of those can be thrown off for a while.

The good news is that a short illness is usually a temporary reason. The important part is knowing when it is no longer just the cold.

## Why being sick can affect erections

Cleveland Clinic notes that erection problems can happen when you feel nervous, anxious, frustrated or tired, and that it is normal to have erection issues sometimes [1]. Being sick tends to stack several of those up at once.

- **Fatigue.** When you are run down, your body puts its energy into getting better, not into sex.
- **Stress and low mood.** Anxiety, depression and stress are all listed causes of ED [2]. Feeling miserable for a week counts.
- **Trouble breathing.** A blocked nose, coughing and poor sleep can leave you short on rest and interest.
- **Your medicines.** Some of the most common cold, allergy and stomach medicines are on the list of drugs that may cause erection problems (more on that below) [3].

### Allergies and a stuffy nose

It is not only infections. In one study of more than 1,000 people with allergic rhinitis (hay fever), sexual function was lower than in people without it, and in men, erection scores tended to drop as nasal blockage got worse [4]. That kind of study shows a link, not proof of cause, but it fits what many men notice during a bad allergy season.

## Cold and allergy medicines that may play a part

MedlinePlus, from the U.S. National Library of Medicine, keeps a list of drugs that may cause erection problems. Several are things men reach for when they are sick [3]:

- Antihistamines such as diphenhydramine (Benadryl), dimenhydrinate (Dramamine), meclizine and promethazine
- The decongestant pseudoephedrine (Sudafed)
- Heartburn medicines in the H2 blocker group, such as cimetidine and famotidine
- Pain relievers such as ibuprofen and naproxen, and opioid painkillers such as codeine

Not everyone who takes these will have trouble, and the list is not complete [3]. If you think a medicine is affecting you, ask a pharmacist or your doctor whether there is another option.

**Don't stop a prescribed medicine on your own.** MedlinePlus is clear: never stop taking any medicine without first talking to your provider [3]. Some medicines can cause serious problems if they are stopped suddenly. Your prescriber can often change the dose or switch you to something else.

## Can COVID-19 cause erectile dysfunction?

COVID-19 has been studied more than other common infections when it comes to erections. A 2023 review that pooled eight studies found that men who had COVID-19 had a higher risk of ED than men who had not, and anxiety stood out as a risk factor [5]. The authors noted the studies varied a lot in how they measured ED, so the exact size of the risk is uncertain [5].

Why this happens is still being studied. The worry and stress of being seriously ill seem to be part of it [5]. If your erections changed after COVID-19 and have not come back, that is worth raising with a doctor rather than waiting it out.

## Infections that affect the genitals and prostate

Some infections affect erections more directly than a cold does. Infections of the prostate (prostatitis) and some sexually transmitted infections can cause pain and sexual problems. We cover that in [which sexually transmitted diseases cause erectile dysfunction](https://tryinvigor.com/which-sexually-transmitted-diseases-cause-erectile-dysfunction).

## Longer-term illness is a different story

A cold is temporary. Some health conditions are not, and they are among the most common causes of ED. The National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) lists diabetes, heart and blood vessel disease, high blood pressure, chronic kidney disease, obesity, chronic lung disease (COPD), low testosterone and thyroid problems as causes [2].

That is why lasting ED deserves attention. Cleveland Clinic notes that ED can be the first symptom of another underlying problem, including heart disease [1].

## How long does ED last after being sick?

There is no fixed timeline, and it depends on the illness and on you. With a short illness, many men find things return as their energy, sleep and mood come back. If you are still having trouble a few weeks after you feel well again, do not assume it will fix itself. Cleveland Clinic notes that ED that keeps happening is not likely to go away on its own without lifestyle changes or treatment [1].

## When to see a doctor

Talk to a doctor if:

- Erection problems continue after you have recovered
- Your erections changed after COVID-19 or another serious illness and have not improved
- You think a medicine you take is causing the problem (bring the full list of what you take)
- You also have chest pain, shortness of breath with activity, or other signs of heart trouble
- You have pain in the genitals or pelvis, pain when you pee or ejaculate, discharge or fever

A doctor can look for causes such as diabetes, heart disease or low testosterone and talk you through treatment. If medicines might be part of it, see also [can blood thinners cause ED](https://tryinvigor.com/can-blood-thinners-cause-ed) and [Adderall and erectile dysfunction](https://tryinvigor.com/adderall-and-erectile-dysfunction-is-there-a-connection).

## Getting ED treatment through Invigor

If erection problems are sticking around after the cause above has been looked at, Invigor can help you explore treatment. Start with a free online assessment. A licensed U.S. provider reviews your health history and your medicines and decides whether a treatment such as [sildenafil](https://tryinvigor.com/medications/sildenafil) or [tadalafil](https://tryinvigor.com/medications/tadalafil) is appropriate for you. If it is prescribed, your medication ships from a state-licensed U.S. pharmacy.

## Frequently asked questions

### Can a cold or the flu cause erectile dysfunction?

It can for a while. Tiredness, stress, poor sleep and some cold medicines can all make erections harder [1][3]. Many men find things improve as they recover.

### Can Sudafed or Benadryl cause ED?

Both pseudoephedrine (Sudafed) and diphenhydramine (Benadryl) are on MedlinePlus's list of drugs that may cause erection problems [3]. Not everyone is affected, so ask a pharmacist or doctor about alternatives if you notice a change.

### Does COVID-19 cause erectile dysfunction?

Studies have linked COVID-19 with a higher risk of ED, and anxiety appears to be part of it [5]. The evidence is still mixed, so talk to a doctor if your erections changed after COVID-19 and have not come back.

### How long after being sick should my erections go back to normal?

There is no set timeline. If problems continue a few weeks after you feel well, see a doctor, because ongoing ED is not likely to go away without treatment or changes [1].

### Should I stop my medicine if I think it is causing ED?

No. Never stop a medicine without talking to the provider who prescribed it [3]. They can often adjust the dose or switch you to something else.

## Sources

1. [Erectile Dysfunction (ED)](https://my.clevelandclinic.org/health/diseases/10035-erectile-dysfunction), Cleveland Clinic, 2024
2. [Symptoms & Causes of Erectile Dysfunction](https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/symptoms-causes), National Institute of Diabetes and Digestive and Kidney Diseases (NIH), 2017
3. [Drugs that may cause erection problems](https://medlineplus.gov/ency/article/004024.htm), MedlinePlus, U.S. National Library of Medicine, 2024
4. [Nasal Symptoms Among Allergic Rhinitis Patients Could Contribute to Sexual Dysfunction](https://doi.org/10.2147/JAA.S483507), Journal of Asthma and Allergy, 2025
5. [Prevalence and risk factors of erectile dysfunction in COVID-19 patients: a systematic review and meta-analysis](https://doi.org/10.1007/s40618-022-01945-w), Journal of Endocrinological Investigation, 2023

---

This article is for education only. It is not medical advice, and it is not a diagnosis or a prescription. Where a clinician is named as its reviewer, they reviewed it for medical accuracy. Talk to your own clinician before you start, stop or change any treatment.
