Coding Guidelines
8 min read

ICD-10 Back Pain Codes: M54.5 vs M54.9 Explained

Back pain is one of the most common reasons patients seek medical care, affecting approximately 80% of adults at some point in their lives. Accurate ICD-10-CM coding for back pain requires understanding anatomical locations, distinguishing between specific and unspecified codes, and recognizing when radiculopathy or disc disorders require separate coding. This comprehensive guide covers everything medical coders need to know about M54 back pain codes, with special focus on the critical differences between M54.5 (low back pain) and M54.9 (unspecified dorsalgia).

1. Overview of M54 Back Pain Codes

ICD-10-CM category M54 covers dorsalgia (back pain) and related conditions. Unlike many other ICD-10 categories, M54 codes are organized by anatomical location rather than severity or cause. Understanding spinal anatomy is essential for accurate code assignment.

M54 Code Structure by Spinal Region

  • M54.0X: Panniculitis affecting regions of neck and back
  • M54.1: Radiculopathy (nerve root compression)
  • M54.2: Cervicalgia (neck pain)
  • M54.3: Sciatica
  • M54.4: Lumbago with sciatica
  • M54.5: Low back pain (lumbar region)
  • M54.6: Pain in thoracic spine
  • M54.8: Other dorsalgia (coccyx, sacral region)
  • M54.9: Dorsalgia, unspecified

The spine is divided into five regions: cervical (neck, 7 vertebrae), thoracic (upper/mid back, 12 vertebrae), lumbar (lower back, 5 vertebrae), sacral (5 fused vertebrae), and coccygeal (tailbone). Accurate coding requires identifying which region is affected.

2. M54.5 - Low Back Pain (Most Common)

M54.5 is the most frequently used back pain code, specifically describing pain in the lumbar region (lower back). This code should be used when documentation clearly indicates the pain location is in the lower back area, typically between the lowest ribs and the buttocks.

When to Use M54.5

  • ✓ Documentation states "low back pain" or "lumbar pain"
  • ✓ Pain is localized to L1-L5 vertebral region
  • ✓ Provider specifies "lumbago" (general term for lower back pain)
  • ✓ No mention of sciatica or radiculopathy
  • ✓ No underlying disc disorder or structural pathology documented

💡 Clinical Documentation Tip

M54.5 is a symptom code. It describes the patient's complaint (low back pain) but does not identify the underlying cause. If a specific diagnosis is documented (such as lumbar disc herniation M51.26, lumbar spinal stenosis M48.06, or lumbar strain S39.012A), code the specific condition instead of or in addition to M54.5, depending on coding guidelines and payer requirements.

3. M54.9 - Dorsalgia, Unspecified

M54.9 should be used when documentation mentions "back pain" without specifying the anatomical location. This is the least specific code in the M54 category and should only be used when the medical record lacks sufficient detail to assign a more specific code.

When to Use M54.9

  • ✓ Documentation only states "back pain" with no location specified
  • ✓ Provider uses vague terms like "spinal pain" without anatomical detail
  • ✓ Patient complaint is "backache" without further clarification
  • ✓ No response to query for specific location

⚠️ Important: Always Query When Possible

M54.9 provides minimal clinical specificity and may not support medical necessity for certain treatments or services. Before assigning M54.9, always attempt to query the provider for the specific location of back pain. Ask: "Is the pain in the neck (cervical), upper back (thoracic), or lower back (lumbar) region?"

4. M54.2 - Cervicalgia (Neck Pain)

M54.2 is assigned for pain in the cervical spine (neck region). The cervical spine consists of seven vertebrae (C1-C7) and is the most mobile section of the spine, making it susceptible to strain, injury, and degenerative changes.

Common Documentation Terms for M54.2

  • • "Neck pain" or "cervical pain"
  • • "Cervicalgia"
  • • "Pain in neck" or "posterior neck pain"
  • • "C-spine pain" (when referring to symptoms, not structural diagnosis)

Do not use M54.2 if documentation indicates cervical radiculopathy (use M54.12), cervical disc disorder (M50.X codes), or cervical sprain/strain (S13.4XXA). These conditions have specific codes that take precedence over the symptom code.

5. M54.6 - Pain in Thoracic Spine

M54.6 describes pain in the thoracic region (upper and middle back), corresponding to the T1-T12 vertebrae. Thoracic back pain is less common than cervical or lumbar pain because the rib cage provides additional stability to this region.

Thoracic Pain Coding Notes

  • • Use M54.6 for "upper back pain" or "mid-back pain" when anatomically accurate
  • • "Between the shoulder blades" typically indicates thoracic region
  • • Pain along the rib cage posteriorly may be thoracic pain
  • • Do not confuse with shoulder pain (M25.51X) or rib pain (R07.81)

6. M54.3 - Sciatica & M54.4 - Lumbago with Sciatica

Sciatica refers to pain radiating along the sciatic nerve pathway, typically running from the lower back through the buttock and down the leg. ICD-10-CM provides two codes for sciatica depending on whether low back pain is also documented.

CodeDescriptionWhen to Use
M54.3SciaticaLeg pain along sciatic nerve without documented low back pain
M54.4Lumbago with sciaticaBoth low back pain AND sciatic nerve pain documented together

🚫 Critical Coding Rule

Do NOT code both M54.5 (low back pain) and M54.3 (sciatica) together. If the patient has both conditions documented, use M54.4 (lumbago with sciatica) instead. ICD-10-CM considers M54.4 a combination code that captures both symptoms.

If sciatica is caused by a documented lumbar disc disorder (such as L4-L5 disc herniation with radiculopathy), code the disc disorder (M51.16 or M51.17) instead of M54.3 or M54.4. The disc disorder code includes the symptom of sciatica.

7. Acute vs Chronic Back Pain Coding

M54 codes do not have built-in temporal indicators (acute vs chronic). However, many payers and quality reporting programs require distinction between acute and chronic pain. This is typically achieved through additional codes or documentation practices.

Coding Acute vs Chronic Back Pain

  • Acute back pain (duration <3 months):
    • • Assign the appropriate M54 code based on location
    • • Document onset date in clinical notes
    • • Some facilities use G89.11 (Acute pain due to trauma) if injury-related
  • Chronic back pain (duration ≥3 months):
    • • Assign the appropriate M54 code based on location
    • • Consider adding G89.29 (Other chronic pain) if pain management is the focus
    • • Document duration and functional impact in clinical notes

💡 Coding Tip: G89 Pain Codes

G89 codes (pain, not elsewhere classified) can be used as additional codes when pain management is the reason for the encounter. However, they should not be used as the principal diagnosis when a definitive diagnosis is documented. Consult your facility's coding policies and payer guidelines before routinely adding G89 codes to back pain encounters.

8. Common Excludes1 Conflicts

Understanding Excludes1 notes is critical for accurate back pain coding. These notes indicate conditions that cannot be coded together because they represent mutually exclusive diagnoses or because one code inherently includes the other.

❌ M54 Excludes1 Conflicts

M54 codes CANNOT be coded with:

  • M51.X — Thoracic, thoracolumbar and lumbosacral intervertebral disc disorders
  • M50.X — Cervical disc disorders
  • S39.012A — Strain of muscle, fascia and tendon of lower back, initial encounter

Coding Rule:

When a specific structural diagnosis is documented (disc herniation, disc degeneration, spinal strain), code the specific condition instead of the symptom code. The disc disorder codes already include associated back pain as part of the diagnosis. Use our Excludes Checker tool to verify code combinations.

⚠️ Exception: Symptom Codes with Underlying Conditions

In some cases, payers may allow coding both a structural diagnosis and a symptom code when pain management is documented as a separate focus of the encounter. However, this practice varies by payer and should be verified through payer-specific coding guidelines. When in doubt, code only the definitive diagnosis.

9. Real-World Coding Examples

The following examples demonstrate proper back pain coding in common clinical scenarios. Each example includes provider documentation, correct code assignment, and coding rationale.

Example 1: Simple Low Back Pain

Documentation: "Patient presents with low back pain for the past 2 weeks. Pain is localized to lumbar region, no radiation to legs. Physical exam shows tenderness over L4-L5. X-ray shows no acute fracture or significant degenerative changes. Diagnosis: Acute low back pain."

Code:

  • M54.5 — Low back pain

Rationale: Documentation clearly specifies "low back pain" and "lumbar region," making M54.5 the appropriate code. No structural pathology documented.

Example 2: Unspecified Back Pain

Documentation: "Patient complains of back pain. Advised rest and NSAIDs."

Code:

  • M54.9 — Dorsalgia, unspecified

Rationale: No specific anatomical location documented. Should query provider for clarification, but if no response, M54.9 is appropriate.

Example 3: Sciatica with Low Back Pain

Documentation: "Patient presents with low back pain radiating down the right leg to the foot. Positive straight leg raise test. Impression: Lumbago with sciatica, right side."

Code:

  • M54.41 — Lumbago with sciatica, right side

Rationale: Both low back pain and sciatica are documented. Use M54.4X (not M54.5 + M54.3). M54.41 requires 5th character for laterality (1=right, 2=left, 0=unspecified).

Example 4: Neck Pain (Cervicalgia)

Documentation: "Patient complains of posterior neck pain for 3 days after car accident. Tenderness over cervical paraspinal muscles. ROM limited due to pain. No neurological deficits. X-ray negative for fracture. Diagnosis: Cervicalgia."

Codes:

  • M54.2 — Cervicalgia
  • V89.2XXA — Person injured in unspecified motor-vehicle accident, nontraffic, initial encounter (if appropriate per facility guidelines)

Rationale: Neck pain = cervicalgia = M54.2. Consider external cause code for MVA if required by facility policy.

Example 5: Disc Disorder, NOT Back Pain Code

Documentation: "MRI shows L4-L5 disc herniation with nerve root compression. Patient has low back pain with left leg radiculopathy. Diagnosis: Lumbar disc herniation with radiculopathy."

Code:

  • M51.17 — Intervertebral disc disorders with radiculopathy, lumbosacral region
  • Do NOT also code: M54.5 or M54.16

Rationale: The disc disorder code M51.17 already includes associated back pain and radiculopathy. Adding M54.5 would be redundant and violates Excludes1 guidelines.

💡 Pro Tip for Coders

Always review imaging reports and physical exam findings before finalizing back pain codes. If an MRI, CT, or X-ray reveals a structural abnormality (disc herniation, stenosis, fracture, spondylolisthesis), code the specific diagnosis instead of the symptom code. When in doubt about whether to use M54 or a structural code, check the Alphabetic Index under the specific diagnosis documented by the provider.

10. M54.5 vs M54.9 Decision Guide

Use this decision tree to determine whether to assign M54.5 (low back pain) or M54.9 (unspecified dorsalgia) based on documentation:

Back Pain Coding Decision Tree

Step 1: Check for specific structural diagnosis

If YES → Code the specific condition (M51.X for disc disorder, S39.012A for strain, etc.) Do NOT use M54 codes.

If NO → Continue to Step 2

Step 2: Check documentation for anatomical location

If "low back," "lumbar," or "lumbago" → Use M54.5

If "neck" or "cervical" → Use M54.2

If "upper back" or "thoracic" → Use M54.6

If leg pain with back pain → Use M54.3 or M54.4X

If NO specific location documented → Continue to Step 3

Step 3: Query provider for clarification

If provider responds with location → Use specific M54 code

If no response or provider confirms unspecified → Use M54.9

Conclusion

Accurate back pain coding requires understanding spinal anatomy, distinguishing between specific and unspecified codes, and recognizing when underlying structural diagnoses take precedence over symptom codes. The key distinction between M54.5 (low back pain) and M54.9 (unspecified dorsalgia) comes down to documentation specificity—always query providers for anatomical location when it's missing from the medical record.

Remember to check for Excludes1 conflicts with disc disorder codes (M50.X, M51.X) and strain codes (S39.012A). When a specific structural diagnosis is documented, code that diagnosis instead of the symptom code. Use our free Excludes Checker tool to validate your code combinations before claim submission.

For more ICD-10 coding guidance, explore our other articles on asthma coding and diabetes coding.

References

This article references the ICD-10-CM Official Guidelines for Coding and Reporting, FY 2026 (effective October 1, 2025 - September 30, 2026), published by the Centers for Medicare & Medicaid Services (CMS) and the National Center for Health Statistics (NCHS).

All code examples and coding rules are based on official CMS documentation and industry best practices. For the most current coding guidelines, visit www.cms.gov.