What ICD-10 (International Classification of Diseases, 10th Revision) code is used for hemorrhoids with associated pain, especially when it hurts to sit?

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: December 29, 2025View editorial policy

Personalize

Help us tailor your experience

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

ICD-10 Coding for Hemorrhoids with Pain

For hemorrhoids causing pain that makes sitting difficult, use ICD-10 code K64.4 (Residual hemorrhoidal skin tags) for external hemorrhoids, K64.8 (Other hemorrhoids) for unspecified painful hemorrhoids, or K64.5 (Perianal venous thrombosis/thrombosed external hemorrhoids) if thrombosis is present.

Understanding the Clinical Context

The pain you're describing—particularly pain with sitting—strongly suggests external hemorrhoids or thrombosed external hemorrhoids, as these are located below the dentate line where somatic pain receptors are abundant 1, 2. Internal hemorrhoids typically do not cause pain unless thrombosed or prolapsed 1, 3.

Key Diagnostic Distinctions

  • External hemorrhoids become symptomatic primarily when thrombosed, causing acute pain and a palpable perianal lump 1, 2
  • Thrombosed external hemorrhoids present with acute-onset anal pain that makes sitting extremely uncomfortable 1, 3
  • Pain without visible thrombosis should prompt consideration of alternative diagnoses like anal fissure (present in up to 20% of hemorrhoid patients) or intersphincteric abscess 2, 3

Specific ICD-10 Code Recommendations

Primary Codes to Consider:

  • K64.5 - Perianal venous thrombosis (thrombosed external hemorrhoids) - Use this if there is visible thrombosis with acute pain 4, 5
  • K64.4 - Residual hemorrhoidal skin tags - Use for symptomatic external hemorrhoids without active thrombosis 2
  • K64.8 - Other hemorrhoids - Use when hemorrhoids are symptomatic with pain but don't fit other specific categories 1

Additional Codes for Complete Documentation:

  • R10.2 - Pelvic and perineal pain - Can be added as a secondary code to emphasize the pain component 6
  • K64.0 - First degree hemorrhoids (if internal component present)
  • K64.1 - Second degree hemorrhoids (if prolapsing with spontaneous reduction)
  • K64.2 - Third degree hemorrhoids (if requiring manual reduction)
  • K64.3 - Fourth degree hemorrhoids (if irreducible) 4, 5

Clinical Algorithm for Code Selection

Step 1: Determine Location

  • If pain is severe enough to prevent sitting, this indicates external hemorrhoids below the dentate line 2, 7

Step 2: Assess for Thrombosis

  • Visible blue/purple discoloration with acute pain → K64.5 (thrombosed external hemorrhoid) 4, 5
  • Chronic external tags causing pain with sitting → K64.4 (residual hemorrhoidal skin tags) 2

Step 3: Consider Mixed Disease

  • If both internal and external components present → K64.8 (other hemorrhoids) captures mixed disease 1, 4

Important Coding Pitfalls to Avoid

  • Never assume all anal pain is from hemorrhoids - up to 20% have concomitant anal fissures that may be the primary pain source 2, 3
  • Don't use internal hemorrhoid codes (K64.0-K64.3) for pain with sitting - internal hemorrhoids above the dentate line lack somatic pain receptors and rarely cause significant pain unless thrombosed 1, 3
  • Avoid K64.9 (unspecified hemorrhoids) when clinical examination can determine external vs internal location 2

Documentation Tips for Accurate Coding

Document the following to support your code selection:

  • Location relative to dentate line (external vs internal) 3
  • Presence or absence of thrombosis 4, 5
  • Severity of pain and functional impact (inability to sit) 1
  • Duration of symptoms (acute vs chronic) 5
  • Any associated bleeding, prolapse, or skin tags 2, 4

References

Guideline

Management of Hemorrhoids

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Guideline

Management of External Hemorrhoids

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Guideline

Hemorroides Internas y Externas

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Research

Hemorrhoids: Diagnosis and Treatment Options.

American family physician, 2018

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.