New: A 2-in-1 pill for sex + testosterone support

Get started

At What Age Does a Man Stop Getting Hard?

Kelly Brown MD, MBA

Reviewed by Kelly Brown MD, MBA

Written by Daniel Yetman

Published 08/15/2021

Updated 04/16/2025

Getting older is a privilege, but often has some unwanted side effects on your body — your eyesight might start to go, your joints may be feeling creaky and maybe yourGetting older is a privilege, but there’s no denying it can have some—ahem—unwanted side effects on the body. And while you can’t turn back time, you can prepare yourself for certain changes.

With that in mind, at what age does a man stop getting hard? In other words, when do men stop getting erections?

The answer is a little complicated because it depends on the exact cause of your erectile dysfunction (ED).

Below, we’ll explore the causes of age-related erectile dysfunction and how to deal with ED, and we’ll answer the big question: At what age do men need Viagra®?

Here’s the thing: Erectile dysfunction—that is, when a man is unable to get or keep an erection for sex—can happen at any age (it’s not just for the older guys). In fact, it’s estimated to affect some 30 million men in the U.S. to some degree. 

So if you’re asking “when do men stop getting hard?” the answer will likely vary from person to person. Some people in their 20s have difficulty getting an erection, while some people in their 80s don’t. That’s why there’s no one age when men stop being sexually active.

However, like many other medical conditions, the risk of developing ED increases as men get older. Research shows that age is one of the factors most closely linked to ED, so the older you are, the more at risk you are of developing erectile dysfunction (but that still doesn’t mean it happens to everyone).

An estimated 52 percent of men between 40 and 70 have some degree of ED. This rate increases to about 70 percent by age 70.

Other research has shown similar numbers. For example, a scientific review from 2017 noted that a man in his 40s has a 40 percent chance of developing some form of erectile dysfunction, with this risk increasing by 10 percent each additional decade.

In a more recent 2024 study in The Journal of Sexual Medicine, researchers looked at 1,800 men in the U.S. ranging in age from 18 to 87 and found the overall ED prevalence to be 24 percent. The average rate was actually higher in the men ages 18 to 24 than those ages 25 to 44, but then the rates steadily increased with age among the men 45 and older.

There are many causes of erectile dysfunction. Below are some of the physical and mental issues that can contribute to ED, especially as you get older.

Medical Conditions

Many chronic diseases and medical conditions can contribute to ED. To better understand why, let’s back up a minute: Achieving an erection is a complex process that requires optimal blood flow to your penis and optimal nerve function. 

When you feel sexually aroused, your nerves send messages that allow muscles inside your small blood vessels to relax. This stimulates more blood flow, allowing the erectile tissue inside your penis to expand and become firmer.

Without proper nerve function and healthy blood vessels, getting and maintaining an erection is much more difficult. 

Many conditions can cause physical changes that increase your odds of developing ED, and the risk of these conditions generally increases as you age. These include:

Medications

In addition to physical health problems, some medications can affect your ability to develop and maintain an erection, and you’re more likely to take medications as you get older. The most common culprits include:

  • Antidepressants and anxiety meds

  • High blood pressure medications

  • Prescription sleeping pills or sedatives 

  • Prostate cancer drugs

  • Some appetite suppressants

  • Certain ulcer medications

Lifestyle Factors

Lifestyle factors that may affect the age at which men stop getting hard include smoking, consuming an excessive amount of alcohol, using recreational drugs, and having a sedentary daily life. 

Even insufficient sleep, disrupted sleep, and sleep disorders like sleep apnea or insomnia may affect your sexual function.

Psychological Causes of ED

ED can often develop due to psychological conditions independent of physical problems with your body.

For example, performance anxiety is a common cause of ED when it occurs during partnered sex but not masturbation.

Other causes include:

  • Stress

  • Depression

  • Anxiety

  • Relationship problems

  • Poor communication during sex

Some of these issues, including depression and anxiety, become more likely as you get older, but not all of the psychological causes of ED are related to age.

Learn more about the psychological causes of ED in our guide.

Now that we’ve addressed at what age a man stops getting hard, what can you do when it happens to you? Can you still get hard after 65?

Here’s the good news: Regardless of your age, ED can often be successfully treated by targeting underlying causes and by taking medications to improve blood flow to the penis. Effective ED treatments may include medication, therapy, and certain lifestyle changes to improve your sexual health and function.

Lifestyle Changes

Lifestyle changes that may help improve erectile function include:

  • Quitting smoking

  • Managing stress

  • Losing weight if you’re overweight

  • Getting more physical activity 

  • Improving your diet to and including foods that help with ED

  • Getting enough sleep

ED Medications

Currently, there are several evidence-based erectile dysfunction medications approved by the Food and Drug Administration (FDA). Many of these medications are phosphodiesterase type 5 inhibitors (PDE5 inhibitors), which work by increasing blood flow to your penis. This can make getting and maintaining an erection easier when you’re sexually aroused.

The following medications are available to treat ED:

  • Sildenafil: The active ingredient in Viagra, sildenafil can be taken 30 minutes to one hour prior to sex and provides relief from erectile dysfunction for around four hours per dose.

  • Tadalafil: The active ingredient in Cialis®, tadalafil is a long-lasting ED medication that can provide relief from ED for up to 36 hours — an effect that’s earned it the nickname as the “weekend” pill.

  • Vardenafil: Vardenafil starts working quickly and offers relief from ED for slightly longer than sildenafil.

  • Avanafil: The active ingredient in Stendra®, avanafil is a fast-acting ED medication that’s less likely to cause certain side effects than older ED medications.

Many people wonder at what age men need Viagra, but there’s no particular age when men may benefit from taking Viagra or other medications to increase blood flow to the penis. You may want to talk to your healthcare provider about these medications if you notice a persistent inability to maintain or achieve an erection.

Psychological Therapy

Addressing underlying psychological issues through cognitive-behavioral therapy (CBT) or other talk therapies can sometimes help improve erectile function. It may also help you manage stress levels, anxiety, or depression.

Hormone Therapy

For men with low testosterone levels, testosterone replacement therapy (TRT) can potentially help improve libido and fatigue caused by low testosterone levels. This treatment should be closely monitored by a healthcare provider to make sure your testosterone levels stay at a healthy level.

Vacuum Erection Devices (Penis Pumps)

Penis pumps create a vacuum around the penis, drawing blood into the cavernous bodies and inducing an erection. They are a non-invasive option for men who cannot take medications.

Surgical Options

In cases where other treatments are ineffective, surgical options such as penile implants can be considered. These devices are implanted in the penis and can be manually adjusted to achieve an erection.

Do Supplements Help?

Many supplements claim to be able to help you achieve an erection, but as of yet none of these are research-backed. If you’re concerned you may have a nutrient deficiency, it’s a good idea to talk to your healthcare provider for testing. 

There’s no particular age when men stop getting erections. Not all men get ED as they get older, but the issue does become more likely past your mid-40s and much more likely after age 70. 

That’s at least partly because your risk for many health conditions, including obesity, diabetes, and heart disease, becomes higher as you age, and these conditions can contribute to ED.

However, there are many effective treatments to help a man get hard again, including lifestyle changes, ED medications, and therapy. 

If you’re among the millions of men who struggle with erections, talk to your doctor about treatment options or connect with a healthcare provider through our telehealth platform. 

14 Sources

  1. American Association for Geriatric Psychiatry. (2022). Anxiety and older adults: overcoming worry and fear. https://aagponline.org/patient-article/anxiety-and-older-adults-overcoming-worry-and-fear/
  2. Cheng H, et al. (2024). Age-related testosterone decline: Mechanisms and intervention strategies. https://pmc.ncbi.nlm.nih.gov/articles/PMC11562514/
  3. Cho JW, et al. (2018). Sleep, sleep disorders, and sexual dysfunction. https://pmc.ncbi.nlm.nih.gov/articles/PMC6704301/
  4. Defeudis G, et al. (2021). Erectile dysfunction and diabetes: A melting pot of circumstances and treatments. https://pmc.ncbi.nlm.nih.gov/articles/PMC9286480/
  5. Dhaliwal A, et al. (2023). PDE5 inhibitors. https://www.ncbi.nlm.nih.gov/books/NBK549843/
  6. Ferrini M, et al. (2017). Aging related erectile dysfunction—potential mechanism to halt or delay its onset. https://pmc.ncbi.nlm.nih.gov/articles/PMC5313305/
  7. Gareri P, et al. (2014). Erectile dysfunction in the elderly: An old widespread issue with novel treatment perspectives. https://pmc.ncbi.nlm.nih.gov/articles/PMC3976909/
  8. Leslie SW, et al. (2024). Erectile dysfunction. https://www.ncbi.nlm.nih.gov/books/NBK562253/
  9. Mark KP, et al. (2024). Erectile dysfunction prevalence in the United States: Report from the 2021 Natioanl Survey of Sexual Wellbeing. https://academic.oup.com/jsm/article-abstract/21/4/296/7614307
  10. National Institute of Diabetes and Digestive and Kidney Diseases. (2024). Symptoms & causes of erectile dysfunction. http://niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/symptoms-causes
  11. National Institute on Aging. (2025). Depression and Older Adults. https://www.nia.nih.gov/health/mental-and-emotional-health/depression-and-older-adults
  12. Saramies J, et al. (2022). A natural history of erectile dysfunction in elderly men: A population-based, twelve-year prospective study. https://pmc.ncbi.nlm.nih.gov/articles/PMC9029758/
  13. Stentagg M, et al. (2021). Cross-sectional study of sexual activity and satisfaction among older adult's ≥60 years of age. https://pmc.ncbi.nlm.nih.gov/articles/PMC8072140/
  14. Yannas D, et al. (2021). Erectile Dysfunction Is a Hallmark of Cardiovascular Disease: Unavoidable Matter of Fact or Opportunity to Improve Men’s Health? https://pmc.ncbi.nlm.nih.gov/articles/PMC8161068/
Editorial Standards

Hims & Hers has strict sourcing guidelines to ensure our content is accurate and current. We rely on peer-reviewed studies, academic research institutions, and medical associations. We strive to use primary sources and refrain from using tertiary references. See a mistake? Let us know at [email protected]!

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. Learn more about our editorial standards here.

Kelly Brown MD, MBA
Kelly Brown MD, MBA

Dr. Kelly Brown is a board certified Urologist and fellowship trained in Andrology. She is an accomplished men’s health expert with a robust background in healthcare innovation, clinical medicine, and academic research. Dr. Brown was previously Medical Director of a male fertility startup where she lead strategy and design of their digital health platform, an innovative education and telehealth model for delivering expert male fertility care.

She completed her undergraduate studies at University of North Carolina at Chapel Hill (go Heels!) with a Bachelor of Science in Radiologic Science and a Minor in Chemistry. She took a position at University of California Los Angeles as a radiologic technologist in the department of Interventional Cardiology, further solidifying her passion for medicine. She also pursued the unique opportunity to lead departmental design and operational development at the Ronald Reagan UCLA Medical Center, sparking her passion for the business of healthcare.

Dr. Brown then went on to obtain her doctorate in medicine from the prestigious Northwestern University - Feinberg School of Medicine and Masters in Business Administration from Northwestern University - Kellogg School of Management, with a concentration in Healthcare Management. During her surgical residency in Urology at University of California San Francisco, she utilized her research year to focus on innovations in telemedicine and then served as chief resident with significant contributions to clinical quality improvement. Dr. Brown then completed her Andrology Fellowship at Medical College of Wisconsin, furthering her expertise in male fertility, microsurgery, and sexual function.

Her dedication to caring for patients with compassion, understanding, as well as a unique ability to make guys instantly comfortable discussing anything from sex to sperm makes her a renowned clinician. In addition, her passion for innovation in healthcare combined with her business acumen makes her a formidable leader in the field of men’s health.

Dr. Brown is an avid adventurer; summiting Mount Kilimanjaro in Tanzania (twice!) and hiking the incredible Torres del Paine Trek in Patagonia, Chile. She deeply appreciates new challenges and diverse cultures on her travels. She lives in Denver with her husband, two children, and beloved Bernese Mountain Dog. You can find Dr. Brown on LinkedIn for more information.

Education & Training


Research

Published as Kelly Walker



Read more