Erectile Dysfunction: Symptoms, Causes, Diagnosis and Treatment

What Is Erectile Dysfunction?

Erectile dysfunction means having difficulty getting or keeping an erection firm enough for sex. The problem can involve firmness, duration or both.

Some men notice an occasional change; others cannot achieve an erection despite sexual interest and stimulation. Estimates suggest that ED affects about 30 million men in the United States, across different ages and backgrounds. Identifying the cause matters because erection problems can reflect changes in circulation, nerve function, hormones, mental health or medication use.

ED can also provide an early reason to investigate diabetes or cardiovascular disease.

  • No erection, sometimes described as impotence.
  • An erection that lacks enough firmness for penetration.
  • Firmness that fades before you want sexual activity to end.
  • Erections that are firm on some occasions but unreliable on others.

Repeated symptoms deserve an assessment rather than months of waiting for them to disappear.

Symptoms

An erection does not have to disappear completely for a clinician to diagnose ED. You might achieve one but lose it during penetration, find that it lacks firmness, or notice that your response varies from one encounter to the next.

  • Difficulty achieving an erection.
  • Difficulty maintaining an erection.
  • Erections with less firmness than you need for sex.

The effect on your sex life matters alongside the frequency of the symptoms. An isolated difficulty after poor sleep, heavy drinking or a stressful day does not establish a lasting disorder.

  • A decline in sexual desire.
  • Reduced confidence in sexual situations.
  • Changes in mood.
  • Strain or tension in a relationship.
  • Anxiety about sex or the symptoms themselves.

A recurring pattern, worsening symptoms or distress provides a stronger reason to arrange a visit. You do not need to wait until intercourse becomes impossible before asking for help. Sexual difficulties can also affect desire, confidence and relationships.

Some men start avoiding intimacy because they fear another disappointing encounter. Others experience anxiety or low mood, which can then make erections harder to maintain. Mention these changes even if the erection itself seems like the only issue worth discussing. Desire, erection, orgasm and ejaculation describe different parts of sexual function. A change in one does not automatically explain another. Telling your clinician exactly what happens helps them distinguish ED from other conditions and choose the right assessment.

Causes

Sexual stimulation starts a sequence involving the brain, nerves, blood vessels and smooth muscle inside the penis. Chemical signals allow that muscle to relax, more blood enters the erectile tissue, and the penis retains enough blood to become firm. Hormones and psychological context influence the response as well.

A disruption anywhere in that sequence can interfere with firmness. Restricted arterial blood flow differs from nerve damage, and both differ from an erection that fades when performance anxiety takes over.

  • Disrupted nerve signaling.
  • Changes in hormone balance.
  • Damage to blood vessels.
  • Psychological contributors.
  • Habits and lifestyle factors.
  • Adverse effects of medicines.

Many men experience more than one contributing factor, so a useful treatment plan may address several problems together.

Physical Causes of Erectile Dysfunction

Circulation often plays a part. Atherosclerosis can reduce blood flow, while diabetes can damage both blood vessels and nerves. Conditions affecting the nervous system may interrupt the signals that support an erection. Surgery or injury in the pelvis can also change erectile function, even when sexual desire remains intact. These conditions do not mean that treatment cannot help. They explain why an assessment should look beyond the symptom itself.

Managing diabetes, reviewing cardiovascular risk or investigating sleep apnea may support erection treatment while addressing a separate health concern.

  • Atherosclerosis, which hardens or obstructs arteries.
  • Other diseases affecting blood vessels.
  • Chronic kidney disease.
  • Heart or cardiovascular disease.
  • Hypertension, or high blood pressure.
  • Elevated cholesterol.
  • Type 2 diabetes.
  • Low testosterone.
  • Sleep disorders, including sleep apnea.
  • Effects of prostate cancer treatment, including surgery or radiotherapy.
  • Injury involving the genitals, urethra, spinal cord, prostate, bladder or pelvis.
  • Operations involving the genitals, spinal cord, prostate, bladder or pelvis.
  • Multiple sclerosis.
  • Nerve damage from other causes.
  • Parkinson's disease.
  • Peyronie's disease, in which scar tissue can cause penile curvature.

ED Caused by Medications

Some medicines affect erections as an unwanted effect of treatment. The timing can offer a clue: symptoms may begin after starting a medicine or increasing its dose.

  • Antidepressants, including selective serotonin reuptake inhibitors (SSRIs).
  • Some medicines prescribed for blood pressure.
  • Prescription sleeping medicines and tranquilizers.
  • Antiandrogens used in prostate cancer treatment.
  • Appetite suppressants.
  • Certain ulcer medicines.
  • Opioid or narcotic pain medicines.

That relationship still needs clinical review, since the condition requiring treatment can also contribute to ED. Do not stop a prescribed treatment on your own. Your clinician can assess whether a dose adjustment, a different medicine or treatment for ED offers a reasonable solution.

Bring a complete list, including supplements and medicines you use only occasionally.

Psychological Causes of ED

Anxiety, depression and stress can interfere with erections even when blood flow and nerve function remain adequate. Performance anxiety can create a feedback loop: one difficult encounter leads to worry, and that worry distracts from arousal during the next encounter.

Physical ED can start the same cycle.

  • Anxiety, including concern about sexual performance.
  • Depression.
  • Guilt associated with sex.
  • Low self-esteem.
  • Relationship difficulties.
  • Persistent stress.

Research has also examined pornography use and erection difficulties. The evidence does not establish that pornography causes ED in every person who uses it. Expectations, sexual habits, distress and relationship context may all matter. If you notice a connection in your own experience, discuss the pattern without assuming that it explains every symptom.

Erectile Dysfunction Risk Factors

ED becomes more common with age, but age alone does not make satisfying sexual activity impossible. Studies use different definitions and populations, so their estimates vary. The Massachusetts Male Aging Study found a strong relationship between increasing age and erectile difficulties among men aged 40 to 70; those population findings cannot predict an individual's future. Health conditions and daily habits can increase risk at any age.

Some affect blood vessels directly. Others influence hormones, mood, sleep or nerve function. A clinician can identify which factors apply to you rather than treating every item as equally likely. Changing a habit can help, but difficulty changing it does not represent a personal failure. Support from a healthcare professional, therapist or exercise professional can make a plan more practical.

Start with an achievable change and build from there. Estimates vary with the study population and the definition of ED.

  • High cholesterol.
  • Heavy alcohol intake.
  • Misuse of recreational drugs.
  • A physically inactive routine.
  • Vascular disease.
  • Overweight or obesity.
  • Smoking.
  • Psychological trauma.
  • Previous pelvic surgery.
  • Neurological conditions, including Alzheimer's disease or the effects of a stroke.
  • Diabetes.
  • Use of medicines associated with erection difficulties.

One analysis cited in the research describes an increase from about 10 percent at age 40 to 79 percent at age 80 among men without selected additional risk factors. The Massachusetts Male Aging Study, which surveyed men aged 40-70, reported erectile difficulties in roughly 40 percent at age 40 and 70 percent at age 70. These population findings describe increasing frequency with age, not an inevitable outcome for an individual.

Diagnosing Erectile Dysfunction

A primary care clinician or urologist can assess erection problems. Some appointments can begin through telehealth, although an examination or testing may still require an in-person visit. The appropriate setting depends on your symptoms and medical history. Expect questions about when the problem started, whether it occurs during masturbation and partnered sex, and whether you still experience morning or nighttime erections.

Your clinician may also ask about desire, ejaculation, medications, alcohol and relationships.

  • Review your medical history.
  • Examine you when appropriate.
  • Ask how the symptoms affect your sexual function.

These details help distinguish possible causes; they do not provide a diagnosis in isolation. Some clinicians use the International Index of Erectile Function. The full questionnaire contains 15 questions, and a shorter version contains five. These tools help describe symptoms and monitor changes; they do not replace a conversation or examination.

Tests for Erectile Dysfunction

Not everyone needs an extensive series of tests. Medical history and an examination may provide enough information to begin care. When symptoms suggest an underlying condition or the initial treatment does not help, testing can answer a more specific question. Ask what each test can establish and how the result would affect treatment.

A test should address a clinical question rather than serve as a routine obstacle before you receive help.

  • Blood tests to investigate relevant underlying conditions.
  • Ultrasound to assess penile blood flow.
  • An intracavernosal injection test to assess the erectile response to medication.
  • A nocturnal erection test using a device that records erections during sleep.

Treatment

Treatment starts with the factors contributing to your symptoms. A man with performance anxiety may need a different approach from someone with nerve damage after surgery, and some men need both physical and psychological treatment.

The clinician can combine appropriate options rather than expect one medicine to address every cause.

  • Medicine prescribed for ED.
  • Cognitive behavioral therapy, sex therapy or another suitable psychological treatment.
  • Changes in diet, activity and other daily habits.
  • Treatment of conditions contributing to the erection problem.
  • A vacuum erection device or, in selected cases, a penile implant.

Erectile Dysfunction Medications

Oral phosphodiesterase type 5 inhibitors, usually called PDE5 inhibitors, often provide a starting point. They support the blood flow response to sexual stimulation. They do not create sexual desire, and taking a tablet does not mean that an erection must begin immediately or continue for the entire period the medicine remains active.

The four oral active ingredients commonly used for ED are sildenafil, tadalafil, vardenafil and avanafil. Their onset, duration, dose and interaction profiles differ. Your clinician considers your health, preferences and other medicines when choosing between them.

These figures describe approximate treatment windows, not a guaranteed erection duration. Food, dose, age, health and other medicines can change the response. Different formulations can also carry different instructions. Follow the directions for the actual product your clinician prescribes.

  • Sildenafil, the ingredient in Viagra.
  • Tadalafil, the ingredient in Cialis.
  • Vardenafil, used in products such as Levitra and Staxyn.
  • Avanafil, marketed as Stendra.
Brand Name Generic Name Dosages How Long It Takes to Start Working How Long It Lasts For
Viagra sildenafil 25 mg, 50 mg, 100 mg 30-60 minutes 4-6 hours
Cialis tadalafil As needed: 5 mg, 10 mg, 20 mg Daily: 2.5 mg, 5 mg 30-120 minutes Up to 36 hours
Levitra, Staxyn vardenafil 2.5 mg, 5 mg, 10 mg, 20 mg 40 minutes 5-7 hours
Stendra avanafil 50 mg, 100 mg, 200 mg 15-30 minutes 6 hours

Some pharmacies prepare compounded formulations or combinations. Their ingredients may have established uses, but a compounded product does not acquire FDA approval simply because it contains an approved ingredient. Ask why a particular formulation suits your needs and how its evidence and instructions differ from a standard tablet. PDE5 inhibitors can cause headache, flushing, indigestion and other adverse effects.

Nitrates and recreational nitrites can interact dangerously with them. An erection lasting four hours requires emergency care; sudden vision or hearing changes require urgent assessment. A medication review helps identify risks before treatment begins. When tablets do not work well enough, a clinician can review the dose, timing and diagnosis before moving to another treatment.

Alprostadil can help produce an erection through a different mechanism. Depending on the product and jurisdiction, clinicians may use an injection or a urethral preparation; topical formulations do not share the same availability everywhere.

Specialist practices also use compounded injections such as BiMix, TriMix and QuadMix. These combine agents such as papaverine, phentolamine, alprostadil and sometimes atropine. The combinations require individual prescribing and instruction. They carry risks, including prolonged erections, and should not serve as an unsupervised addition to oral medication. Low testosterone does not explain every case of ED.

Testosterone replacement also differs from approaches such as enclomiphene, which clinicians sometimes discuss in selected circumstances and which has a different regulatory position. Discuss fertility plans, monitoring and the actual evidence before choosing a hormonal approach.

Treatment for Psychological Erectile Dysfunction

Sex therapy, individual psychological therapy and couples counseling can help when anxiety, depression or relationship difficulties affect sexual function. Therapy can also help with the distress that follows physical ED.

It does not require you to prove that the problem exists entirely in your thoughts.

  • Sex therapy, either individually or with a partner.
  • Couples counseling.
  • Individual psychological therapy.

A therapist may help you reduce performance monitoring, communicate with a partner and develop forms of intimacy that do not depend on penetration. Combining this work with medical treatment can address both the physical response and the anxiety around it. The right combination depends on your circumstances.

Other ED Treatments

If tablets, other medicines, therapy or changes in daily habits provide insufficient benefit, further options remain.

Your clinician can explain the practical demands, evidence and limitations of devices, procedures and hormonal treatment when appropriate.

  • Vacuum erection devices draw blood into the penis. A constriction ring can help retain firmness during sexual activity when you follow the supplied directions. These devices are also known as penis pumps.
  • Penile implants use bendable rods or an inflatable system to support an erect position. A urologist can explain candidacy, the operation and the expected result.
  • Eroxon Stimgel is a nonprescription, non-medicated topical device authorized for ED. It aims to support an erection through local sensory effects and does not contain a PDE5 inhibitor.
  • Testosterone treatment may help selected men whose symptoms relate to confirmed low testosterone. A clinician can assess whether testosterone replacement or another approach, such as a discussion of enclomiphene, fits the diagnosis. These treatments need individual prescribing and monitoring; a low hormone level should not be assumed from ED alone.

Some approaches serve as later choices, while others may suit a patient who cannot use the usual first-line medicines.

Prevention

Changes that support circulation and general health may also improve erections. They usually work gradually and cannot guarantee that every symptom will resolve.

You can pursue them alongside medical treatment rather than waiting for a complete lifestyle overhaul before seeking care.

  • Choose a varied diet that provides the nutrients you need.
  • Limit alcohol consumption.
  • Avoid recreational drugs.
  • Seek support to stop smoking.
  • Stay physically active and work toward a healthy weight.
  • Develop manageable ways to reduce stress.

Choose one or two changes you can maintain.

A clinician can help set realistic priorities, particularly if heart disease, diabetes or another condition limits what feels safe or achievable.

When to See a Doctor

Seek an assessment when erection problems recur, worsen or affect your confidence or relationship. You can start with a primary care clinician even if you eventually need a urologist.

Mention chest discomfort, exercise intolerance, changes in thirst or other new symptoms because the erection problem may form part of a wider health picture. Bring questions about treatment goals. Some men prioritize spontaneity; others want occasional support with minimal exposure to medicine.

Your preferences matter, but the decision also needs to account for cardiovascular safety, interactions and the cause of the problem. An occasional problem after more alcohol than usual or during a period of low arousal can differ from persistent ED. Explain how often it happens and whether the pattern has changed. A clinician can take the history, examine you when necessary, order relevant tests and discuss treatment.

Telehealth may provide a starting appointment, while some questions still need an examination or testing in person.

Getting Help for Erectile Dysfunction

ED can affect men at any age, with increasing frequency in later life. Medical treatment, psychological support and changes that improve general health can help many men manage it.

The appropriate combination depends on the cause and on what you want treatment to achieve.

Persistent symptoms deserve a conversation with a clinician, particularly when they worsen or affect confidence and relationships. An appointment can begin in primary care, with a urologist or through an appropriate telehealth service; examination or testing may still be necessary.

Getting assessed also creates an opportunity to identify diabetes, cardiovascular risk or another condition that needs attention independently of erections.

FAQs

What's the main cause of erectile dysfunction?

No single cause accounts for every case. Vascular disease, diabetes, nerve injury, medication effects and psychological factors can contribute, often together. An assessment looks for the combination relevant to you.

Can erectile dysfunction go away on its own?

A temporary difficulty related to fatigue, stress or alcohol may improve when the circumstances change. Persistent or worsening symptoms warrant assessment because waiting does not identify an underlying condition. Fatigue, temporary stress or a particular sexual situation can cause an isolated difficulty that improves when the circumstances change. A recurring or worsening pattern needs assessment to establish the cause. Waiting for spontaneous improvement does not investigate a possible physical condition or provide support for continuing distress.

What's the most effective treatment for ED?

Many men benefit from sildenafil or tadalafil, while others need therapy, an injection, a device or treatment of another medical condition. Effectiveness depends on the diagnosis, correct use and tolerability rather than the popularity of a product. There is no single most effective option for every cause of ED. Sildenafil and tadalafil help many men, while others benefit from psychological therapy, a vacuum device, injections or treatment of an underlying condition. The clinician can compare these choices using your health, medicines, previous response and preferences.

Can lifestyle changes really help with ED?

Exercise, smoking cessation, improved sleep and a balanced diet can support circulation and mental health. They can complement treatment, although they may not reverse every cause of ED. Regular activity, a varied diet, stopping smoking and managing stress can support circulation and mental health. Reducing heavy drinking and improving other habits may also help sexual function. These changes can complement a prescription, device or therapy, although they cannot promise to reverse every cause of ED.

When should I see a doctor for erectile dysfunction?

Yes, particularly if the pattern concerns you or has changed. Explain how often it happens and under what circumstances. That information helps your clinician judge whether you need investigation, treatment or a different approach to sexual pressure. Arrange a visit when difficulty achieving or maintaining an erection becomes frequent, worsens or affects your relationship or confidence. A clinician can investigate contributing conditions and discuss treatment. You do not have to wait until erections disappear entirely, and a primary care appointment can provide a starting point even if specialist care later becomes useful.

Articles about ED treatment

Understanding ED

Doses and timing

Safety and interactions

Comparisons, access and cost

When treatment falls short

Sources

  1. Dwulit, A. D., & Rzymski, P. (2019). The Potential Associations of Pornography Use with Sexual Dysfunctions: An Integrative Literature Review of Observational Studies. Journal of clinical medicine, 8(7), 914. View source
  2. Feldman FA, et al. (1994). Impotence and its medical and psychosocial correlates: Results of the Massachusetts Male Aging Study. View source
  3. Leslie SW, et al. (2024). Erectile dysfunction. View source
  4. Lowy M, et al. (2022). Erectile dysfunction: Causes, assessment and management options. View source
  5. Mazzilli F, et al. (2022). Erectile dysfunction: Causes, diagnosis and treatment: An update. View source
  6. Pellegrino F, et al. (2024). Relationship between age, comorbidity, and the prevalence of erectile dysfunction. View source
  7. Pitta RM, et al. (2023). What are the main risk factors associated with erectile dysfunction in the elderly? A cross-sectional study of 2436 Brazilian elderly men. View source
  8. U.S. Department of Health and Human Services. (2024). Erectile dysfunction. National Institute of Diabetes and Digestive and Kidney Diseases. View source