Uncategorized

ICD 10 Code for Headache: A Practical Coding Guide for 2027

Julia Julia October 21, 2026 14 min read
ICD 10 Code for Headache: A Practical Coding Guide for 2027

The patient presents for evaluation with complaints of headaches. In this case, the one thing that your billing department needs to know after evaluating the patient is whether you will be filing for a general headache or a specific neurological diagnosis.

It all comes down to what diagnosis was made by the physician. The general code used for headache without a confirmed diagnosis is R51.9 according to ICD 10 codes. If the physician makes a diagnosis of migraine or other forms of headache disorders, the coding is different.

In this guideline:

  • The ICD-10-CM codes for common headaches will be defined.
  • How to code for migraines, chronic headaches, and unspecified headaches.
  • Documentation required for better coding.
  • Errors to avoid in coding.

What Is the ICD 10 Code for Headache?

R51.9 – Headache, Unspecified is the correct ICD-10-CM code if the doctor has not been able to determine any specific kind of headache disorder in the patient.

A patient might experience headaches for some time, but after an examination, the doctor may find out that there is no sign of migraine or other condition in the patient’s case. Thus, R51.9 could be the appropriate code for such an encounter.

The ICD-10-CM Code Set for the Fiscal Year 2027 will be used for services starting from October 1, 2026, to September 30, 2027.

But R51.9 is not the appropriate code for all patients experiencing headaches because in some cases the doctor may determine a more specific condition.

Headache ICD-10-CM Codes Commonly Used in Medical Practices

The vast majority of queries about headaches pertain to one of three scenarios: symptom coding only, coding for migraine, or other headache disorders.

This is illustrated in the table below, which outlines some of the most frequently used codes.

ICD-10-CM Code Diagnosis
R51.9 Headache, unspecified
G43.909 Migraine, unspecified, not intractable, without status migrainosus
G43.009 Migraine without aura, not intractable, without status migrainosus
G43.109 Migraine with aura, not intractable, without status migrainosus
G43.709 Chronic migraine without aura, not intractable, without status migrainosus
G44.209 Tension-type headache, unspecified, not intractable
G44.229 Chronic tension-type headache, not intractable
G44.52 New daily persistent headache

The codes refer to various diagnoses but not to various severities of headache pain. Even if the patient is experiencing very intense headache pain, the physician may diagnose them as having an unspecified headache.

Alternatively, a patient experiencing mild symptoms can be diagnosed as having a migraine and therefore be allocated a code from category G43.

The medical coding staff needs to stick with the diagnosis of the physician and not the severity of the symptoms.

When Should You Report R51.9?

Take, for example, a situation where a person comes to a primary care office because he/she has suffered from headaches over the previous week. The doctor examines the patient, takes a history, and advises further tests.

In this case, the existence of headaches is established, but no diagnosis, such as migraines or tension-type headaches, is made.

R51.9 might apply to this patient.

What needs to be remembered in this regard is that there is nothing wrong with unspecified diagnoses in general.

Issues may occur if there is a practice of continuing with R51.9 even though other conditions have been diagnosed based on the provided documentation.

Thus, for instance, if the patient was diagnosed with migraine without aura by a neurologist, the biller should think about using the corresponding migraine code.

What If the Physician Suspects Migraine?

Assuming the statement of the assessment is “Headache, possibly migraine,”

then when it comes to an outpatient encounter, it will be impossible for the coding department to consider that the suspected migraine is a diagnosis.

Instead, the statement of diagnosis in this case needs to correspond with the symptom or other diagnosed conditions.

Migraine ICD 10 Codes: What Makes Them Different?

Coding for migraine headache has more specificity compared to the coding for headaches.

The G43 codes are subdivided on the basis of the classification of migraine type based on the features established by the physician during the consultation.

There are four points that influence choice of codes:

  • Aura: Is it a migraine with or without aura diagnosed by the physician?
  • Chronicity: Is the case of episodic or chronic migraine condition?
  • Intractability: Is the condition classified by the physician as intractable?
  • Status migrainosus: Does the physician consider a diagnosis of a prolonged migraine attack?

Not all medical records will provide answers to all four questions. In the case of missing information, coders should refer to ICD-10-CM Index and Tabular List.

Migraine With Aura vs. Without Aura

Patients can develop temporary visual or sensory symptoms due to the presence of their migraines. Visual symptoms can manifest in the form of flashes of light, blind spots, or tingling sensations.

For the diagnosis of migraine with aura, there is a different code than for migraine without aura.

Code Diagnosis
G43.009 Migraine without aura, not intractable, without status migrainosus
G43.109 Migraine with aura, not intractable, without status migrainosus
G43.019 Migraine without aura, intractable, without status migrainosus
G43.119 Migraine with aura, intractable, without status migrainosus
G43.909 Migraine, unspecified, not intractable, without status migrainosus

For instance, a neurologist diagnoses migraine with aura and documents that the condition is not intractable and has no status migrainosus. G43.109 may represent the diagnosis.

The coder should not identify aura independently from a patient’s description when the physician has not established that distinction.

When Does Migraine Become Intractable?

A patient experiencing severe headache attacks does not have intractable migraine.

According to its definition, intractable migraine implies that it is an unmanageable migraine. Actually, intractable, treatment-resistant and poorly controlled are the terms used by ICD-10-CM for migraine classification.

Let us consider an example when the patient uses a variety of medicines but experiences no improvement in health. In that case, the physician analyzes the medical history of the patient and diagnoses intractable migraine.

It may serve the basis for coding of intractable migraine.

However, drug history alone cannot justify coding of intractable migraine.

Understanding Status Migrainosus

A migraine with a status migrainosus is an extended period of migraine pain, which usually lasts longer than 72 hours.

It is significant because of coding considerations.

In other words, G43.001 indicates migraine without aura that is intractable but not with status migrainosus, and G43.009 indicates migraine without aura that does not have status migrainosus.

It is critical that the physician make the right diagnosis. Status migrainosus cannot be coded simply because the patient reports having had several days of headache.

Chronic Headache ICD 10: Why Frequency Alone Is Not Enough

Headaches are generally considered chronic in nature in terms of recurrence. However, there is no single code under the ICD-10-CM that applies to all cases of chronic headaches.

Depending on the nature of the diagnosis made by the physician, the correct code would be selected. For instance, chronic daily headache can have the R51.9 code structure, while chronic migraine and chronic tension-type headaches are coded separately.

This represents a common challenge when it comes to coding and billing departments, where chronic headaches can be reported daily, but the assessment fails to determine a particular chronic headache diagnosis.

In this case, the coding team cannot make a diagnosis of chronic migraine based solely on headache prevalence.

Chronic Migraine ICD 10 Codes

Chronic migraines usually occur when there is headache for at least 15 days in a month for more than three months with characteristics of migraines.

It is important to note that the final diagnosis of the doctor is very critical.

Common codes include:

Code Diagnosis
G43.701 Chronic migraine without aura, not intractable, with status migrainosus
G43.709 Chronic migraine without aura, not intractable, without status migrainosus
G43.711 Chronic migraine without aura, intractable, with status migrainosus
G43.719 Chronic migraine without aura, intractable, without status migrainosus
G43.E09 Chronic migraine with aura, not intractable, without status migrainosus

Chronic migraine is defined by headache occurring on 15 days in a month for more than three months, and with migraine characteristics which comply with the criteria for diagnosis.

The diagnosis made by the physician is still crucial.

The document supports the use of G43.709.

Next is another patient who experiences an equally frequent headache condition, but the physician documents “recurrent headaches” and does not diagnose chronic migraine.

The coding staff should not use G43.709 for this patient simply because his/her headaches occur frequently.

This distinction should be made by the physician.

Chronic Tension-Type Headaches

There are coding categories for chronic tension-type headaches.

These codes are:

G44.221: Chronic tension-type headache, intractable.

G44.229: Chronic tension-type headache, not intractable.

Patients who experience tension-type headaches say that they feel pressure on their heads. This alone does not mean that they have chronic tension-type headache.

However, when the physician diagnoses chronic tension-type headache, the coder can assign a code according to the classification.

New Daily Persistent Headache

The coding G44.52 refers to new daily persistent headache which is often referred to as NDPH.

NDPH is a type of headache and not just another term for daily headaches.

Before the billing team can code NDPH using G44.52, the doctor should identify NDPH.

What Should Physicians Document for Headache Coding?

Headache documentation should not be excessively burdensome. All that is required for the documentation of headache is giving sufficient information about both the diagnosis and the treatment to the coding team.

The following information should be provided in a proper headache assessment when clinically indicated:

Diagnosis: Provide whether the patient suffers from an unspecified headache, migraine, tension type headache or another disorder.

Frequency and duration: Provide information about frequency of headaches, their duration and the pattern changes.

Migraine-specifics: Provide information regarding aura, chronicity, intractability, and status migrainosus according to clinical assessment.

Reaction to the treatment: Provide information about the patient’s reaction to medications used in treatment of the disorder (especially for refractory migraine).

For example, compare the following two descriptions of assessments:

Minimal documentation: “Patient has frequent headaches. Treatment doesn’t help.”

Better documentation: “Chronic migraine without aura, intractability, no status migrainosus. Frequent attacks continue despite previous treatment. Changed preventive therapy and recommended neurological consultation.”

The second entry communicates an established diagnosis and explains the treatment decision. It also provides clearer support for the applicable migraine classification.

Practices should document these details because they reflect the clinical evaluation, not simply to obtain a more specific billing code.

How Headache Diagnosis Codes Affect Claims and Reimbursement

An ICD-10-CM code explains the patient’s condition or reason for receiving care. A CPT or HCPCS code identifies the service the provider performed.

The claim needs both pieces of information where applicable.

For instance, a primary care provider could evaluate a patient who has recurrent headaches in the office. The practice would report the proper office E/M and the related diagnosis as per the evaluation.

The unspecified headache is indicated as R51.9 in case the provider codes the condition as unspecified. In case of diagnosis of migraine, then it would be coded using a G43 code.

The diagnosis code on its own cannot indicate the level of office visit. The practice will code the E/M based on the criteria for medical decision-making or time requirements.

Medical Necessity Matters Beyond the Diagnosis

A patient with headaches may need medication management, diagnostic imaging, or specialist evaluation.

The physician should explain why the services are necessary for that patient’s presentation.

Assume that a patient has experienced a very severe and sudden headache based on the clinical findings, and the doctor orders for imaging. It is necessary to document the clinical findings leading to the recommendation of the test. It would be inappropriate to diagnose the patient with migraine just to meet the payer’s coverage criterion.

The evaluation of medical necessity will be based on the services provided, the clinical documentation, the payer’s coverage guidelines, and other requirements.

Headache Coding Mistakes That Practices Should Catch Before Submission

Most preventable coding problems come from a mismatch between the physician’s assessment and the code selected for the claim.

Common Mistake Why It Matters Better Approach
Reporting R51.9 for an established migraine The code may not reflect the documented diagnosis Review the final assessment before coding
Assigning migraine when the physician documents only suspected migraine Outpatient guidelines do not permit reporting uncertain diagnoses as confirmed Report the supported symptoms or confirmed conditions
Treating frequent headaches as chronic migraine Frequency alone cannot establish the diagnosis Confirm the physician’s assessment
Coding intractable migraine based only on severe pain Pain intensity does not independently establish treatment resistance Look for documented intractability
Reusing outdated diagnosis codes Invalid or outdated codes may create claim edits Check the current fiscal-year code set
Automatically reporting R51.9 alongside migraine The additional symptom code may be unnecessary Review applicable coding conventions and the encounter details

When Should the Billing Team Ask for Clarification?

A physician query may be appropriate when the medical record contains conflicting information or does not clearly establish the diagnosis.

For example, a patient’s problem list identifies chronic migraine, but the current assessment discusses recurring headaches without explaining whether the physician is managing the established migraine condition.

The coder should review the full encounter rather than automatically copy the diagnosis from the problem list.

If the documentation remains unclear, a neutral clarification request can help establish what the physician actually assessed and treated.

The purpose is to improve accuracy, not to persuade the physician to select a more reimbursable diagnosis.

A Practical Headache Coding Checklist Before Claim Submission

Before submitting a headache-related claim, medical practices can review five points:

  1. Confirm the diagnosis. Does the physician document a specific headache disorder or only the symptom?
  2. Check code specificity. If the diagnosis is migraine, does the record support the applicable subtype and characteristics?
  3. Review the encounter. Does the selected diagnosis reflect the condition or reason chiefly responsible for the services?
  4. Match the treatment to the documentation. Does the note explain why the physician performed the reported service?
  5. Validate the code. Does the selected ICD-10-CM code comply with the current year’s classification and instructional notes?

These checks can catch avoidable mistakes before they become rejected claims, documentation requests, or coding corrections.

Conclusion

Accurate headache coding starts with a clear clinical assessment.

R51.9 may describe a headache when the physician has not established a more specific disorder. Confirmed migraines, chronic tension-type headaches, and other headache conditions require their applicable ICD-10-CM classifications.

For providers and billing teams, the priority should be straightforward: document the diagnosis accurately, apply the correct coding instructions, and make sure the claim reflects the care delivered.

That approach supports cleaner claims without adding unnecessary work to the revenue cycle.

Frequently Asked Questions

What is the ICD 10 code for headache unspecified?

R51.9 identifies headache, unspecified. It applies when the physician documents a headache without establishing a more specific condition.

What is the ICD 10 code for migraine?

Migraine codes fall under category G43. G43.909 identifies unspecified migraine, not intractable, without status migrainosus. More specific codes apply when the physician documents additional migraine characteristics.

What is the ICD 10 code for chronic headache?

The code depends on the diagnosis. Chronic daily headache may follow the R51.9 pathway, while confirmed chronic migraine and chronic tension-type headache have their own codes.

What is the ICD 10 code for chronic migraine without aura?

G43.709 identifies chronic migraine without aura, not intractable, without status migrainosus. Other codes apply when intractability or status migrainosus differs.

Can R51.9 be a primary diagnosis?

Yes. R51.9 may serve as the first-listed diagnosis for an outpatient encounter when headache chiefly explains the services and the physician has not established a more specific condition.

Can R51.9 and G43.909 appear on the same claim?

They should not routinely appear together simply to describe the same migraine-related headache. Separate reporting requires support from the encounter documentation and applicable ICD-10-CM conventions.

Can a coder assign migraine based on patient symptoms?

No. A coder should not establish migraine independently from symptoms such as nausea, sensitivity to light, or throbbing head pain. The physician’s documented diagnosis must support the code.

Does a more specific headache code improve reimbursement?

Not automatically. More specific coding can improve the accuracy of diagnosis reporting, but reimbursement also depends on coverage, medical necessity, documentation, and payer requirements.

Need Help Reducing Headache Coding Errors?

Headache claims can become difficult to manage when clinical notes lack diagnostic clarity or billing teams must repeatedly correct diagnosis codes.

Professional medical billing support can help your practice review coding accuracy, identify documentation gaps, manage denials, and keep claim submissions consistent with payer requirements.

Contact our medical billing team to discuss your practice’s coding and revenue cycle needs.