What Gets Rid of Migraines? Treatments That Work

Several classes of treatment reliably reduce migraine pain or prevent attacks from happening in the first place, and the options have expanded dramatically in the past decade. Triptans remain the most widely prescribed drugs for stopping an attack once it starts, but newer medications called gepants and ditans now offer alternatives for people who cannot safely use triptans. For prevention, injectable antibodies that target a protein called CGRP have outperformed many older oral drugs in head-to-head analyses. The real challenge is not a lack of effective treatments but figuring out which combination fits your particular pattern of attacks, your other health conditions, and how often you need relief.

Stopping an Attack Once It Starts

The fastest way to shut down a migraine in progress is still a triptan. Sumatriptan, rizatriptan, eletriptan, and their relatives work by activating serotonin receptors in a way that calms the overexcited nerve pathways behind migraine pain. A meta-analysis covering 53 clinical trials confirmed that oral triptans are highly effective acute migraine drugs, with a well-established scientific basis for how they work.1The Lancet. Oral triptans (5-HT1B/1D agonists) in acute migraine: a meta-analysis of 53 trials They work best when taken early, ideally as soon as you recognize the headache building. Waiting until the pain is severe makes them less likely to achieve complete relief.

The main limitation of triptans is that they constrict blood vessels. That makes them off-limits if you have heart disease, uncontrolled high blood pressure, or a history of stroke. For the majority of migraine sufferers who are otherwise healthy, triptans are safe, but a sizable minority needs something else.

Over-the-counter painkillers also work for mild to moderate attacks. Ibuprofen, aspirin, and acetaminophen have all been shown to outperform placebo at reducing moderate or severe migraine pain to mild or no pain within two hours.2PubMed. Over-the-counter drugs for acute migraine attacks: literature review and recommendations Adding caffeine sharpens the effect. Doses of around 100 mg or more of caffeine combined with a standard painkiller significantly improve relief compared with the painkiller alone.3PubMed Central. Caffeine in the management of patients with headache That is roughly the amount in a strong cup of coffee. Combination tablets containing aspirin, acetaminophen, and caffeine are available without a prescription and work well for people whose attacks are not severe enough to need a triptan.

Gepants and Ditans for People Who Cannot Use Triptans

Gepants are small-molecule drugs that block the receptor for CGRP, a protein heavily involved in migraine pain signaling. Unlike triptans, gepants do not constrict blood vessels, making them a viable option for people with cardiovascular risk factors.4PubMed Central. Cardiovascular safety of new drugs for the acute and preventive treatment of migraine: gepants and ditans They work at peripheral nerve sites outside the brain, reducing inflammation and pain transmission without the vascular effects that make triptans risky for some patients.5Headache and Pain Research. Gepants for Migraine: An Update on Long-Term Outcomes and Safety Profiles Ubrogepant and rimegepant are the two gepants currently approved for acute treatment, and rimegepant has the unusual property of doubling as a preventive when taken every other day.

Ditans take a different approach. Lasmiditan, the first approved ditan, activates a specific serotonin receptor subtype that does not cause blood vessel narrowing.6PubMed Central. Lasmiditan mechanism of action – review of a selective 5-HT(1F) agonist It crosses into the brain, where it can block the release of CGRP and the neurotransmitter glutamate from pain-signaling neurons, potentially reversing the sensitization that makes migraine pain escalate. A proof-of-concept trial showed lasmiditan was effective against acute migraine attacks, and its developers specifically noted that the non-vascular mechanism makes it relevant for patients who cannot take drugs with blood-vessel-narrowing activity.7PubMed. Acute treatment of migraine with the selective 5-HT1F receptor agonist lasmiditan–a randomised proof-of-concept trial The trade-off is that lasmiditan can cause dizziness and drowsiness, so you should not drive for at least eight hours after taking it.

Why CGRP Keeps Coming Up

Nearly every newer migraine drug targets the same molecule: calcitonin gene-related peptide, or CGRP. That is not a coincidence. CGRP is abundant in the trigeminal nerve system, which is the primary pain highway for the head and face. During a migraine, trigeminal nerve fibers release CGRP from their endings around the blood vessels of the brain’s outer covering. That release kicks off a chain reaction of inflammation and nerve sensitization that produces the throbbing, often one-sided pain people recognize as migraine.8PubMed Central. CGRP and the Trigeminal System in Migraine Researchers showed that infusing CGRP into migraine-prone individuals can actually trigger an attack, providing direct evidence that this protein is a cause of migraine pain, not just a bystander.9PubMed. A new era for migraine: The role of calcitonin gene-related peptide in the trigeminovascular system

This understanding was a long time coming. For centuries, doctors thought migraine was purely a blood-vessel problem, with the pain caused by arteries expanding. Over the past few decades, research made it clear that the vascular changes are a consequence of nerve activation, not the root cause.10PubMed Central. Neurovascular mechanisms of migraine and cluster headache CGRP sits right at the center of that nerve activation. The fact that blocking it works so well in practice confirmed the theory and opened the door to an entire generation of drugs designed around it.

Preventive Medications That Reduce Attack Frequency

If you have four or more migraine days a month, or if your attacks are severe enough to regularly disrupt your life even at lower frequency, preventive therapy becomes worth considering. The goal is to cut the number of attacks, not just treat each one as it arrives.

The strongest evidence for prevention now belongs to the CGRP-targeting monoclonal antibodies: erenumab, fremanezumab, galcanezumab, and eptinezumab. These are injected monthly or quarterly and work by neutralizing CGRP or blocking its receptor before it can trigger pain signaling. A systematic review of the AAN guidelines found high-confidence evidence that galcanezumab and erenumab reduce headache frequency for episodic migraine, and that fremanezumab, galcanezumab, and onabotulinumtoxinA do the same for chronic migraine.11PubMed. Systematic Review of Pharmacologic Treatment for Migraine Prevention in Adults: Report of the AAN Guidelines Subcommittee and the American Headache Society A network meta-analysis comparing preventive drug classes found high-certainty evidence that CGRP antibodies, gepants, and topiramate all increase the proportion of patients who cut their monthly migraine days in half. Critically, the antibodies and gepants did not increase treatment dropouts due to side effects, while older drugs like valproate, amitriptyline, and topiramate did.12The Journal of Headache and Pain. The comparative effectiveness of migraine preventive drugs: a systematic review and network meta-analysis

That tolerability advantage is a big deal. The older oral preventives, including beta-blockers like propranolol, the antidepressant amitriptyline, and the anti-seizure drug topiramate, genuinely work. A separate meta-analysis found amitriptyline was more effective than several other oral preventives including propranolol and topiramate.13PLoS ONE. A Comparative Effectiveness Meta-Analysis of Drugs for the Prophylaxis of Migraine Headache But these drugs were all developed for other conditions and repurposed for migraine, so their side-effect profiles reflect their original uses: weight gain, fatigue, cognitive dulling, and mood changes are common complaints that lead many people to stop taking them. The CGRP antibodies were designed from the start to target migraine biology, and their side effects are generally mild, mostly injection-site reactions.

Botox for Chronic Migraine

OnabotulinumtoxinA, commonly known as Botox, is approved specifically for chronic migraine, defined as 15 or more headache days per month. The treatment involves a standardized pattern of injections into muscles of the forehead, temples, back of the head, neck, and upper shoulders every 12 weeks. Pooled results from the large PREEMPT trials showed that Botox reduced headache days significantly more than placebo over six months, with patients averaging about 8.4 fewer headache days from baseline compared with 6.6 for placebo.14PubMed. OnabotulinumtoxinA for treatment of chronic migraine: pooled results from the double-blind, randomized, placebo-controlled phases of the PREEMPT clinical program The benefit tends to build over repeated treatment cycles, so doctors usually recommend at least two or three rounds before judging whether it is helping.

Botox does not work for episodic migraine (fewer than 15 headache days per month), which sometimes creates confusion. People with occasional migraines who ask about Botox are not good candidates, and trials in that group have not shown meaningful benefit.

Neuromodulation Devices

For people who prefer to avoid drugs entirely, or who need something to use alongside medication, several FDA-cleared devices deliver electrical or magnetic stimulation to nerves involved in migraine. These include devices that stimulate the supraorbital nerve on the forehead, the vagus nerve in the neck, the occipital nerves at the back of the skull, and the upper arm for remote electrical neuromodulation.15PubMed Central. Update on Neuromodulation for Migraine and Other Primary Headache Disorders: Recent Advances and New Indications

A meta-analysis of randomized trials found that non-invasive neuromodulation roughly doubled the odds of being pain-free within two hours compared to sham devices. However, the benefit faded over the following 48 hours, with no significant difference in sustained pain freedom at that point.16PubMed. Non-invasive neuromodulation in the acute treatment of migraine: a systematic review and meta-analysis of randomized controlled trials The International Headache Society issued weak recommendations for several named devices for both acute and preventive use, reflecting the fact that the evidence is promising but not yet as robust as for pharmaceutical treatments.17PubMed. International Headache society evidence-based guidelines on the use of non-invasive neuromodulation devices for the acute and preventive treatment of migraine The main advantage of these devices is their safety profile: side effects are minimal, and they can be used freely alongside medications without interactions.

Behavioral and Psychological Approaches

Cognitive behavioral therapy and biofeedback are sometimes dismissed as soft options, but the evidence for them is real. A meta-analysis of CBT for migraine found that it significantly reduced headache frequency and migraine-related disability scores, with few adverse events.18PubMed Central. Cognitive Behavioral Therapy for Migraine Headache: A Systematic Review and Meta-Analysis Biofeedback, which teaches you to control physiological processes like muscle tension and skin temperature, significantly reduced headache frequency and severity compared with doing nothing. However, it performed similarly to active treatments like medication or CBT, meaning it is a legitimate alternative rather than a superior one.19PubMed. Efficacy of biofeedback for migraine: A systematic review and meta-analysis

These approaches tend to work best for people whose attacks are linked to stress, poor sleep, or identifiable behavioral patterns. They also carry no drug interactions and no side effects, which makes them especially useful for pregnant women, people already taking multiple medications, or anyone who simply does not want to add another pill.

Supplements That Have Evidence Behind Them

A handful of nutritional supplements have enough clinical trial data to be taken seriously for migraine prevention, though none of them are as potent as prescription drugs. Magnesium supplementation reduced migraine attack frequency by about 40% over 12 weeks in one well-known study. Riboflavin (vitamin B2) at 400 mg per day significantly reduced attack frequency, and coenzyme Q10 at 150 mg per day showed more than a 50% reduction in migraine days after three months.20Vitamins & Hormones. Role of Magnesium, Coenzyme Q10, Riboflavin, and Vitamin B12 in Migraine Prophylaxis A randomized, placebo-controlled trial of a supplement combining riboflavin, magnesium, and CoQ10 found that pain intensity and headache-impact scores improved significantly compared to placebo, though the reduction in migraine days per month did not quite reach statistical significance on its own.21PubMed Central. Improvement of migraine symptoms with a proprietary supplement containing riboflavin, magnesium and Q10: a randomized, placebo-controlled, double-blind, multicenter trial

These supplements are generally inexpensive, widely available, and well tolerated. They are reasonable to try as a first step or as an add-on to other treatments, particularly for people with mild-to-moderate migraine patterns who want to avoid prescription medications.

The Medication Overuse Trap

One of the cruelest ironies of migraine treatment is that taking acute medications too often can itself cause more headaches. Medication overuse headache develops when you regularly use painkillers, triptans, or combination analgesics on 10 to 15 or more days per month for longer than three months.22PubMed Central. Medication overuse headache: a review of current evidence and management strategies The brain adapts to the frequent presence of the drug and, paradoxically, becomes more pain-sensitive in the gaps between doses. The result is a cycle where the treatment becomes part of the problem.

The primary solution is stopping the overused medication, which is straightforward in theory and miserable in practice. Withdrawal headaches can be intense for several days to a couple of weeks. Bridging strategies, which might include a short course of corticosteroids or starting a preventive medication, help take the edge off during the transition. If you find yourself reaching for acute migraine drugs more than two or three days per week on a regular basis, that pattern is worth bringing up with a doctor before it escalates into a daily headache problem.

Migraine During Pregnancy

Pregnancy changes the treatment landscape considerably. Many of the most effective migraine drugs, including most triptans, gepants, and common preventives like topiramate and valproate, are either not recommended or carry meaningful risk to the developing baby. Non-drug strategies become the first line: sleep hygiene, hydration, trigger avoidance, and relaxation techniques. When medication is needed, acetaminophen is the safest first choice. NSAIDs like ibuprofen can be used in the second trimester but should be avoided in the first and third. Triptans are considered secondary options with limited safety data.23PubMed Central. Abortive and Prophylactic Therapies to Treat Migraine in Pregnancy: A Review

For prevention during pregnancy, low-dose beta-blockers or amitriptyline may be used cautiously. Even some historically routine options like magnesium supplements have come under new scrutiny, with debate about their safety profile during pregnancy.24PubMed. Managing Migraine During Pregnancy and Lactation The silver lining is that many women experience a natural reduction in migraine frequency during pregnancy, particularly during the second and third trimesters, likely due to sustained high estrogen levels.

Menstrual Migraine

Migraines that cluster around menstruation are a distinct clinical pattern, and they tend to be longer, more severe, and harder to treat than non-menstrual attacks. Standard acute treatments apply, but many women find that the usual approaches provide incomplete relief. For those cases, short-term preventive strategies timed to the menstrual window can help. Options include taking an NSAID like naproxen or a long-acting triptan such as frovatriptan for a few days around the expected onset of menstruation. Hormonal approaches, such as estrogen patches or extended-cycle oral contraceptives that smooth out the estrogen drop that triggers the attack, are another route.25PubMed. Menstrual migraine: treatment options If cycles are irregular and timing prevention is impractical, continuous preventive therapy with a standard migraine preventive becomes the fallback.

Acupuncture and Dietary Interventions

Acupuncture is often assumed to be placebo, but a well-designed randomized trial found otherwise. True acupuncture reduced migraine attack frequency significantly more than sham acupuncture (where needles are placed in non-traditional locations), with a difference of about one fewer attack over the study period, and nearly two fewer attacks compared with a waiting-list group.26JAMA Internal Medicine. The Long-term Effect of Acupuncture for Migraine Prophylaxis: A Randomized Clinical Trial The effect size is modest compared with drugs, but for people seeking non-pharmaceutical options, it is a legitimate add-on.

Ketogenic diets have also generated interest. A study of chronic migraine patients placed on a ketogenic diet found that monthly headache days dropped from about 12.5 to 6.7 over three months, with roughly two-thirds of participants achieving at least a 50% reduction. The improvement occurred regardless of whether patients were overweight or had normal weight at baseline, suggesting the benefit was not simply from losing weight.27PubMed Central. Migraine Prevention through Ketogenic Diet: More than Body Mass Composition Changes A separate pilot study of a Mediterranean-style ketogenic diet found significant reductions in migraine frequency and intensity beginning as early as four weeks.28PubMed. Mediterranean ketogenic diet accounts for reduced pain frequency and intensity in patients with chronic migraine: A pilot study These are small studies, and ketogenic diets are hard to maintain long-term, but the signal is strong enough that larger trials are underway. The working hypothesis is that ketone bodies may improve mitochondrial function in the brain, which could raise the threshold for migraine attacks to occur.