Skip to main content

R51.9 ICD-10-CM Code: Headache, unspecified

Billing Status: YES. This is a valid, specific, and billable ICD-10-CM reference.

Coding at a Glance

Inpatient Payment Groups (MS-DRG)

Potential MS-DRG participation — not a DRG assignment.

MS-DRGs this diagnosis helps define, as principal or secondary, per the CMS ICD-10-CM/PCS MS-DRG Definitions Manual v43, Appendix B.

A diagnosis appearing in a group's logic does not by itself determine the DRG assigned to a stay; the grouper uses the full claim.

Coding instructions

Official Tabular Instructional Notes: the inclusion, exclusion and sequencing notes published for R51.9 in the official ICD-10-CM tabular list, quoted as published.

Source: CMS/CDC — ICD-10-CM Tabular ListRelease: FY2026Effective: October 1, 2025

Notes without a marker are published on R51.9 itself; “inherited from” names the category or block whose note applies here.

Inclusion Terms

Alternative terms the tabular list files under this code.

  • Facial pain NOS

Excludes2 — Not Included Here

Conditions not covered by this code, but which may be reported alongside it when both are present.

Source: inherited from R51

Coder workflow for R51.9

MedCoder structured workflow — derived from this code’s own official record

Before you code R51.9

  1. Check whether an established diagnosis that explains this sign or symptom is documented. If one is, review whether the documented diagnosis changes the coding pathway: a symptom that is integral to a confirmed diagnosis is not reported separately, while one not routinely associated with it may be. Signs and symptoms are reported when no definitive diagnosis is established (Guidelines I.B.4, I.B.5, I.B.6, I.C.18.b).

    Guide: Symptom code vs confirmed diagnosis →

  2. Unspecified does not mean incorrect. When the record gives no greater specificity, R51.9 may be the appropriate code. Check the record for detail that supports a more specific sibling. An unspecified code is for records that do not provide the detail a more specific code needs; a query, not an assumption, is the route to specificity (Guidelines I.A.9.b, I.B.18).

    ReviewR51.0

    See the relationships section · Guide: Other vs unspecified (NEC vs NOS) →

Choose the right path

  1. Is an established diagnosis that explains this sign or symptom documented?
    Yes → Review whether the documented diagnosis changes the coding pathway: a symptom integral to it is not reported separately.
    No → Continue — the sign or symptom code stands when no definitive diagnosis is established.
  2. Does the record document the detail a more specific sibling code needs?
    Yes → Review the specific siblings in this subcategory.
    No → Continue — R51.9 is appropriate when the documentation goes no further.

    ReviewR51.0

Consider R51.9. Then confirm the code is valid for the date of service in the Verify section.

Documentation check

The provider’s diagnostic statement
Codes are assigned from the provider’s documented diagnosis, not from clinical criteria, test values or a medication list (Guidelines I.A.19).
Any detail beyond this code’s title
What the record states that a more specific sibling code would capture — or its absence, which itself supports the unspecified code.

Official instructions as workflow

  • Excludes2 — not part of R51.9(3 notes)

    Coding workflow: The conditions named in this note are not included in R51.9. When the record documents both, both may be reported; the note is a boundary, not a prohibition.

    CompareG50.1, G50.0

    See the official tabular notes · Guidelines I.A.12.b

Coding decision scenarios

Pattern scenarios for this code’s structure — decision rules, not clinical cases

Documentation: The sign or symptom is documented, and the same record establishes a diagnosis that routinely includes it.

Coding question: Is R51.9 reported in addition to the diagnosis?

Path: Review the documented diagnosis and whether the classification treats this finding as integral to it.

Reason: Signs and symptoms integral to a confirmed diagnosis are not coded separately; those not routinely associated with it may be reported when present (Guidelines I.B.5, I.B.6, I.C.18.b).

Documentation: The provider documents the condition in the terms of this code’s title and records no further detail.

Coding question: Is a more specific sibling code supportable?

Path: Review the specific siblings in this subcategory and what each requires the record to state.

Reason: A more specific code needs documentation of the distinguishing element; without it the unspecified code is appropriate, and a provider query is the route to specificity (Guidelines I.A.9.b, I.B.18).

ReviewR51.0

Every row is derived from this code’s own record — its title, tabular notes, 7th-character family and same-category siblings — with fixed MedCoder wording; nothing is inferred about a patient. The official notes and guideline text are in the sections each row links to, and they control.

Code Overview

Headache, unspecified is a billable ICD-10-CM diagnosis code (R51.9).

MedCoder summary Summary composed by MedCoder from this code's official ICD-10-CM record. The tabular instructional notes themselves appear verbatim below.

Indexed Clinical Terms (5)

Official source data — entries quoted as published, in the Index’s own lookup phrasing

Clinical term phrases from the official ICD-10-CM Index to Diseases and Injuries that map to this code. These are alphabetic-index entries shown as the Index writes them — lookup phrasing, not necessarily the wording of a final diagnosis.

Verify Before Coding

  • No Medicare Code Editor or MS-DRG Definitions Manual restrictions apply to this code.

From the code registry, the Medicare Code Editor, and the MS-DRG Definitions Manual. Check it against a full claim in Claim Check.

Relationships & Classification

MedCoder structured relationships — computed from published CMS and AHRQ datasets

Other codes that name R51.9 or its code family, from the CMS ICD-10-CM tabular instructional notes. Tabular-note edges are stored at the code family level that carries each note.

Referenced by 2 Excludes1 notes across 2 chapters: G44 — Other headache syndromes, R52 — Pain, unspecified.

These codes’ tabular lists mark this diagnosis as mutually exclusive — not reported together unless the conditions are documented as unrelated.

Referenced by 2 Excludes2 notes: G43 — Migraine, G89 — Pain, not elsewhere classified.

These codes’ tabular lists name this diagnosis as distinct — both may be reported when both are documented.

MS-DRG Grouper Relationships (FY2026)

Potential MS-DRG participation — not a DRG assignment.

FY2026 MS-DRG: not on the CMS CC/MCC list — as a secondary diagnosis this code does not change MS-DRG severity for that release.

Named in the grouper logic of 2 MS-DRGs: DRG 102 (MDC 01), DRG 103 (MDC 01).

From the CMS MS-DRG Definitions Manual (Appendices B and C). Actual DRG assignment depends on the complete claim.

Clinical classification (AHRQ CCSR):NVS010 — Headache; including migraine (default); SYM010 — Nervous system signs and symptoms.

Clinical Classifications Software Refined (CCSR) for ICD-10-CM Diagnoses. Healthcare Cost and Utilization Project (HCUP), Agency for Healthcare Research and Quality.

Related Codes

Same clinical category (CCSR)

AHRQ's Clinical Classifications Software groups these diagnoses under the same clinical categories (Headache; including migraine, Nervous system signs and symptoms).

R43.1 — Parosmia, R43.2 — Parageusia, R43.8 — Other disturbances of smell and taste, R43.9 — Unspecified disturbances of smell and taste, R47.01 — Aphasia, R47.02 — Dysphasia, R47.1 — Dysarthria and anarthria, R47.81 — Slurred speech, R47.82 — Fluency disorder in conditions classified elsewhere, R47.89 — Other speech disturbances, R47.9 — Unspecified speech disturbances, R48.0 — Dyslexia and alexia, R48.1 — Agnosia, R48.2 — Apraxia, R48.3 — Visual agnosia, R48.8 — Other symbolic dysfunctions, R48.9 — Unspecified symbolic dysfunctions, R51 — Headache, R51.0 — Headache with orthostatic component, not elsewhere classified, R53.2 — Functional quadriplegia, +226 more

Same Index main term, other category

The ICD-10-CM Index to Diseases and Injuries files this code under the main terms “Pain”, “Headache”; these codes share that main term but sit in a different category of the Tabular List.

R10.83 — Colic (abdominal, colic), R10.84 — Generalized abdominal pain (abdominal, generalized), R10.85 — Abdominal pain of multiple sites (abdominal, multiple sites), R10.9 — Unspecified abdominal pain (abdominal), R10.A0 — Flank pain, unspecified side (flank), R10.A1 — Flank pain, right side (flank, right), R10.A2 — Flank pain, left side (flank, left), R10.A3 — Flank pain, bilateral (flank, bilateral), R14.1 — Gas pain (gas), R39.82 — Chronic bladder pain (bladder, chronic), R39.89 — Other symptoms and signs involving the genitourinary system (vesical), R52 — Pain, unspecified, R68.84 — Jaw pain (jaw), T82.847 — Pain due to cardiac prosthetic devices, implants and grafts (due to device, implant or graft, heart NEC), T82.848 — Pain due to vascular prosthetic devices, implants and grafts (due to device, implant or graft, vascular NEC), T83.84 — Pain due to genitourinary prosthetic devices, implants and grafts (due to device, implant or graft, genital NEC), T84.84 — Pain due to internal orthopedic prosthetic devices, implants and grafts (due to device, implant or graft, orthopedic NEC), T85.840 — Pain due to nervous system prosthetic devices, implants and grafts (due to device, implant or graft, electronic, nervous system), T85.848 — Pain due to other internal prosthetic devices, implants and grafts (due to device, implant or graft), T88.59 — Other complications of anesthesia (spinal and epidural anesthesia - induced), +120 more

Contextual Map

Every relationship of R51.9 in one view: hierarchy, official tabular instructions in both directions, clinical classification, risk adjustment, MS-DRG participation, index terms and change history — each edge carrying the CMS source it derives from.

Run R51.9 with these 4 related codes in Claim Check

Hierarchy

Referenced by Excludes1 notes

Referenced by Excludes2 notes

Clinical classification (CCSR)

MS-DRG Grouper

MDC crossing

  • MDC 01 — Diseases and Disorders of the Nervous System[MDC crossing]: “Diseases and Disorders of the Nervous System — the grouper's crossing between diagnoses and procedures: a principal diagnosis sets the MDC, and same-MDC procedures move the stay to its surgical DRGs. 8,892 same-MDC procedures group here; browse them on the MDC page.”— CMS MS-DRG Definitions Manual · FY2026

Index entries

  • Headache[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2026
  • Headache, chronic daily[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2026
  • Headache, daily chronic[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2026
  • Headache, nasal septum[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2026
  • Pain (s), face, facial[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2026

Nearest codes

Change history

Sources for this page

Codes, titles, notes, index terms and mappings on this page are transcribed from the datasets below. Relationships MedCoder computed and text MedCoder wrote are labelled where they appear.

Code, title, tabular notes and index terms Official source data
CMS/CDC ICD-10-CM FY2026 tabular list, index and tables, effective October 1, 2025 Release, file and checksum · Publisher’s page
Claim edits Official source data
CMS Definitions of Medicare Code Edits — v43.1 (April 2026) Release, file and checksum · Publisher’s page
Inpatient payment groups Official source data
CMS MS-DRG Definitions Manual (incl. Appendix B diagnosis index, Appendix C CC/MCC list, Appendix E procedure index) and IPPS Final Rule tables — v43 Release, file and checksum · Publisher’s page
Change history and date-of-service validity Official source data
CMS ICD-10-CM release addenda, ingested release by release into the change ledger Release, file and checksum · Publisher’s page
Comparisons, relationships and the contextual map MedCoder structured relationship
Computed by MedCoder from the tabular notes and tables above; every derived relationship is marked as derived where it appears
Summary and FAQ answers MedCoder explanation
Written by MedCoder to explain the sources above: drafted with AI assistance, checked by a person against the release files, and labelled as MedCoder text where it appears. Not official text.

Labels on this page: Official source data · MedCoder structured relationship · MedCoder explanation. How to read the labels · All data sources and release dates

Cite this page

Reference this page in a research guide, syllabus or article. The release is included because code content changes each year.

MedCoder.ai. "R51.9 — Headache, unspecified." ICD-10-CM FY2026. https://medcoder.ai/icd10/code/r51.9-headache-unspecified

Change history

  • FY2021 — October 1, 2020
    Added to the code set
    Headache, unspecified
    FY2021 changes

Nearest Codes in This Family

Official ICD-10-CM classifications closest to R51.9 in its code family, with their registry titles.

View all codes in the R51 family