How to Get Rid of Migraines: Relief and Prevention

Getting rid of a migraine depends on whether you’re trying to stop one that’s already started or reduce how often they happen. For an active migraine, over-the-counter pain relievers work best when taken within the first hour of symptoms. For frequent migraines, a combination of preventive medication, supplements, and trigger management can cut the number of attacks significantly. Here’s what actually works at each stage.

Stopping a Migraine in Progress

The single most important factor in treating an active migraine is timing. Taking medication early, ideally when pain is still mild, dramatically improves your odds of getting full relief. Waiting until the pain is severe makes every treatment less effective.

For mild to moderate attacks, standard pain relievers like ibuprofen, naproxen, or acetaminophen are a reasonable first step. Combining a pain reliever with caffeine (or using a product that already contains both) can boost absorption and effectiveness. But if you find yourself reaching for these more than two or three days per week, you risk developing rebound headaches, where the medication itself starts triggering more attacks.

For moderate to severe migraines, prescription medications called triptans are the standard first-line treatment. They work by changing blood circulation in the brain and altering how pain signals are processed. You take them as rescue medications once a migraine starts. They come in tablets, nasal sprays, and injections for people who vomit during attacks. A newer class of prescription medications works by blocking a specific pain-signaling protein involved in migraines, and these can be used both to stop an attack and to prevent future ones.

Non-Drug Relief During an Attack

While medication is working, a few strategies can take the edge off. A cold pack on your forehead or the back of your neck constricts blood vessels and provides a numbing effect. Lying down in a dark, quiet room helps because migraine amplifies sensitivity to light, sound, and movement. Some people find that pressing firmly on the temples or the space between the thumb and index finger provides temporary relief.

Caffeine deserves a special mention. In small amounts during an attack, it helps your body absorb pain medication faster and constricts dilated blood vessels. But this is a double-edged sword. Regular caffeine use can itself become a migraine trigger, which is why it also appears on trigger lists.

When a Migraine Won’t Break

A migraine that lasts longer than 72 hours is classified as status migrainosus, and it typically requires medical intervention. At that point, dehydration and nausea have often compounded the original problem. In an emergency setting, treatment usually involves IV fluids, anti-nausea medication, and a combination of stronger drugs to break the cycle. If your migraines regularly last this long or resist your usual treatments, that’s a signal your overall management plan needs an upgrade.

Supplements That Reduce Migraine Frequency

Three supplements have enough clinical evidence behind them that the American Headache Society recognizes their use for migraine prevention. They don’t stop an attack in progress, but taken daily over weeks, they can reduce how often migraines occur.

  • Magnesium oxide: 400 to 500 milligrams daily. Magnesium plays a role in nerve signaling, and people with migraines tend to have lower levels. It can cause loose stools at higher doses, so starting at 400 mg and adjusting is reasonable.
  • Riboflavin (vitamin B2): 400 milligrams daily. This is far above the amount in a multivitamin. Riboflavin supports energy production in brain cells, and at this dose, studies show a meaningful reduction in migraine days.
  • CoQ10: 300 milligrams daily. Like riboflavin, CoQ10 supports cellular energy metabolism. Research has found this dose reduces migraine frequency in adults.

Give any of these at least two to three months before judging whether they’re working. The effects are gradual.

Preventive Medications

If you’re getting migraines frequently or they’re lasting a long time, preventive medication taken daily (or monthly, depending on the type) can reduce how many attacks you get. Several classes of drugs originally developed for other conditions turn out to reduce migraines: certain blood pressure medications, antidepressants, and anti-seizure medications all have evidence supporting their use. Your doctor will typically choose based on your other health conditions, since these medications can pull double duty.

A newer category of preventive treatment targets the specific protein (CGRP) involved in migraine pain signaling. The American Headache Society now considers these a first-line option for migraine prevention. They’re given as monthly or quarterly injections, and clinical trials show they significantly reduce the number of migraine days per month. For people who haven’t responded well to older preventive options, these represent a meaningful step forward.

For chronic migraine, defined as 15 or more headache days per month, Botox injections are another option. The procedure involves 31 small injections across seven muscle groups in the head and neck, repeated every 12 weeks. It typically takes two to three rounds before you can judge whether it’s working, so patience is important. Your provider will evaluate the results after three cycles to decide on a long-term plan.

Identifying and Managing Your Triggers

Triggers vary widely between individuals, which is why a headache diary is one of the most useful tools available. Track what you ate, how you slept, your stress level, weather changes, and where you are in your menstrual cycle (if applicable) each time a migraine hits. After a few months, patterns usually emerge.

The most commonly reported food triggers share a handful of chemical culprits: tyramine (found in aged cheeses, processed meats, and fermented foods), MSG (common in processed soups, seasoned snacks, and some restaurant cooking), artificial sweeteners like aspartame, sulfites in wine, and nitrates in cured meats. A comprehensive elimination approach, based on guidelines from the VA’s headache program, removes twelve categories of potential triggers:

  • Caffeine: coffee, tea, colas, energy drinks
  • Chocolate
  • MSG-containing foods: processed soups, bouillons, seasoned salts, many restaurant dishes
  • Processed and cured meats: cold cuts, bacon, jerky, smoked fish
  • Aged dairy: aged cheese, buttermilk, sour cream, yogurt
  • Nuts and nut butters
  • Certain fruits: citrus, bananas, dried fruits, avocados, anything overripe
  • Certain vegetables: onions, beans, pea pods, sauerkraut
  • Alcohol and vinegar: red wine, champagne, dark liquors, ketchup, mustard
  • Fresh baked goods: anything less than a day old, especially sourdough, bagels, and pizza crust
  • Artificial sweeteners: aspartame, saccharin
  • Processed soy: miso, tempeh, soy sauce

Most experts recommend following a strict elimination for at least three months, then reintroducing foods one at a time. If your migraines are frequent, you may notice improvement much sooner. The goal isn’t to avoid all these foods forever. It’s to identify which ones actually affect you.

Lifestyle Factors That Compound Risk

Beyond specific food triggers, inconsistency is one of the biggest migraine drivers. Irregular sleep, skipped meals, and sudden changes in caffeine intake destabilize the systems that keep migraines in check. The brain of someone with migraine is unusually sensitive to shifts in routine.

Going to bed and waking at the same time every day, eating meals on a regular schedule, staying well-hydrated, and managing stress through exercise or relaxation techniques form the foundation of migraine management. These changes sound simple, but for many people they reduce migraine frequency as much as medication does. Aerobic exercise in particular, even 30 minutes of brisk walking several times a week, has been shown to have a genuine preventive effect.

The most effective migraine management combines several of these strategies. A preventive medication or supplement regimen, paired with trigger avoidance and consistent lifestyle habits, tends to produce much better results than any single approach on its own.