What Is the ICD-10 Code for Headache?
The headache ICD-10 code is R51.9, Headache, unspecified, a billable symptom code used when a patient presents with headache and no more specific cause or headache disorder is documented. R51.9 replaced the old three-character code R51 on October 1, 2020, and it remains valid in the FY2027 code set effective October 1, 2026.
- R51 alone is no longer billable: Since FY2021, R51 is a category heading, so claims reporting it without a fourth character are rejected as invalid.
- Positional headaches use R51.0: A headache that changes with posture codes to R51.0, Headache with orthostatic component, not elsewhere classified.
- Migraine and tension codes replace R51.9: Categories G43 and G44 exclude headache NOS, so R51.9 never appears on the same claim as a migraine or tension-type code.
New to urgent care coding? Start here: our urgent care billing guide.
R51 vs. R51.0 vs. R51.9
Until September 30, 2020, every headache without a more specific diagnosis coded to R51, Headache. The FY2021 ICD-10-CM update turned R51 into a category and split it into two billable codes: R51.0 for headaches with an orthostatic or positional component, and R51.9 for all other unspecified headaches. That change is why older superbills, EHR favorites lists, and cheat sheets that still show R51 generate rejected claims years later.
There is no R51.1, R51.3, R51.8, or R51.19. If those codes appear in a charge template, they are typing errors that will reject at the clearinghouse. The full set of headache-related codes an urgent care biller sees most often looks like this:
| Code | Description | Billable? | When to Use It |
| R51 | Headache (category) | No | Never report alone since FY2021 |
| R51.0 | Headache with orthostatic component, NEC | Yes | Headache that worsens upright and eases lying down |
| R51.9 | Headache, unspecified | Yes | Headache with no specific cause or disorder documented |
| G43.909 | Migraine, unspecified, not intractable, without status migrainosus | Yes | Clinician documents migraine without further detail |
| G44.209 | Tension-type headache, unspecified, not intractable | Yes | Clinician documents tension-type headache |
| G44.309 | Post-traumatic headache, unspecified, not intractable | Yes | Headache attributed to a recent head injury |
R51.0 also appears with G97.1, Other reaction to spinal and lumbar puncture, which carries a “code also” note for an associated orthostatic headache. Our review of FY2027 ICD-10-CM updates for urgent care covers the other code changes that took effect October 1, 2026. Neither R51.0 nor R51.9 changed in that release.
When Should Urgent Care Use R51.9?
Use R51.9 when the provider evaluates a headache, does not establish a more specific cause or headache disorder, and documents only “headache.” The ICD-10-CM Official Guidelines allow symptom codes when no definitive diagnosis is reached, but a symptom that is routinely part of a confirmed condition should not be coded separately.
That second rule is where most urgent care headache coding goes wrong. A patient with fever, congestion, and headache diagnosed with a viral upper respiratory infection is coded to J06.9, and the headache is not reported, because headache is a routine part of that illness. The same applies to strep pharyngitis or acute sinusitis. When dehydration is the established cause, the visit codes to E86.0, dehydration, not R51.9.
R51.9 is the right choice in situations like these:
- A headache workup with no cause found, where the provider rules out red flags and treats symptomatically.
- Chronic daily headache, which the ICD-10-CM index sends to R51.9 when no specific headache syndrome is named.
- Facial pain not otherwise specified, which also indexes to R51.9, unless atypical facial pain (G50.1) or trigeminal neuralgia (G50.0) is documented.
One question we hear constantly from urgent care practice managers is whether R51.9 “looks weak” to payers. It does not, as long as the note explains why nothing more specific applies. In our experience matching providers with billing partners, the denials come from R51.9 being used when the chart actually names a migraine or an infection, not from R51.9 itself. A one-line rationale in the assessment, such as “no focal deficits, no fever, likely primary headache,” is usually enough.
Can R51.9 Be Billed With a Migraine Code?
No. Categories G43 (migraine) and G44 (other headache syndromes) both carry an Excludes1 note for headache NOS, R51.9. An Excludes1 note means the two codes describe mutually exclusive situations, so once a provider documents migraine, tension-type, cluster, or post-traumatic headache, the specific G code replaces R51.9 entirely.
The notes run in both directions, which confuses many coders. The R51 category itself lists migraine and other headache syndromes as Excludes2, which on its own would allow both codes. The Excludes1 note at G43 and G44 is stricter, and the stricter instruction controls. R52, Pain, unspecified, also excludes headache, so R52 and R51.9 should never be paired either.
Specificity matters for payment as well as compliance. When a provider documents “migraine without aura,” the claim should carry the matching G43.0- code rather than R51.9, because many payers apply medical necessity edits to migraine treatments and imaging that expect a migraine diagnosis. A post-traumatic headache after a fall should code to the G44.3- range alongside the injury code, not to R51.9.
Providers often come to us after a payer audit flagged R51.9 claims where the same note said “history of migraines, typical migraine today.” That is a specificity gap, not a documentation gap. The provider already made the diagnosis; the charge simply did not reflect it. Billing teams that review the assessment section, not just the chief complaint, catch this before the claim goes out. A quick check of the assessment against the coded diagnosis takes seconds per chart and prevents most of these findings.
What CPT Codes Pair With R51.9 in Urgent Care?
R51.9 most often supports an urgent care E/M visit such as 99213 or 99214, plus injection or infusion codes when the provider treats the headache in the clinic. Common pairings include 96372 with J1885 for ketorolac, IV push codes 96374 and 96375 for antiemetics, and 96360 when IV hydration is given for a headache with dehydration.
These are the codes we see billed with R51.9 most frequently:
- E/M visit: CPT 99213 for a straightforward headache, or CPT 99214 when red flags are evaluated and documented.
- Intramuscular injection: CPT 96372, with HCPCS J1885 for ketorolac tromethamine, per 15 mg.
- IV push medications: CPT 96374 for the initial push and 96375 for each additional sequential push, with J2405 for ondansetron, per 1 mg, or J0780 for prochlorperazine, up to 10 mg.
- IV hydration: CPT 96360 for the first hour when fluids are medically necessary and documented.
- Site and timing codes: POS 20 for urgent care facilities, and CPT 99051 for qualifying after-hours visits where payers allow it.
When the E/M and the injection happen on the same day, append modifier 25 to the E/M only if the evaluation was significant and separately identifiable. Watch the 2027 modifier 25 payment cut for Medicare claims, and check whether commercial payers expect S9083 or S9088 global codes instead, as explained in our S9083 vs. S9088 guide. Drug units deserve the same attention: 30 mg of ketorolac is two units of J1885, not one, and a units error on the drug line is one of the most common reasons an otherwise clean headache claim pays short.
The most common issue we see providers run into with headache visits is a correct diagnosis paired with the wrong modifier or drug units. Get matched in as little as 30 minutes with urgent care billing companies that code these visits correctly the first time.
How to Document Headache Visits to Avoid Denials
Headache claims deny for three predictable reasons: an invalid code such as R51 without a fourth character, a diagnosis that conflicts with the procedure billed, or an E/M level the note does not support. Each one is preventable with a consistent documentation pattern.
Build these elements into every headache note:
- Record onset, duration, and character of the headache, including whether it is new, recurrent, or worsening.
- Document red flags assessed, such as sudden severe onset, neurological deficits, fever with neck stiffness, or recent head trauma.
- State the diagnosis at its most specific level, naming migraine, tension-type, or a secondary cause when the provider identifies one.
- Note any positional component so the coder can choose R51.0 over R51.9 when it applies.
- List every medication given with dose, route, and time so drug units match the HCPCS descriptor.
- Explain the disposition, including any transfer to an emergency department, which supports higher medical decision making.
Rejections for an invalid diagnosis usually return with claim adjustment reason code 16 and remark code M76 (missing, incomplete, or invalid diagnosis). Mismatches between the diagnosis and the procedure often return as reason code 11. Both are cleared faster when the EHR favorites list no longer offers R51 at all, which is a five-minute fix that billing companies in our network routinely make during onboarding, along with removing other retired codes from the same list. Reviewing the J02.9 acute pharyngitis guide is also worthwhile, since sore throat and headache visits frequently share the same template.
Frequently Asked Questions
No. R51 became a non-billable category on October 1, 2020, when ICD-10-CM split it into R51.0 and R51.9. Claims that report R51 without a fourth character are rejected as invalid. Use R51.9 for an unspecified headache or R51.0 for a headache with an orthostatic component.
R51.0 reports a headache with an orthostatic or positional component, not elsewhere classified, meaning the headache changes with posture. It is commonly paired with G97.1 after a lumbar puncture, which carries a code also note for an associated orthostatic headache. Use R51.9 when no positional component is documented.
Yes. R51.9 can be reported as the primary diagnosis when headache is the reason for the visit and the provider does not establish a more specific cause. If the provider diagnoses migraine, an infection, or another condition that explains the headache, that condition becomes the primary diagnosis instead.
Usually not. Headache is a routine symptom of an acute upper respiratory infection, and the ICD-10-CM guidelines say symptoms integral to a confirmed diagnosis should not be coded separately. Report R51.9 with J06.9 only when the provider documents the headache as unrelated to the infection.
A post-traumatic headache codes to the G44.3- range, such as G44.309 for post-traumatic headache, unspecified, not intractable. Report it with the appropriate injury code for the head trauma. Do not use R51.9 when the provider attributes the headache to a recent injury.
No. R51.9 does not map to a payment category in the CMS-HCC V28 risk adjustment model. It affects medical necessity for the services billed on the claim, not risk scores, so its main purpose in urgent care is supporting the visit and any treatment provided.
Next Steps
- Coding a respiratory illness? See our J06.9 upper respiratory infection guide.
- Treating with IV fluids? Review the CPT 96360 IV hydration billing guide.
- Giving a ketorolac injection? Check the CPT 96372 billing guide for modifier rules.
- Ready to hand off urgent care billing? Request a free quote below and get matched with billing companies that know urgent care coding.
Get matched with urgent care billing companies that keep headache and symptom codes clean. Billing Service Quotes has connected more than 2,000 providers across all 50 states, with rates starting as low as 2.95%. Matching is 100% free.