Erectile dysfunction in your 30s: causes and treatments

7 min read

Written by: 

Erica Garza

Reviewed by: 

Raagini Yedidi, MD

Updated:  May 15, 2026

Trusted source badge

Reviewed By

Raagini Yedidi, MD

Raagini Yedidi, MD, is an internal medicine resident and medical reviewer for Ro.

View bio

Key takeaways

  • Erectile dysfunction (ED) in your 30s is more common than you might think, affecting around 10% or more of men in their 30s. 

  • Triggers can include stress, anxiety, lack of sleep, poor diet, or underlying health issues affecting blood flow or hormone balance.

  • Many cases of ED can be managed with medication (when appropriately prescribed), lifestyle modifications (like diet, exercise, and sleep habits), and therapy. It’s important to speak with a healthcare provider to address any underlying causes.

Here's what we'll cover

Here's what we'll cover

Key takeaways

  • Erectile dysfunction (ED) in your 30s is more common than you might think, affecting around 10% or more of men in their 30s. 

  • Triggers can include stress, anxiety, lack of sleep, poor diet, or underlying health issues affecting blood flow or hormone balance.

  • Many cases of ED can be managed with medication (when appropriately prescribed), lifestyle modifications (like diet, exercise, and sleep habits), and therapy. It’s important to speak with a healthcare provider to address any underlying causes.

Dealing with erectile dysfunction (ED) in your 30s? You’re not alone. ED may get more common with age, but plenty of people in their 20s and 30s notice changes in their erections and often aren’t sure why. 

It’s often tied to things like stress, lifestyle habits, or underlying health issues, and here’s the good news: it’s treatable, and potentially reversible depending on the cause.

Ahead, we’ll cover what can cause erectile dysfunction at 30, common ED signs you should know about, and treatments to consider. 

How common is erectile dysfunction in your 30s? 

Many people associate erectile dysfunction  with older age, but ED is reported among men under 40 as well. One large international review study found that about 11% of men ages 30 to 39 report some form of ED. Other research estimates may be as high as 35%. Prevalence estimates vary widely, in part because ED is often under-reported. 

It’s also worth noting that it’s normal to have trouble getting an erection from time to time and that may not necessarily mean you have ED. Difficulty with erections can happen for many reasons, some of which are temporary, including alcohol use or stress. The occasional bout of erectile difficulties  doesn’t necessarily mean you have ED or need ongoing treatment, but if you have more persistent trouble that’s consistently affecting your sex life, it’s important to see a healthcare provider to figure out what’s going on.

Ro Sparks

Hard in 15 mins (on avg), ready for up to 36 hours, 2-in-1 formula

Common signs of ED in your 30s 

The most common sign of ED at any age is difficulty getting or maintaining a strong enough erection for satisfying sex. But in your 30s, ED can start showing up in ways that feel more situational and inconsistent, like getting an erection when you watch porn but not when you’re having partnered sex

The most common signs and symptoms of ED include:

  • Difficulty getting an erection. You may have trouble getting an erection with sexual stimulation, even if you’re mentally aroused.

  • Trouble maintaining an erection. You may be able to get an erection but can’t maintain it long enough for satisfying sex. This is different from premature ejaculation (PE), where you ejaculate too quickly for satisfying sex. That being said, sometimes PE and ED go hand-in-hand. 

  • Weaker erections. Your erections may not feel as firm as they used to, even if you’re still able to start having sex.

  • Situational ED. You may be able to get and maintain an erection some of the time, like when masturbating or watching porn, but not with a partner.  

  • Fewer morning erections. A noticeable drop in morning erections (aka “morning wood”) may point to a physical cause of ED.

  • Anxiety, depression, and low self-esteem. Research shows that mental health issues are closely linked to ED, which may contribute to and result from symptoms, creating a cycle that can be difficult to break.

What causes erectile dysfunction at 30?

Causes of erectile dysfunction in your 30s include a mix of physical and psychological factors. Stress, anxiety, and lifestyle factors are common contributors, but underlying health conditions can also play a role. 

Psychological factors

ED in younger men is often linked to psychological factors, especially when symptoms emerge suddenly and morning erections are still present.

Psychological causes of ED can include:

  • Depression

  • Anxiety

  • Stress

  • Past sexual trauma

  • Relationship troubles

If you’ve struggled with getting an erection in the past, it’s normal to feel anxious about it happening again, which, ironically, can make the problem worse. This kind of performance anxiety is a common contributor to ED in younger men.

Physical causes

Underlying health issues and lifestyle habits can also contribute to ED in your 30s. Some physical causes of ED include:

  • Blood flow issues. Even without obvious health problems, some younger men with ED show early signs of endothelial dysfunction (blood vessel issues), which can interfere with blood flow to the penis.

  • Obesity and metabolic health issues. Conditions like obesity, insulin resistance, and high cholesterol can affect blood flow and hormone balance, increasing the risk of ED in younger men.

Lifestyle factors

There are many aspects of your lifestyle that can play a role in sexual health. Lifestyle factors that can contribute to ED include:

  • Lack of sleep. Poor sleep is linked to a higher risk of ED and may affect testosterone levels, blood flow, and stress hormones, which all play a role in erectile function. 

  • Poor diet. What you eat can affect every part of your health, including your risk for ED. Eating a healthier diet (based around nutrient-rich foods like protein and plant-based foods, rather than ultra-processed foods) is linked to a lower risk of ED.

  • Sedentary lifestyle. Men who are physically active tend to have a lower risk of ED, as shown in one study of men under 40.

  • Alcohol use. One too many beers can lead to poor performance in the bedroom (ever heard of “whiskey dick”?). Over time, heavier drinking is linked to ED and overall sexual dysfunction. 

  • Smoking. Smoking can damage blood vessels and reduce nitric oxide levels, increasing the risk of ED in men of all ages.

  • Antidepressants. While depression and anxiety can contribute to ED, so can the medications that treat these issues. Research shows that some antidepressants, such as SSRIs and SNRIs, can cause sexual side effects like ED, low libido, and delayed ejaculation. If you are experiencing these symptoms after starting an antidepressant, speak to your healthcare provider to understand your options.

Less common causes of ED in your 30s 

Other less common, but possible, causes of ED in your 30s may include: 

  • Low testosterone. Studies show testosterone levels decline by about 1%–2% each year after age 30. Erectile dysfunction is more common in older men with low T, but it can still affect younger men, who may also notice symptoms like fatigue or low sex drive.

  • Frequent porn use. Some research suggests that excessive porn use may be associated with ED in some younger men, but the relationship isn’t fully understood and doesn’t affect everyone.

How to treat ED in your 30s: 5 treatment options 

Erection problems at 30 can feel unexpected (and unfair), but they’re more common than you might think. Fortunately, ED is highly treatable with options like prescription medication, therapy, or healthy lifestyle changes. 

ED at 30 can also signal another underlying issue, like cardiovascular problems, so if it’s happening, don’t ignore it. Addressing these underlying conditions can improve your erections and your overall health.

Consider prescription medication

Prescription medications like sildenafil (Viagra) or tadalafil (Cialis) are typically the first-line treatments for ED. These medications work in part by widening your blood vessels to increase blood flow to the penis, which makes it easier to get and maintain an erection.

Long gone are the days when ED medications were only available as a little blue or yellow pill. Options now include affordable generic pills, along with additional treatment formulations that allow for more spontaneity.

For example, Ro offers options like Ro Sparks, a fast-dissolving 2-in-1 tablet made with sildenafil and tadalafil, which works in as little as 15 minutes after dissolving. And Daily Rise Gummies are a low-dose tadalafil option meant to be taken daily. While the United States Food and Drug Administration (FDA) has not specifically approved these formulations for ED, it has individually approved their active ingredients for the treatment of ED, making these off-label options. 

A healthcare provider can work with you to figure out the right medication and dose based on  your needs and health history. 

Talk to a therapist

If you think anxiety, depression, or chronic stress is interfering with your erections, consider talking to a therapist. They can work with you to develop stress management strategies like mindfulness or cognitive behavioral techniques, to reduce stress around sex and improve your self-esteem. 

And if your relationship is causing erection problems, or ED is putting a strain on your relationship, couples therapy can help improve communication with your partner and take pressure off performance. 

Make healthy lifestyle changes

You may have partied all night in your 20s with no real consequences, but in your 30s, your daily habits can start to have noticeable and lasting impacts on how you feel, think, and perform  — in and out of the bedroom. You don’t have to stop having a good time, but making the following tweaks can help improve your erections and prevent ED from getting worse.

  • Follow a balanced diet. Diets high in whole foods and healthy fats and low in red meats, sugar, and processed foods support your blood vessel health and may reduce ED risk over time. 

  • Prioritize your sleep. Aim to get 7 to 9 hours of sleep each night to support healthy testosterone production, lower stress, and improved erectile function. 

  • Get active. Regular exercise improves circulation and cardiovascular health, which are essential to erectile function.

  • Limit alcohol. Studies show that abstinence from alcohol effectively improves ED in heavy drinkers. Try limiting how much you drink to see if you notice any positive changes in the bedroom. 

  • Quit smoking. Studies show that the more someone smokes, the more severe their ED tends to be. Quitting smoking can help improve erectile function over time. 

  • Address stress levels. Stress and anxiety are common contributors to ED in your 30s. Finding ways to manage it better can help break the cycle.

Address hormone imbalances

Low testosterone is more common in older men, but it can still affect younger men and contribute to ED. In fact, studies show there’s been a steady decline in testosterone over the last two decades among younger men. It’s possible this is partially due to increasing body mass index (BMI) across the population. 

While low testosterone can show up in younger men as low energy levels, it can also cause sexual problems like ED and low libido. If you’re experiencing symptoms like these, check in with a healthcare provider to have your T levels checked. If you are diagnosed with low T, treatment may involve testosterone replacement therapy (TRT). You may also be recommended to make lifestyle changes. 

Treat underlying health conditions

ED in your 30s can sometimes be an early sign of a bigger health issue. It’s always a good idea to talk to a healthcare provider to make sure you address conditions that can worsen over time, including:

Treating these conditions can help improve blood flow, hormone balance, and overall health, potentially improving ED over time.

Personalized ED treatment for you.

Bottom line

Dealing with ED in your 30s can be unexpected and frustrating, but it’s often manageable. Addressing factors like stress, lifestyle habits, or underlying health conditions can improve both your erections and your overall health.

Here’s what you should know:

  • ED under 40 can have multiple causes. Psychological factors like stress, anxiety, and relationship problems are common, alongside physical contributors like poor diet, lack of sleep, and a sedentary lifestyle.

  • It can be a sign of something bigger. Erection problems may point to underlying health issues, including cardiovascular issues, metabolic conditions, or hormone imbalances.

  • Treatment often involves a combined approach. Options can include prescription medication like Viagra and Cialis, therapy or counseling, and lifestyle changes like cleaning up your diet, getting enough sleep, and managing your stress better.

Frequently asked questions (FAQs)

DISCLAIMER

If you have any medical questions or concerns, please talk to your healthcare provider. The articles on Health Guide are underpinned by peer-reviewed research and information drawn from medical societies and governmental agencies. However, they are not a substitute for professional medical advice, diagnosis, or treatment.

Viagra Important Safety Information: Read more about serious warnings and safety info.

Cialis Important Safety Information: Read more about serious warnings and safety info.

References

  • Allen, M. S., & Tostes, R. C. (2023). Cigarette smoking and erectile dysfunction: An updated review with a focus on pathophysiology, e-cigarettes, and smoking cessation. Sexual Medicine Reviews, 11(1), 61–73. doi:10.1093/sxmrev/qeac007. Retrieved from https://academic.oup.com/smr/article/11/1/61/6985842

  • Bauer, S. R., Breyer, B. N., Stampfer, M. J., et al. (2020). Association of diet with erectile dysfunction among men in the health professionals follow-up study. JAMA network open, 3(11), e2021701. doi:10.1001/jamanetworkopen.2020.21701. Retrieved from https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2772916

  • Cohen, J., Nassau, D. E., Patel, P., & Ramasamy, R. (2020). Low testosterone in adolescents & young adults. Frontiers in Endocrinology, 10, 916. doi:10.3389/fendo.2019.00916. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC6966696/

  • Higgins, A., Nash, M., & Lynch, A. M. (2010). Antidepressant-associated sexual dysfunction: impact, effects, and treatment. Drug, Healthcare and Patient Safety, 2, 141–150. doi:10.2147/DHPS.S7634. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC3108697/

  • Hsiao, W., Shrewsberry, A. B., Moses, K. A., et al. (2012). Exercise is associated with better erectile function in men under 40 as evaluated by the International Index of Erectile Function. The Journal of Sexual Medicine, 9(2), 524–530. doi:10.1111/j.1743-6109.2011.02560.x. Retrieved from https://pubmed.ncbi.nlm.nih.gov/22145804/

  • Jacobs, T., Geysemans, B., Van Hal, G., et al. (2021). Associations between online pornography consumption and sexual dysfunction in young men: multivariate analysis based on an international web-based survey. JMIR Public Health and Surveillance, 7(10), e32542. doi:10.2196/32542. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC8569536/

  • Karunakaran, A., & Michael, J. P. (2022). The impact of abstinence from alcohol on erectile dysfunction: a prospective follow up in patients with alcohol use disorder. The Journal of Sexual Medicine, 19(4), 581–589. doi:10.1016/j.jsxm.2022.01.517. Retrieved from https://pubmed.ncbi.nlm.nih.gov/35236641/

  • Kovac, J. R., Labbate, C., Ramasamy, R., et al. (2015). Effects of cigarette smoking on erectile dysfunction. Andrologia, 47(10), 1087–1092. doi:10.1111/and.12393. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC4485976/

  • Leslie, S. W., & Sooriyamoorthy, T. (2024). Erectile dysfunction. In StatPearls. StatPearls Publishing. Retrieved from https://www.ncbi.nlm.nih.gov/books/NBK562253/

  • Lokeshwar, S. D., Patel, P., Fantus, R. J., et al. (2021). Decline in serum testosterone levels among adolescent and young adult men in the USA. European Urology Focus, 7(4), 886–889. doi:10.1016/j.euf.2020.02.006. Retrieved from https://pubmed.ncbi.nlm.nih.gov/32081788/

  • Maiorino, M. I., Bellastella, G., & Esposito, K. (2015). Lifestyle modifications and erectile dysfunction: what can be expected?. Asian Journal of Andrology, 17(1), 5–10. doi:10.4103/1008-682X.137687. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC4291878/

  • Özkent, M. S., Hamarat, M. B., Taşkapu, H. H., et al. (2021). Is erectile dysfunction related to self-esteem and depression? A prospective case-control study. Andrologia, 53(1), e13910. doi:10.1111/and.13910. Retrieved from https://pubmed.ncbi.nlm.nih.gov/33215726/

  • Pyke R. E. (2020). Sexual performance anxiety. Sexual Medicine Reviews, 8(2), 183–190. doi:10.1016/j.sxmr.2019.07.001. Retrieved from https://pubmed.ncbi.nlm.nih.gov/31447414/

  • Rastrelli, G., & Maggi, M. (2017). Erectile dysfunction in fit and healthy young men: psychological or pathological?. Translational Andrology and Urology, 6(1), 79–90. doi:10.21037/tau.2016.09.06. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC5313296/

  • Safa, A., & Waked, C. (2025). Erectile dysfunction in young adults: a narrative review. Cureus, 17(8), e89918. doi: 10.7759/cureus.89918. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC12349891/

  • Yadav, B., Dhillon, H. S., Sasidharan, S., & Kaur Dhillon, G. (2024). Alcohol-associated sexual dysfunction: How much is the damage?. Medical Journal, Armed Forces India, 80(2), 166–171. doi:10.1016/j.mjafi.2022.05.002. Retrieved from https://www.sciencedirect.com/science/article/abs/pii/S0377123722000715

  • Yannas, D., Frizza, F., Vignozzi, L., et al. (2021). Erectile dysfunction is a hallmark of cardiovascular disease: unavoidable matter of fact or opportunity to improve men's health?. Journal of Clinical Medicine, 10(10), 2221. doi:10.3390/jcm10102221. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC8161068/

  • Yao, F., Huang, Y., Zhang, Y., et al. (2012). Subclinical endothelial dysfunction and low-grade inflammation play roles in the development of erectile dysfunction in young men with low risk of coronary heart disease. International Journal of Andrology, 35(5), 653–659. doi:10.1111/j.1365-2605.2012.01273.x. Retrieved from https://pubmed.ncbi.nlm.nih.gov/22519624/

  • Zhang, F., Xiong, Y., Qin, F., & Yuan, J. (2022). Short sleep duration and erectile dysfunction: a review of the literature. Nature and Science of Sleep, 14, 1945–1961. doi:10.2147/NSS.S375571. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC9621223/