Cold sore relief that works in 24 hours

Get started

Erectile Dysfunction at Age 40: Causes & Solutions

Kelly Brown MD, MBA

Reviewed by Kelly Brown MD, MBA

Written by Erica Garza

Published 03/20/2021

Updated 07/26/2024

Turning 40 is a milestone. You have more wisdom than you did at 20, you’re probably more established in your career, and you might be rocking the salt and pepper look in your hair.

But for some guys, getting older means their body parts don’t work as well as they used to, including their penises.

Dealing with erectile dysfunction (ED) at 40 may seem young — weren’t the guys in those 90s Viagra® commercials... elderly? — but data suggests that by the time a man reaches his 40s, he has a 40 percent chance of developing erection problems. That number goes up 10 percent every decade — 50 percent in your 50s, 60 in your 60s, and so on.

Sure, ED may become more common as you age, but you don’t have to accept it as a done deal. We’ve come a long way since the 1990s, and so has our understanding of what causes ED — and what you can do about it. Keep reading to learn more.

It’s normal to have trouble performing from time to time. Stress, relationship conflicts, and fatigue can all play a role in your ability to get an erection. Experiencing these occasional bouts of erectile failure doesn’t necessarily mean you have ED.

But men who face erectile difficulties frequently may have a bigger problem going on, especially if they’re over 40. Studies show that, relative to men aged 18-29 years, the odds of being diagnosed with ED or prescribed treatment increase more than 15-fold in older men aged 40-49 years.

Why do extra birthday candles bring a higher risk of ED? Well, according to one 2023 study, middle-aged and elderly patients are simply more likely to have a combination of multiple risk factors for ED compared to younger men with ED. As you’ll see in the next section, your penis faces many threats as you get older, from vascular issues to hormonal imbalances. To counter these threats, treatment for ED often requires a multi-pronged approach.

Personalized Rx

Hard results, delivered

A few things can impede sexual performance as you enter your 40s. We’ll outline the most common causes of ED below, but it’s important to talk with your healthcare provider if you’re having trouble getting or maintaining an erection to figure out the underlying cause — regardless of whether you have sudden ED or experience symptoms off and on.

Causes of erectile dysfunction in males in their 40s can be psychological or physical. Let’s take a closer look below.

Psychological Causes of ED

Psychological causes of ED at 40 include stress, performance anxiety, low self-esteem, depression, and relationship problems. They can impact sexual function and make it harder to get hard.

Pair that with the fact that life in your 40s tends to be filled with more stressors (work stress, relationship stress, and everyday stress). Plus, your risk for mental health conditions increases with age.

Moreover, if you have a chronic long-term disease like diabetes (another risk factor for ED), struggling to manage it over the years can exacerbate psychological distress, thereby compounding your risk factors for ED.

Physical Causes of Erectile Dysfunction at Age 40

The most common physical causes of ED in your 40s include:

  • Vascular issues (the most common cause) relating to blood flow and blood vessels

  • Neurological problems relating to the nervous system

  • Hormonal imbalances like low testosterone

Let’s explain what might lead to vascular, neurological, and hormone-related ED.

Vascular Causes of ED

Cardiovascular issues are the main contributor when it comes to vascular-related ED.

Some types of heart disease — like hardened arteries (aka atherosclerosis), high cholesterol, and high blood pressure — can impact blood vessel health and restrict penile blood flow. Without proper blood flow to the penis, you can’t get or maintain an erection.

As you get older, you also have a higher risk for other medical conditions that can cause ED, like diabetes.

Since high blood glucose levels can damage nerves and blood vessels (yes, even the ones in your penis!), metabolic diseases like diabetes can mess with your ability to get hard.

As noted, you’re more likely to develop diabetes the older you get. According to the Centers for Disease Control and Prevention (CDC), people most often develop type 2 diabetes after age 45.

Neurological Causes of ED

Neurological ED stems from conditions like Parkinson’s disease or multiple sclerosis (MS). Neurological disorders can impair the nervous system, meaning your brain may be unable to send the signals needed to start or keep an erection.

As for what is a major risk factor for neurodegenerative diseases like these? Aging.

Hormonal Causes of ED

People often associate age-related hormone changes with female menopause. But men also go through hormonal changes as they get older.

That’s right, your ED may be the result of age-related hormonal changes like a dip in testosterone levels, which happens naturally as you get older. Low testosterone can hamper your ability to get and stay erect long enough for satisfying sexual activity.

Other Causes of ED at 40

The following causes may also lead to sexual dysfunctions like ED:

  • Medications

  • Lifestyle choices

  • Prostate cancer

  • Physical trauma

Medications

As you get older, you’re more likely to develop health problems that require you to take prescription drugs. ED is a side effect of some medications, including antidepressants and high blood pressure (aka hypertension) meds.

Some common culprits include selective serotonin reuptake inhibitors (SSRIs) and serotonin-norepinephrine reuptake inhibitors (SNRIs), which are both used to treat depression and anxiety, as well as beta-blockers, which help treat hypertension.

Lifestyle Choices

Being inactive, smoking, drinking a lot, and having a bad diet can all raise your risk of ED. Why? These habits increase your chance of developing certain health conditions like the ones mentioned in the previous section. They can also increase your risk of obesity, another culprit behind ED.

Prostate Cancer

Prostate cancer treatments like surgery, chemotherapy and radiation may impact your ability to get and keep an erection. Or, you may find that your erections aren’t as hard as they used to be.

But also, cancer is a downer. It can take an emotional toll that trickles into your sex life, making it more difficult to get excited about sexual intercourse.

Physical Trauma

We’re sorry for bringing it up, but yes, injury to your pelvic area can cause ED. Injury might happen from direct trauma, like having a blood vessel or nerve nicked during prostate surgery. Or it could be an accident that causes a spinal cord injury.

And FYI: It’s possible for several causes to contribute to ED at once.

Choose your chew

You’re 40, struggling to get hard, and worrying this might be the end of a satisfying sex life. You might even be asking yourself, Can ED be reversed?

Well, we’ve got good news: ED is treatable!

Just because you’re in your 40s and experiencing symptoms doesn’t mean you have to live with them forever.

There’s no one-size-fits-all solution for ED, but getting in touch with a healthcare professional who specializes in urology is a great first step in finding a treatment that works for you.

Let’s break down the different ED treatments a urologist might recommend.

ED Medications

The most effective treatments for erectile dysfunction in men aged 40 and up are ED meds known as PDE5 inhibitors. These drugs widen your blood vessels to improve blood flow to the penis, helping you get and stay hard.

Here’s an overview of current FDA-approved ED medications:

Another option is our chewable hard mints, which contain varying dosages of sildenafil or tadalafil, the active ingredients in other FDA-approved erectile dysfunction meds. They come in a discreet case and have a fresh wintergreen flavor, so you can feel extra comfortable carrying them around.

Healthy Habits and Lifestyle Changes for ED

Day-to-day choices have a big impact on overall health — including erectile function.

Healthy lifestyle habits can help improve your overall well-being and make you less likely to develop medical conditions that can impact your equipment and make it tough to maintain an erection.

The following good habits may help prevent ED and improve existing erectile dysfunction symptoms:

  • Talking to a therapist

  • Following a healthy diet

  • Quitting smoking

  • Limiting alcohol intake and drug use

  • Getting physically active

  • Practicing stress-reduction strategies

Talking to a Therapist

Working with a psychotherapist or sex therapist can improve ED related to psychological causes. This professional can help you uncover the root cause of your symptoms and offer tips and tools to improve your sexual performance.

Following a Healthy Diet

Good nutrition can help manage conditions that can lead to ED, like cardiovascular disease, high blood pressure, and diabetes. Our blog has tips for maintaining an erection naturally, including ways to adjust your diet to improve sexual health.

Quitting Smoking

You probably already know it’s bad for you, but did you know smoking increases your risk of developing ED? Smoking can damage the blood vessels necessary for getting and maintaining an erection. So while you might think smoking looks cool, it definitely won’t make you feel cool — especially in bed.

Limiting Alcohol Intake and Drug Use

Both can be fun, but they can also make other types of fun less likely. Drinking too much and using recreational drugs are common risk factors for ED and can also be detrimental to your overall health over time.

Getting Physically Active

You don’t have to run a marathon tomorrow, but getting your heart rate up often is good for your cardiovascular health and can help improve conditions like high blood pressure. Regular exercise also helps you maintain a healthy weight, which is another win for your erections.

Practicing Stress-Reduction Strategies

Since stress can cause and exacerbate ED symptoms, finding ways to better cope with daily stressors — like doing yoga, meditating, or listening to soothing music — may help.

Studies have shown that mindfulness-based therapies can improve many areas of men’s sexual health, including sexual desire, sexual satisfaction, self-control, and erectile function.

Other Treatments for ED

If ED medications, therapy, and other lifestyle adjustments don’t work, your healthcare provider may recommend you try one of the following treatments:

  • Penile injections, containing ingredients like alprostadil or phentolamine

  • Vacuum devices (aka penis pumps) that manually increase penile blood flow

  • Penile implants

  • Testosterone replacement therapy (TRT) to address low testosterone

Personalized Rx

Enjoy sex like you used to

We live in a time when people can experience the best parts of their lives in their 40s and beyond. That means you have many years ahead of you to enjoy the things that make you feel good — sex included.

Sure, your risk of developing ED increases as you get older, but you’re not doomed to live without relief. Remember:

  • Younger men experience ED more often than you’d think. Research shows that by the time a man reaches his 40s, he has a 40 percent chance of having erection problems.

  • ED has many causes. From psychological causes like anxiety and stress to physical causes like vascular issues and hormonal imbalances, there are many reasons why you may have ED. Figuring out the underlying cause is key to getting the treatment you need.

  • ED is highly treatable. With so many erectile dysfunction treatment options available, you’re bound to find one that works for your needs. Still, talking with a healthcare professional is crucial to figuring out what’s going on.

Ready to get help for your ED symptoms? Schedule a call with a healthcare provider today to start exploring solutions online without dipping into your gas money.

In addition to prescribing meds, our telehealth providers can recommend testing and physical exams to help diagnose any underlying conditions that may be contributing to your sexual function issues. You deserve a happy, healthy sex life, and we’re here to support you going after one.

22 Sources

  1. Allen MA, et al. (2019). Erectile Dysfunction: An Umbrella Review of Meta-Analyses of Risk-Factors, Treatment, and Prevalence Outcomes. https://academic.oup.com/jsm/article-abstract/16/4/531/6966810?redirectedFrom=fulltext&login=false
  2. American Cancer Society. (2020). How cancer can affect erections. https://www.cancer.org/cancer/managing-cancer/side-effects/fertility-and-sexual-side-effects/sexuality-for-men-with-cancer/erections-and-treatment.html
  3. American Heart Association. (2023). Getting active to control high blood pressure. https://www.heart.org/en/health-topics/high-blood-pressure/changes-you-can-make-to-manage-high-blood-pressure/getting-active-to-control-high-blood-pressure
  4. Calabrò RO, et al. (2016). Erectile dysfunction in individuals with neurologic disability: A hospital-based cross-sectional study. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4896824/
  5. Centers for Disease Control and Prevention. (2022). Depression is not a normal part of growing older. https://www.cdc.gov/aging/depression/index.html
  6. Centers for Diseases Control and Prevention. (2023). Type 2 diabetes. https://www.cdc.gov/diabetes/basics/type2.html
  7. Childs EM, et al. (2014). Regular exercise is associated with emotional resilience to acute stress in healthy adults. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4013452/
  8. Ferrini MO, et al. (2017). Aging related erectile dysfunction-potential mechanism to halt or delay its onset. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5313305/
  9. Golan RO, et al. (2015). Age-related testosterone decline is due to waning of both testicular and hypothalamic-pituitary function. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4816459/
  10. Higgins AG, et al. (2010). Antidepressant-associated sexual dysfunction: Impact, effects, and treatment. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3108697/
  11. Hou YU, et al. (2019). Ageing as a risk factor for neurodegenerative disease. (2019). https://www.nature.com/articles/s41582-019-0244-7
  12. Kaplan-Marans EL, et al. (2022). Medications most commonly associated with erectile dysfunction: Evaluation of the Food and Drug Administration National Pharmacovigilance Database. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9537247/
  13. Kovac J, et al. (2015). Effects of cigarette smoking on erectile dysfunction. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4485976/
  14. Moon KI, et al. (2019). Obesity and Erectile Dysfunction: From Bench to Clinical Implication. https://wjmh.org/DOIx.php?id=10.5534/wjmh.180026
  15. Mulhall JO, et al. (2016). Relationship between age and erectile dysfunction diagnosis or treatment using real-world observational data in the United States. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5540144/
  16. National Institute of Diabetes and Digestive and Kidney Diseases. (2017). Definition & facts for erectile dysfunction. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/definition-facts
  17. National Institute of Diabetes and Digestive and Kidney Diseases. (2017). Preventing erectile dysfunction. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/prevention
  18. National Institute of Diabetes and Digestive and Kidney Diseases. (2017). Symptoms & causes of erectile dysfunction. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/symptoms-causes
  19. National Institute of Diabetes and Digestive and Kidney Diseases. (2017). Treatment for erectile dysfunction. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/treatment
  20. Rodríguez MA, et al. (2023). A Scoping Review of the Influence of Mindfulness on Men’s Sexual Activity. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9966447/
  21. Sansone AN, et al. (2021). Sexual Dysfunction in Men and Women with Diabetes: A Reflection of their Complications?. https://www.eurekaselect.com/article/114790
  22. Wang CH, et al. (2023). Efficacy and safety of PDE5 inhibitors in middle-aged and old patients with and without hypogonadism. https://www.tandfonline.com/doi/full/10.1080/13685538.2023.2288347
Editorial Standards

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. See a mistake? Let us know at [email protected]!

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.

Kelly Brown MD, MBA
Kelly Brown MD, MBA

Dr. Kelly Brown is a board certified Urologist and fellowship trained in Andrology. She is an accomplished men’s health expert with a robust background in healthcare innovation, clinical medicine, and academic research. Dr. Brown was previously Medical Director of a male fertility startup where she lead strategy and design of their digital health platform, an innovative education and telehealth model for delivering expert male fertility care.

She completed her undergraduate studies at University of North Carolina at Chapel Hill (go Heels!) with a Bachelor of Science in Radiologic Science and a Minor in Chemistry. She took a position at University of California Los Angeles as a radiologic technologist in the department of Interventional Cardiology, further solidifying her passion for medicine. She also pursued the unique opportunity to lead departmental design and operational development at the Ronald Reagan UCLA Medical Center, sparking her passion for the business of healthcare.

Dr. Brown then went on to obtain her doctorate in medicine from the prestigious Northwestern University - Feinberg School of Medicine and Masters in Business Administration from Northwestern University - Kellogg School of Management, with a concentration in Healthcare Management. During her surgical residency in Urology at University of California San Francisco, she utilized her research year to focus on innovations in telemedicine and then served as chief resident with significant contributions to clinical quality improvement. Dr. Brown then completed her Andrology Fellowship at Medical College of Wisconsin, furthering her expertise in male fertility, microsurgery, and sexual function.

Her dedication to caring for patients with compassion, understanding, as well as a unique ability to make guys instantly comfortable discussing anything from sex to sperm makes her a renowned clinician. In addition, her passion for innovation in healthcare combined with her business acumen makes her a formidable leader in the field of men’s health.

Dr. Brown is an avid adventurer; summiting Mount Kilimanjaro in Tanzania (twice!) and hiking the incredible Torres del Paine Trek in Patagonia, Chile. She deeply appreciates new challenges and diverse cultures on her travels. She lives in Denver with her husband, two children, and beloved Bernese Mountain Dog. You can find Dr. Brown on LinkedIn for more information.

Education & Training


Research

Published as Kelly Walker



Read more

Related Articles

Real medicine, fast results

Keep cold sore breakouts at bay so you can keep going