What Causes Erectile Dysfunction and What to Do?

Study data suggests it affects 18 million men over the age of 20 in the United States. It affects men of all ages and backgrounds, but becomes increasingly prevalent with age. Millions of men struggle with it, but shockingly few ever seek treatment.

What condition is this common while remaining underdiagnosed and, in many cases, untreated?

Erectile dysfunction.

These words are enough to make any man feel nervous. Erectile dysfunction, or ED, is a highly personal problem that many men find embarrassing or shameful to talk about.

Men who fail to seek treatment for erectile dysfunction often feel as though they are alone in their suffering, but nothing could be further from the truth.

A study on male aging found that as many as 40 percent of men experience some degree of erectile dysfunction by the time they reach 40, and the prevalence of ED rises as high as 70 percent by the age of 70.

Erectile dysfunction is common, but many men fail to learn even the basics about exactly what it is, what causes it and what can be done to treat and prevent it.

Keep reading to learn more about this common condition, its potential causes and the steps that you can take to best manage it.

What Is Erectile Dysfunction?

Erectile dysfunction is a condition in which you’re either unable to get an erection, or unable to sustain an erection sufficient for penetrative sex.

Like many other forms of sexual dysfunction, ED can vary in severity. Some men with ED find it difficult or impossible to get hard, while others may be able to get an erection but not maintain it, or only get an erection that’s slightly firm.

Erectile dysfunction can be something that affects you once every now and then or a recurring, long-term problem that makes it hard to maintain a satisfying sex life.

The basics of erectile dysfunction are simple enough, but what -- exactly -- happens that makes it so difficult to get an erection? 

Inside your penis, there are two long, cylindrical chambers called the corpora cavernosa, which contain a myriad of blood vessels and tissues, as well as one major artery in each chamber.

When you become sexually aroused, your nervous system signals to your penis. This triggers a local response in which the muscles of your corpora cavernosa relax, allowing blood to flow into your penis and make it larger and firmer. 

This flow of blood to your penis is essential for healthy erections. The more blood is able to flow into your corpora cavernosa, the easier it becomes to sustain a firm erection that allows you and your partner to have sex. 

Erectile dysfunction occurs when blood either isn’t able to flow into your penis, or doesn’t flow to your corpora cavernosa for another reason. 

Sometimes, erectile dysfunction happens at the same time as other forms of sexual dysfunction, such as premature ejaculation, delayed ejaculation, anorgasmia (difficulty reaching orgasm) or a low sex drive. In other cases, it’s an isolated issue that occurs on its own. 

What Causes Erectile Dysfunction? 

A variety of factors can cause or contribute to erectile dysfunction, including your physical health(your penis health, cardiovascular health, etc) and wellbeing (getting sick can be a reason for ED), your mental health, certain lifestyle choices, and even your use of certain medications or substances.

Because male sexual arousal is a fairly complex process, it can sometimes be difficult to identify a specific cause.

Sexual arousal starts in your brain, but it also involves your nervous system, muscles and blood vessels. It can even be impacted by factors such as your emotions and your production of some sex-related hormones.

If a problem develops that involves any of these things, erectile dysfunction could be a potential consequence. 

Generally speaking, the causes of erectile dysfunction can be sorted into three main categories: physical causes, psychological causes and medications or substances.

Though each of these categories has its own set of contributing factors, many cases of erectile dysfunction involve causes from several categories.

Here’s an overview of each category, as well as the specific issues that can cause or contribute to ED:

Get hard, stay hard

Get effective, affordable ED treatment... from your home!

Physical Causes of ED

Erectile dysfunction is often caused by physical health factors, including those that affect blood flow and nerve function.

Since erections are all about healthy blood flow, it’s common for cardiovascular health issues to affect your sexual health and erectile function.

Common physical causes of erectile dysfunction include heart disease, atherosclerosis (clogged arteries), high cholesterol and hypertension, or high blood pressure. These issues can all affect your cardiovascular health and potentially restrict the flow of blood to your penis. 

Other forms of vascular disease can also reduce blood flow and make it more difficult to develop or sustain an erection.

There is also a link between stomach problems and ED.

Another common physical cause of ED is type 2 diabetes, which can damage your arteries and nervous system. This can lower blood flow to your penis and affect your ability to feel physical sensation, including in your penis and surrounding tissue. 

Obesity and metabolic syndrome can cause changes in blood pressure, body composition and cholesterol, which may lead to ED.

Conditions that damage your nervous system can also cause or contribute to ED. These include multiple sclerosis (MS), as well as local injuries to the nerves around your penis, spinal cord and pelvis caused by surgery, radiation therapy or accidental damage.

Finally, certain lifestyle factors that affect your physical health can have an effect on your risk of developing erectile dysfunction.

For example, habits such as smoking can increase your risk of developing ED by harming your cardiovascular system. Excessive alcohol consumption is also linked to a higher risk of sexual dysfunction, including ED.

Psychological Causes of ED

In many cases, erectile dysfunction is rooted in psychological issues, especially in men under 40 years of age. Because sexual arousal starts in the brain, psychological conditions can be a significant contributing factor to ED. 

Several mental health issues can take a toll on your erections, libido and overall sexual health, including common problems such as depression and anxiety.

Sometimes, these mental health issues are specific to sex. For example, many men develop a form of anxiety called sexual performance anxiety, which can cause extreme nervousness that occurs before or during sex. 

Others may experience feelings of guilt about having sex, or worries about engaging in certain types of sexual activity.

Beyond depression and anxiety, stress may also be a major factor in erectile dysfunction. When stress is severe or chronic, it can interfere with your brain sending signals to allow extra blood to flow to your penis, making it more difficult for you to get and stay hard during sex.

Though it can sometimes be difficult to pin down the specific cause for your erectile dysfunction, it is always worth the effort. Left untreated, ED can contribute to worsened stress and anxiety as well as low self-esteem, relationship issues and a reduced quality of life.

We’ve discussed these causes and the impact they can have on your sexual performance more in our full guide to the psychological causes of ED and How to Break the Cycle of Performance Anxiety.

ED treatments, delivered

No matter the treatment plan, the best place to start is somewhere.


Hard Mints by Hims

Combination Chewable Treatment

From £3/use

These mint-flavored chewables are packaged in a discreet portable tin. Our personalised treatments contain active ingredients used to treat ED at different dosages to meet your specific needs.

Traditional Pill

SildenafilGeneric Viagra®

From £2.25/use

The most commonly prescribed ED treatment, contains the same active ingredient as Viagra® but is 80% more affordable than the brand name.


Hard Mints by Hims

Daily Chewable Treatment

From £26/month

These mint-flavored once-daily chewables are packaged in a discreet portable tin. Our personalised treatments contain active ingredients used to treat ED at different dosages.

Traditional Pill

Daily TadalafilDaily Generic Cialis®

From £21/month

A clinically proven treatment for erectile dysfunction that helps men achieve and maintain erections more easily. It gives you the freedom to enjoy spontaneous sex without needing to plan ahead.

Traditional Pill

As-Needed TadalafilGeneric Cialis®

From £2.25/use

The unbranded, more affordable generic form of Cialis® taken as needed. It is clinically proven to help men get and keep harder erections for up to 36 hours.

Traditional Pill

Viagra Connect®

From £5.83/use

The over-the-counter branded version of sildenafil. Viagra Connect® improves blood flow to the penis, helping you achieve and maintain strong and satisfying erections.

Important safety information for Sildenafil, Tadalafil, Tadalafil Daily or Viagra Connect.

Medications and Substances That Can Cause ED

In addition to physical and psychological causes, erectile dysfunction is occasionally caused by certain medications and substances. 

Many common medications can affect your vascular and nervous systems, potentially causing ED as a side effect. Others can affect your brain and make it more difficult to become aroused or sexually stimulated.

When erectile dysfunction is caused by a medication or other substance, it may be referred to as drug-induced erectile dysfunction, or impotence caused by medications.

Common medications that may cause or contribute to erectile dysfunction include:

  • Medications for high blood pressure. Certain blood pressure medications, including diuretics and beta-blockers, can cause or contribute to ED. Other medications used to treat high blood pressure may interact with PDE5 inhibitors used to treat ED.

  • Antidepressants. Lots of widely-used antidepressants, including selective serotonin reuptake inhibitors (SSRIs), can cause sexual side effects, including a reduced libido, difficulty reaching orgasm and erectile dysfunction.

  • Antiandrogens. Some antiandrogens (medications that reduce production of male sex hormones) may cause ED. These medications are often used to treat prostate cancer and certain androgen-dependent medical conditions.

  • Antihistamines. Several antihistamines used to treat allergies are associated with ED, including diphenhydramine (the active ingredient in Benadryl®).

  • Prescription sedatives. Some prescription sedatives used to treat anxiety and difficulty sleeping may cause erectile dysfunction.

  • Medications for Parkinson’s disease. Erectile dysfunction is a known side effect of several medications used to treat and manage Parkinson’s disease symptoms.

In addition to common medications, many illicit substances can either cause or worsen erectile dysfunction. These include cocaine, amphetamines and heroin, as well as medications used as recreational drugs such as ​​barbiturates.

There’s also a link between marijuana and erectile dysfunction, as well as other sexual function issues such as difficulty reaching orgasm.

Luckily, antibiotics are not a cause of ED, but you can read our guide for more information.

What ED Treatment Options Are Available?

Erectile dysfunction can be frustrating to deal with, especially when it prevents you from having a satisfying, fulfilling sex life. However, almost all cases of ED can be treated.

Treatment of erectile dysfunction starts with an accurate diagnosis. You can get this by meeting with your primary care provider, by talking to an ED doctor online, or by talking to a specialist in men’s reproductive health, such as a urologist. 

In many cases, diagnosing erectile dysfunction requires little more than a physical examination, a quick chat about your medical history and a review of your symptoms.

Depending on the severity of your ED, your general sexual function and other factors, you may benefit from one of the following treatment options.

Erectile Dysfunction Medications

Several medications are used to treat ED, including oral ED medications such as sildenafil (the active ingredient in Viagra®), tadalafil (Cialis®), vardenafil (Levitra®) and avanafil (Stendra®). 

These medications work by increasing blood flow to your penis, making it easier for you to get and stay hard when you’re sexually aroused. Most oral ED medications can be taken 30 to 60 minutes before sex, making them easy to use during a night out or at home. 

You can learn more about these medications, their effects and how to use them in our guide to the most common ED treatments and drugs.

It’s important to be aware that ED medications can interact with other common drugs, including some used to treat hypertension and cardiovascular disease. We’ve covered these in our guide to common sildenafil interactions

We offer brand name and generic versions of several ED medications, following a consultation with a licensed healthcare provider who will determine if a prescription is appropriate.


When ED is caused by a psychological issue, such as anxiety, depression or worries about sex, psychotherapy can be beneficial. 

Several different forms of psychotherapy are used to treat psychological ED, including cognitive behavioral therapy (CBT) and sex therapy. The goal of therapy is to help you overcome feelings that affect your ability to have sex and develop systems for controlling them in the future.

Depending on the root cause of your ED, you may benefit from therapy on its own or along with the use of ED medication. 

Vacuum Constriction Devices

An alternative to oral ED medications, vacuum erection devices create an erection with vacuum pressure by drawing blood into your penis. Some of these devices are used with a band to hold blood inside your penis and sustain your erection during sex. 

You may benefit from using a vacuum device if oral medications for ED aren’t totally effective for you, or if you’ve recently undergone surgery that affects your ability to get an erection.

Erectile Dysfunction Surgery

Although they’re invasive and rarely used unless necessary, surgical options for treating erectile dysfunction do exist. 

Surgery shouldn’t be your first choice for treating ED, especially if you’ve yet to try medication or therapy. However, if you have a physical injury or condition that’s causing you to experience ED, a surgical procedure may be your best treatment option.

The most common type of surgery for ED involves fitting a malleable or inflatable penile implant, allowing you to maintain an erection firm enough for sex.

When erectile dysfunction is caused by a venous leak (an inability to maintain blood pressure in the penis), it may be treated with corrective vascular surgery.

Because of the costs and recovery time associated with ED surgery, these procedures are only used when other treatment options for erectile dysfunction aren’t effective. 

Testosterone Replacement Therapy (TRT)

As you age, it’s normal for your testosterone levels to gradually decline. As a result of this, many men start to experience symptoms of low testosterone, such as weaker erections and a reduced level of interest in sex, as they enter their 30s, 40s or 50s. 

Related reads: What Can Cause Erectile dysfunction at 30, Erectile Dysfunction at Age 40, ED at age 50

Although it’s still possible to get an erection with low levels of testosterone, many guys with low testosterone feel less sexually aroused and experience a reduction in things like morning wood

If you have low testosterone and ED, your healthcare provider may suggest using testosterone replacement therapy (TRT). This treatment involves using artificial testosterone to restore your testosterone levels to the normal range. 

TRT can cause side effects and it isn’t for everyone. However, if you have low testosterone and notice that it’s affecting your sexual performance, it may be an option worth considering. 

Changes to your Habits and Lifestyle

When erectile dysfunction is caused by a lifestyle factor, such as limited exercise, an unhealthy diet or obesity, changing your habits and lifestyle may help to improve your sexual function and reduce the severity of your ED.

As we’ve covered in our guide to the best ways to naturally protect your erection, habits such as taking part in regular exercise, eating a diet that’s rich in fruits and vegetables and getting lots of healthy sleep can have a noticeable positive impact on your sexual health. 

It can also help to overcome bad habits, such as by limiting your alcohol consumption or quitting smoking. 

Which ED Treatment is Best?

When you’re choosing an erectile dysfunction treatment, you should take your time. There are countless options available, and while none of them are perfect, some of them may be a better fit for you than others.

There’s no “best” ED treatment for everyone. Since a variety of factors can cause or contribute to erectile dysfunction, it’s important to identify what could be affecting your sexual health, then choose a treatment that matches your specific symptoms and needs.

One important thing to be aware of is that many of the over-the-counter ED “treatments” sold in gas stations, convenience stores and online not only don’t work, but often aren’t safe. These products are often marketed as “male enhancement” pills that can treat ED, boost sexual stamina and improve just about every aspect of your sexual performance. They typically contain a mix of herbal ingredients and make big claims about their efficacy and results.

While not all of these products are outright scams, many have been found to contain unlabeled, unsafe ingredients, including hidden pharmaceutical ingredients made in unsafe conditions. 

You can find out more about these products, as well as the risks associated with using them, by scrolling through the FDA’s list of tainted sexual enhancement products.

Before starting any treatment, it’s important to inform your healthcare provider about any drugs or supplements you currently use and to familiarize yourself with the common side effects of ED treatments

Get hard, stay hard

Get effective, affordable ED treatment... from your home!

What’s Next After Finding Out the Cause of Your ED?

Once you’ve learned about erectile dysfunction, its risk factors and its potential causes, you’ll be in a much stronger position to assess your own erectile function and take action.

If you’ve experienced any of the symptoms of ED recently, it may be worth reaching out to your healthcare provider for help. 

If you choose to seek help, make sure to give your healthcare provider as much information as you can about your symptoms, including when they started, their frequency and the impact that ED has on your sexual function. 

Another option is to seek help online. Using our telehealth platform, you can consult a licensed healthcare provider and access ED medications such as sildenafil, tadalafil and Stendra after a private online consultation. 

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 or medication.

ED treatment that comes to you

Answer some questions

Consult with a licensed provider

Get ED pills delivered, if prescribed

Get started