How do I diagnose erectile dysfunction in an adult male who presents with difficulty achieving or maintaining an erection?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: February 25, 2026View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Diagnosing Erectile Dysfunction

Begin by proactively asking about sexual function using a validated questionnaire such as the Sexual Health Inventory for Men (SHIM) or Erection Hardness Score, then obtain a detailed sexual history documenting onset pattern, severity, presence of morning/nocturnal erections, and measure morning serum total testosterone in every patient. 1, 2

Essential History Components

Sexual History Details

  • Document whether onset was sudden (suggests psychogenic cause) or gradual (suggests organic cause) 2, 3
  • Ask specifically about the ability to achieve versus maintain erections, as difficulty achieving erections correlates more strongly with organic pathology, while difficulty maintaining erections is more often psychogenic 4
  • Determine if morning or nocturnal erections are preserved—their presence strongly suggests a psychogenic component, though this is not definitive 1, 2
  • Assess whether erections occur during masturbation or only fail in partnered contexts, as situational dysfunction points toward psychogenic etiology 1, 2
  • Quantify severity and degree of bother to the patient 1

Medical and Medication History

  • Review all current medications systematically, particularly antihypertensives (beta-blockers, diuretics, ACE inhibitors), antidepressants (tricyclics, SSRIs), antipsychotics, and sedatives, as these commonly cause ED 2, 5
  • Screen for cardiovascular risk factors including diabetes, hypertension, dyslipidemia, smoking, obesity, and family history of vascular disease, because ED is an independent predictor of cardiovascular disease with prognostic strength comparable to smoking 1, 2
  • Document prior pelvic or genital surgeries, radiation therapy, or trauma 2
  • Assess for symptoms of hypogonadism including decreased libido, loss of morning erections, testicular atrophy, and muscle loss 2, 5

Psychosocial Assessment

  • Screen for depression, anxiety, relationship conflict, and recent major life stressors, as psychological factors are primary or secondary contributors in many cases 1, 2
  • Inquire about performance anxiety and feelings of attractiveness 1
  • When possible, involve the sexual partner in the assessment, as this improves diagnostic accuracy and treatment adherence 1

Physical Examination

Vital Signs and Cardiovascular Assessment

  • Measure blood pressure, pulse, waist circumference, and body mass index 1, 2
  • Perform cardiac auscultation and assess for carotid bruits and diminished femoral/pedal pulses if cardiovascular disease is suspected 2

Genital Examination

  • Inspect penile skin for lesions and assess urethral meatus placement 1
  • Palpate the stretched penis from pubic bone to coronal sulcus to detect plaques or deformities suggestive of Peyronie's disease, though palpable plaques do not definitively confirm clinically significant disease 1
  • Examine testicular size and consistency to assess for hypogonadism 2
  • Look for gynecomastia when testosterone deficiency is suspected 2

Note: Digital rectal examination is not required for ED evaluation, though benign prostatic hyperplasia commonly coexists and may warrant separate assessment 1

Mandatory Laboratory Testing

Hormonal Evaluation

  • Obtain morning (8–10 AM) serum total testosterone in every man presenting with ED—this is a moderate recommendation with Grade C evidence and must not be delayed 1, 2, 5
  • Testosterone deficiency is defined as total testosterone <300 ng/dL with compatible symptoms 1, 2
  • If testosterone is low, repeat the measurement to confirm before initiating therapy 5
  • Measure prolactin only if the initial testosterone is low, as hyperprolactinemia can suppress testosterone production 5
  • If both testosterone and prolactin are abnormal, obtain LH and FSH to distinguish primary from secondary hypogonadism 5

Metabolic and Cardiovascular Screening

  • Order fasting glucose or HbA1c to screen for diabetes mellitus 2, 3, 6
  • Obtain a fasting lipid panel (total cholesterol, LDL, HDL, triglycerides) to evaluate dyslipidemia and cardiovascular risk 2, 5, 6
  • Consider basic electrolytes to detect endocrine or renal abnormalities that may affect sexual function 5

With the exception of glucose/HbA1c, testosterone, and lipids, no other routine laboratory studies are likely to alter ED management 1

When to Perform Specialized Testing

Specialized diagnostic procedures are reserved for select cases and are not part of routine evaluation 1:

  • Nocturnal penile tumescence and rigidity testing may be considered when the distinction between organic and psychogenic ED remains unclear after initial evaluation 3
  • Penile ultrasound with intracavernosal injection is indicated when vascular surgery is being considered or when the diagnosis remains uncertain 3
  • Additional evaluation for Peyronie's disease (such as penile ultrasound) should be undertaken if plaque or deformity is suspected on examination 1

Cardiovascular Risk Counseling

Counsel every patient that ED is a risk marker for underlying cardiovascular disease and other health conditions that warrant evaluation and treatment—this is a clinical principle 1, 2. ED can precede coronary symptoms by 2–5 years and predicts future cardiac events with magnitude comparable to smoking or family history of myocardial infarction 2, 5.

Referral Indications

Refer to a urologist or sexual medicine specialist when 2:

  • Young age with lifelong erectile difficulty
  • History of pelvic or genital trauma
  • Abnormal testicular or penile findings on examination
  • Abnormal initial laboratory results requiring specialized interpretation
  • Complex diagnostic testing is needed to guide treatment

Refer to a mental health professional when 1:

  • Complex psychiatric disorders are present
  • Performance anxiety persists despite initial interventions
  • Relationship conflicts dominate the clinical picture
  • Psychogenic ED is the primary diagnosis

Common Diagnostic Pitfalls

  • Do not assume that preserved morning erections definitively confirm psychogenic ED—they suggest but do not prove a psychogenic component 1, 2
  • Do not delay testosterone testing when loss of libido accompanies ED—the combination makes testosterone deficiency highly probable 5
  • Do not overlook medication-induced ED—systematically review all drugs and consider alternatives with lower sexual side-effect profiles 2
  • Do not evaluate ED without assessing cardiovascular risk—men with organic ED should be considered at increased cardiovascular disease risk until proven otherwise 2, 5
  • Do not order LH, FSH, or TSH as first-line tests—reserve these for confirmed testosterone deficiency or specific clinical suspicion 5

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Guideline

Erectile Dysfunction Evaluation and Treatment

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Guideline

Evaluation and Management of Sudden Onset Erectile Dysfunction and Loss of Libido

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Research

Current diagnosis and management of erectile dysfunction.

The Medical journal of Australia, 2019

Related Questions

What is the initial diagnostic workup for erectile dysfunction?
What is the appropriate workup for erectile dysfunction?
In a 26‑year‑old man with new‑onset erectile dysfunction, no past medical history, and a history of heavy alcohol use, what laboratory investigations and treatment options are indicated?
I’m a man who can’t achieve an erection even with a partner; what evaluation and treatment steps should I take?
What is the optimal management approach for a 26-year-old male with testicular hypofunction, erectile dysfunction, and multiple psychological and physical comorbidities on testosterone cypionate?
What is the likely diagnosis and recommended work‑up/management for a 10‑year‑old boy with recurrent abdominal pain, intermittent transaminase elevations (~100 U/L), CK ~5 000 U/L, LDH ~500 U/L, and normal haptoglobin?
In an adult patient after hemorrhoidectomy, can pelvic‑floor physical therapy improve postoperative urinary retention and pudendal‑nerve‑related pain or hypersensitivity?
What is the safest first‑line mood stabilizer for a patient with bipolar disorder and fatty liver disease, given contraindications of many atypical antipsychotics?
In a 28‑year‑old patient on lithium with a thyroid‑stimulating hormone of 0.698 µIU/mL (slightly low) and a free thyroxine of 0.89 ng/dL (normal), what is the interpretation and recommended management?
What is the appropriate treatment for a urinary tract infection in a woman who is 10 weeks pregnant?
Why do small‑bowel carcinoid tumors secrete hormones—what mechanisms drive hormone production rather than it being random?

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.