Can Epilepsy Cause Migraines? The Neurological Link

Epilepsy can trigger migraines, but the relationship runs in both directions. Roughly four out of ten people with epilepsy experience headaches tied to their seizures, and a significant share of those headaches meet the clinical definition of migraine. The connection goes deeper than one condition simply causing the other: epilepsy and migraine share overlapping brain circuitry, common genetic vulnerabilities, and even many of the same triggers like stress and poor sleep. Understanding how they interact matters because it changes how both conditions should be treated.

Seizures Can Directly Produce Migraine-Like Headaches

The most concrete way epilepsy “causes” a migraine is through postictal headache, the head pain that develops in the hours after a seizure. In one study of people with epilepsy, about 43% experienced headaches associated with their seizures, and the vast majority of those headaches occurred after the seizure rather than before it. Around a third of postictal headaches were classified as migraine-type, another third resembled tension-type headache, and the rest didn’t fit neatly into either category.1PubMed. Headache associated with epileptic seizures: epidemiology and clinical characteristics These headaches aren’t brief or mild. In most patients they lasted more than four hours, and in many people they occurred after more than half of all seizures.2PubMed. Postictal headache

Younger adults and people with a preexisting history of headaches between seizures are at higher risk. Other risk factors include having had epilepsy for a long time, experiencing generalized tonic-clonic seizures (the kind involving full-body convulsions), and having seizures that don’t respond well to medication.2PubMed. Postictal headache The location of the seizure focus in the brain, interestingly, doesn’t seem to predict whether you’ll get a headache afterward or what type it will be.1PubMed. Headache associated with epileptic seizures: epidemiology and clinical characteristics

Headaches can also appear before a seizure. Pre-ictal headaches are less common but tend to look more like classic migraine with aura. Whether the migraine itself actually triggers the seizure or the two are simply early and late expressions of the same brain event is still debated.3PubMed Central. Headaches Associated with Seizure: A Prospective Comparative Cohort Study The old term “migralepsy,” once used to describe a seizure triggered by a migraine aura, has fallen out of favor. A group of headache specialists has argued it should be retired entirely because the evidence for it as a distinct entity is thin, and many cases likely represent seizures that were misread as migraines to begin with.4PubMed Central. Migralepsy, hemicrania epileptica, post-ictal headache and “ictal epileptic headache”: a proposal for terminology and classification revision

A Bidirectional Relationship, Not a One-Way Street

Observational research consistently shows a strong association between migraines and epilepsy, though nailing down a strict cause-and-effect direction is harder than it might seem.5PubMed. Epilepsy and migraine: A bidirectional mendelian randomization study People with epilepsy are more likely to develop migraines than the general population, and people with migraines are more likely to develop epilepsy. The relationship is genuinely bidirectional: having either condition raises your risk for the other, and both also share bidirectional relationships with common psychiatric conditions like depression.6PubMed Central. Bidirectional relations among common psychiatric and neurologic comorbidities and epilepsy: Do they have an impact on the course of the seizure disorder?

This bidirectionality suggests something deeper than one disease causing the other. The leading interpretation is that epilepsy and migraine share underlying vulnerabilities in the brain, and that either condition can emerge depending on which specific circuits and thresholds are involved. The two conditions sit in what one recent review calls a “borderland” — closely related but distinct diseases that sometimes overlap in the same person.7PubMed Central. Migraine – a borderland disease to epilepsy: near it but not of it

Why the Two Conditions Share So Much Brain Territory

At the cellular level, both migraine and epilepsy involve excessive excitability in the brain’s outer layer, the neocortex. The critical difference is in what happens next. In epilepsy, that excitability escalates into synchronized electrical firing across networks of neurons — what becomes a seizure. In migraine, the same kind of excitability transitions into something called cortical spreading depression, a slow wave of electrical silencing that rolls across the brain surface and is thought to underlie the migraine aura.8JAMA Neurology. Common Pathophysiologic Mechanisms in Migraine and Epilepsy Think of it as the same fuse leading to two different types of explosion.

Glutamate, the brain’s primary excitatory chemical messenger, sits at the center of both processes. Excessive glutamate in the space between neurons can push the brain toward either seizure activity or the spreading depression of migraine. Research going back decades has found that both epilepsy and migraine are associated with persistent leakage of glutamate into that extracellular space.9PubMed. Metabolic manipulation of neural tissue to counter the hypersynchronous excitation of migraine and epilepsy When glutamate levels run too high, the brain becomes a loaded gun. Whether it fires as a seizure or a migraine may depend on the specific region involved, the person’s genetic makeup, and a host of other factors.

Shared Genes, Shared Ion Channels

Some of the strongest evidence for a biological link comes from genetics. Several genes that cause rare inherited forms of migraine also cause epilepsy. Familial hemiplegic migraine, a severe subtype that causes temporary paralysis during attacks, is linked to mutations in genes like CACNA1A, ATP1A2, and SCN1A — and those same genes are well-known causes of epilepsy.10PubMed Central. The genetic relationship between epilepsy and hemiplegic migraine A fourth gene, PRRT2, rounds out the group. All four encode proteins involved in ion channels or ion transport, the molecular machinery that controls how electrical signals move through neurons.

Newer research using whole-exome sequencing — a technique that reads all the protein-coding regions of a person’s DNA — has found that ion-channel gene variants are the common thread across people with epilepsy alone, migraine alone, and both conditions together. People who had both conditions carried variants in genes like SCN1A, KCNMA1, and KIF1A, all of which affect how ions flow in and out of brain cells.11PubMed. Uncovering common genetic risk factors in migraine and epilepsy through whole exome sequencing The pattern is consistent: when the channels that govern neural excitability are genetically altered, the brain becomes vulnerable to both seizures and migraines.

Common Triggers That Spark Both Conditions

If you have epilepsy and migraines, you’ve probably noticed that the same things set both off. A large multicenter study confirmed this quantitatively: stress was the most commonly reported seizure trigger (cited by about 23% of patients) and the most commonly reported migraine trigger (31%). Sleep deprivation was a close second for both, reported by about 22% of seizure patients and 28% of migraine patients. Fatigue and noise were also high on both lists.12PubMed. Exploring shared triggers and potential etiopathogenesis between migraine and idiopathic/genetic epilepsy

This overlap isn’t a coincidence. Stress and sleep deprivation both shift the brain toward a more excitable state, lowering the threshold for both seizures and spreading depression. For people living with both conditions, the practical takeaway is that managing your triggers pays double dividends. Consistent sleep, stress reduction, and avoiding known personal triggers can help keep both conditions in check at once.

Hormones Add Another Layer

Women with epilepsy or migraine often notice that their symptoms fluctuate with their menstrual cycle, and this is not a coincidence either. Fluctuations in estrogen levels directly affect brain excitability. Both seizures and migraines tend to increase in frequency during the parts of the cycle when estrogen levels are changing most rapidly.13PubMed Central. Estrogen-growth factor interactions and their contributions to neurological disorders Catamenial epilepsy — the pattern of seizures clustering around menstruation — is a well-documented phenomenon, and menstrual migraine follows a strikingly similar pattern.14PubMed Central. Hormonal aspects of epilepsy

For women who have both conditions, hormonal transitions like puberty, pregnancy, and menopause can shift the severity of both. This is worth flagging to your neurologist, because hormonal treatments or cycle-aware medication adjustments can sometimes help both problems at once.

When Seizures Look Like Migraines and Vice Versa

One of the trickier clinical problems is that seizures and migraines can mimic each other. Occipital lobe seizures — seizures originating in the brain’s visual processing area — can produce visual disturbances that look a lot like migraine aura at first glance.15PubMed Central. Occipital seizures imitating migraine aura In children, this confusion is even more common. A benign childhood epilepsy syndrome formerly known as Panayiotopoulos syndrome often features headache and vomiting that closely mimics migraine, and it’s frequently misdiagnosed as migraine, cyclic vomiting, or even stomach illness before the correct diagnosis is made.16PubMed. Panayiotopoulos syndrome: a benign childhood autonomic epilepsy frequently imitating encephalitis, syncope, migraine, sleep disorder, or gastroenteritis The headache that accompanies these seizures can sometimes be indistinguishable from migraine.17PubMed Central. Clinical Differentiation of Self-Limited Epilepsy With Autonomic Seizures (Panayiotopoulos Syndrome) and Childhood Migraine

There are clues that help sort things out. Visual seizures typically last seconds to a few minutes, and the visual patterns tend to be colorful and circular or spherical. Migraine aura, by contrast, usually builds over more than four minutes, moves slowly across the visual field, and produces characteristic zigzag or shimmering patterns that are often achromatic or black and white.18PubMed. Visual phenomena and headache in occipital epilepsy: a review, a systematic study and differentiation from migraine If you’re experiencing new or unusual visual symptoms followed by headache, keeping a detailed log of exactly what you see, how long it lasts, and how it changes can help your doctor figure out whether the brain event is epileptic, migrainous, or both.

Treatments That Pull Double Duty

Because epilepsy and migraine share so much biology, several treatments work for both. Topiramate and valproate (sodium valproate or divalproex) are anti-seizure drugs that are also approved for migraine prevention. They target the pain-signaling pathways activated during migraine and also interfere with cortical spreading depression, the wave of brain silencing that drives aura.19PubMed. Efficacy and mechanism of anticonvulsant drugs in migraine If you have both conditions, your neurologist may be able to manage both with a single medication, simplifying your regimen and reducing the risk of drug interactions.

That interaction risk is real. People with neurological conditions are frequently on multiple medications, and the more drugs involved, the more likely they are to interfere with each other. In one analysis of drug prescribing patterns across major neurological conditions, the vast majority of drug-drug interactions were pharmacokinetic — meaning one drug altered how the body absorbed or processed another.20Journal of Pharmaceutical Health Services Research. Assessing drug utilization and drug–drug interactions in the management of epilepsy, Alzheimer’s, Parkinson’s disease and migraine Using one drug for both conditions, when possible, sidesteps that risk.

The ketogenic diet is another crossover therapy. Originally developed for children with drug-resistant epilepsy, it has shown promise for migraine prevention as well. Data from about 150 patients across case reports and small studies suggest the diet may work as a rapid-onset preventive for both episodic and chronic migraine, probably by restoring brain energy metabolism and reducing neuroinflammation.21PubMed. Ketogenic diet in migraine: rationale, findings and perspectives It’s a demanding dietary change, but for people struggling with both conditions who haven’t responded well to medications, it’s worth discussing with a specialist.

CGRP Inhibitors and a Surprising Epilepsy Finding

One of the more intriguing recent developments involves CGRP inhibitors, the class of drugs that revolutionized migraine treatment over the past several years. These medications block calcitonin gene-related peptide, a molecule involved in pain signaling and neuroinflammation. A large matched study of epilepsy patients with comorbid migraine found that those using CGRP inhibitors were roughly half as likely to be hospitalized for status epilepticus — a dangerous, prolonged seizure — compared to matched patients not on the drugs. Status epilepticus occurred in about 2.4% of the CGRP inhibitor group versus about 4.6% of the comparison group.22PubMed. Could calcitonin gene-related peptide inhibitors prevent status epilepticus?

This doesn’t prove CGRP inhibitors prevent seizures — it’s an observational finding, not a randomized trial, and the researchers describe it as supporting further investigation. But it’s consistent with the shared biology: if neuroinflammation contributes to both migraine and seizure escalation, calming that inflammation with CGRP-targeted drugs could plausibly benefit both. For epilepsy patients who also have migraines, it’s a finding worth watching as more data come in.

Vagus Nerve Stimulation for Both Conditions

Vagus nerve stimulation (VNS), a device-based therapy already established for drug-resistant epilepsy, has also shown benefits for migraine. In one early report of epilepsy patients who had VNS implanted for seizure control, all patients who also had migraines reported reductions in headache frequency and intensity, with improvement beginning one to three months after the device was turned on.23PubMed. The effect of vagus nerve stimulation on migraines A separate trial in patients with severe chronic migraines and cluster headaches found that VNS produced dramatic improvement in some patients, restoring their ability to work.24PubMed. Vagus nerve stimulation relieves chronic refractory migraine and cluster headaches These are small studies, and VNS requires surgery to implant, but for people with treatment-resistant epilepsy who also suffer from severe migraines, the device can address both in one intervention.

Cognitive Effects When Both Conditions Coexist

Having both epilepsy and migraine may carry consequences beyond the attacks themselves. In one study of patients with focal epilepsy, those who also had migraines reported more memory complaints than those with epilepsy alone. The difference showed up on a subjective memory questionnaire but not on objective cognitive testing, suggesting that the added burden of migraine may affect how people experience and perceive their cognitive function even when measurable performance is similar.25PubMed Central. Migraine comorbidity and cognitive performance in patients with focal epilepsy Depression and anxiety scores were also linked to memory complaints in the same study, underscoring that the epilepsy-migraine overlap sits within a broader web of neurological and psychiatric comorbidity.

This matters for clinical care because memory and cognitive complaints in epilepsy patients are sometimes attributed solely to seizures or medication side effects. If the patient also has migraines, addressing those migraines — whether through preventive medication, trigger management, or lifestyle changes — could improve their day-to-day cognitive experience even if it doesn’t change their performance on a formal test.

Postictal Headaches Are Undertreated

Despite how common they are, headaches after seizures are strikingly undertreated. In the epidemiological study that found seizure-associated headaches in 43% of patients, nearly a third of those who treated their postictal headaches did so only with self-medication — over-the-counter painkillers taken on their own initiative. Not a single patient in the study was treating postictal headaches based on a medical prescription. Among patients whose postictal headaches qualified as migraine, some were receiving no treatment at all.1PubMed. Headache associated with epileptic seizures: epidemiology and clinical characteristics

This gap likely reflects the fact that seizures themselves dominate the clinical conversation. When you’re managing a condition that can cause loss of consciousness, injury, or status epilepticus, a bad headache after the seizure can seem secondary. But postictal migraines lasting many hours add real suffering and disability to an already difficult experience. If you have epilepsy and regularly get headaches after seizures, it’s worth raising the issue explicitly with your neurologist rather than assuming nothing can be done. Migraine-specific treatments, preventive strategies, and dual-purpose medications can all help.