What is the ICD-10-CM code for upper back pain?

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: September 18, 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 Upper Back Pain

The ICD-10-CM code for upper back pain is M54.6 (Pain in thoracic spine).

Primary Code

  • M54.6 is the specific code for thoracic spine pain, which encompasses the upper back region (T1-T12 vertebral levels) 1

Clinical Context for Coding

The thoracic spine region (upper back) is clinically defined as the area from T1 to T12 vertebrae and includes pain emanating from the thoracic spine or thoracic paraspinous soft tissues 1.

Important Coding Considerations

When coding upper back pain, you should differentiate based on:

Duration of symptoms:

  • Acute: 0-4 weeks
  • Subacute: 4-12 weeks
  • Chronic: >12 weeks 1

Presence of red flags requiring additional codes:

  • Myelopathy
  • Radiculopathy
  • Known malignancy
  • Infection
  • Trauma
  • Osteoporotic fracture risk (age >65, chronic steroid use) 1

Common Pitfalls in Coding

Avoid using non-specific codes when possible. Research shows that in ICD-10, approximately 29% of back pain encounters were coded as "other chronic pain" (R52.2) when more specific codes were available 2. The code M54.6 is more specific and clinically informative than generic pain codes.

Do not confuse with:

  • M54.5 (Low back pain) - this is for lumbar region, not thoracic
  • M54.2 (Cervicalgia) - this is for neck pain
  • R52.2 (Other chronic pain) - too non-specific 3

When Additional Codes Are Needed

If the patient has underlying pathology identified, you may need to code both M54.6 and the specific condition:

  • Compression fracture
  • Malignancy
  • Infection
  • Inflammatory spondyloarthropathy 1

The key is that M54.6 should be your primary code for straightforward thoracic/upper back pain without identified specific pathology.

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.