Erectile Dysfunction at Age 40: Causes & Solutions

Kristin Hall, FNP

Reviewed by Kristin Hall, FNP

Written by Our Editorial Team

Published 03/19/2021

Updated 03/20/2021

You expect certain changes as you age. But not being able to have a fulfilling sex life can be a surprise, especially in your 40s. That said, erectile dysfunction can affect men of any age. And while it’s more common in older age, your 40s aren’t “too young” to deal with impotence. 

ED Prevalence in Men in Their 40s 

All men will eventually suffer from erectile dysfunction, unless, of course, they don’t live into old age. It’s known as aging related erectile dysfunction or aging related impotence. But a common misconception is that only old age leads to ED. When ED can be caused by numerous factors that begin as early as your 20s. 

Men in their 40s have a lot going on -- they’ve officially reached middle age, which can be scary. But if you add to that a decline in sexual performance, being 40-something can feel pretty darned old. 

But impotence in your 40s is not unheard of. On the contrary. One study, known as the Massachusetts Male Aging Study, found that about 40 percent of men in their 40s will experience some form of ED. This rate increases with age, but also didn’t jump to 40 percent out of the blue -- men in their 20s and 30s can also experience ED.

If 40 percent of men in their 40s deal with some form of ED, that means roughly two men in your friend’s group of five 40-somethings suffer from it, or have. In other words, you’re not alone, and there’s a good chance you know people who have dealt with it in their 40s as well.

Viagra online

Genuine Viagra® makes it possible

What’s Causing Your Erectile Dysfunction

Erectile dysfunction can be attributed to a lengthy list of potential causes. In fact, it is often a symptom of a larger health problem. Which means it could be a warning sign, so take heed.

ED can be a sign of pending heart trouble. It generally occurs two to five years before coronary artery disease, as a sort of red flag that your health is headed down the wrong path. According to research published in the journal American Family Physician, ED is as much of a predictor of heart disease as smoking is, and it’s most predictive of heart disease in men in their 40s. In other words, ED in your 40s is more likely to be a sign of cardiovascular disease than it is in your 50s or later.

ED can also be caused by metabolic syndrome, which is essentially a group of risk factors that raises your risk for heart disease and other health problems, such as diabetes and stroke.

These risk factors include high “bad” cholesterol, high blood sugar, and high blood pressure. Perhaps obviously, these signs are evidence that your diet and activity levels may be lacking.

Trouble getting or maintaining an erection in your 40s could also be caused by endocrine or hormone disorders such as low levels of the hormone testosterone. Testosterone levels decline with age, but “low T” is not unheard of in middle age.

Impotence can also be a side effect of depression. There is a strong association between mental health and sexual health, and both anxiety and depression can cause (or be caused by!) sexual performance issues. In other words, ED can create a vicious cycle with mental health conditions.

A related potential cause, antidepressant medication can also lead to sexual dysfunction. ED could be a side effect of both selective serotonin reuptake inhibitors (SSRIs) such as escitalopram or fluoxetine, or serotonin norepinephrine reuptake inhibitors (SNRIs) such as duloxetine.

There are other causes as well. Here are some of the more common causes of ED for men in their forties: 

  • Heart disease 

  • Metabolic syndrome

  • Hypertension

  • Hormonal disorders

  • Mental health conditions

  • Certain medications 

  • Drug or alcohol abuse

  • Smoking 

  • Sedentary lifestyle 

  • Diabetes 

  • Obesity

  • Neurologic conditions

  • Pain

  • Trauma

  • Physical disorders like venous leakage 

  • Prostate cancer 

ED treatments, delivered

Generic for Viagra (sildenafil)

The more affordable FDA-approved medication that treats Erectile Dysfunction at a quarter of the cost. 🙌

Generic for Cialis (tadalafil)

Affordable and helps get the job done. Generic Cialis helps you get and maintain your erections through a simple, daily dosage.


The OG Little Blue Pill that made its name as the first prescription Erectile Dysfunction treatment.


Cialis helps you get and keep stronger erections with a daily or as-needed pill.

ED Treatment for 40-Somethings 

The first step in treating erectile dysfunction is consulting with a medical professional. A healthcare provider can help you sort out what might be causing your impotence. And the cause will determine the appropriate course of treatment. 

If your ED is caused by lifestyle issues such as being inactive, smoking or obesity, the power to reclaim your sexual health may lie in lifestyle changes. The research indicates steps like getting more exercise, losing weight, and controlling diabetes and high blood pressure can improve testosterone levels and lessen sexual dysfunction.

There are also medical treatments available, the most common and first-line choice of most physicians being oral medications known as PDE-5 inhibitors. This class of drugs includes medications such as sildenafil (Viagra, generic Viagra) and tadalafil (Cialis), among others. They are the first-line treatment largely because of their effectiveness and safety profiles.

Surgery and vacuum devices are also options for the treatment of ED in certain cases. 

Talking with a healthcare provider about your struggles with impotence may not be the top thing on your to-do list — talking with anyone about sexual dysfunction can be uncomfortable. But your ED could be a sign of something more serious, and help is pretty easy to come by. 

Sildenafil citrate

Get hard for 95% cheaper than Viagra

Parting Words for 40-Something Men with ED 

Erectile dysfunction becomes more common with age, but is not unheard of in men in their forties. In fact, some estimates suggest as many as 40 percent of 40-something men will deal with ED. ED in your 40s can be a sign of a serious health condition such as heart disease, or could simply be a side effect of a medication you’re taking. Talking with a healthcare provider will help you determine what’s causing your problem and how best to solve it.

4 Sources

Hims & Hers has strict sourcing guidelines to ensure our content is accurate and current. We rely on peer-reviewed studies, academic research institutions, and medical associations. We strive to use primary sources and refrain from using tertiary references.

  1. Rew, K., et. al. (2016, Nov.) Erectile dysfunction. American Family Physician. 94(10): 820-827. Retrieved from
  2. Ferrini, M., et. al. (2017, Feb.) Aging related erectile dysfunction -- potential mechanism to halt or delay its onset. Translational andrology and urology. 6(1): 20-27. Retrieved from
  3. Higgins, A., et. al. Antidepressant-associated sexual dysfunction: Impact, effects and treatment. Drug, Healthcare and Patient Safety. 2: 141-150. Retrieved from
  4. Rastrelli, G. (2017, Feb.) Erectile dysfunction in fit and healthy young men: psychological or pathological. Translational andrology and urology. 6(1): 79-90. Retrieved from

This article is for informational purposes only and does not constitute medical advice. The information contained herein is not a substitute for and should never be relied upon for professional medical advice. Always talk to your doctor about the risks and benefits of any treatment. Learn more about our editorial standards here.