Doctors Note Logo

Published on: 9/24/2026

What pills work best for a migraine?

The most effective migraine pills depend on attack severity: over-the-counter options like ibuprofen, naproxen, aspirin, or acetaminophen-aspirin-caffeine combinations often relieve mild to moderate attacks, while prescription triptans such as sumatriptan, rizatriptan, or eletriptan are considered first-line for moderate to severe migraines. Newer oral options, including gepants like ubrogepant and rimegepant and the ditan lasmiditan, can help people who cannot take triptans because of heart disease or who get little relief from them. Anti-nausea medications and preventive daily pills such as topiramate, propranolol, or amitriptyline may also be part of the plan for frequent attacks, and taking any pain reliever too often can trigger medication overuse headaches. There are several important factors to consider, including your other health conditions, how quickly you treat the attack, and drug interactions, so review the complete details below before choosing.

Because migraine symptoms can overlap with tension headaches, sinus problems, and rarer but serious causes, understanding what is driving your pain matters before you settle on a pill. A free, instant, online symptom check can help you clarify your likely pattern, flag warning signs, and decide what to discuss with a clinician next.

Last reviewed for medical accuracy: 09/24/2026

answer background

Explanation

Understanding Migraine Pills

Migraines are more than just bad headaches. They’re a neurological condition that can cause intense, throbbing pain—often on one side of the head—plus nausea, light sensitivity, and other symptoms. Treating a migraine usually involves two strategies:

  1. Acute (abortive) treatment to stop attacks once they start
  2. Preventive treatment to reduce frequency and severity

Below, we’ll review the most common migraine pills in each category, how they work, and what to discuss with your doctor.


Acute Migraine Pills

Acute or abortive pills are taken at the first sign of a migraine attack. The goal is to relieve pain and other symptoms before they worsen.

Over-the-Counter (OTC) Analgesics

  • Nonsteroidal anti-inflammatory drugs (NSAIDs)
    • Ibuprofen (Advil, Motrin)
    • Naproxen (Aleve)
    Benefits: Widely available, inexpensive.
    Limitations: May irritate the stomach, raise blood pressure.

  • Acetaminophen (Tylenol)
    Benefits: Gentle on the stomach, safe in pregnancy (under doctor guidance).
    Limitations: Risk of liver damage if over-used.

  • Combination OTCs
    • Excedrin Migraine (acetaminophen + aspirin + caffeine)
    Often more effective than a single ingredient.

Prescription Abortive Therapies

  • Triptans (selective serotonin receptor agonists)
    Sumatriptan, rizatriptan, eletriptan, zolmitriptan
    • How they work: Constrict cranial blood vessels and block pain pathways in the brain.
    • Onset: Typically 2–4 hours for tablets, faster if nasal spray or injection.
    • Side effects: Tingling, flushing, dizziness. Not suitable if you have uncontrolled high blood pressure or certain heart conditions.

  • Ergotamines
    Dihydroergotamine (DHE)
    • Less commonly used today but helpful for prolonged attacks.
    • Side effects: Nausea, muscle pain, tightness in chest or limbs.

  • Ditans and Gepants (newer options)
    • Lasmiditan (a “ditan”)
    • Ubrogepant, rimegepant (oral “gepants”)
    Benefits: Effective in patients who can’t take triptans for heart issues.
    Limitations: Potential drowsiness (particularly with lasmiditan).

  • Anti-nausea Medications
    Metoclopramide, prochlorperazine
    Often used alongside other migraine pills to ease nausea and improve absorption.


Preventive Migraine Pills

Preventive—or prophylactic—medications are taken regularly to cut down the number of migraine days each month. You may consider daily pills if you have:

  • Four or more headache days per month
  • Migraines that don’t respond to acute therapy
  • Significant migraine-related disability

Common Preventive Options

  • Beta-blockers
    Propranolol, metoprolol
    • Originally for heart conditions; reduce migraine frequency by calming overactive blood vessels.
    • Side effects: Fatigue, low blood pressure, sleep disturbances.

  • Antidepressants
    Amitriptyline, venlafaxine
    • Useful even in non-depressed patients.
    • Side effects: Dry mouth, weight gain, drowsiness.

  • Anticonvulsants
    Topiramate, valproate
    • Stabilize nerve activity in the brain.
    • Side effects: Tingling in hands/feet, cognitive slowing, weight changes.

  • CGRP Monoclonal Antibodies
    Erenumab, fremanezumab, galcanezumab, eptinezumab
    • Target the calcitonin gene-related peptide (CGRP) pathway, key in migraine pain.
    • Given by monthly or quarterly injection.
    • Side effects: Injection-site reactions, constipation (erenumab).

  • Oral Gepants for Prevention
    Atogepant
    • Blocks CGRP receptors, taken daily.
    • Side effects: Nausea, fatigue.

  • OnabotulinumtoxinA (Botox®)
    • Approved for chronic migraine (15+ headache days/month, 8+ migraine days).
    • Injections every 12 weeks around head and neck muscles.
    • Side effects: Neck pain, muscle weakness.


Choosing the Right Migraine Pills

No single pill works for everyone. Your choice depends on:

  • Migraine pattern: Frequency, duration, associated symptoms
  • Medical history: Heart disease, hypertension, kidney or liver issues
  • Side-effect profile: Which side effects you can tolerate
  • Convenience: Daily pill versus injection versus acute use only
  • Cost and coverage: Insurance formularies can vary

Work with your doctor to:

  • Start one medication at a time
  • Track your migraine days, pain levels, and side effects in a headache diary or app
  • Adjust dosage or switch therapies if you don’t see improvement after 2–3 months

Safety and Red Flags

While most migraine pills are safe when used correctly, watch for:

  • Medication overuse headache: Using acute pills on 10–15 days per month can worsen migraines over time.
  • Serious side effects: Any chest pain, sudden vision changes, or confusion after taking triptans or ergotamines—stop the medication and seek immediate care.
  • Allergic reactions: Hives, swelling, difficulty breathing require urgent medical attention.

If you ever experience a “thunderclap headache” (sudden, severe pain) or neurological symptoms like weakness or slurred speech, call emergency services.

For less-urgent guidance on your symptoms, consider a free, online symptom check, using the doctor approved Ubie Symptom Checker.


Next Steps

  1. Review your migraine history and current medications.
  2. Discuss acute and preventive options with your healthcare provider.
  3. Keep a headache diary to help guide treatment adjustments.
  4. Consider non-drug approaches: relaxation techniques, regular sleep, hydration, and identifying dietary or environmental triggers.

Never stop or switch migraine pills without talking to your doctor first. If you ever suspect a life-threatening issue—such as sudden severe headache, neurological deficits, or chest pain—seek emergency care immediately.


Migraine management often requires patience and collaboration with your healthcare team. By understanding the range of migraine pills available and working closely with your doctor, you can find the right plan to reduce your pain and improve your quality of life. Speak to a doctor about anything that could be life-threatening or serious, and always follow medical advice tailored to your needs.

(References)

  • * Godin O. [Headache]. Acta Psychiatr Belg. 1976 Mar;76(2):209-97. PMID: 1035833.

  • * Chiu HY, Yeh TH, Huang YC, Chen PY. Effects of Intravenous and Oral Magnesium on Reducing Migraine: A Meta-analysis of Randomized Controlled Trials. Pain Physician. 2016 Jan;19(1):E97-112. PMID: 26752497.

  • * Mayans L, Walling A. Acute Migraine Headache: Treatment Strategies. Am Fam Physician. 2018 Feb 15;97(4):243-251. PMID: 29671521.

  • * Lipton RB, Croop R, Stock EG, Stock DA, Morris BA, Frost M, Dubowchik GM, Conway CM, Coric V, Goadsby PJ. Rimegepant, an Oral Calcitonin Gene-Related Peptide Receptor Antagonist, for Migraine. N Engl J Med. 2019 Jul 11;381(2):142-149. doi: 10.1056/NEJMoa1811090. PMID: 31291516.

  • * Croop R, Goadsby PJ, Stock DA, Conway CM, Forshaw M, Stock EG, Coric V, Lipton RB. Efficacy, safety, and tolerability of rimegepant orally disintegrating tablet for the acute treatment of migraine: a randomised, phase 3, double-blind, placebo-controlled trial. Lancet. 2019 Aug 31;394(10200):737-745. doi: 10.1016/S0140-6736(19)31606-X. Epub 2019 Jul 13. PMID: 31311674.

  • * Croop R, Lipton RB, Kudrow D, Stock DA, Kamen L, Conway CM, Stock EG, Coric V, Goadsby PJ. Oral rimegepant for preventive treatment of migraine: a phase 2/3, randomised, double-blind, placebo-controlled trial. Lancet. 2021 Jan 2;397(10268):51-60. doi: 10.1016/S0140-6736(20)32544-7. Epub 2020 Dec 15. PMID: 33338437.

  • * Blair HA. Rimegepant: A Review in the Acute Treatment and Preventive Treatment of Migraine. CNS Drugs. 2023 Mar;37(3):255-265. doi: 10.1007/s40263-023-00988-8. Epub 2023 Feb 4. PMID: 36739335; PMCID: PMC10299922.

  • * Kikui S, Takeshima T. [Migraine Medication]. Brain Nerve. 2023 May;75(5):470-478. doi: 10.11477/mf.1416202361. PMID: 37194515.

  • * Hervias T. An update on migraine: Current and new treatment options. JAAPA. 2024 May 1;37(5):1-7. doi: 10.1097/01.JAA.0000000000000014. Epub 2024 Apr 25. PMID: 38662902.

  • * Qaseem A, Tice JA, Etxeandia-Ikobaltzeta I, Wilt TJ, Harrod CS, Cooney TG, Crandall CJ, Clinical Guidelines Committee of the American College of Physicians, Hicks LA, Balk E, Cross JT Jr, Fitterman N, Lewis J, Linsky AM, Maroto M, Miller MC, Obley AJ, Owens DK, Shekelle PG, Shamliyan T, Yost J. Pharmacologic Treatments of Acute Episodic Migraine Headache in Outpatient Settings: A Clinical Guideline From the American College of Physicians. Ann Intern Med. 2025 Apr;178(4):571-578. doi: 10.7326/ANNALS-24-03095. Epub 2025 Mar 18. PMID: 40096690.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.