Can Herpes Cause Headaches and When to Worry

Herpes viruses can absolutely cause headaches, and they do so through a surprisingly wide range of mechanisms. A mild headache during a genital herpes outbreak is common and usually harmless, while a sudden severe headache with fever and confusion during a herpes infection can signal a life-threatening brain emergency. The herpes family includes several viruses, most importantly herpes simplex virus types 1 and 2 (HSV-1, HSV-2) and varicella-zoster virus (VZV, the cause of chickenpox and shingles), and each can trigger head pain in its own way.

The Everyday Headache During a Herpes Outbreak

The most common scenario is also the least dangerous. During the prodrome of a genital herpes outbreak, before blisters even appear, many people experience headache, neck stiffness, and low-grade fever.1Archives of Neurology. Neurological Complications of Herpes Simplex Virus Type 2 Infection This kind of headache feels like the body fighting off a minor illness, because that is essentially what is happening. The virus is reactivating from its dormant state in nerve tissue, and your immune system responds with low-level inflammation that can radiate as generalized head pain, fatigue, and achiness.

These prodromal headaches typically resolve on their own within a few days, often as the outbreak itself runs its course. They rarely require anything beyond over-the-counter pain relief. If you notice that headaches predictably accompany your outbreaks, that pattern itself is reassuring. It means the headache is part of the body’s inflammatory response to a reactivation, not a sign of something more serious happening in the brain.

Herpes Meningitis and Mollaret’s Syndrome

A more intense headache from herpes happens when the virus inflames the membranes surrounding the brain and spinal cord. This is called aseptic meningitis, and HSV-2 is its most common viral cause.2PubMed Central. Recurrent Aseptic Meningitis From Herpes Simplex Virus-2: Mollaret’s Meningitis in a 30-Year-Old Female The headache in herpes meningitis is typically severe, accompanied by a stiff neck, sensitivity to light, and fever. It can occur during a first genital herpes infection or during later reactivations, and it can happen even in people who have never noticed genital symptoms.

Some people develop recurring episodes of herpes meningitis. When a person has at least three bouts with viral confirmation, the condition is called Mollaret’s meningitis. HSV-2 reactivates from sensory nerve clusters (ganglia) and travels to the meninges, triggering repeated rounds of inflammation.3PubMed. Whole-Exome Sequencing of Patients With Recurrent HSV-2 Lymphocytic Mollaret Meningitis Estimates suggest this happens in roughly 20 to 30 percent of people who experience a primary HSV-2 meningitis episode.4Emerging Infectious Diseases. Recurrent Herpes Simplex Virus 2 Lymphocytic Meningitis in Patient with IgG Subclass 2 Deficiency Each episode tends to resolve within a week or so, but the recurrences themselves can be distressing and disruptive.

The good news about herpes meningitis is that, while deeply unpleasant, it is generally not as dangerous as bacterial meningitis. Most episodes clear with supportive care, though antiviral medication is often used to shorten the course. The headache in herpes meningitis feels qualitatively different from a routine headache: it is persistent, worsens with movement, and is accompanied by systemic illness. If you have had genital herpes and develop a severe headache with neck stiffness and fever, this is the condition your doctor will want to rule out.

Herpes Simplex Encephalitis

Herpes simplex encephalitis (HSE) is the scenario that genuinely warrants fear. This is a rare but potentially fatal infection of the brain tissue itself, most often caused by HSV-1. Patients typically present with headache, fever, and altered mental status, and the infection tends to target the medial temporal lobe of the brain.5PubMed Central. Subacute herpes simplex virus type 1 encephalitis: a case report Seizures are another hallmark. One published case described a 27-year-old woman with no medical history who developed altered mental state, headaches, and seizures; brain imaging revealed bilateral frontotemporal involvement, and HSV-1 was confirmed in her spinal fluid.6PubMed Central. A Case of Herpes Simplex Virus Type 1 (HSV-1) Encephalitis as a Possible Complication of Cosmetic Nasal Dermal Filler Injection

HSE can occur in anyone, at any age, and often strikes people who appear otherwise healthy. Without antiviral treatment, mortality is high. Even with prompt treatment using intravenous acyclovir, many survivors experience lasting neurological problems including memory impairment, personality changes, and speech difficulties. The characteristic MRI findings involve asymmetric damage to the temporal lobes, insular cortex, and nearby regions, while sparing deeper brain structures like the basal ganglia.7Radiology Case Reports. Navigating diagnostic challenges: imaging strategies for herpes simplex encephalitis in resource limited settings: A case report

The standard diagnostic test is a PCR analysis of cerebrospinal fluid, which detects HSV DNA with sensitivity and specificity above 95 percent.8PubMed Central. Herpes Simplex Encephalitis with Two False-Negative Cerebrospinal Fluid PCR Tests and Review of Negative PCR Results in the Clinical Setting However, doctors do not wait for test results before starting antiviral treatment when encephalitis is suspected, because every hour of delay worsens outcomes. This is the key practical takeaway: a headache that comes with confusion, personality changes, difficulty speaking, or seizures demands emergency care, not a wait-and-see approach.

Shingles and Headache

Varicella-zoster virus, the third major member of the herpes family you are likely to encounter, has its own distinct ways of causing head pain. After causing chickenpox in childhood, VZV stays dormant in nerve roots and can reactivate decades later as shingles. When shingles affects the forehead, scalp, or eye area, which happens in up to one-fifth of shingles cases, the condition is called herpes zoster ophthalmicus (HZO). Common symptoms include a facial rash, pain, fever, and headache.9Infectious Diseases and Therapy. Herpes Zoster Ophthalmicus: Presentation, Complications, Treatment, and Prevention The headache in HZO tends to be one-sided, matching the rash distribution, and can be intense enough to mimic a primary headache disorder.

VZV can also reactivate in the geniculate ganglion of the facial nerve, causing Ramsay Hunt syndrome. This condition classically involves ear pain, one-sided facial paralysis, and vesicular blisters on or near the ear.10PubMed Central. Ramsay Hunt Syndrome: An Introduction, Signs and Symptoms, and Treatment Intense headache and vertigo are frequently part of the picture as well.11Headache Medicine. Ramsay-Hunt syndrome in HIV patient People with weakened immune systems are at elevated risk. Treatment involves antivirals and, typically, corticosteroids, though rigorous trial evidence on the steroid component is limited.12PubMed Central. Corticosteroids as adjuvant to antiviral treatment in Ramsay Hunt syndrome (herpes zoster oticus with facial palsy) in adults

Headaches That Persist After the Infection Clears

For some people, the headache outlasts the herpes infection itself, sometimes by months or years. The best-known version of this is postherpetic neuralgia (PHN), a chronic pain condition that follows shingles. PHN most often manifests as burning or stabbing pain in the area where the rash appeared. But when shingles involves the forehead or eye, that chronic pain can take the form of a persistent, one-sided headache.

More unusually, post-herpes headache can evolve into a recognized primary headache pattern. A published case series described patients who developed hemicrania continua, a specific type of continuous one-sided headache, after herpes zoster ophthalmicus. One patient, a 54-year-old woman, experienced continuous left-sided head pain for ten months after her shingles lesions had healed. The pain responded only to indomethacin, a hallmark feature of hemicrania continua.13PubMed Central. Herpes zoster ophthalmicus evolving into headache characterised as hemicrania continua Cases like this illustrate that herpes viruses can, in effect, rewire pain pathways in ways that persist long after the virus itself is no longer actively replicating in the affected tissue.

Post-infectious headache following viral illness is increasingly recognized as a meaningful clinical entity, particularly after viral infections in people with compromised immune systems.14PubMed Central. Headache Attributed to Infection: A Clinical and Pathophysiological Overview If you find yourself dealing with persistent head pain after a herpes-related illness and standard painkillers are not helping, it is worth raising the timeline with your doctor. Knowing about the preceding infection can change which treatments are tried.

Vascular Complications from Herpes Viruses

One of the lesser-known dangers of herpes viruses, particularly VZV, is their ability to infect blood vessels in the brain. This condition, called VZV vasculopathy, involves the virus directly damaging the walls of cerebral arteries, causing inflammation and remodeling that can lead to stroke.15PubMed Central. The relationship between herpes zoster and stroke The headache in VZV vasculopathy can precede the stroke by days or weeks, making it a critical warning sign that is easy to dismiss as a lingering symptom of shingles.

Even rarer, VZV infection can trigger cerebral venous sinus thrombosis (CVST), a blood clot in the veins that drain the brain. Case reports describe this in both older patients with shingles involving the eye and in younger patients with recent VZV infection.16PubMed Central. Cerebral Venous Sinus Thrombosis Complicating Herpes Zoster Ophthalmicus Ophthalmoplegia One report documented a 20-year-old man who presented to the emergency department with headache and was found to have CVST caused by VZV.17American Journal of Case Reports. Chronic Headache and Cerebral Venous Sinus Thrombosis Due to Varicella Zoster Virus Infection: A Case Report and Review of the Literature The headache in CVST tends to be progressive, worsening over days, and may be accompanied by visual changes, nausea, or focal neurological symptoms. These vascular complications are uncommon but serious, and they underscore why a new or worsening headache in the weeks after a shingles episode deserves medical attention rather than reassurance.

Could Latent Herpes Play a Role in Migraine?

Beyond acute infections and their aftermath, there is a growing body of research asking whether simply carrying herpes viruses might contribute to chronic headache disorders like migraine. The question makes biological sense: HSV-1 establishes lifelong latency in the trigeminal ganglia, the same nerve cluster implicated in migraine. Research on healthy human trigeminal ganglia has shown that latent HSV-1 infection triggers a chronic, low-level immune response at the site. T cells and macrophages cluster around the infected nerve cells, and inflammatory molecules like interferon-gamma and tumor necrosis factor-alpha are elevated in infected ganglia compared to uninfected ones.18PubMed Central. Latent herpesvirus infection in human trigeminal ganglia causes chronic immune response Whether this chronic, smoldering inflammation lowers the threshold for migraine is an open question, but the anatomical coincidence is hard to ignore.

Epidemiological data is starting to fill in the picture. A cross-sectional study using nationally representative U.S. data found that HSV-2 seropositivity was associated with about a 22 percent increase in the odds of severe headache or migraine in adults aged 20 to 49, after adjusting for demographics and education.19PubMed Central. Association between human herpes simplex virus and severe headache or migraine among aged 20–49 years: a cross-sectional study A smaller comparative study found that HSV-1 seropositivity was significantly more common in people with migraine than in controls, with an estimated two-fold increase in the odds of having migraine among those positive for HSV-1.20Cephalalgia Reports. Exploring the link between the herpes simplex virus and migraine: A comparative study

These are associations, not proof of causation. People with migraine and people with herpes are both large populations, and shared risk factors could easily explain the overlap. Still, the idea that antiviral strategies might one day play a role in migraine prevention is being taken seriously enough to warrant ongoing research. For now, if you have both migraine and herpes, there is no evidence that treating one will meaningfully improve the other. But the connection is worth watching.

When Immunocompromised People Face Different Risks

Everything described above becomes more complicated and more dangerous in people with weakened immune systems. This includes people on immunosuppressive medications for autoimmune diseases, organ transplant recipients, cancer patients undergoing chemotherapy, and people living with advanced HIV. In these populations, herpes infections are more likely to reactivate, more likely to spread beyond their usual territories, and more likely to involve the brain.

The clinical picture also looks different, which is the real problem. Immunocompromised patients with herpes simplex encephalitis are less likely to show the classic prodromal symptoms and focal neurological deficits that alert doctors to the diagnosis in otherwise healthy people. Brain imaging may show widespread cortical involvement rather than the typical temporal lobe pattern, and some patients even have normal-appearing spinal fluid, which can further delay diagnosis.21PubMed Central. Atypical manifestations and poor outcome of herpes simplex encephalitis in the immunocompromised Recurrent episodes of herpes encephalitis are also more likely in this group.

Atypical presentations extend beyond the brain. One case described a 69-year-old woman on methotrexate and tofacitinib for rheumatoid arthritis who developed seizures, headache, and unusual mucosal lesions that were initially misdiagnosed; histopathology ultimately confirmed herpes virus infection.22PubMed Central. Atypical Presentation of Herpes Simplex Virus Infection in an Immunocompromised Patient The practical implication: if you are immunocompromised and develop new or unusual headaches, especially with any fever or neurological symptoms, the threshold for seeking medical evaluation should be lower than for the general population. Doctors may need to consider herpes-related causes even when the presentation does not look textbook.

When a Herpes-Related Headache Needs Emergency Attention

Most headaches that occur alongside herpes outbreaks are uncomfortable but benign. The challenge is recognizing the small fraction that signal something dangerous. Because the difference between a manageable prodromal headache and early encephalitis can be subtle at first, knowing the red flags matters.

Seek immediate medical care if a headache during or after a herpes infection is accompanied by any of the following:

  • Confusion or altered thinking: difficulty forming sentences, not knowing where you are, behaving out of character. Confusion is a hallmark of both encephalitis and meningitis, and among neurological red flags it carries some of the strongest diagnostic weight for serious illness.
  • High fever with neck stiffness: this combination points toward meningitis or encephalitis and warrants a spinal tap and imaging.
  • Seizures: a new seizure in someone with an active or recent herpes infection is an emergency until proven otherwise.
  • Visual changes or eye pain: especially with a facial rash, this can indicate herpes zoster ophthalmicus, which threatens eyesight and can involve intracranial vessels.
  • Progressive worsening: a headache that gets steadily worse over days rather than fluctuating or improving may indicate vascular complications like vasculopathy or venous sinus thrombosis.
  • Focal weakness or speech difficulty: any new neurological deficit alongside headache and herpes demands urgent evaluation for stroke or encephalitis.

A mild headache that tracks with your usual outbreak pattern, responds to over-the-counter medication, and resolves within a few days does not require an emergency visit. But any headache that feels qualitatively different from your usual experience, especially if it arrives with fever, mental changes, or neurological symptoms, should be evaluated promptly. Herpes encephalitis in particular is one of the rare conditions where a few hours of delay in starting antiviral treatment can mean the difference between full recovery and lasting brain damage. When the stakes are that high, erring on the side of getting checked out is the right call.

How Diagnosis Works When Herpes Involves the Brain

When doctors suspect that herpes has spread to the central nervous system, the diagnostic workup typically involves two main tools: brain imaging and a lumbar puncture. An MRI is the preferred imaging method because it can detect the characteristic patterns of herpes-related brain inflammation. In herpes simplex encephalitis, MRI usually shows asymmetric involvement of the temporal lobes, insular cortex, and frontal regions.7Radiology Case Reports. Navigating diagnostic challenges: imaging strategies for herpes simplex encephalitis in resource limited settings: A case report A CT scan can be done faster but misses early changes that MRI would catch.

The lumbar puncture provides cerebrospinal fluid for PCR testing, which detects viral DNA directly. For HSV, the PCR test is highly accurate, with sensitivity and specificity both above 95 percent in well-studied series.8PubMed Central. Herpes Simplex Encephalitis with Two False-Negative Cerebrospinal Fluid PCR Tests and Review of Negative PCR Results in the Clinical Setting That said, false negatives can occur, particularly very early in the illness or in immunocompromised patients whose spinal fluid may look deceptively normal.21PubMed Central. Atypical manifestations and poor outcome of herpes simplex encephalitis in the immunocompromised Doctors who strongly suspect encephalitis will start intravenous acyclovir immediately and repeat testing if the initial result is negative, rather than assuming the patient is in the clear. The clinical suspicion drives treatment, not the lab result alone.