ICD-10-CM 2027 · Alphabetic Index entry “Headache”

ICD-10 code for headache

The ICD-10-CM code for headache is R51.9, Headache, unspecified. It is billable and valid for FY2027 (October 1, 2026 to September 30, 2027). This is the Index's default when the record says nothing more specific.

Choose the code

The official Index entry for headache, line by line. Codes ending in "-" need more characters.

  • Headache R51.9 Headache, unspecified Billable
    • with
      • orthostatic component NEC R51.0 Headache with orthostatic component, not elsewhere classified Billable
      • positional component NEC R51.0 Headache with orthostatic component, not elsewhere classified Billable
    • allergic NEC G44.89 Other headache syndrome Billable
    • associated with sexual activity G44.82 Headache associated with sexual activity Billable
    • cervicogenic G44.86 Cervicogenic headache Billable
    • chronic daily R51.9 Headache, unspecified Billable
    • cluster G44.009 Cluster headache syndrome, unspecified, not intractable Billable
      • chronic G44.029 Chronic cluster headache, not intractable Billable
        • intractable G44.021 Chronic cluster headache, intractable Billable
        • not intractable G44.029 Chronic cluster headache, not intractable Billable
      • episodic G44.019 Episodic cluster headache, not intractable Billable
        • intractable G44.011 Episodic cluster headache, intractable Billable
        • not intractable G44.019 Episodic cluster headache, not intractable Billable
      • intractable G44.001 Cluster headache syndrome, unspecified, intractable Billable
      • not intractable G44.009 Cluster headache syndrome, unspecified, not intractable Billable
    • cough (primary) G44.83 Primary cough headache Billable
    • daily chronic R51.9 Headache, unspecified Billable
    • drug-induced NEC G44.40 Drug-induced headache, not elsewhere classified, not intractable Billable
      • intractable G44.41 Drug-induced headache, not elsewhere classified, intractable Billable
      • not intractable G44.40 Drug-induced headache, not elsewhere classified, not intractable Billable
    • exertional (primary) G44.84 Primary exertional headache Billable
    • histamine G44.009 Cluster headache syndrome, unspecified, not intractable Billable
      • intractable G44.001 Cluster headache syndrome, unspecified, intractable Billable
      • not intractable G44.009 Cluster headache syndrome, unspecified, not intractable Billable
    • hypnic G44.81 Hypnic headache Billable
    • lumbar puncture G97.1 Other reaction to spinal and lumbar puncture Billable
    • medication overuse G44.40 Drug-induced headache, not elsewhere classified, not intractable Billable
      • intractable G44.41 Drug-induced headache, not elsewhere classified, intractable Billable
      • not intractable G44.40 Drug-induced headache, not elsewhere classified, not intractable Billable
    • menstrual see Migraine, menstrual
    • migraine (type) G43.909 Migraine, unspecified, not intractable, without status migrainosus Billable see also Migraine
    • nasal septum R51.9 Headache, unspecified Billable
    • neuralgiform, short lasting unilateral, with conjunctival injection and tearing (SUNCT) G44.059 Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), not intractable Billable
      • intractable G44.051 Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), intractable Billable
      • not intractable G44.059 Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), not intractable Billable
    • new daily persistent (NDPH) G44.52 New daily persistent headache (NDPH) Billable
    • orgasmic G44.82 Headache associated with sexual activity Billable
    • periodic syndromes in adults and children G43.C0 Periodic headache syndromes in child or adult, not intractable Billable
      • with refractory migraine G43.C1 Periodic headache syndromes in child or adult, intractable Billable
      • intractable G43.C1 Periodic headache syndromes in child or adult, intractable Billable
      • not intractable G43.C0 Periodic headache syndromes in child or adult, not intractable Billable
      • without refractory migraine G43.C0 Periodic headache syndromes in child or adult, not intractable Billable
    • postspinal puncture G97.1 Other reaction to spinal and lumbar puncture Billable
    • post-traumatic G44.309 Post-traumatic headache, unspecified, not intractable Billable
      • acute G44.319 Acute post-traumatic headache, not intractable Billable
        • intractable G44.311 Acute post-traumatic headache, intractable Billable
        • not intractable G44.319 Acute post-traumatic headache, not intractable Billable
      • chronic G44.329 Chronic post-traumatic headache, not intractable Billable
        • intractable G44.321 Chronic post-traumatic headache, intractable Billable
        • not intractable G44.329 Chronic post-traumatic headache, not intractable Billable
      • intractable G44.301 Post-traumatic headache, unspecified, intractable Billable
      • not intractable G44.309 Post-traumatic headache, unspecified, not intractable Billable
    • pre-menstrual see Migraine, menstrual
    • preorgasmic G44.82 Headache associated with sexual activity Billable
    • primary
      • cough G44.83 Primary cough headache Billable
      • exertional G44.84 Primary exertional headache Billable
      • stabbing G44.85 Primary stabbing headache Billable
      • thunderclap G44.53 Primary thunderclap headache Billable
    • rebound G44.40 Drug-induced headache, not elsewhere classified, not intractable Billable
      • intractable G44.41 Drug-induced headache, not elsewhere classified, intractable Billable
      • not intractable G44.40 Drug-induced headache, not elsewhere classified, not intractable Billable
    • short lasting unilateral neuralgiform, with conjunctival injection and tearing (SUNCT) G44.059 Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), not intractable Billable
      • intractable G44.051 Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), intractable Billable
      • not intractable G44.059 Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), not intractable Billable
    • specified syndrome NEC G44.89 Other headache syndrome Billable
    • spinal and epidural anesthesia - induced T88.59 Other complications of anesthesia Heading
      3 billable options
      • T88.59XA Other complications of anesthesia, initial encounter
      • T88.59XD Other complications of anesthesia, subsequent encounter
      • T88.59XS Other complications of anesthesia, sequela
      • in labor and delivery O74.5 Spinal and epidural anesthesia-induced headache during labor and delivery Billable
      • in pregnancy O29.4- Spinal and epidural anesthesia induced headache during pregnancy Heading
        4 billable options
        • O29.40 Spinal and epidural anesthesia induced headache during pregnancy, unspecified trimester
        • O29.41 Spinal and epidural anesthesia induced headache during pregnancy, first trimester
        • O29.42 Spinal and epidural anesthesia induced headache during pregnancy, second trimester
        • O29.43 Spinal and epidural anesthesia induced headache during pregnancy, third trimester
      • postpartum, puerperal O89.4 Spinal and epidural anesthesia-induced headache during the puerperium Billable
    • spinal fluid loss (from puncture) G97.1 Other reaction to spinal and lumbar puncture Billable
    • stabbing (primary) G44.85 Primary stabbing headache Billable
    • tension (-type) G44.209 Tension-type headache, unspecified, not intractable Billable
      • chronic G44.229 Chronic tension-type headache, not intractable Billable
        • intractable G44.221 Chronic tension-type headache, intractable Billable
        • not intractable G44.229 Chronic tension-type headache, not intractable Billable
      • episodic G44.219 Episodic tension-type headache, not intractable Billable
        • intractable G44.211 Episodic tension-type headache, intractable Billable
        • not intractable G44.219 Episodic tension-type headache, not intractable Billable
      • intractable G44.201 Tension-type headache, unspecified, intractable Billable
      • not intractable G44.209 Tension-type headache, unspecified, not intractable Billable
    • thunderclap (primary) G44.53 Primary thunderclap headache Billable
    • vascular NEC G44.1 Vascular headache, not elsewhere classified Billable

What the record must say

The Index splits headache by these words. Each one leads to a different code, so the documentation has to state which applies.

withallergic NECassociated with sexual activitycervicogenicchronic dailyclustercough (primary)daily chronicdrug-induced NECexertional (primary)histaminehypniclumbar puncturemedication overusemenstrualmigraine (type)nasal septumneuralgiform, short lasting unilateral, with conjunctival injection and tearing (SUNCT)new daily persistent (NDPH)orgasmicperiodic syndromes in adults and childrenpostspinal puncturepost-traumaticpre-menstrualpreorgasmicprimaryreboundshort lasting unilateral neuralgiform, with conjunctival injection and tearing (SUNCT)specified syndrome NECspinal and epidural anesthesia - inducedspinal fluid loss (from puncture)stabbing (primary)tension (-type)thunderclap (primary)vascular NEC

Notes that change the choice

Official notes for R51.9 and the codes above it.

Excludes2: not included here

The condition below is not part of this code, but a patient may have both. You may report both codes together when both are present.

  • atypical face pain (G50.1)
  • migraine and other headache syndromes (G43-G44)
  • trigeminal neuralgia (G50.0)

Other Index entries that mention headache

  • Tension › headache: G44.209 Tension-type headache, unspecified, not intractable Billable
  • Syndrome › headache NEC: G44.89 Other headache syndrome Billable
  • Syndrome › cluster headache: G44.009 Cluster headache syndrome, unspecified, not intractable Billable
  • Horton's headache or neuralgia: G44.099 Other trigeminal autonomic cephalgias (TAC), not intractable Billable
  • Tension › headache › intractable: G44.201 Tension-type headache, unspecified, intractable Billable
  • Tension › headache › not intractable: G44.209 Tension-type headache, unspecified, not intractable Billable
  • Syndrome › cluster headache › intractable: G44.001 Cluster headache syndrome, unspecified, intractable Billable
  • Syndrome › headache NEC › complicated NEC: G44.59 Other complicated headache syndrome Billable
  • Horton's headache or neuralgia › intractable: G44.091 Other trigeminal autonomic cephalgias (TAC), intractable Billable
  • Syndrome › cluster headache › not intractable: G44.009 Cluster headache syndrome, unspecified, not intractable Billable
  • Horton's headache or neuralgia › not intractable: G44.099 Other trigeminal autonomic cephalgias (TAC), not intractable Billable
  • Effect, adverse › anesthesia › spinal and epidural › headache: T88.59 Other complications of anesthesia Heading
  • Complication (s) (from) (of) › lumbar puncture › headache or reaction: G97.1 Other reaction to spinal and lumbar puncture Billable
  • Complication (s) (from) (of) › puncture, spinal › headache or reaction: G97.1 Other reaction to spinal and lumbar puncture Billable
  • Complication (s) (from) (of) › spinal › puncture or tap › headache or reaction: G97.1 Other reaction to spinal and lumbar puncture Billable
  • Effect, adverse › anesthesia › spinal and epidural › headache › in labor and delivery: O74.5 Spinal and epidural anesthesia-induced headache during labor and delivery Billable
  • Effect, adverse › anesthesia › spinal and epidural › headache › postpartum, puerperal: O89.4 Spinal and epidural anesthesia-induced headache during the puerperium Billable
  • Migraine (idiopathic) › with aura (acute-onset) (prolonged) (typical) (without headache): G43.109 Migraine with aura, not intractable, without status migrainosus Billable
  • SUNCT (short lasting unilateral neuralgiform headache with conjunctival injection and tearing): G44.059 Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), not intractable Billable
  • Migraine (idiopathic) › with aura (acute-onset) (prolonged) (typical) (without headache) › chronic: G43.E09 Chronic migraine with aura, not intractable, without status migrainosus Billable
  • Migraine (idiopathic) › with aura (acute-onset) (prolonged) (typical) (without headache) › persistent: G43.509 Persistent migraine aura without cerebral infarction, not intractable, without status migrainosus Billable
  • Migraine (idiopathic) › with aura (acute-onset) (prolonged) (typical) (without headache) › intractable: G43.119 Migraine with aura, intractable, without status migrainosus Billable
  • Migraine (idiopathic) › with aura (acute-onset) (prolonged) (typical) (without headache) › not intractable: G43.109 Migraine with aura, not intractable, without status migrainosus Billable
  • SUNCT (short lasting unilateral neuralgiform headache with conjunctival injection and tearing) › intractable: G44.051 Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), intractable Billable
  • SUNCT (short lasting unilateral neuralgiform headache with conjunctival injection and tearing) › not intractable: G44.059 Short lasting unilateral neuralgiform headache with conjunctival injection and tearing (SUNCT), not intractable Billable
  • Complication (s) (from) (of) › anesthesia, anesthetic › spinal and epidural › postpartum, puerperal NEC › headache: O89.4 Spinal and epidural anesthesia-induced headache during the puerperium Billable
  • Migraine (idiopathic) › with aura (acute-onset) (prolonged) (typical) (without headache) › with refractory migraine: G43.119 Migraine with aura, intractable, without status migrainosus Billable
  • Complication (s) (from) (of) › anesthesia, anesthetic › spinal and epidural › in › labor and delivery NEC › headache: O74.5 Spinal and epidural anesthesia-induced headache during labor and delivery Billable
  • Migraine (idiopathic) › with aura (acute-onset) (prolonged) (typical) (without headache) › chronic › with refractory migraine: G43.E19 Chronic migraine with aura, intractable, without status migrainosus Billable
  • Migraine (idiopathic) › with aura (acute-onset) (prolonged) (typical) (without headache) › chronic › without refractory migraine: G43.E09 Chronic migraine with aura, not intractable, without status migrainosus Billable

Changes since 2015

Also searched as

headache · headaches

Source: ICD-10-CM FY2027 Alphabetic Index, Neoplasm Table and Tabular List (CMS/NCHS), effective October 1, 2026. Codes and notes are shown exactly as published; the only editorial step is matching the searched names above to the Index entry “Headache”. Last verified December 1, 2026.