What primary diagnosis code is used when prescribing sildenafil (Viagra)?

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: March 20, 2026 • View editorial policy

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.

Primary Diagnosis for Sildenafil (Viagra) Prescribing

The primary diagnosis code used when prescribing sildenafil (Viagra) is erectile dysfunction (ED), as this is the FDA-approved indication and the diagnosis documented in the majority of clinical encounters. 1

FDA-Approved Indication

Sildenafil citrate is specifically approved by the FDA for the treatment of erectile dysfunction 1. This represents the sole indication for which Viagra should be prescribed, and documentation of ED is essential for appropriate medical coding and insurance coverage.

Clinical Documentation Patterns

In real-world practice, approximately 50% of sildenafil prescriptions lack documented ED diagnosis codes, which represents inappropriate prescribing patterns 2. This gap in documentation occurs despite the clear FDA indication and creates potential issues with:

  • Insurance claim denials
  • Medical-legal concerns
  • Quality assurance audits 2

Primary care physicians write 78-89% of sildenafil prescriptions (internists 78%, family practitioners 11%), while urologists document ED diagnoses significantly more consistently than other specialties 2, 3.

Specific ED Diagnosis Codes to Use

The appropriate ICD-10 codes for sildenafil prescribing include:

  • N52.9: Male erectile dysfunction, unspecified 4, 5
  • More specific codes based on etiology when identified (organic, psychogenic, mixed) 4

Clinical Context for Diagnosis

Before assigning an ED diagnosis code, the European Association of Urology guidelines recommend documenting 4:

  • Sexual history including onset, duration, and severity of ED
  • Presence of morning erections (differentiates organic from psychogenic)
  • Relationship factors and partner concerns
  • Cardiovascular risk factors (hypertension, diabetes, hyperlipidemia)
  • Medication review for drugs causing ED 4, 5

Physical examination findings should specifically document cardiovascular status, as this affects both diagnosis coding and safety considerations 1.

Common Pitfalls to Avoid

Never prescribe sildenafil without documenting an ED diagnosis, even if the patient requests it for "performance enhancement" or recreational use 2. This practice:

  • Violates FDA labeling requirements 1
  • Creates liability exposure
  • May indicate drug misuse 2

Ensure cardiovascular contraindications are ruled out and documented, particularly 1:

  • Recent myocardial infarction, stroke, or arrhythmia (within 6 months)
  • Resting hypotension (BP <90/50) or severe hypertension (BP >170/110)
  • Unstable angina or heart failure
  • Concurrent nitrate use (absolute contraindication) 1

Special Populations Requiring Modified Diagnosis Coding

When ED occurs secondary to other conditions, document both the primary condition and ED 5:

  • Post-prostatectomy ED: Document both prostate cancer treatment and ED 5
  • Diabetes-related ED: Note that diabetic patients respond less robustly to PDE5 inhibitors 5
  • Testosterone deficiency with ED: Document both conditions, as combination therapy is more effective 5
  • SSRI-induced ED: Document both depression/anxiety treatment and medication-induced sexual dysfunction 6

If ED is secondary to another treatable condition, the AUA guidelines recommend treating the underlying condition first or concomitantly 5.

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.