Skip to main content
Depression

Can Stress, Anxiety, and Depression Affect Your Sex Life? Erectile Dysfunction, Low Libido, and More

Sarah Gupta, MDSophie Vergnaud, MD
Written by Sarah Gupta, MD | Reviewed by Sophie Vergnaud, MD
Updated on May 16, 2025
Featuring Joseph Alukal, MDReviewed by Mera Goodman, MD, FAAP | September 30, 2024

Key takeaways:

  • Stress, anxiety, and depression can affect your sex life. They’re linked to orgasm problems, erectile dysfunction, low libido, and more. 

  • Medications that people take to treat anxiety and depression can cause sexual side effects too. 

  • If you’re struggling with depression, anxiety, or problems in your sex life, talk to a healthcare professional. Treatment can help.

Featuring Joseph Alukal, MDReviewed by Mera Goodman, MD, FAAP | September 30, 2024

If you’ve ever felt stressed, anxious, or depressed, you’re not alone. After all, these conditions affect millions of people in the U.S. every year. And here’s the hard truth: When you’re not feeling well mentally, it can affect your sex life too. 

In this article, we’ll explore the link between mental and sexual health. We’ll also discuss common reasons for sexual problems — including erectile dysfunction (ED). And we’ll share some ideas for treatment. 

Stress, depression, and anxiety can affect your sexual health in many ways. After all, your mental, physical, and sexual health are closely connected.

If you’re struggling mentally, here are some things that you might notice:

  • Low libido: You might have a low libido (sex drive), which means you’re less interested in sex. 

  • Physical problems: These could be problems with erections, ejaculation, or orgasm. You might also have a hard time getting physically aroused, or “turned on.”

  • Less pleasurable sex: Depression and anxiety can make you feel bad about yourself, and they can make it harder to communicate with your partner. These issues might make sex less enjoyable overall. 

  • Fertility issues: Stress can affect sperm health and a woman’s ability to conceive. 

Let’s take a closer look at some specific situations. 

Can depression and anxiety cause erectile dysfunction?

Yes. Anxiety and depression can both contribute to erectile dysfunction (also known as ED, or impotence). When you’re feeling anxious, sad, or irritable, it can be hard to get in the mood for sex. These feelings can also make erections go away if you have one. 

Symptoms of ED (impotence) include:

  • Difficulty having an erection

  • Difficulty maintaining an erection 

  • Having an erection that’s too soft for penetration

  • Losing your erection too soon after penetration

  • Feeling like sex is less satisfying or pleasurable

GoodRx icon

Sometimes, the cause of ED is depression or anxiety. Other times, ED can make your mental health worse. It can be a cycle that feels hard to control. You may even start to worry ahead of time about your ability to have an erection (performance anxiety). Working with a healthcare professional is one way to end this pattern. 

Can stress cause erectile dysfunction? 

Yes. When you experience ongoing stress, your body can release cortisol. Cortisol is a hormone that constricts the blood vessels in your penis. When blood can’t flow properly to your penis, you may have difficulty achieving an erection.

Over time, chronic stress can also decrease the amount of testosterone your body makes. And low testosterone is linked to ED. Low testosterone is also common in people with mental health issues like depression and anxiety.

Can anxiety or depression affect your orgasms?

Yes. An orgasm is often the climax of sexual excitement. For many people, orgasm happens during or at the end of a sexual activity — like penetration, masturbation, or sensual massage. To be able to have an orgasm, your body and brain usually have to work together. 

Feeling depressed, anxious, or stressed can make it harder for your brain and body to coordinate well. You may have trouble getting physically aroused. Or you might be more preoccupied during sex and feel less connected to your partner. And some people with depression and anxiety find sex less pleasurable, or even painful

When all of these combine, an orgasm can be harder to achieve or less enjoyable when it does happen.

Can antidepressants cause ED and other sexual problems?

Yes. Antidepressants are used to treat anxiety and depression. Unfortunately, many can also have sexual side effects, like low libido, problems with orgasm, and changes in ejaculation. 

Common medications with sexual side effects include:

But these antidepressants are less likely to cause sexual side effects: 

If you’re taking an antidepressant and having sexual problems, talk to your healthcare team. It may be possible to lower the dose of your medication or switch to another one. Your prescriber might also suggest adding another medication to help. 

What can you do if you’re having trouble in your sex life?

One of the best things you can do if you're having trouble with sex is to talk to a healthcare professional. It can feel hard to bring up sex. But remember: They’re there to help. After all, your sexual health is an important part of you. 

Check your general physical health

First of all, it’s a good idea to get a general checkup. Many sexual problems are linked to physical (not psychological) conditions, so it’s important to make sure your body is healthy. A health problem might be affecting your sexual abilities. 

Treat your depression or anxiety

If you have depression or anxiety, getting treatment can also help with your sexual problems. Here are the two top treatments for mental health: 

  • Therapy: This is a great first-choice option for both depression or anxiety. 

  • Medications: Many people get help with medications. 

Both therapy and medications can make a huge difference in your quality of life — including your sex life. And keep in mind: Many antidepressant and anti-anxiety medications take about 4 to 6 weeks to really start working. So don’t get discouraged if you’re not feeling any changes in your mental health right away. 

Finally, remember that many medications for depression and anxiety can actually cause sexual side effects. Keep your healthcare team in the loop, so they can adjust (or stop) your medication if needed. 

Treat your sexual problems directly

In some cases, you may need specialized treatment for a sexual problem. Fortunately, there are a lot of great options. 

Medications can directly help with: 

Physical treatments can help too. This might mean working with a physical therapist, using vaginal dilators, or doing Kegel exercises. In some cases, surgery or implants can also work well for ED. And there are even sex therapists who specialize in sexual health problems. 

Frequently asked questions

It’s hard to say. A 2025 study found that having sex 1 to 2 times per week might help lower your risk of depression. And another study from 2024 found that people who never had sex were more likely to feel lonely and unhappy. 

But in reality, there’s no “right or wrong” amount of sex to have for your happiness. After all, everyone is different. Some people enjoy having a lot of sex. Other people are less interested in sex, or they might be asexual. What really matters is what feels right for you as an individual. 

Viagra (sildenafil) is a medication that’s used for ED. Though Viagra isn’t currently used to treat depression directly, there’s some evidence that it might actually have some antidepressant effects. 

In the meantime, Viagra may be able to help you feel better about your sex life. And feeling better about sex can potentially help you feel less sad or depressed too. 

It’s unlikely. Depression usually causes a low sex drive (low libido), not a higher sex drive. 

It’s hard to say. There haven’t been any good studies on sex as a treatment for depression and anxiety. But there’s definitely evidence that consensual, pleasurable sex can be good for your mental health

The bottom line

When it comes to sex, your mental health plays a big role. If you’re feeling depressed, anxious, or stressed, it can make it difficult to enjoy sexual activities. It can also make it harder to orgasm, have an erection, or feel like having sex. 

Talk to a healthcare professional if you’re facing challenges in your sex life — especially if you have depression or anxiety. After all, both your mental health and sexual health are important parts of your overall health and happiness. 

why trust our exports reliability shield

Why trust our experts?

Sarah Gupta, MD
Written by:
Sarah Gupta, MD
Sarah Gupta, MD, is a licensed physician with a special interest in mental health, sex and gender, eating disorders, and the human microbiome. She is currently board certified by the American Board of Psychiatry and Neurology.
Sophie Vergnaud, MD, is the Senior Medical Director for GoodRx Health. A pulmonologist and hospitalist, she practiced and taught clinical medicine at hospitals in London for a decade before entering a career in health education and technology.

References

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?

Latest articles