What is the ICD‑10‑CM code for chronic pain (and the ICD‑9 equivalent)?

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 4, 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.

ICD-10-CM Code for Chronic Pain

The ICD-10-CM code for chronic pain is G89.29 (Other chronic pain), which replaced the ICD-9 code 338.29 (Other chronic pain).

ICD-10-CM Coding Structure

The ICD-10-CM system provides significantly more granular coding options for chronic pain compared to ICD-9:

Primary Chronic Pain Codes (G89 series):

  • G89.21: Chronic pain due to trauma
  • G89.28: Other chronic postprocedural pain
  • G89.29: Other chronic pain (general chronic pain without specified cause)
  • G89.4: Chronic pain syndrome

Site-Specific Chronic Pain Codes:

When the anatomic location is known but the underlying cause is not better specified, use regional codes such as:

  • M54.5: Low back pain
  • M79.6: Pain in limb
  • M25.5: Joint pain (various subcodes by joint)

ICD-11 Classification (Effective 2025)

The ICD-11 system represents a major advancement in chronic pain classification 1. Unlike ICD-10 where approximately one-third of chronic pain cases were coded as "other chronic pain" (R52.2), ICD-11 provides mechanistic categories:

ICD-11 Chronic Pain Categories:

  • MG30.0: Chronic primary pain (pain as a disease in itself)
  • MG30.1: Chronic cancer pain
  • MG30.2: Chronic postsurgical or posttraumatic pain
  • MG30.3: Chronic secondary musculoskeletal pain
    • MG30.31: Associated with structural changes
  • MG30.5: Chronic neuropathic pain
    • MG30.51: Chronic peripheral neuropathic pain
    • MG30.52: Chronic central neuropathic pain
  • MG30.6: Chronic secondary headache or orofacial pain
  • MG30.7: Chronic secondary visceral pain

Clinical Coding Guidance

When coding chronic pain, prioritize identifying the underlying mechanism or cause rather than simply the anatomic location 1. This approach:

  • Provides better guidance for differential management
  • Improves resource allocation for pain services
  • Facilitates more meaningful research and epidemiological tracking
  • Supports appropriate treatment selection

Coding Algorithm:

  1. Determine chronicity: Pain lasting >3 months qualifies as chronic 2

  2. Identify underlying cause:

    • Cancer-related → Use cancer pain codes
    • Post-surgical/traumatic → Use postprocedural/trauma codes
    • Neuropathic features → Use neuropathic pain codes
    • Musculoskeletal structural changes → Use musculoskeletal codes
  3. If no identifiable cause: Use chronic primary pain codes (ICD-11) or G89.29 (ICD-10-CM)

  4. Add site-specific codes as secondary diagnoses when clinically relevant for treatment planning

Key Coding Pitfalls

Avoid using vague regional pain codes (like M54.5 "low back pain") as the primary diagnosis when a more specific mechanistic code is available 1. Research demonstrates that ICD-10's reliance on anatomic location codes fails to capture the underlying pathophysiology needed for appropriate pain management. The ICD-11 system addresses this limitation by requiring clinicians to identify whether pain is primary (disease itself), cancer-related, neuropathic, musculoskeletal, or visceral in origin.

For billing and documentation purposes in the current ICD-10-CM system, G89.29 remains the most appropriate code for chronic pain when a more specific etiology cannot be determined, with additional codes added to specify location and associated conditions.

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.