How to Deal With Migraine Pain and Prevent Attacks

Dealing with a migraine means acting fast when one hits, building habits that reduce how often they come, and knowing which treatments actually work. Most people with migraine can significantly cut the frequency and severity of attacks with the right combination of acute treatment, lifestyle changes, and, when needed, preventive therapy.

Treat Early and Match Severity

The single most important thing you can do during a migraine attack is treat it within the first hour. Waiting lets the pain pathway wind up, making medication less effective. What you reach for should match the severity of the attack.

For mild to moderate migraines, over-the-counter pain relievers are first-line options. Ibuprofen at 400 mg, naproxen at 500 mg, or acetaminophen at 1,000 mg all have strong evidence behind them. The combination of acetaminophen, aspirin, and caffeine (found in products like Excedrin Migraine) is particularly effective and can work as well as some prescription options for many people.

For moderate to severe attacks, triptans are the standard prescription treatment. Not all triptans perform equally. A large network analysis published in The BMJ found that eletriptan was the most effective for achieving pain freedom at two hours, roughly three to five times more likely than placebo to eliminate pain. Rizatriptan ranked close behind. If one triptan doesn’t work for you, another might. Pairing a triptan with 500 mg of naproxen can reduce the chance the headache comes back later in the day.

Two newer classes of prescription medication offer alternatives, especially for people who can’t take triptans due to heart disease or other vascular conditions. Gepants (like ubrogepant and rimegepant) block a pain signaling molecule called CGRP that plays a central role in migraine attacks. Lasmiditan works on serotonin receptors in the brain without constricting blood vessels, which is the main concern with triptans. Both classes are approved for acute migraine in adults.

Reduce Attack Frequency With Lifestyle Habits

Migraine brains are unusually sensitive to changes in routine. The most consistently reported triggers across studies are stress, skipping meals, sleep disruption, and hormonal fluctuations in women. In a study of over 1,200 people with migraine, 57% identified not eating as a headache trigger, putting it alongside stress and poor sleep as the most common precipitants.

Regularity matters more than perfection. Eating meals at consistent times, going to bed and waking up on the same schedule (including weekends), staying well hydrated, and managing stress all reduce the brain’s exposure to the kind of sudden shifts that can set off an attack. One study found that nighttime snacking was associated with a 40% reduction in the odds of experiencing a headache compared to eating nothing, suggesting that even small steps to avoid prolonged fasting can help. You don’t need a complicated elimination diet. You need a predictable routine.

When to Consider Preventive Treatment

If you’re having four or more migraine days per month, preventive treatment is worth discussing with your doctor. The goal isn’t to eliminate every attack but to cut the number of headache days significantly, often by half or more.

Several categories of preventive medication have good evidence. Beta-blockers, certain antidepressants, and anti-seizure medications have been used for decades. Newer options include monthly or quarterly injections that block CGRP, the same pain signaling molecule targeted by gepants. Botox injections are another option, specifically approved for chronic migraine (15 or more headache days per month for at least three months, with migraine features on at least 8 of those days).

Supplements can also play a preventive role. The American Headache Society recognizes magnesium oxide at 400 to 500 mg daily, riboflavin (vitamin B2) at 400 mg daily, and Coenzyme Q10 at 300 mg daily as options that can reduce migraine frequency. These have fewer side effects than prescription preventives, though they typically take two to three months of consistent use before you notice a difference.

Non-Drug Devices

Several FDA-cleared neuromodulation devices offer drug-free options for both treating and preventing migraines. Cefaly is a small device worn on the forehead that stimulates the trigeminal nerve. Its acute program runs for one to two hours during an attack, and its preventive program takes 20 minutes daily. In clinical trials, two hours of use during an attack improved pain freedom and reduced symptoms like light sensitivity and nausea compared to a sham device.

Nerivio is a wireless arm band that uses remote electrical stimulation. It’s worn for 45 minutes at migraine onset for acute treatment, or every other day for prevention. Its clinical trials were positive for both uses, and a real-world study found that about 59% of users experienced pain relief within two hours, with 20% achieving complete pain freedom without any medication in at least half their attacks. GammaCore stimulates the vagus nerve in the neck and is cleared for both acute and preventive migraine use, though its clinical trial results were mixed, with positive signals on several measures but not on the primary outcome.

Signs a Headache Needs Urgent Attention

Most migraines, while miserable, are not dangerous. But certain features suggest something other than migraine may be happening. A sudden-onset headache that reaches maximum intensity within seconds (a “thunderclap” headache) is one of the most concerning signs and can point to a vascular emergency like a ruptured aneurysm. This requires immediate evaluation.

Other red flags include fever or unexplained weight loss accompanying the headache, new neurological symptoms like weakness on one side, numbness, or unusual vision changes that aren’t your typical aura, and headaches that are clearly getting worse over weeks or months rather than fluctuating. A new headache pattern starting after age 50, headaches that change with position (worse when standing or lying down), and headaches triggered by coughing or straining also warrant medical workup. If you’re pregnant or recently gave birth and developing new headaches, that combination needs evaluation for vascular or hormonal causes.

Building a Long-Term Plan

Effective migraine management is layered. Start with the basics: consistent sleep, regular meals, hydration, and an acute treatment plan matched to your typical attack severity. If attacks are frequent enough to disrupt your life on four or more days per month, add a preventive strategy, whether that’s supplements, medication, a device, or some combination. Track your headache days on a calendar or app so you can see patterns and measure whether a treatment is actually working. Most preventive treatments need at least two to three months before you can judge their effectiveness, so give each approach a fair trial before moving on.