provider image
Welcome! You’re in GoodRx for healthcare professionals. Now, you’ll enjoy a streamlined experience created specifically for healthcare professionals.
Skip to main content

The Link Between Erectile Dysfunction and Heart Disease: Is It Safe to Take Medications Like Viagra?

Megan N. Freeland, PharmD, RPhKarla Robinson, MD
Updated on April 25, 2023

Key takeaways:

  • Many of the things that lead to heart disease also cause erectile dysfunction (ED). This includes smoking, diabetes, high blood pressure, and high cholesterol.

  • Medications like Viagra (sildenafil) can safely treat ED in most people with heart disease. But people who take nitrate medications shouldn’t use ED medications.

  • ED is a side effect of many medications that treat heart conditions. Talk to your healthcare provider if you’ve started a new medication and now have ED.

02:19
Reviewed by Alexandra Schwarz, MD | October 31, 2024

If you have heart disease, you may also have trouble getting or keeping an erection at some point in time. You’re not alone. In fact, erectile dysfunction (ED) is especially common in men who have heart disease. That’s because many of the risk factors that lead to heart disease also cause ED. 

If ED happens regularly, you might feel frustrated or embarrassed. And you may begin to wonder about your treatment options and whether it’s safe to treat ED if you have a heart condition. Let’s take a closer look at how medications that treat ED, like Viagra (sildenafil), affect heart health.

What is erectile dysfunction?

Erectile dysfunction (ED) is a condition where you have trouble getting or keeping an erection long enough to have sex. And it affects millions of men around the world. 

Search and compare options

Search is powered by a third party. By clicking a topic in the advertisement above, you agree that you will visit a landing page with search results generated by a third party, and that your personal identifiers and engagement on this page and the landing page may be shared with such third party. GoodRx may receive compensation in relation to your search.

ED medications like Viagra (sildenafil) and Cialis (tadalafil) are very popular, so it can be tempting to run out to get a prescription if ED is a problem for you. But ED can be the result of many different causes, including heart disease. Understanding the underlying cause of your ED and treating that issue is critical for helping you stay as healthy as possible.

Quiz: Is it erectile dysfunction?

What is heart disease?

Heart disease” might sound like a broad term. That’s because it is. Heart disease includes a range of conditions related to the heart itself and/or the blood vessels. Common examples are:

Some people are born with heart defects. But, more often than not, a person develops heart disease over time.

Four of the biggest risk factors for developing heart disease include:

These happen to be major risk factors for ED, too. So, if you have any of these risk factors and also have ED, you should see your primary care provider. They can check to see if you have signs of heart disease as well.

How are heart disease and erectile dysfunction related?

The heart and blood vessels are very important when it comes to erections. After all, erections happen when the blood vessels in the penis open up and allow for more blood flow. If for some reason that blood flow is interrupted, blocked, or slowed, you might not be able to get or keep an erection.

Depending on the condition, heart disease can change blood flow in different ways. Blood flow may be affected if the:

  • Heart isn’t pumping strongly enough (due to heart failure)

  • Blood vessels are damaged (due to high blood pressure)

  • Blood vessels are blocked (due to high cholesterol)

Because they’re closely linked, ED can often be one of the first signs that you might have an underlying heart condition.

Can medications that treat ED affect heart conditions?

Medications that treat ED work by blocking an enzyme in the lining of the blood vessels. They increase the amount of nitric oxide in the bloodstream. This causes the vessels to dilate and allows more blood to flow into the penis. These medications include:

In the past, there have been concerns about whether these medications are safe to use in people with heart conditions. But experts agree that most people with heart conditions can take ED medications. When used correctly, medications like Viagra are safe and effective. And they can help improve the quality of life of people with ED and heart disease.

The only absolute exception is people who take nitrate medications. If you have heart disease and take medications like isosorbide dinitrate or nitroglycerin, you should not take medication for ED. 

Nitrate medications can interact with ED medications like Viagra and cause an unsafe drop in blood pressure. You’ll need to talk with your provider about alternative treatments. It’s also important to talk with your provider if you have a history of unstable blood pressure or are being treated for coronary artery disease.

Can medications that treat heart disease cause erectile dysfunction as a side effect?

Yes, some medications that treat blood pressure and other heart conditions can cause ED as a side effect. Some types of medications that can contribute to ED include:

Let your provider know if you have ED and take medications to keep your heart healthy. They will need to figure out if your ED is happening as a side effect of the medication. Or they’ll need to see if your medications aren’t effective in treating your heart disease so that you can keep an erection. You and your provider may need to work together to change your dose or consider other medications.

The bottom line

Heart conditions and erectile dysfunction (ED) are closely linked. Risk factors that cause heart disease can also cause ED. And some treatments for heart conditions can make ED worse. Luckily, there are many medications for ED. And most people with heart conditions can safely take medications like Viagra. But it’s important to follow your provider’s instructions. If you have ED, be sure to talk with your provider about your symptoms. They can help figure out the best treatment plan for you.

why trust our exports reliability shield

Why trust our experts?

Megan N. Freeland, PharmD, RPh
Megan began her career as a public health pharmacist and transitioned into healthcare copywriting and content marketing as the CEO of StockRose Creative, LLC. As a public health pharmacist, Megan supported the Centers for Disease Control and Prevention (CDC) in medication safety, health communications, and regulatory affairs. After receiving her Bachelor of Arts in Spanish from Emory University and her doctorate degree in pharmacy from Mercer University, she completed fellowship training in drug information and health communications.
Karla Robinson, MD
Karla Robinson, MD, is a medical editor for GoodRx. She is a licensed, board-certified family physician with almost 20 years of experience in health through varied clinical, administrative, and educational roles.

References

Chamsi-Pasha, H. (2001). Sildenafil (Viagra) and the heart. Journal of Family & Community Medicine.

LiverTox: Clinical and Research Information on Drug-Induced Liver Injury. (2017). Phosphodiesterase type 5 (PDE5) inhibitors.

View All References (3)

Muller, A. J., et al. (2010). Taking the stress out of treating erectile dysfunction. Canadian Family Physician.

Speakman, M. T., et al. (1999). Viagra and cardiovascular disease. Journal of Cardiovascular Pharmacology and Therapeutics.

Terentes-Printzios, D., et al. (2022). Interactions between erectile dysfunction, cardiovascular disease and cardiovascular drugs. Nature Reviews Cardiology.

GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.

Was this page helpful?

Boost Heart Health, Not Blood Pressure

Whether you were recently diagnosed with high blood pressure, want to reduce your risk, or want to better understand your treatment options, our free 7-day guide can help.

By signing up, I agree to GoodRx's Terms and Privacy Policy, and to receive marketing messages from GoodRx.