Migraine Treatments · Elavil, Imitrex, Topamax, Aimovig
Migraine Medication Not Working? How Genetics Affects Your Treatment
Many standard migraine medications, from tricyclic preventives to opioid rescue drugs, are metabolized by CYP2D6 and CYP2C19. When those enzymes run fast or slow, standard doses can miss entirely or cause outsized side effects.
Living with migraines that don't respond to treatment is exhausting. You've probably tried multiple medications, from over-the-counter painkillers to prescription preventives, and wondered why nothing works the way it should. What most people don't hear about is that many migraine medications are processed by genetically variable liver enzymes. Your pharmacogenetic profile can explain why amitriptyline leaves you too drowsy to function, why codeine doesn't touch your pain, or why your preventive medication never seems to kick in.
Why your migraine medication may not be working
Not all migraine medications work the same way
Migraine treatment splits into two categories: acute medications (taken during an attack) and preventives (taken daily to reduce frequency). Triptans, NSAIDs, and combination analgesics treat acute attacks. Amitriptyline, venlafaxine, metoprolol, topiramate, and CGRP inhibitors prevent attacks. If one category isn't working, the other might, and within each category there are several options with different mechanisms.
Medication overuse can make migraines worse
Using acute migraine medications (especially triptans, combination painkillers, or opioids) more than 10-15 days per month can cause medication-overuse headache, which paradoxically raises migraine frequency and undermines preventive treatments. This is one of the most common reasons preventive medications appear to fail.
Preventives need enough time and dose
Migraine preventives usually need 2-3 months at a therapeutic dose to show their full effect. Many patients give up too early, or get stuck at subtherapeutic doses because of side effects. Pharmacogenetics can help with that balance between efficacy and tolerability.
Comorbid conditions complicate treatment
Depression, anxiety, insomnia, and neck problems often accompany migraine and can make it harder to treat. Some medications address more than one condition at once (e.g., amitriptyline for migraine and depression, venlafaxine for migraine and anxiety), but choosing the right one depends on the full clinical picture.
Knowing your genetic profile helps your neurologist skip the medications that are genetically wrong for you and focus on the ones that actually have a chance to work.
How your genetics can play a role
Several commonly used migraine medications have well-established pharmacogenetic interactions. Knowing about them can explain treatment failures and guide better choices.
| Gene | What it affects |
|---|---|
| CYP2D6 | Metabolizes amitriptyline (the most commonly prescribed migraine preventive), nortriptyline, metoprolol (a beta-blocker preventive), codeine, and tramadol (used for acute migraine pain).[1][2] Over 40% of people carry CYP2D6 variants that affect these drugs. Poor metabolizers may get outsized side effects from amitriptyline at standard migraine doses. |
| CYP2C19 | A secondary metabolic pathway for amitriptyline and the primary enzyme for SSRIs sometimes used alongside migraine treatment.[1] CYP2C19 also affects omeprazole, which migraine patients may take for GI side effects of NSAIDs. |
| CYP2C9 | Metabolizes NSAIDs like ibuprofen, naproxen, and celecoxib, which are first-line acute migraine treatments.[4] About 14% of people carry variants that slow NSAID metabolism and raise the risk of GI and cardiovascular side effects. |
If you're a CYP2D6 poor metabolizer, amitriptyline at standard migraine doses (25-75 mg) may produce too much drowsiness, weight gain, and cognitive dulling.[1] Your neurologist might try CGRP inhibitors or topiramate instead, since neither depends on CYP2D6. If you're a CYP2D6 ultrarapid metabolizer, codeine and tramadol for acute migraine pain won't work as expected because they can't be activated properly.[2] Knowing your genetic profile helps your neurologist skip the medications that are genetically wrong for you and focus on the ones that actually have a chance to work.
Want to know what your genetics say about how you'll respond to Amitriptyline?
A Gene2Rx report reads your own DNA to show how it may affect your response to Amitriptyline and your other medications.
Find out todayWhen to consider pharmacogenetic testing
Pharmacogenetic testing is especially useful for migraine patients who have tried multiple medications without success, who get outsized side effects from preventive medications, who have been told they have 'treatment-resistant migraine,' or who are about to start a new preventive and want to get the choice right from the start.
What you can do next
- Keep a detailed migraine diary including frequency, severity, triggers, acute medication use, and any side effects from preventive medications.
- Ask your neurologist about pharmacogenetic testing, particularly for CYP2D6 if you're on or considering amitriptyline, nortriptyline, or metoprolol.
- Track your acute medication use. If you're using painkillers more than 10 days per month, raise medication-overuse headache with your doctor.
- Consider pharmacogenetic testing so you know which migraine medications are genetically suitable for you before more trial and error.
- Look into newer migraine-specific treatments (CGRP inhibitors) that aren't affected by pharmacogenetic variations if traditional medications have failed.
Related medications
Related guides
- Fibromyalgia Medication Not Working? How Genetics Affects Your Treatment Options
- Pain Medication Not Working? Why Your Body May Process It Differently
- 23andMe Pharmacogenetics: How to Get a Drug Response Report From Your Existing Data
- AncestryDNA for Drug Testing: Get Pharmacogenetics From Your Ancestry Data
- Looking for a GeneSight Alternative? Here's the Short Answer
- Looking for a Genomind Alternative? Here's What to Know
Frequently asked questions
Are triptans affected by pharmacogenetics?
Triptans (sumatriptan, rizatriptan, etc.) are metabolized mostly by MAO-A rather than cytochrome P450 enzymes, so they're less affected by the common pharmacogenetic variations in CYP2D6 and CYP2C19. If triptans aren't working, the issue is more often diagnosis, dosing, or timing than genetics.
What migraine medications are most affected by genetics?
Amitriptyline and nortriptyline (CYP2D6 + CYP2C19), metoprolol (CYP2D6), codeine and tramadol (CYP2D6), and NSAIDs like ibuprofen (CYP2C9) are the migraine treatments most affected by pharmacogenetic variations.
Do CGRP inhibitors depend on pharmacogenetics?
No. CGRP inhibitors (Aimovig, Ajovy, Emgality, Qulipta) are monoclonal antibodies or small molecules that don't rely on CYP450 enzymes for metabolism. They work consistently regardless of your pharmacogenetic profile, which is part of why they're a good option when traditional medications have failed due to genetic factors.
References
- CPIC. CPIC Guideline for Tricyclic Antidepressants and CYP2D6 and CYP2C19 (2016). cpicpgx.org
- CPIC. CPIC Guideline for Opioids (Codeine, Tramadol) and CYP2D6, OPRM1, and COMT (2021). cpicpgx.org
- U.S. Food and Drug Administration. Table of Pharmacogenomic Biomarkers in Drug Labeling (2024). fda.gov
- Clinical Pharmacogenetics Implementation Consortium (CPIC). CPIC Guidelines. cpicpgx.org
Disclaimer: This content is for educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult your healthcare provider before making changes to your medication. Never stop or change a medication without medical supervision.