⚡ ICD-10-CM R25.2 — Cramp and Spasm

Billable Code Confirmed

ICD-10-CM R25.2 is a valid, billable 4-character ICD-10-CM code for FY2026. All characters are present: R25 (category — Abnormal Involuntary Movements) + .2 (cramp and spasm). No additional characters are required or available.

Critical Principal Diagnosis Restriction

R25.2 is NOT valid as a principal diagnosis when a related, definitive diagnosis has already been established in the medical record. Per ICD-10-CM Official Guidelines Section I.C.18, symptom codes from Chapter 18 should be replaced by the confirmed definitive diagnosis code when one exists. If the attending has documented muscle spasm as a diagnosed musculoskeletal disorder → use M62.838, M62.830, or M62.831 as appropriate — not R25.2.

R25.2 is appropriate as principal only when the cramp or spasm remains undifferentiated, is the sole documented finding, and no definitive etiology or disorder has been established.

Non-Billable Parent Codes — Never Submit These

  • R25 — 3-character category header — never billable alone

Always submit R25.2 (all 4 characters) when billing for undifferentiated cramp and spasm.

R25.2 vs. M62.83x — The Core Distinction

R25.2 is a symptom code — it captures a presenting complaint or undifferentiated finding when no clinical diagnosis of a muscle disorder has been established. M62.830, M62.831, and M62.838 are disorder codes — they are used when the physician has established muscle spasm as a clinical diagnosis. These code families carry Excludes 1 or equivalent separation language and cannot be reported simultaneously. The distinction is physician intent, not coder inference.

Code Classification

ICD-10-CM Diagnosis Code — Chapter 18 Symptom/Sign Code. Fields for wRVU, assistant payable, and global period are not applicable. Chapter 18 codes are used when no definitive diagnosis is established or when a symptom is not integral to a confirmed diagnosis.


🔍 Code Description

ICD-10-CM R25.2 classifies cramp and spasm as an abnormal involuntary movement — a symptom-level finding reflecting involuntary, sustained or paroxysmal muscle contraction where the underlying etiology has not been (or cannot be) further specified as a definitive disorder. The code sits in Chapter 18 (Symptoms, Signs, and Abnormal Findings), which distinguishes it fundamentally from the musculoskeletal disorder codes in Chapter 13 (M62.83x).

The critical concept underpinning R25.2 is diagnostic uncertainty or undifferentiation. This code is the appropriate choice when a patient presents with cramping or spasm and the workup is incomplete, the etiology is unknown, the presentation is transient and self-resolving, or the physician has not established a clinical diagnosis beyond the symptomatic complaint itself. Common real-world scenarios include nocturnal leg cramps with no identified cause, exercise-associated muscle cramp in an otherwise healthy patient, and acute cramp in the emergency department prior to metabolic workup.

The block-level Excludes 1 at R25 prohibits simultaneous assignment of R25.2 with specific movement disorder codes (G20-G26), stereotyped movement disorders (F98.4), and tic disorders (F95.-). These are fully characterized neurological entities — not undifferentiated symptom presentations — and are mutually exclusive with the R25 symptom family.


🌳 Code Tree / Hierarchy

R25 — Abnormal Involuntary Movements  ❌ Non-billable (Excludes 1 at category: G20-G26, F98.4, F95.-)
│
├── R25.0 — Abnormal Head Movements ✅ Billable
├── R25.1 — Tremor, Unspecified ✅ Billable
├── R25.2 — Cramp and Spasm ◀ THIS CODE ✅ Billable | ⚠️ Not valid as PDx when definitive dx established
├── R25.3 — Fasciculation ✅ Billable | ⚠️ Not valid as PDx when definitive dx established
├── R25.8 — Other Abnormal Involuntary Movements ✅ Billable
└── R25.9 — Unspecified Abnormal Involuntary Movements ✅ Billable (⚠️ avoid — query specificity)

R25.2 vs. R25.8 vs. R25.9

R25.2 specifically captures cramp and spasm. If the abnormal involuntary movement documented is not a cramp or spasm (e.g., myoclonus NOS, choreiform movement), consider R25.8 (other) — but always query whether a specific movement disorder code (G20-G26) applies first. R25.9 (unspecified) should be avoided; query for the movement type before assigning.


✅ Includes

The following clinical terms and scenarios map to R25.2 when no definitive diagnosis has been established:

  • Muscle cramp NOS — acute, transient, undifferentiated
  • Nocturnal leg cramps (idiopathic, no underlying etiology identified)
  • Exercise-associated muscle cramp (no defined disorder)
  • Writer’s cramp — when not classified as occupational or dystonic cramp (dystonic writer’s cramp → G24.8 or specific dystonia code)
  • Generalized cramping without identified metabolic, neurological, or musculoskeletal cause
  • Muscle spasm as a symptom/presenting complaint, pre-workup

❌ Excludes

Excludes 1 (Category Level R25) — Cannot Be Coded Simultaneously with Any R25.x Code

CodeDescriptionNote
G20-G26Specific movement disorders (Parkinson, essential tremor, dystonia, Huntington, etc.)Mutually exclusive — if a specific movement disorder is established, assign the G20-G26 code, not R25.2
F98.4Stereotyped movement disordersMutually exclusive — psychiatric/behavioral movement disorder
F95.-Tic disordersMutually exclusive — tics are classified under F95, not R25

Excludes 1 at Category Level — Applies to ALL R25.x Codes

The Excludes 1 note sits at the R25 category level, meaning it applies to R25.2, R25.3, and every other code within R25. If a specific movement disorder from G20-G26 has been established, do not assign any R25.x code simultaneously. These are fully characterized diagnoses — the symptom code is replaced, not added.

Excludes 2 (Code Level R25.2) — May Be Coded in Addition if Separately Present

CodeDescriptionNote
R29.0Carpopedal spasmExcludes 2 — tetany-related hand/foot spasm is a distinct presentation; both may be coded if separately documented
M62.831Muscle spasm of calf (Charley horse)Excludes 2 — established disorder code for calf spasm; may code with R25.2 if both separately present and documented
M62.830Muscle spasm of backExcludes 2 — established back spasm disorder code

Excludes 2 — Not Mutually Exclusive

The Excludes 2 codes at R25.2 are not mutually exclusive — they represent distinct conditions that may coexist. However, in practice, if the spasm is documented as an established disorder (M62.83x), that disorder code is preferred over R25.2 for that same spasm. Use the Excludes 2 flexibility only when both a characterized disorder AND a separate undifferentiated cramp/spasm are genuinely present and documented separately.


📋 Clinical Overview

Symptom Code vs. Disorder Code — The Core Coding Principle

This is the most important concept for R25.2 coding and the most common source of coding errors involving this code family.

FeatureR25.2 — Cramp and SpasmM62.83x — Muscle Spasm (Disorder)
Code chapterChapter 18 — Symptoms/SignsChapter 13 — Musculoskeletal
Diagnosis levelUndifferentiated symptomEstablished clinical diagnosis
When to useNo definitive diagnosis establishedPhysician has diagnosed muscle spasm as a disorder
Principal Dx⚠️ Only if no definitive Dx exists✅ Appropriate as principal when it drives the encounter
Coding with etiologyReplace with etiology code when identifiedAdd etiology code additionally
Common settingED, urgent care, early outpatient workupEstablished PT, neurology, orthopedic encounters

CDI Query Trigger — Symptom vs. Established Diagnosis

If the physician documents “cramp and spasm” but the clinical context (treatment plan, referrals, imaging ordered) suggests an established musculoskeletal or neurological diagnosis is being managed, a CDI query is appropriate to clarify whether the presentation should be coded as a diagnosed disorder (M62.838, M62.830, M62.831) rather than as a symptom (R25.2). This distinction affects sequencing, principal diagnosis selection, and potential DRG grouping.

Pathophysiology

Cramp represents a sudden, involuntary, painful contraction of a muscle or muscle group — distinct from a spasm primarily by its paroxysmal, self-terminating nature and typically high-intensity pain profile. At the cellular level, cramping results from sustained depolarization of motor neurons, often triggered by electrolyte shifts (sodium, potassium, magnesium, calcium), dehydration, altered neuromuscular junction activity, or ischemia to the muscle during exercise or rest.

Nocturnal leg cramps — one of the most common presentations mapped to R25.2 — are thought to arise from altered motor neuron excitability during sleep, with reduced inhibitory input allowing spontaneous high-frequency motor unit discharge. The pathophysiology remains incompletely understood in idiopathic cases, which is precisely why R25.2 (a symptom code) is often the appropriate assignment when no underlying etiology has been identified despite workup.

Etiology — When R25.2 Should Be Replaced

When an underlying cause is identified, R25.2 is replaced (not supplemented) by the definitive diagnosis code in most scenarios.

Identified CauseReplace R25.2 WithSequencing Note
Established muscle spasm disorder, cervical/shoulder/otherM62.838Disorder code replaces symptom code
Established calf muscle spasm (Charley horse)M62.831More specific disorder code
Established back muscle spasmM62.830More specific disorder code
Hypomagnesemia driving crampsE83.42 + R25.2 or M62.838Code metabolic cause; query whether spasm is now a characterized disorder
HypokalemiaE87.6 + R25.2Code electrolyte disturbance; R25.2 as additional if spasm not yet characterized
Peripheral vascular disease / claudicationI73.9 or specific PVD codeVascular claudication is not cramping in the R25.2 sense — distinct entity
ALS / motor neuron diseaseG12.21Fasciculations and cramps in ALS → G12.21 as principal; R25.2 typically not added
Radiculopathy-associated spasmM54.12 / M54.17 + M62.838Radiculopathy sequences first; M62.838 (not R25.2) for the spasm once characterized
Idiopathic / undifferentiatedR25.2 aloneAppropriate sole code when no cause identified

Clinical Presentation

Patients presenting with cramp and spasm coded as R25.2 typically show:

  • Sudden, painful involuntary contraction of a muscle or muscle group, lasting seconds to minutes
  • Visible muscle hardening or visible deformity (e.g., foot or toe flexion during nocturnal cramp)
  • Spontaneous resolution with stretching, walking, or heat application
  • Nocturnal timing — particularly common in legs at rest; patients awakened from sleep
  • No focal neurological deficits on exam — if focal deficits present, the evaluation shifts toward a specific neurological diagnosis
  • Electrolyte or hydration abnormality on labs in some patients — when identified, drives a separate etiology code assignment

Documentation Requirements

For appropriate assignment of R25.2, documentation should reflect:

  1. Symptom-level presentation — physician documents cramp/spasm as a presenting complaint or finding, not as an established disorder
  2. No definitive diagnosis established — workup incomplete or negative; etiology remains undetermined at time of the encounter
  3. Location if documented — while R25.2 has no laterality structure, location detail in the record supports downstream coding if a disorder is later characterized
  4. Associated symptoms — frequency, duration, triggers, timing — supports medical necessity for diagnostic workup (EMG, labs, imaging)
  5. Treatment rendered — if conservative symptom management (stretching, quinine, magnesium supplementation), document response and plan

💰 HCC Risk Adjustment (CMS-HCC v28)

FieldDetail
CMS-HCC Model Versionv28 (2024-2025 Implementation)
HCC Assignment❌ Not Mapped
HCC CategoryN/A
RAF Coefficient0.000
RxHCC AssignmentNot Mapped

R25.2 does not map to an HCC under CMS-HCC v28 and does not contribute to a patient’s Risk Adjustment Factor (RAF) score.

Symptom Codes and RAF — The Downstream Risk

R25.2 carries no RAF weight — but the neurological and systemic conditions it may signal often do. Any encounter with R25.2 that is later resolved to a definitive diagnosis may represent an uncaptured HCC opportunity. Ensure that at every follow-up encounter where a definitive diagnosis has been established:

  • ALS (G12.21) — review HCC mapping
  • Multiple sclerosis (G35) — review HCC mapping
  • Hemiplegia/hemiparesis (G81.x) — HCC-mapped in v28
  • Peripheral neuropathy with diabetes — HCC 18/19 series
  • Malnutrition or electrolyte disorders — review for HCC mapping

Do not let R25.2 become a permanent placeholder when a definitive diagnosis is warranted.


🏥 MS-DRG Assignment

MDC 01 — Diseases and Disorders of the Nervous System (when R25.2 drives grouping)

DRGTitleEst. Relative Weight*
DRG 091Other Disorders of Nervous System with MCC~1.15-1.45
DRG 092Other Disorders of Nervous System with CC~0.80-1.00
DRG 093Other Disorders of Nervous System without CC/MCC~0.55-0.75

*Approximate. Verify against IPPS FY2026 Final Rule tables.

Symptom Code as Principal — Rare Inpatient Scenario

R25.2 as inpatient principal diagnosis is uncommon and warrants scrutiny. An inpatient admission driven solely by undifferentiated cramp and spasm — with no definitive diagnosis established across the entire stay — is a CDI red flag. Query the attending for whether a definitive underlying condition was identified or suspected. If the stay concludes without a definitive diagnosis, R25.2 may stand as principal, but this should be the exception, not the rule.


R25.x Family — Abnormal Involuntary Movements

CodeDescription
R25.0Abnormal head movements
R25.1Tremor, unspecified
R25.2Cramp and spasm ← This Code
R25.3Fasciculation — see separate note
R25.8Other abnormal involuntary movements

Disorder-Level Alternatives (When Definitive Diagnosis Established)

CodeDescriptionRelationship to R25.2
M62.838Other muscle spasmReplaces R25.2 when spasm is characterized as a disorder at a non-back, non-calf site
M62.831Muscle spasm of calfReplaces R25.2 for characterized calf spasm (Charley horse)
M62.830Muscle spasm of backReplaces R25.2 for characterized back muscle spasm
M62.40Contracture of muscle, unspecifiedFixed chronic shortening — distinct from acute cramp
R29.0Carpopedal spasmTetany-related spasm — Excludes 2; may code with R25.2 if both present

Neurological Differential Codes (Excludes 1 at R25 Category — Cannot Code with R25.2)

CodeDescriptionNote
G25.3MyoclonusSpecific movement disorder — replaces R25.x if myoclonus is established
G24.3Spasmodic torticollisSpecific dystonia — replaces R25.x
G20Parkinson diseaseExcludes 1 at R25 category level
G25.0Essential tremorExcludes 1 at R25 category level

Metabolic Etiology Codes (Add When Identified as Cause)

CodeDescriptionCoding Relevance
E83.42HypomagnesemiaCommon metabolic driver of cramp — code etiology; query whether R25.2 or M62.838 is appropriate
E87.6HypokalemiaElectrolyte disturbance causing cramp
E87.1HyponatremiaEspecially exertional/exercise-associated cramp
E86.0DehydrationSystemic trigger for exercise-associated cramp

🛠️ Commonly Associated CPT Codes

Outpatient and Physician Setting Context

The CPT codes below are associated with the diagnostic workup and management of cramp and spasm in outpatient, neurology, and primary care settings. In the inpatient setting, ICD-10-PCS codes govern procedural reporting.

CPT CodeDescriptionClinical Application
99213Office visit, established patient, low complexityRoutine follow-up, nocturnal leg cramps management
99214Office visit, established patient, moderate complexityNew or worsening cramp/spasm with diagnostic workup
99215Office visit, established patient, high complexityComplex presentation with neurological workup initiated
95860Needle EMG, 1 extremity, without NCS same dayUnilateral extremity EMG to evaluate muscle/nerve pathology underlying cramp
95861Needle EMG, 2 extremities, without NCS same dayBilateral upper or lower extremity EMG
95863Needle EMG, 3 extremities, without NCS same dayThree extremity EMG
95864Needle EMG, 4 extremities, without NCS same dayFour extremity complete EMG
95907Nerve conduction studies; 1-2 studiesBaseline NCS for cramp/spasm workup
95908Nerve conduction studies; 3-4 studiesExpanded NCS
95909Nerve conduction studies; 5-6 studiesExtended NCS panel
20552Trigger point injection, 1-2 musclesInjection for localized muscle spasm component
20553Trigger point injection, 3 or more musclesMulti-muscle injection when spasm widespread

NCCI Bundling Considerations

NCCI PTP Edits — EMG and NCS Same Day

  • 95860-95864 (needle EMG without NCS) and 95907-95913 (NCS) cannot be billed together on the same DOS in the standard manner — when EMG is performed with NCS same day, use the add-on codes 95885 and 95886 paired with the NCS codes, not the standalone EMG codes.
  • 20552 or 20553 (trigger point injection) billed same day as E/M: Modifier -25 required on the E/M.
  • An E/M service is inherently included in EMG codes (95860-95864); a separate E/M may only be billed when a significant, separately identifiable service is documented and Modifier -25 is appended.

🔬 ICD-10-PCS Crosswalk (Inpatient Procedures)

When R25.2 is an inpatient diagnosis and a procedure is performed during the workup, the following ICD-10-PCS sections may be relevant. Full PCS codes require all seven characters — consult PCS tables for FY2026.

PCS SectionBody SystemRoot OperationClinical Application
3 (Administration)E (Physiological Systems)0 (Introduction)IV or IM administration of magnesium, calcium, or electrolyte replacement for metabolic-driven cramp
0 (Medical & Surgical)K (Muscles)B (Excision)Muscle biopsy if performed to rule out underlying myopathic etiology
4 (Measurement & Monitoring)A (Physiological Systems)0 (Measurement)Electrophysiological monitoring (EMG-equivalent in PCS) if performed during inpatient stay

💊 Coding Scenarios and Examples


Scenario 1 — Nocturnal Leg Cramps, Idiopathic, No Etiology Found (Outpatient)

Clinical Vignette: A 68-year-old female presents to her primary care physician with a 3-month history of nightly right leg cramping waking her from sleep. Labs show normal electrolytes, normal CBC, normal TSH. No peripheral vascular disease. No neurological deficits on exam. Physician documents: “nocturnal leg cramps — idiopathic, no identifiable etiology at this time.” Recommends stretching, hydration, and magnesium supplementation.

CPT Codes:

  • 99214 — Office visit, established patient, moderate complexity

ICD-10-CM:

  • R25.2 — Cramp and spasm (no definitive diagnosis established — symptom code is correct; do NOT use M62.831 as no disorder has been characterized by the physician)

R25.2 is Correct Here — Not M62.831

The physician has not established a clinical diagnosis of muscle spasm as a disorder — the presentation is idiopathic nocturnal cramping with no etiology found. R25.2 is the appropriate symptom code. If at a subsequent visit the physician diagnoses calf muscle spasm as a musculoskeletal condition, transition to M62.831.


Scenario 2 — Cramp and Spasm with Hypomagnesemia (Inpatient)

Clinical Vignette: A 54-year-old male is admitted with diffuse muscle cramping and spasm. Metabolic panel reveals serum magnesium of 0.9 mg/dL. Physician documents: “diffuse muscle cramping secondary to hypomagnesemia from chronic PPI use.” Treated with IV magnesium replacement.

Principal Diagnosis:

  • E83.42 — Hypomagnesemia (drives the admission — electrolyte disturbance is the definitive diagnosis and reason for admission)

Additional Diagnoses:

  • R25.2 — Cramp and spasm (symptom — appropriate as additional when the metabolic cause is principal; query whether physician characterizes this as a disorder — if so, transition to M62.838)

Symptom Code as Additional When Etiology is Principal

When the metabolic etiology (E83.42) has been identified and sequences as principal, R25.2 may be retained as an additional diagnosis to capture the presenting symptom. However, query whether the physician has now characterized the spasm as a musculoskeletal disorder — if so, M62.838 replaces R25.2 as the additional code.


Scenario 3 — Exercise-Associated Muscle Cramp, ED Presentation

Clinical Vignette: A 23-year-old male marathon runner presents to the ED after collapsing at mile 24 with severe bilateral leg cramping. Vitals stable. No electrolyte abnormality on point-of-care labs. Physician documents: “exercise-associated muscle cramp — likely dehydration-related.” Treated with IV fluids and stretching. Discharged.

CPT Codes (if outpatient/ED visit coded with E/M):

  • 99283 or 99284 — ED E/M level based on complexity

ICD-10-CM:

  • R25.2 — Cramp and spasm (acute exercise-associated cramping, no definitive disorder established)
  • E86.0 — Dehydration (physician documents dehydration as likely contributing cause — code additionally)

Dehydration as Additional, Not Principal

If the cramping is the primary presenting complaint and dehydration is a contributing factor, sequence by reason for encounter. If the admission/visit is driven by dehydration, that may sequence first. Evaluate reason for encounter before assigning sequencing.


Scenario 4 — Cramp/Spasm Leading to ALS Diagnosis (Outpatient Neurology)

Clinical Vignette: A 61-year-old male presents to neurology with a 4-month history of bilateral hand cramping and fasciculations. EMG and NCS performed. Findings consistent with anterior horn cell disease. Physician documents final impression: “ALS — amyotrophic lateral sclerosis.” Cramps and fasciculations noted as presenting symptoms.

CPT Codes:

  • 99215 — Office visit, established patient, high complexity
  • 95861 — Needle EMG, 2 extremities, no NCS same day (or paired add-on codes if NCS performed same day)
  • 95908 or 95909 — NCS if performed same day (replace 95861 with 95885/95886 add-on pairing)

ICD-10-CM:

  • G12.21 — Amyotrophic lateral sclerosis (definitive diagnosis established — this replaces R25.2 and R25.3 at this encounter and all subsequent encounters; do NOT continue using R25.x once ALS is documented)

Transition Away from R25.2 Once Definitive Diagnosis Established

Once ALS is documented, G12.21 is the principal code. Do not continue assigning R25.2 or R25.3 alongside G12.21 — cramping and fasciculation are integral symptoms of ALS and are not separately coded per Official Guideline Section I.C.18.


⚠️ Coding Pitfalls and Tips

Pitfall or Tip
Do not use R25.2 when a definitive diagnosis has been established — transition to the appropriate disorder code (M62.838, M62.830, M62.831) once the physician characterizes the spasm as a clinical diagnosis
Do not assign R25.2 as principal diagnosis when a related definitive diagnosis exists — per ICD-10-CM Official Guidelines Section I.C.18, the definitive diagnosis sequences as principal
Do not code R25.2 with specific movement disorders (G20-G26) — Excludes 1 at R25 category level; these are mutually exclusive
Do not code R25.2 simultaneously with M62.838, M62.830, or M62.831 for the same spasm — if the spasm is a characterized disorder, the M62.83x code replaces R25.2
Do not use R25.2 for claudication or vascular leg pain — vascular cramping (peripheral arterial disease) maps to I73.x/I70.x, not R25.2
R25.2 is appropriate in the ED and urgent care when cramp/spasm is a presenting complaint and workup is incomplete
Assign metabolic etiology codes when identifiedE83.42 (hypomagnesemia), E87.6 (hypokalemia), E86.0 (dehydration) — sequence by reason for encounter
Transition from R25.2 to a disorder code at follow-up encounters when the physician has established a definitive musculoskeletal or neurological diagnosis
Query the physician if the chart contains significant workup and treatment suggesting an established diagnosis but the note still reads “cramp and spasm” — this is a CDI opportunity
R25.2 and R25.3 are separate codes — cramp/spasm and fasciculation can coexist; both may be reported if separately documented (though once ALS or another definitive diagnosis is established, R25.x codes are retired)

📚 Sources

  1. CMS/NCHS. ICD-10-CM Official Guidelines for Coding and Reporting, FY2026. Section I.C.18 — Use of symptom codes; Tabular List — R25.2; Excludes 1/Excludes 2 notations at R25 category and code level.

  2. AMA. CPT Professional Edition 2026. Neurology and Neuromuscular Procedures subsection (95700-95999); E/M guidelines.

  3. CMS. 2025-2026 Medicare Advantage Risk Adjustment — CMS-HCC Model v28 ICD-10-CM Mappings. Baltimore, MD: Centers for Medicare & Medicaid Services.

  4. CMS. IPPS Final Rule FY2026 — MS-DRG Definitions Manual v43. MDC 01 logic tables — Other Disorders of Nervous System DRG grouping.

  5. AAPC. Coding Nerve Conduction Studies and Electromyography. AAPC Blog, October 2023. EMG add-on code pairing guidance.

  6. Anthem/CG-MED-24. Electromyography and Nerve Conduction Studies Coverage Guidelines. Medical necessity criteria for EMG/NCS; R25.2 as covered indication for neuromuscular workup.

  7. CMS. NCCI Policy Manual for Medicare Services, current version. Neurology chapter and general correct coding principles.