Connexus Cure

Reviewed by Clara Hayes, Certified Professional Coder (CPC) on April 16, 2026.

ICD-10 Code for Upper Back Pain (M54.6) – Complete Coding Guide 2026

icd 10 Code for Upper Back Pain

M54.6 is the icd 10 code for upper back pain (thoracic spine pain). Thoracic spine is the part of the spine that is located in the upper and mid-back. Use S29.012  when the upper back back pain is caused by injury & Use M54.9 when the pain is unspecified.

 In the clinical environment, upper back pain is one of the most frequently documented musculoskeletal conditions. Accurate classification of the classification code is critical for medical coding purposes, billing, insurance claims, and clinical record keeping. 

The correct ICD-10-CM classification for upper back pain depends on cause, location, and clinical documentation. The primary diagnostic code used is M54.6, representing pain in the thoracic spine.

What is the ICD-10 Code for Upper Back Pain?

The primary ICD-10 code for upper back pain is:

  • M54.6 – Pain in thoracic spine (Dorsalgia)


This code belongs to the musculoskeletal system and specifically refers to pain in the upper and mid-back region.

ICD-10 Code for Mid Back Pain

The ICD-10 code for mid back pain is M54.6 (Pain in thoracic spine). This code is used to diagnose pain in the thoracic (middle) region of the spine.

When to Use M54.6 for Mid Back Pain

Use this code when:

  • ➤Pain is located in the mid back (thoracic spine)
  • ➤No specific underlying condition is identified
  • ➤The diagnosis is based on symptoms (pain only)
  • ➤Treating acute or chronic thoracic pain

 

Quick Note

Mid back pain and upper back pain are both part of the thoracic spine, which is why M54.6 is commonly used for both conditions.

Code Cluster Hub (ICD-10 Mapping for Back Pain Conditions)

Condition ICD-10 Code Description
Upper back pain (thoracic) M54.6 Pain in thoracic spine (primary code)
Unspecified back pain M54.9 Used when location is not clearly defined
Muscle strain (upper back) S29.012 Injury-related thoracic muscle strain
Cervical radiculopathy M54.12 Nerve root irritation causing referred pain
Disc disorder (unspecified) M51.9 Degenerative or unspecified disc issues

👉 This cluster ensures correct coding across all clinical scenarios.

Medical Explanation Layer (Clinical Insight)

Upper back pain refers to discomfort in the thoracic spine region, which is the middle section of the spine between the neck and lower back.

Common Causes of Upper Back Pain

  • Muscle strain or overuse
  • Poor posture (especially desk work)
  • Spinal disc degeneration
  • Trauma or injury
  • Myofascial pain syndrome

Clinical Characteristics:

  • Localized or radiating pain
  • Stiffness in upper back muscles
  • Pain during movement or lifting
  • Sometimes associated with nerve irritation

How to Choose the Correct ICD-10 Code


Step 1: Identify Pain Location

  • Upper / thoracic spine → M54.6


Step 2: Check Cause

If cause is unknown:

→ Use M54.6

If cause is unspecified:

→ Use M54.9

If injury-related:

→ Use S29.012

If nerve involvement exists:

→ Use M54.12

 Quick Decision Flow:


Upper back pain?

→ Yes

Is cause known?

  • No → M54.6
  • Injury → S29.012
  • Nerve-related → M54.12

 ICD-10 Comparison Table (Upper vs Other Back Pain)

Condition Type ICD-10 Code Spinal Region
Upper back pain M54.6 Thoracic spine
Lower back pain M54.5 Lumbar spine
General back pain M54.9 Unspecified region
Neck pain M54.2 Cervical spine

Common ICD-10 Coding Mistakes (Avoid These ⚠️)

  • Using M54.9 when thoracic pain is clearly documented
  • Not specifying pain location in medical records
  • Missing injury-related external cause codes
  • Overusing unspecified diagnosis codes
  • Confusing musculoskeletal pain with nerve disorders

📑 ICD-10 Billing & Coding Guidelines

Proper coding ensures accurate reimbursement and compliance.

Key Guidelines:

  • Use M54.6 when thoracic spine pain is clearly documented
  • Do not default to unspecified codes if detail exists
  • Always match ICD code with physician documentation
  • Add injury codes when trauma is present
  • Follow payer-specific coding rules

 Medical Explanation Layer (Expanded Clinical Context)

Upper back pain may originate from:

  • Muscles (most common cause)
  • Vertebrae (spinal bones)
  • Intervertebral discs
  • Nerve roots

It is often classified as dorsalgia, a general term for back pain disorders.

❓ FAQs 


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

The ICD-10 code is M54.6, which refers to pain in the thoracic spine.

Is M54.6 a billable code?

Yes, M54.6 is a valid and billable ICD-10-CM code.

What is the difference between M54.6 and M54.9?

  • M54.6 = Upper back (thoracic) pain
  • M54.9 = Unspecified back pain

Can upper back pain be caused by injury?

Yes, in such cases S29.012 may be used instead of M54.6.

Clinical Summary 

ICD-10 code M54.6 is used for upper back pain affecting the thoracic spine. It is the primary diagnosis code when pain is localized and not caused by injury. For unspecified or injury-related cases, alternative ICD-10 codes such as M54.9 or S29.012 may be used depending on documentation.

Conclusion

Accurate ICD-10 coding for upper back pain is essential for proper diagnosis, billing, and insurance processing. The primary code M54.6 should be used when thoracic pain is clearly documented, while alternative codes should be applied based on cause and clinical detail.

Read More Articles 

Explore more ICD-10 coding guides below:

These articles provide in-depth ICD-10 coding explanations, documentation requirements, and billing insights to help healthcare providers maintain accurate medical records and improve insurance claim success rates.

  •  

Need Expert Help with ICD-10 Coding?

If you want error-free, compliant, and audit-ready medical coding, our professional medical coding services help healthcare providers, clinics, and billing companies ensure 100% accuracy in ICD-10 documentation and claims.

Clara Hayes

Clara Hayes

Verified

Content Strategist at @Connexus Cure

Clara Hayes is a Certified Professional Coder (CPC), Revenue Cycle Management (RCM) expert & healthcare content strategist with over 10 years of experience in the US healthcare market. She specializes in simplifying complex medical billing, coding, and reimbursement processes through clear, actionable, and compliance-driven content. Her work helps healthcare organizations reduce claim denials, improve coding accuracy, and accelerate revenue cycle performance. Clara is known for translating intricate regulatory and billing workflows into practical, high-impact strategies that support operational efficiency and financial success.