A patient reports recurring headaches, but which diagnosis should your practice submit on the claim? The correct ICD 10 code for headache depends on what the provider establishes during the encounter. R51.9, Headache, unspecified, commonly applies when the provider documents a headache without identifying a specific headache disorder. However, a confirmed migraine or tension-type headache may require a different code.
It is quite challenging for physicians, neurologists, and coders to determine the right diagnosis code based on documentation instead of coding by symptomology.
This guide will discuss headache codes for 2027 fiscal year, migraines and tension-type headaches, coding guidelines, and mistakes.
What Is the ICD-10-CM Code for Headache?
Headache unspecified is coded under the general ICD 10 code R51.9. This billable medical code can be used in a situation where the patient is observed to suffer from a headache without specifying any particular headache condition.
| ICD-10-CM Code | Official Description | When It May Apply |
|---|---|---|
| R51.9 | Headache, unspecified | The provider documents headache without establishing a more specific headache diagnosis, and the code fits the encounter. |
ICD-10-CM code R51.9 remains a valid code in FY2027 starting from October 1, 2026 until September 30, 2027.
The most important thing to remember is that there is always a distinction between a coded symptom and a coded diagnosis.
As an example, a general practitioner examines a patient who has occasional pain in the head area. The assessment is noted as “headache.” Nevertheless, if no diagnosis of a migraine or other types of headaches was made by the GP, the use of code R51.9 will be appropriate in this particular situation.
If the patient is diagnosed with a migraine by the neurologist, the coding staff must find the right codes of category G43.
The basic rule here is the following one: Code the diagnosis that is documented and coded, rather than the diagnosis that a coder guesses on the basis of patients’ symptoms
The FY2027 ICD-10-CM resources published by CMS provide the applicable classification and coding guidelines.
Which ICD-10-CM Codes Apply to Different Types of Headaches?
Headache diagnosis ICD-10 Code classification includes generalized codes for symptoms as well as specific headache diagnoses.
The following table lists common diagnoses and their corresponding ICD-10 billing codes.
| Documented Diagnosis | ICD-10-CM Code | Coding Consideration |
|---|---|---|
| Headache, unspecified | R51.9 | Use when the documentation does not establish a more specific headache disorder. |
| Migraine, unspecified, not intractable, without status migrainosus | G43.909 | The provider establishes migraine without documenting a more specific subtype or applicable characteristics. |
| Tension-type headache, unspecified, not intractable | G44.209 | The provider documents tension-type headache without an established episodic or chronic subtype. |
| Chronic migraine without aura, not intractable, without status migrainosus | G43.709 | The provider establishes this specific chronic migraine diagnosis. |
| Chronic tension-type headache, not intractable | G44.229 | The provider establishes chronic tension-type headache. |
The following codes fall under the FY2027 category. These are complete codes in the sense that all of them can be charged; however, these codes need to follow the diagnosis and coding guidelines.
Why Does the Headache Diagnosis Matter?
Think of three patients who share common complaints of headaches.
One is given a diagnosis of “headache not specified.” One gets a clear diagnosis of migraine. One gets diagnosed with a chronic tension-type headache.
Even though their symptoms can be similar, their diagnosis codes would differ because they have different diagnoses.
The fact that one of them is complaining of head pain does not mean that this is always a case of a certain type of a headache disorder.
When Should Providers Use R51.9 for an Unspecified Headache?
In case of an unspecified type of headache condition for which no other diagnostic classification is suitable, then code R51.9 should be applied.
The reason being the evaluation has already been performed, although the diagnosis of the headache condition remains unspecified.
Example: Recurring Head Pain Without a Specific Diagnosis
A patient visits a primary care practice because of recurring headaches over several weeks.
The physician reviews the symptoms, performs an examination, and documents:
Assessment: Headache.
There is no proof of migraines, tension headaches, or any other specific conditions.
For this case, one can code R51.9 since there is evidence of a headache without classification.
Now think about another scenario.
This involves a patient who has been assessed by a neurologist, and it has been determined that she has migraines without aura.
When Should a Practice Avoid R51.9?
A practice should not automatically select R51.9 when:
- The provider has established a more specific headache disorder.
- The Alphabetic Index directs the documented condition to another code.
- The documentation supports a different condition chiefly responsible for the encounter.
- The coding team selects R51.9 without reviewing the completed assessment.
Similarly, coders must never change R51.9 to a migraine code just because there is presence of nausea, sensitivity to light, and pain.
While the symptoms help the practitioner diagnose the patient’s problem, they cannot be taken alone to diagnose the disease as a migraine.
Unspecified diagnosis doesn’t mean an incorrect one. This happens when the code selected by the physician doesn’t match the description provided by the physician.
What Is the ICD-10-CM Code for Migraine Headache?
Migraine is classified mainly under the ICD-10-CM heading of G43.
Although the term “headache” encompasses a wide variety of symptoms, migraines are classified based on different considerations like type of migraine, refractory headache, and status migrainosus.
Therefore, the ICD-10 code for migraines is based on the provider’s clinical diagnosis.
Common Migraine ICD-10-CM Codes
| ICD-10-CM Code | Official Description |
|---|---|
| G43.909 | Migraine, unspecified, not intractable, without status migrainosus |
| G43.919 | Migraine, unspecified, intractable, without status migrainosus |
| G43.709 | Chronic migraine without aura, not intractable, without status migrainosus |
| G43.719 | Chronic migraine without aura, intractable, without status migrainosus |
What Details Support More Specific Migraine Coding?
When clinically established, the physician’s assessment should identify relevant characteristics.
Migraine subtype
The patient’s medical record must indicate what kind of migraine is identified by the doctor. Migraine with aura is documented differently from migraine without aura.
Intractability
Intractability denotes a resistant nature. The FY2027 G43 code set encompasses the following terminologies: treatment-resistant, pharmacoresistant, refractory, and poorly controlled.
The provider should document the underlying condition. One should not code a condition of intractable migraine based only on pain severity or medication usage.
Status migrainosus
Status migrainosus is one particular type of complication from migraines. Coding for it should be backed up by documents supporting the presence of this condition.
Prolonged pain in the head does not mean the coding group will use the status migrainosus code.
Chronic migraine
Recurring migraines are a known disease and not just a term for a recurring headache.
The health professional needs to recognize the known disease of migraines and its accompanying characteristics. The coder cannot assign a code for chronic migraines based on the frequency of the headaches alone.
Example: Selecting a Migraine Code
A neurologist documents:
Assessment: Migraine, unspecified, not intractable, without status migrainosus.
Documentation may justify the use of G43.909.
However, in case the provider determines that the patient has intractable migraine without status migrainosus but does not indicate any specific type of migraine, the code G43.919 can be used.
This is due to the physician’s diagnostic conclusion and clinical features.
Which ICD-10-CM Code Applies to Tension-Type Headache?
Diagnosis of tension-type headaches falls under the category of G44.2 ICD codes.
The ICD-10 code for tension headache will differ depending on whether the physician has diagnosed an unspecified, episodic, or chronic tension-type headache as intractable.
Common Tension-Type Headache Codes
| ICD-10-CM Code | Official Description |
| G44.209 | Tension-type headache, unspecified, not intractable |
| G44.229 | Chronic tension-type headache, not intractable |
| G44.221 | Chronic tension-type headache, intractable |
Each code identifies a different documented classification.
As an example, if a diagnosis of tension-type headache that is chronic, but not intractable, is made by the provider, the code will be G44.229. However, if a diagnosis of tension-type headache does not state if it is episodic or chronic, the code may be G44.209.
Why Stress-Related Symptoms Do Not Automatically Support G44.2
Many patients think of headaches in relation to stress, muscle stiffness, and long working hours. But a claim of stress alone is insufficient evidence for tension type headaches.
A medical professional may note:
“The patient complains of headaches and neck stiffness following work-related stress.”
The coding process for a diagnosis of a tension type headache cannot be done just by using that note alone. If a doctor assesses the disease and comes up with a diagnosis of a tension type headache, then that is when the coding process will be done.
The distinction between head pain ICD-10 coding as a symptom and tension type headache coding lies in the clinical evaluation.
How Should Providers Code Chronic or Recurrent Headaches?
A recurrent headache may not be a chronic headache disorder diagnosis at all times.
This becomes important as chronic headache disorder ICD-10 codes may include codes for various diseases.
The terms describe different situations:
- Recurrent headache: The patient has recurrent headache attacks; however, the headache disorder has not yet been identified by the healthcare practitioner.
- Chronic daily headache: A confirmed case of headache that could be directed to code R51.9 through the Alphabetic Index, based on the diagnosis.
- Chronic migraine: The diagnosis of a particular form of migraine that is categorized under the appropriate G43 codes.
- Chronic tension-type headache: The diagnosed headache disorder categorized under G44.22.
Does Chronicity Alone Determine the Code?
No. The length or frequency of a headache does not determine a chronic migraine or chronic tension-type headache on its own.
Take, for example, a patient suffering from headaches nearly every day for several months.
The physician documents:
Assessment: Chronic daily headache.
The Alphabetic Index for FY2027 codes chronic daily headache under R51.9, rather than always assuming that the condition is chronic migraine.
Now let’s look at the other patient for whom chronic tension-type headache is documented by the neurologist, but not intractable. This makes the coding of G44.229 a reasonable option.
Headache count serves as part of the basis for diagnosing the problem by the provider, yet the coder cannot diagnose using such information.
If the record employs various terminologies, then there should be a request for clarification.
Providers in the health care sector should ensure they are clear about the wording of the diagnosis as per the Alphabetic Index and then look for the appropriate code in the Tabular List.
What Documentation Helps Support Accurate Headache Coding?
The documentation will help explain the purpose of the visit and the diagnosis indicated on the claim.
Sometimes a concise yet clear statement is more helpful to the coders than pages of symptoms that do not come to any clear conclusion.
Headache Documentation Checklist
Depending on the encounter, providers should consider documenting:
- Chief complaint: Why the patient sought care and which symptoms prompted the evaluation.
- Established diagnosis: The headache condition identified through the provider’s clinical assessment.
- Headache type: Migraine, tension-type headache, or another diagnosis when established.
- Relevant clinical characteristics: Information supporting the documented classification.
- Frequency and duration: Details relevant to recurring or chronic headache conditions.
- Intractability: Whether the provider has established a refractory or treatment-resistant condition.
- Status migrainosus: Whether the physician establishes this complication when applicable.
- Services performed: The evaluation, management, and other services provided during the encounter.
All of these do not need to be included in each headache encounter.
A patient with a simple unspecified headache does not need the same level of documentation as a patient with an existing chronic migraine diagnosis.
The important thing is to document relevant findings and the appropriate assessment; not to add unnecessary information just to get a more specific code.
What Happens When the Assessment Is Unclear?
In case the documentation of the clinical notes shows that the patient had migraines but eventually concludes with the diagnosis of “headache,” it is advised that no amendments be made by the coder and change it to migraines.
However, the billing department can make inquiries when the clinical documentation is ambiguous.
A reasonable inquiry would be unbiased in nature and would enable the provider to clarify the diagnosis without any biasing on the part of the physician.
The FY2027 ICD-10-CM Official Guidelines stress cooperation between the providers and coders to ensure accurate diagnosis documentation.
For further reading, see our guide to ICD-10 documentation requirements for outpatient billing.
What Headache Coding Errors Should Practices Avoid?
Many headache coding problems begin when the submitted code does not match the established diagnosis or its documented characteristics.
| Common Coding Error | Why It Matters | How to Prevent It |
| Reporting R51.9 for every headache | May overlook a specific diagnosis established by the provider. | Review the final assessment before selecting a code. |
| Assigning migraine from symptoms alone | Symptoms do not independently establish migraine. | Follow the documented diagnosis and applicable outpatient guidelines. |
| Assuming recurrent headaches mean chronic migraine | Frequency alone cannot replace a physician’s diagnosis. | Confirm the established headache disorder. |
| Reporting intractability without documentation | The selected code may describe a condition the provider has not established. | Review the assessment and request clarification when appropriate. |
| Confusing migraine and tension-type headache | These diagnoses follow different code families. | Verify the provider’s diagnosis and the appropriate Index pathway. |
| Selecting an incomplete category code | A parent category may require additional characters. | Confirm that the final code is complete and billable. |
| Using an outdated code | The code or classification may have changed for the date of service. | Review the applicable fiscal-year code set. |
These errors do not automatically result in denied claims.
Depending on the payer, encounter, and submitted information, they may cause inaccurate reporting, claim edits, documentation questions, claim corrections, or payment-related issues.
A routine review of frequently used headache codes can help a practice identify recurring documentation and coding problems.
How Can Accurate ICD-10-CM Coding Support Medical Billing?
The correct ICD 10 code for headache helps the billing team communicate the diagnosis associated with the services provided.
A claim for an office visit involving an unspecified headache does not necessarily require the same diagnosis code as a neurology encounter for established chronic migraine.
Before submitting the claim, billing staff should confirm that:
- The reported diagnosis matches the provider’s assessment.
- The code is valid for the date of service.
- The documentation supports the selected classification.
- Any relevant code-specific instructions have been reviewed.
- The reported diagnosis and services follow applicable coding and payer requirements.
Accurate diagnosis reporting can also make it easier to investigate payer questions and reconcile documentation with submitted claims.
However, the diagnosis code alone does not establish coverage or guarantee payment. Payers may apply separate medical necessity, benefit, and reimbursement requirements.
Practices benefit most when providers and coding teams resolve unclear documentation before it creates repeated claim-processing problems.
How Can New Hampshire Medical Billing Help Practices With Coding and Claims?
Headache coding can become difficult when clinical records use inconsistent diagnostic terms or omit characteristics necessary for selecting a specific code.
New Hampshire Medical Billing offers medical coding services and medical billing services for healthcare practices.
Its published services include coding review, professional-fee coding, outpatient coding, claim submission, denial management, and accounts receivable follow-up.
These services can help practices examine recurring coding issues, review documentation workflows, and manage claims that require follow-up.
For primary care practices, neurologists, and headache specialists, the priority remains the same: submit a diagnosis code that accurately represents the provider’s documented assessment.
Get Support With Your Medical Coding and Billing Needs
Are coding questions, claim corrections, or unresolved denials creating extra work for your practice?
Contact New Hampshire Medical Billing to discuss your coding and billing requirements and identify areas where professional support may help your team.
Frequently Asked Questions
What is the ICD-10-CM code for an unspecified headache?
R51.9 is the billable ICD-10-CM code for headache, unspecified. It applies when the provider documents headache without establishing a more specific headache disorder and the code fits the encounter. The coding team should review the provider’s assessment and applicable instructions before reporting it.
Is R51.9 used for every type of headache?
No. R51.9 represents an unspecified headache rather than every headache disorder. When the physician establishes migraine, tension-type headache, or another condition, a different ICD-10-CM code may apply. The submitted diagnosis should reflect the clinical assessment and follow the applicable classification rules.
What ICD-10-CM codes are used for migraine headaches?
Migraine diagnoses generally fall under category G43. For example, G43.909 describes unspecified migraine, not intractable, without status migrainosus. Other codes identify documented characteristics such as intractability, chronic migraine, and status migrainosus. Coders must review the complete diagnosis before selecting the final billable code.
What is the difference between tension-type headache and chronic headache for coding?
Tension-type headache is an established headache disorder classified under G44.2. Chronic headache is a broader description that may not identify a specific disorder. The provider’s diagnosis determines whether the record supports chronic tension-type headache, another recognized condition, or a general headache code.
Can a coder assign a migraine diagnosis based on the patient’s symptoms?
No. Nausea, light sensitivity, recurring pain, or other symptoms do not give a coder authority to diagnose migraine. The physician or other qualified provider must establish the diagnosis. If the documentation is unclear, the coding team can request appropriate clarification rather than independently assigning a migraine code.
Medical Coding & Billing Support
Unclear Diagnoses Creating More Work for Your Practice?
When headache documentation does not clearly support the diagnosis on a claim, your team may face coding questions, claim corrections, and time-consuming follow-up. New Hampshire Medical Billing can help your practice review coding workflows, manage claim issues, and follow up on outstanding balances.