Enjoy sex like you used to

Learn more

Erectile Dysfunction (ED) and Diabetes: What's The Link?

Mike Bohl, MD, MBA, MPH, MS, ALM

Reviewed by Mike Bohl, MD, MPH, ALM

Written by Geoffrey C. Whittaker

Published 03/07/2019

Updated 04/09/2024

Erectile dysfunction, or ED, is a common sexual health issue that affects around 30 million men in the United States alone. Often, ED is caused by physical health problems, such as atherosclerosis, obesity, nerve damage or high blood pressure. Unfortunately, issues associated with diabetes mellitus can also cause or contribute to ED.

Erectile dysfunction or ED is common in men with diabetes, including type 2 diabetes. Damaged blood vessels and nerves — which occur with diabetes — can make both getting and keeping an erection more challenging.

Diabetes can also affect the age at which you first start to develop ED symptoms, often by a decade or more. The good news is that it can be treated.

Below, we’ve looked into the link between diabetes and erectile dysfunction. We’ve also covered what you can do to treat ED and improve your sexual performance if you’re affected by type 1 diabetes or type 2 diabetes.

Can diabetes cause ED? Sort of. Diabetes can either cause or contribute to erectile dysfunction in three main ways — by affecting blood flow to tissues inside your penis, by affecting the function of your nervous system and by potentially contributing to depression. 

These three issues mean that men with diabetes have a significantly higher risk of dealing with ED than their peers.

Because erections depend on proper nerve function and blood flow, any condition that affects your nerves or vascular system can also potentially affect your ability to get an erection.

For example, diseases and conditions such as atherosclerosis (clogged arteries), hypertension (high blood pressure) and heart and blood vessel disease can contribute to ED by affecting the ability of blood to flow to the tissues inside your penis.

This is where diabetes comes into the picture. Diabetes is closely linked to two issues that can cause erectile dysfunction: cardiovascular disease and nerve damage.

Diabetes can contribute to cardiovascular disease through blood vessel damage. Over time, high blood sugar levels can damage your blood vessels and contribute to cardiovascular disease, affecting the flow of blood throughout your body. 

Diabetes can also cause a type of nerve damage called diabetic neuropathy. One form of nerve damage caused by diabetes, called autonomic neuropathy, affects the sex organs. For men, this type of nerve damage can cause ED; in women, it can cause vaginal dryness.

Even the non-physical effects of diabetes can affect your erections and sexual performance. For example, if you have diabetes, your risk of developing major depressive disorder is two to three times higher than a person without diabetes.

Depression can affect your sex drive, including by contributing to ED. In fact, depression is one of the most common factors in psychological erectile dysfunction

Does diabetes cause ED for every man who has it? Not exactly, but it definitely increases your risk — and the prevalence is quite high.

In research published in the journal Clinical Diabetes, researchers found that men with diabetes have a 35 to 75 percent risk of also developing ED, versus just 26 percent of men in the general population.

They were also more likely to develop erectile dysfunction early in life, with the average onset of ED occurring 10 to 15 years earlier in men with diabetes.

Research also suggests that erectile dysfunction is more common in men who’ve been affected by diabetes for a long period of time. Put simply, in older men, the longer you’ve had diabetes, the greater your risk of potentially developing ED. 

Read here to learn more about the sexual side effects of diabetes.

Treating diabetes and ED simultaneously will require the guidance of a healthcare professional. 

A urologist or other health professional can answer questions. They’ll help you navigate treatment, prioritize what could be many changes in behavior and habits. They’ll also help you understand which risk factors men with diabetes can address to rule out other causes of ED like mental health concerns or low testosterone. 

Erectile dysfunction can be frustrating to deal with — something that’s true for men with and without diabetes. The good news is that ED is almost always treatable, typically with medication. 

Today, a variety of ED medications are available for men with diabetes, many of which are very effective at improving erections and sexual function.

The most widely used ED treatments are oral medications called PDE5 inhibitors. These work by inhibiting the PDE5 enzyme, which is responsible for regulating blood flow to the soft tissues inside your penis.

The most widely used PDE5 inhibitors are sildenafil (the active ingredient in Viagra®), tadalafil (Cialis®), vardenafil (Levitra®) and avanafil (sold as Stendra®). 

A standard dose of ED medication such as sildenafil can increase blood flow to your penile tissues, making it easier to develop and maintain an erection if you have diabetes. 

ED medications vary in their onset and duration of action. Some medications, such as sildenafil and vardenafil, are ideal for a single night of relief from ED. Others, such as tadalafil, last for up to 36 hours per dose.

Your healthcare provider may prescribe a certain medication based on the severity of your ED, your general health, personal needs and more. Our guide to what you should expect from ED medication goes into more detail on these medications and how they work.

Because ED medications can also have effects on the cardiovascular system, it’s important to speak to your doctor before using any of these drugs to treat diabetes-related ED. 

ED medications can also interact with some medications used to treat high blood pressure — a common issue for people with diabetes — making it important not to take any ED drugs without first consulting your healthcare provider. 

In addition to traditional ED medications, there are alternative treatments available for people with diabetes, such as injections and vacuum erection devices (VEDs).

These treatment options are often effective, but are less convenient than oral medications. Your healthcare provider may suggest using a device or prescribe an injectable ED medication if you fail to respond to other treatments.

In addition to medication to address ED, it’s also important to work with your healthcare provider to manage your diabetes. This is typically accomplished through lifestyle changes and medication.

Diabetes care and the complications of diabetes are both very serious responsibilities and while we know that erectile function is an important part of quality of life, obviously you need to have your priorities in order.

That means that if you think or know that you have diabetes, you can’t ignore that aspect of your health to prioritize treating sexual dysfunction.

If you're noticing a link between your diabetes and erectile dysfunction, it’s always best to talk to your healthcare provider about lifestyle changes you can make to address your erectile function and your blood glucose. 

You can also access ED medication online through our platform after a private, online consultation with a licensed healthcare provider. 

Interested in learning more about successfully dealing with ED? Our guide to the most common treatments for ED goes into more detail about how you can improve your erections and enjoy a healthy sex life even if you’re prone to severe or persistent erectile dysfunction. 

9 Sources

  1. Definition & Facts for Erectile Dysfunction. (2017, July). Retrieved from https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/definition-facts
  2. Symptoms & Causes of Erectile Dysfunction. (2017, July). Retrieved from https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/symptoms-causes
  3. Erection Ejaculation: How it Occurs. (2020, November 27). Retrieved from https://my.clevelandclinic.org/health/articles/10036-erection-ejaculation-how-it-occurs
  4. Diabetes and Your Heart. (2021, May 7). Retrieved from https://www.cdc.gov/diabetes/library/features/diabetes-and-heart.html
  5. Diabetes and Nerve Damage. (2021, May 7). Retrieved from https://www.cdc.gov/diabetes/library/features/diabetes-nerve-damage.html
  6. Chu, N.V. & Edelman, S.V. (2001, January). Diabetes and Erectile Dysfunction. Clinical Diabetes. 19 91), 45-47. Retrieved from https://clinical.diabetesjournals.org/content/19/1/45
  7. Bacon, C.G., et al. (2002, August). Association of Type and Duration of Diabetes With Erectile Dysfunction in a Large Cohort of Men. Diabetes Care. 25 (8), 1458-1463. Retrieved from https://care.diabetesjournals.org/content/25/8/1458
  8. Dhaliwal, A. & Gupta, M. (2021, June 25). PDE5 Inhibitors. StatPearls. Retrieved from https://www.ncbi.nlm.nih.gov/books/NBK549843/
  9. Sildenafil. (2018, January 15). Retrieved from https://medlineplus.gov/druginfo/meds/a699015.html
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.

Mike Bohl, MD, MPH, ALM

Education

Training

Medical License

  • New York, 2019

Certificates & Certifications

Affiliations & Memberships

Specialties & Areas of Focus

  • General Practice

Previous Work Experience

  • Medical Expert Board Member - Eat This, Not That!, 2021–

  • Director Scientific & Medical Content - Stealth Biotech PBC, 2023–2024

  • Director, Medical Content & Education - Ro, 2021–2023

  • Associate Director, Medical Content & Education - Ro, 2020–2021

  • Senior Medical Writer - Ro, 2019–2020

  • Medical Editor/Writer - Sharecare, 2017–2020

  • Medical Student Producer - The Dr. Oz Show, 2015–2016

  • Research Affiliate - University Hospitals of Cleveland, 2013–2014

Publications & Research

Media Mentions & Features

  • Dr. Bohl’s medical expertise is regularly featured in consumer health media:

    • Eat This, Not That!: Contributor and Medical Expert Board Member on nutrition and wellness topics

    • The Dr. Oz Show: Behind-the-scenes contributor to Emmy Award-winning health segments

    • Sharecare: Public-facing health writer, simplifying complex medical issues for millions of readers

Why I Practice Medicine

  • Dr. Bohl developed a passion for medical content while working at The Dr. Oz Show. He realized that, through the media, he could bring important health information to the lives of many more people than he would be able to working in a doctor’s office.

Hobbies & Interests

  • Biking, resistance training, sailing, scuba diving, skiing, tennis, and traveling

Read more