Skip to content
Gene2Rx home

Try

Loading…

Search couldn't load. Check your connection and try again, or use the medication lookup.

No pages match .

The medication lookup checks any medication by name, including ones without their own page.

Get my report

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.

Reviewed by the Gene2Rx team. Updated 2026-05-28.

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.

Important: Seek emergency medical attention for a sudden, severe headache that is the worst you've ever had (thunderclap headache), headache with fever and stiff neck, headache with vision loss or confusion, or any headache pattern that is dramatically different from your usual migraines. These may signal a medical emergency unrelated to migraine.

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.

GeneWhat it affects
CYP2D6
CYP2C19
CYP2C9

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.

Amitriptyline, metoprolol, codeine, and tramadol all run through CYP2D6, and over 40 percent of people carry variants that change how those drugs land. Find out what your profile says before the next trial.

A Gene2Rx report covers the preventives and rescue medications used for migraine across CYP2D6, CYP2C19, and CYP2C9, so your neurologist can skip the ones your genetics already argue against.

When 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

  1. Keep a detailed migraine diary including frequency, severity, triggers, acute medication use, and any side effects from preventive medications.
  2. Ask your neurologist about pharmacogenetic testing, particularly for CYP2D6 if you're on or considering amitriptyline, nortriptyline, or metoprolol.
  3. Track your acute medication use. If you're using painkillers more than 10 days per month, raise medication-overuse headache with your doctor.
  4. Consider pharmacogenetic testing so you know which migraine medications are genetically suitable for you before more trial and error.
  5. Look into newer migraine-specific treatments (CGRP inhibitors) that aren't affected by pharmacogenetic variations if traditional medications have failed.

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

  1. CPIC. CPIC Guideline for Tricyclic Antidepressants and CYP2D6 and CYP2C19 (2016). cpicpgx.org
  2. CPIC. CPIC Guideline for Opioids (Codeine, Tramadol) and CYP2D6, OPRM1, and COMT (2021). cpicpgx.org
  3. U.S. Food and Drug Administration. Table of Pharmacogenomic Biomarkers in Drug Labeling (2024). fda.gov
  4. Clinical Pharmacogenetics Implementation Consortium (CPIC). CPIC Guidelines. cpicpgx.org

Tired of Migraine Medications That Don't Work? Your Genetics May Have Answers.

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.