Skip to main content

ICD-10-CM codes for Headache

The ICD-10-CM Index to Diseases lists headache under "Headache". Without more detail in the record it is coded R51.9, headache, unspecified, in tabular category R51 (Headache). The tabular list also files Facial pain NOS under R51.9. More specific documentation changes the code, for example with, orthostatic component NEC: R51.0; with, positional component NEC: R51.0; allergic NEC: G44.89.

Compiled from CMS files by the QuickIntell RCM Editorial Team · Data effective · Method: reference methodology · Report a data correction

Data currency: ICD-10-CM code descriptions: FY2027 (effective October 1, 2026). Next CMS release: FY2028 code files, effective October 1, 2027.

Default code: R51.9 Headache, unspecified

Index to Diseases entry: Headache

Each row is a subterm under the entry. Indented rows refine the row above; “see” sends you to another entry. Look the code up in the tabular list before reporting it: the tabular notes can require a more specific or an additional code.

ICD-10-CM index subterms under "Headache"
DocumentationCodeCode description or cross-reference
with—
orthostatic component NECR51.0Headache with orthostatic component, not elsewhere classified
positional component NECR51.0Headache with orthostatic component, not elsewhere classified
allergic NECG44.89Other headache syndrome
associated with sexual activityG44.82Headache associated with sexual activity
cervicogenicG44.86Cervicogenic headache
chronic dailyR51.9Headache, unspecified
clusterG44.009Cluster headache syndrome, unspecified, not intractable
chronicG44.029Chronic cluster headache, not intractable
episodicG44.019Episodic cluster headache, not intractable
intractableG44.001Cluster headache syndrome, unspecified, intractable
not intractableG44.009Cluster headache syndrome, unspecified, not intractable
cough(primary)G44.83Primary cough headache
daily chronicR51.9Headache, unspecified
drug-induced NECG44.40Drug-induced headache, not elsewhere classified, not intractable
intractableG44.41Drug-induced headache, not elsewhere classified, intractable
not intractableG44.40Drug-induced headache, not elsewhere classified, not intractable
exertional(primary)G44.84Primary exertional headache
histamineG44.009Cluster headache syndrome, unspecified, not intractable
intractableG44.001Cluster headache syndrome, unspecified, intractable
not intractableG44.009Cluster headache syndrome, unspecified, not intractable
hypnicG44.81Hypnic headache
lumbar punctureG97.1Other reaction to spinal and lumbar puncture
medication overuseG44.40Drug-induced headache, not elsewhere classified, not intractable
intractableG44.41Drug-induced headache, not elsewhere classified, intractable
not intractableG44.40Drug-induced headache, not elsewhere classified, not intractable
menstrual—see Migraine, menstrual
migraine(type)G43.909Migraine, unspecified, not intractable, without status migrainosus
nasal septumR51.9Headache, unspecified
neuralgiform, short lasting unilateral, with conjunctival injection and tearing(SUNCT)G44.059Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), not intractable
intractableG44.051Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), intractable
not intractableG44.059Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), not intractable
new daily persistent(NDPH)G44.52New daily persistent headache (NDPH)
orgasmicG44.82Headache associated with sexual activity
periodic syndromes in adults and childrenG43.C0Periodic headache syndromes in child or adult, not intractable
with refractory migraineG43.C1Periodic headache syndromes in child or adult, intractable
intractableG43.C1Periodic headache syndromes in child or adult, intractable
not intractableG43.C0Periodic headache syndromes in child or adult, not intractable
without refractory migraineG43.C0Periodic headache syndromes in child or adult, not intractable
postspinal punctureG97.1Other reaction to spinal and lumbar puncture
post-traumaticG44.309Post-traumatic headache, unspecified, not intractable
acuteG44.319Acute post-traumatic headache, not intractable
chronicG44.329Chronic post-traumatic headache, not intractable
intractableG44.301Post-traumatic headache, unspecified, intractable
not intractableG44.309Post-traumatic headache, unspecified, not intractable
pre-menstrual—see Migraine, menstrual
preorgasmicG44.82Headache associated with sexual activity
primary—
coughG44.83Primary cough headache
exertionalG44.84Primary exertional headache
stabbingG44.85Primary stabbing headache
thunderclapG44.53Primary thunderclap headache
reboundG44.40Drug-induced headache, not elsewhere classified, not intractable
intractableG44.41Drug-induced headache, not elsewhere classified, intractable
not intractableG44.40Drug-induced headache, not elsewhere classified, not intractable
short lasting unilateral neuralgiform, with conjunctival injection and tearing(SUNCT)G44.059Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), not intractable
intractableG44.051Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), intractable
not intractableG44.059Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), not intractable
specified syndrome NECG44.89Other headache syndrome
spinal and epidural anesthesia - inducedT88.59Other complications of anesthesia
in labor and deliveryO74.5Spinal and epidural anesthesia-induced headache during labor and delivery
in pregnancyO29.4-Spinal and epidural anesthesia induced headache during pregnancy
postpartum, puerperalO89.4Spinal and epidural anesthesia-induced headache during the puerperium
spinal fluid loss(from puncture)G97.1Other reaction to spinal and lumbar puncture
stabbing(primary)G44.85Primary stabbing headache
tension(-type)G44.209Tension-type headache, unspecified, not intractable
chronicG44.229Chronic tension-type headache, not intractable
episodicG44.219Episodic tension-type headache, not intractable
intractableG44.201Tension-type headache, unspecified, intractable
not intractableG44.209Tension-type headache, unspecified, not intractable
thunderclap(primary)G44.53Primary thunderclap headache
vascular NECG44.1Vascular headache, not elsewhere classified

Tabular list notes for R51.9

Inclusion terms
  • Facial pain NOS

How to read an Index to Diseases entry

  • Words in parentheses after a term are nonessential modifiers: they may or may not appear in the record, and they do not change the code.
  • Indented subterms are essential modifiers. Each one describes a different site, type or cause, and when the record supports it, the subterm's code replaces the default code.
  • “With” and “in” link two conditions. The Official Guidelines presume a causal relationship between conditions linked by “with” in the index unless the provider documents that they are unrelated.
  • “See” sends you to another entry that holds the code; “see also” points to another entry that may be useful.
  • A code that ends in a dash, such as I50.-, is incomplete: the tabular list gives the characters it still needs.
  • Never report a code from the index alone. Find it in the tabular list and apply its includes, excludes, code first, use additional code and 7th-character instructions before you report it.

Once the code is settled, check what it does for payment: the HCC lookup for risk adjustment, the CC/MCC exclusion check for inpatient severity, and the LCD code lookup for local coverage of the service it supports. The guide to ICD-10 diagnosis codes explains the code structure.

For teams evaluating QuickIntell software

Evaluate software for diagnosis coding review

If your team codes diagnoses at volume, review how QuickCode supports qualified coder review of documentation, specificity queries and the billing handoff. Confirm the code sets, settings and reviewer responsibilities during evaluation; a code reference is not a coding determination for a patient.

Optional software evaluation, not payer support or help with an individual claim. For coverage or payment decisions, use the official sources on this page. Do not include patient information in a demo booking or inquiry.

Frequently asked questions

What is the ICD-10 code for headache?

R51.9 (Headache, unspecified) is the code the index assigns to "Headache" with no further detail. Confirm it in the tabular list before reporting it, because the tabular notes can require a different or additional code.

Which documentation changes the code for headache?

The index lists 65 subterms with their own codes, including with orthostatic component NEC (R51.0); with positional component NEC (R51.0); allergic NEC (G44.89); associated with sexual activity (G44.82); cervicogenic (G44.86).

Sources

Every figure on this page is taken from the CMS publications below, as released by the Centers for Medicare & Medicaid Services. Projection built 2026-10-10. Verify against the primary file before billing or contracting decisions. The reference methodology explains how each figure is computed from these files.

Disclaimer

The entry, subterms and codes are reproduced from the FY2027 ICD-10-CM index; code descriptions are from the FY2027 code files. Code from the medical record using both the index and the tabular list, under the ICD-10-CM Official Guidelines. Not legal, clinical or billing advice.

Found a figure that does not match the CMS file? Report a data correction with the CMS file and the value you expected; the request reaches the editorial team through the contact form.