Research has shown a connection between the two conditions. If a person has depression, they have a higher risk of developing erectile dysfunction (ED).

The above information comes from a 2018 review published in The Journal of Sexual Medicine.

Researchers do not fully understand the connection. However, theories suggest the underlying causes may include sexual performance anxiety or antidepressant side effects.

If a person with depression experiences ED, their doctor may prescribe a medication such as sildenafil (Viagra). Alternatively, they may recommend trying a different antidepressant.

Read on to learn about the symptoms of ED, how depression can cause it, treatment options, and more.

A person sitting on a chair in the dark.Share on Pinterest
Tetra Images/Getty Images

The signs of ED include:

  • ability to get an erection only sometimes, despite a desire to have sex
  • inability to get an erection at any time
  • ability to get an erection, but being unable to sustain it throughout sex

A note about sex and gender

Sex and gender exist on spectrums. This article will use the terms “male,” “female,” or both to refer to sex assigned at birth. Click here to learn more.

Was this helpful?

Research from 2018 evaluates 49 studies to determine the relationship between depression and ED. It finds that a person with depression was 39% more likely to have ED than a person without depression.

Experts do not fully understand the factors that underlie how depression may cause ED. However, the current theories include:

  • Behavioral: Depression involves negative thoughts and low mood. Either or both can lead to performance anxiety that hinders erectile function.
  • Antidepressants: Many people with depression take antidepressant medications to manage their symptoms. However, these medications can cause low libido and inhibit the ability to have or maintain an erection.
  • Low testosterone: The male hormone, testosterone, plays a key role in sexual performance. As such, low levels often correlate to ED. There is an association between depression and low testosterone levels in men.

The previously mentioned 2018 review also finds that people with ED are 192% more likely to have depression. This means that the link between depression likely goes both ways. For example, a person with depression may have ED for the reasons listed above. Similarly, a person with ED may also be more likely to experience depression.

Low self-esteem, self-consciousness about sexual performance, and other negative thoughts could contribute to depression in people with ED.

There are a wide variety of factors besides depression that can cause ED. They include:

Mental health factors can also increase a person’s likelihood of ED. In addition to depression, these include:

  • anxiety
  • low self-esteem
  • fear of sexual failure
  • stress
  • guilt about certain sexual activities

Treatment for ED and depression includes medication, lifestyle changes, and psychotherapy. The treatment a healthcare professional recommends depends on the underlying cause of a person’s symptoms.

Medications for erectile dysfunction

Older research from 2001 explains when depression and ED occur simultaneously, treating one condition may improve the other. The findings indicate that treating ED with Viagracan alleviate the issue and lead to a notable reduction in depression.

Despite this, the research did not investigate how long the improvement lasts.

Doctors commonly prescribe Viagra for ED. It works by relaxing the muscle and increasing blood flow to the penis during sexual arousal. Other medications in the class include:

Additionally, if a person has low testosterone, a doctor may prescribe supplemental hormones.

Another treatment option that can trigger an erection is alprostadil. This comes in the form of an injection (Caverject) or a suppository (Muse).

Learn more about treating and managing erectile dysfunction.

Medication change for depression

A study from 2017 notes that sexual dysfunction is a common side effect of many antidepressants. For that reason, changing medication can help. Low libido and difficulty maintaining an erection are common side effects of antidepressants. However, some medications are less likely to have these effects.

The study’s authors recommend the following antidepressants for people who consider sexual functioning important:

  • desvenlafaxine (Pristiq)
  • trazodone
  • vortioxetine (Trintellix)
  • vilazodone

Lifestyle changes

Lifestyle changes may also reduce symptoms of ED. These changes include:

  • stopping smoking, if applicable
  • eating a nutritious diet
  • exercising regularly
  • maintaining a moderate weight
  • limiting or stopping recreational drug use, if applicable


The following psychotherapy interventions may help a person manage the emotional and psychological effects of depression and ED.

  • Sex therapy: This involves counseling partners about their relationship or sex-related concerns.
  • Cognitive behavioral therapy (CBT): This helps a person identify unhelpful thoughts and develop healthier ways of responding to challenges.
  • Mindfulness therapy: This mental exercise consists of focusing on the present moment.

If a person thinks they may have ED, it is a good idea to make an appointment with a doctor.

Additionally, people should seek medical attention if they have symptoms of depression. The sad feelings associated with depression last weeks and months, not days.

If they have suicidal thoughts, they should get immediate medical attention.

Suicide prevention

If you know someone at immediate risk of self-harm, suicide, or hurting another person:

  • Ask the tough question: “Are you considering suicide?”
  • Listen to the person without judgment.
  • Call 911 or the local emergency number, or text TALK to 741741 to communicate with a trained crisis counselor.
  • Stay with the person until professional help arrives.
  • Try to remove any weapons, medications, or other potentially harmful objects if it’s safe to do so.

If you or someone you know is having thoughts of suicide, a prevention hotline can help. The 988 Suicide and Crisis Lifeline is available 24 hours a day at 988. During a crisis, people who are hard of hearing can use their preferred relay service or dial 711 then 988.

Find more links and local resources.

Was this helpful?

People with depression are more likely to have ED, and ED is also associated with higher rates of depression. Symptoms of ED include being unable to attain and sustain an erection long enough to have sex.

If a person has both depression and ED, treating one condition is likely to improve the other. Medication and psychotherapy interventions, such as mindfulness, may help someone manage both conditions.