ICD 10 Code for Headache: 2027 Coding and Billing Guide
October 15, 2026

The patient complains of frequent headaches, but the underlying reason is not immediately known in the first consultation. Prior to making the diagnosis, the healthcare practitioner needs to assess the symptoms and check if the patient history suggests a certain type of headache disorder or simply headache. The choice made will also have implications in terms of the way the encounter will be billed.
Headache ICD 10 Codes depend on the diagnosis made by the healthcare practitioner. Below you will find the necessary information regarding the applicable FY2027 codes, which include migraines, tension-type headaches and cervicogenic headaches. You will also find information about the documentation criteria as well as common mistakes when billing these codes. For more help with medical coding, please take a look at our coding services.
R51.9 ICD-10 CM Code is Unspecified Headache which can be used in billing for a case where the physician indicates the presence of a headache without specifying the type of headache. However, this code does not apply automatically for all encounters with headache conditions. Migraine, tension headache, and cervicogenic headache could have their own codes.
The FY2027 ICD-10-CM code set applies to dates of service from October 1, 2026, through September 30, 2027. Always verify the code against the official files for the date of service.
| ICD-10-CM code | Official description | When it may apply |
|---|---|---|
| R51.9 | Headache, unspecified | The provider documents a headache without specifying a headache disorder. |
| R51.0 | Headache with orthostatic component, not elsewhere classified | The documented headache has an orthostatic component, and no more specific code applies. |
| G43.909 | Migraine, unspecified, not intractable, without status migrainosus | The provider diagnoses migraine, and the documentation supports the specified intractability and status migrainosus details. |
| G44.209 | Tension-type headache, unspecified, not intractable | The provider documents tension-type headache without specifying a subtype, and the condition is not intractable. |
| G44.229 | Chronic tension-type headache, not intractable | The provider diagnoses chronic tension-type headache and documents that it is not intractable. |
| G44.86 | Cervicogenic headache | The provider diagnoses a headache originating from a cervical source. Review the applicable coding instructions for an associated cervical spinal condition. |
This is in relation to diagnosis in a clinical environment and not an alternate name for the same symptom. You must be familiar with all the details before you file the claims.
It can be said that the common symptom for which many patients seek consultation in medical centers is headache. “Patients have been reporting pressure in their forehead, one-sided pain, pain arising from the neck area, and recurrent headache attacks along with nausea and photophobia.”
Though the clinical picture helps in diagnosis, these clinical features alone cannot diagnose all headaches.
In primary headaches, the headache becomes the disease that is to be treated. Primary headaches include conditions like migraines and tension headaches.
Secondary headaches are caused by another underlying disease or injury. The appropriate coding depends on the established diagnosis and applicable classification instructions.
For instance, when the patient is presenting with a complaint of headaches due to an acute condition, it requires a different code as compared to when the patient is suffering from the condition of migraines. The most significant point is that the practitioner must use the code based on the clinical impression, not the symptom alone.
The following should be considered during the assessment process:
Such data can be useful in decision making, although the fact that a particular symptom exists alone is not enough grounds for any ICD-10-CM code.
Selection of appropriate ICD 10 codes for headaches begins with the diagnosis. These points below are significant, especially within the context of general medicine, neurology, and other practices dealing with headaches.
The ICD-10-CM code for headache, unspecified is R51.9. This code can be used when the provider identifies a headache, but no further diagnosis has been made on the type of headache experienced.
For instance, the patient comes to the clinic with a new headache. After evaluation, the patient’s findings are documented. The provider is satisfied that the headache is still unspecified. R51.9 can be considered for use here.
Do not use this code simply because a patient with a documented migraine also reports head pain. The established disorder should guide code selection.
Other categories falling under the wider R51 heading are R51.0, which refers to headaches with an orthostatic element, not elsewhere classified.
ICD 10 codes for migraine headaches will differ based on the type of migraine documented and other issues, including whether it is an intractable migraine and whether there is status migrainosus present.
When it comes to a nonintractable migraine headache that is not status migrainosus, the code should be G43.909. This code does not apply to anyone who claims to have throbbing head pain that is light-sensitive.
G43 codes also have other codes that may better describe the condition depending on the type of migraine the patient has. It is advisable to consider the entire coding structure for the condition.
The ICD 10 codes for tension headache would depend on the nature of the tension-type headache and its other characteristics.
For example:
Differentiations exist within the G44.2 code set as well; hence, do not pick any code just because the patient feels pressure within the region of the head. Consider using the physician’s diagnosis together with the proper code descriptor.
ICD 10 for cervicogenic headache is G44.86. This can be used when there is a cervicogenic headache, not just pain in the neck with headache.
The Tabular List directs that the coder should also code any associated cervical spine disorder, if identified. Refer to the documentation of the cervical disorder and code according to the instructions provided.
There is no single ICD-10-CM code that automatically applies to every chronic headache. Chronicity alone does not establish the headache type.
For instance, if a patient is suffering from a chronic tension-type headache that has been well documented, the use of G44.229 will be appropriate if the patient’s condition is not intractable. The patient with chronic migraine should be coded using one of the codes for migraines. In case the documentation of the provider mentions only chronic headache without further details, refer to Index and Tabular.
Recurring headaches, chronic migraine and chronic tension-type headache are not the same thing.
| Documentation in the medical record | Coding consideration |
|---|---|
| Headache, with no further diagnosis | Consider R51.9. |
| Migraine, type unspecified | Review the appropriate G43.- code, including intractability and status migrainosus. |
| Tension-type headache, unspecified | Review G44.20- and the applicable final characters. |
| Chronic tension-type headache | Review G44.22- and intractability. |
| Cervicogenic headache | Review G44.86 and the instruction concerning an associated cervical spinal condition. |
| Headache with a positional component | Evaluate whether R51.0 applies or whether another specific diagnosis is established. |
The coding should align with the clinical evaluation and the official coding guidelines. This is just for illustration purposes and not an alternative to the full medical record review.
The right code reflects the provider’s assessment, not just the patient’s description of pain. Before finalizing the diagnosis, review the clinical record and answer three questions.
In case there is documentation of a headache which doesn’t result in a diagnostic conclusion of any particular syndrome, then the code R51.9 can be used. In case migraine, tension-type headache, and cervicogenic headache are diagnosed, then the code category should be assigned accordingly.
For outpatient encounters, probable, possible, and excluded diagnoses are usually not considered definite diagnoses. Symptoms, signs, abnormal physical findings, or other reasons for encountering code assignment can be made depending upon the degree of certainty mentioned in the documentation. Follow the FY2027 Official ICD-10-CM Coding Guidelines.
Past medical history can show that the patient may suffer from one kind of headache disorder, but it needs to be verified by the physician. For instance, neck pain and headache alone cannot verify that the patient has cervicogenic headache.
In addition, the occurrence of frequent attacks cannot be a verification for chronic migraine and chronic tension-type headache.
Consult the Tabular List for inclusion terms, Excludes notes, and additional code direction.
For instance, there is a coding direction under G44.86 to code additionally for any associated cervical spine condition, if present. There is an Excludes1 note under G44 category for headache, NOS (R51.9). An Excludes1 note usually indicates that the two codes cannot be coded together except under certain circumstances.
A headache diagnosis itself does not have any one specific CPT or HCPCS code assigned to it. The procedure or service code will depend upon the type of procedure performed by the provider.
In many cases, the appropriate service provided could well be an evaluation and management (E/M) service.
| Service category | Coding consideration | Documentation needed |
|---|---|---|
| Office or outpatient E/M | Select the applicable E/M code based on the service provided and the relevant code-selection rules. | History and examination as clinically appropriate, medical decision-making or applicable time documentation, and the work performed. |
| Diagnostic imaging | Select the code for the specific study performed and the applicable professional or technical service. | Clinical indication, order, study performed, and report. |
| Medication administration | Select the appropriate administration code when the service is performed and separately reportable. | Medication, dose, route, administration details, and applicable drug coding. |
| Therapeutic procedures | Select the code that accurately describes the procedure actually performed. | Medical necessity, procedure details, and any applicable supervision or coverage requirements. |
The presence of a code for a diagnosis of headache does not imply that imaging, medication, or an E/M level is warranted. Follow the CPT guidelines, payer policies, rules about bundling, and prior authorization requirements. Never assume that you can attach a CPT or HCPCS code to the claim simply due to a diagnosis code.
A useful clinical record explains what brought the patient to the practice, what the provider found, and why the selected diagnosis fits the encounter.
Take note of the onset time, duration, location, frequency, severity, and type of headache, if pertinent to your examination. Related symptoms along with all other relevant information should be documented as well.
Do not simply record an entry such as “headache follow-up” when there is a change in symptoms or a new diagnosis being done.
Diagnosis determined after assessing the patient should be stated here. In case the provider cannot determine a specific headache syndrome, this is what should be indicated.
In case there is need to mention the migraine subtype, the tension-type headache subtype, chronicity, intractability, or the presence of any cervical disorder, this should be done using the clinical rationale for the diagnosis.
Note the management plan, medications, testing ordered, procedures performed, referrals, and any follow-up instructions, as appropriate.
The documentation must provide the rationale for the service provided based on clinical grounds. For instance, if imaging is ordered, document the symptoms, physical examination, or other clinical indicators justifying the order of the imaging. Whether the service qualifies under a coverage requirement policy will depend on the policy and situation at hand
It is necessary to ensure consistency among the assessment, problem list, orders and the diagnoses. If a current diagnosis exists for the patient in the form of a migraine in relation to the visit at hand, be sure to state the significance of the diagnosis in terms of the treatment rendered.
In case there is inconsistency in the documentation, adhere to the query and correction procedures adopted by the practice.
Inconsistencies will create unnecessary claim issues, re-work, and delays. This is a common area for scrutiny.
| Common error | Why it creates a problem | How to prevent it |
|---|---|---|
| Using R51.9 for every headache | It may fail to represent a more specific established diagnosis. | Review the assessment before selecting the code. |
| Inferring migraine from symptoms alone | Symptoms do not automatically establish a migraine diagnosis. | Report the diagnosis supported by the provider’s assessment. |
| Using a chronic headache code without support | Chronicity and headache type may require more specific documentation. | Document the established disorder and relevant characteristics. |
| Selecting an intractable code without support | The code may not match the provider’s documented assessment. | Confirm intractability and the complete code descriptor. |
| Overlooking Tabular List instructions | Excludes notes or additional-code instructions may affect reporting. | Review the full code family and applicable guidelines. |
| Linking a diagnosis to an unsupported service | A diagnosis alone does not establish medical necessity. | Review the order, service documentation, and coverage criteria. |
| Using an outdated code set | Code validity can depend on the date of service. | Verify the applicable fiscal-year files before claim submission. |
The same principle applies to secondary diagnoses: include them when they are relevant and reportable under the applicable rules, not simply because they appear somewhere in the patient’s history.
A reliable billing process connects the clinical record to the claim before submission and uses denial feedback to identify recurring problems.
Confirm whether the encounter supports an unspecified headache, a specific headache disorder, or another established condition. Check that the reported code reflects the provider’s documented assessment.
For dates of service beginning October 1, 2026, use the applicable FY2027 ICD-10-CM files. For earlier dates, verify the code set effective on the actual service date. CMS provides the annual code files and official guidelines.
Review the relationship between the diagnosis, the E/M service or procedure, and the documentation supporting the work performed. Confirm applicable coverage requirements rather than assuming that the presence of a headache code establishes medical necessity.
Check eligibility, referrals, prior authorization, documentation requirements, and claim edits when applicable. Requirements vary by payer, plan, service, and setting, so avoid applying one payer’s rules universally.
When a claim is denied, review the remittance advice and denial reason. Determine whether the problem involves code selection, incomplete documentation, authorization, medical necessity, or another claim element.
Correct supported errors, obtain clarification when needed, and submit an appeal when appropriate. Track recurring patterns so the practice can address the source of the problem instead of repeatedly correcting individual claims.
01
Scenario
New head pain; no specific headache disorder is established.
Do not infer migraine from pain severity or associated symptoms alone.
02
Scenario
Neurologist confirms migraine, not intractable, without status migrainosus.
Check whether the record supports a more specific migraine code.
03
Scenario
Provider diagnoses cervicogenic headache and identifies an associated cervical condition.
Review the instruction to also code the associated cervical spinal condition, if known. Symptoms alone do not establish this diagnosis.
Accurate headache coding requires coordination between the treating provider, clinical documentation workflow, and billing team. A medical billing and coding service like Tennessee billing can help practices review claims, identify coding inconsistencies, and address preventable billing problems.
Relevant support may include:
Practices should choose a service provider like Tennessee Billing whose actual offerings match their operational needs. No billing company can guarantee reimbursement, and coding support should never replace the treating provider’s clinical judgment.
If your practice needs help reviewing headache-related claims, improving coding consistency, or managing denials, contact your medical billing partner to discuss your current workflow and areas for improvement.
Choosing the correct ICD 10 code for headache starts with the diagnosis established by the provider. R51.9 may apply when the headache remains unspecified, while migraine, tension-type, and cervicogenic headaches require review of their respective code families. Chronicity, intractability, status migrainosus, and associated conditions can affect code selection.
For healthcare providers and practice owners, the priority is to document the clinical assessment clearly, select a code supported by the record, and verify the applicable FY2027 ICD-10-CM instructions for the date of service. Billing teams can reinforce this process through claim review, payer-specific checks, and denial analysis. Consistent documentation and accurate coding support defensible claims and help reduce avoidable rework.
What Is the ICD 10 Code for Headache?
R51.9 is the ICD-10-CM code for headache, unspecified. It applies when the provider documents a headache without establishing a more specific diagnosis. If the assessment identifies migraine, tension-type headache, cervicogenic headache, or another headache disorder, review the appropriate code family instead.
What Is the ICD 10 Code for Headaches Unspecified?
The ICD-10-CM code for headaches unspecified is R51.9, with the official description “Headache, unspecified.” Use it when the documented diagnosis remains unspecified. Do not use it automatically for every headache encounter when the provider has established a specific headache disorder.
What Is the ICD 10 Code for Migraine Headache?
The appropriate code comes from the G43.- migraine category. G43.909 identifies migraine, unspecified, not intractable, without status migrainosus. Other codes may apply depending on the documented migraine type, intractability, and presence of status migrainosus.
What Is the ICD 10 Code for Chronic Headaches?
There is no single code for all chronic headaches. The appropriate code depends on the diagnosed disorder. For example, G44.229 identifies chronic tension-type headache, not intractable. Chronic migraine requires selection from the applicable migraine code family, while an unspecified headache must be coded according to the documented assessment.
Can a Headache Diagnosis Alone Justify an E/M Service or Diagnostic Test?
No. The diagnosis code does not, by itself, establish the appropriate E/M level or guarantee coverage for imaging, medication administration, or another service. The documentation must support the work performed and the clinical indication, and the claim must meet applicable coding rules and payer coverage requirements.
Headache coding questions, incomplete documentation, and preventable denials can keep your practice chasing claims instead of moving forward. Get support with medical coding, claim submission, and denial management so your team can spend less time resolving billing issues and more time caring for patients.
Ready to improve your billing workflow? Contact Tennessee Billing to discuss your practice’s needs.