The fastest way to help a migraine is to treat it early, ideally within the first hour of symptoms. Taking medication at the first sign of pain, moving to a dark and quiet room, and applying a cold compress to your forehead or the back of your neck can shorten an attack significantly. But truly managing migraine means combining what you do during an attack with changes that reduce how often they happen in the first place.
What to Do During an Attack
The single most important rule for treating a migraine in progress is speed. The sooner you act, the better any treatment works. If you have a medication prescribed for acute attacks, take it at the very first sign of head pain or aura, not after the pain becomes severe. Waiting even 30 to 60 minutes can make the same medication far less effective.
While you wait for medication to kick in, reduce sensory input as much as possible. Dim the lights or move to a dark room. Noise and bright light activate the trigeminal nerve, which is already firing during a migraine, so cutting those signals helps your brain settle down. A cold pack on your forehead or neck can dull pain by constricting blood vessels near the surface. Some people find that caffeine in small amounts (a cup of coffee or tea) helps, partly because it boosts the absorption of pain relievers. But if you rely on caffeine regularly, this trick can backfire by contributing to rebound headaches.
Over-the-Counter Pain Relief
For mild to moderate migraines, standard anti-inflammatory painkillers like ibuprofen, naproxen, or aspirin work well when taken early. Combination products that pair a pain reliever with caffeine can be slightly more effective. The key limitation is frequency: using any acute pain medication more than two or three days per week can cause medication-overuse headache, a cycle where the treatment itself starts triggering more headaches. If you find yourself reaching for painkillers that often, it’s a sign you need a preventive strategy.
Prescription Options for Active Migraines
Triptans remain the gold standard prescription treatment for moderate to severe migraine attacks. They work by narrowing blood vessels and blocking pain pathways in the brain. Several versions exist in pill, nasal spray, and injectable forms. Because triptans affect blood vessels, they aren’t suitable for people with certain heart conditions or uncontrolled high blood pressure.
Two newer medication classes offer alternatives. Gepants block a protein called CGRP from latching onto nerve receptors and triggering pain signals. They come as pills or dissolvable tablets you take at the onset of an attack. Unlike triptans, gepants don’t constrict blood vessels, making them an option for people who can’t use triptans for cardiovascular reasons. Ditans are related to triptans but are more targeted, also avoiding blood vessel effects. The tradeoff is that ditans can be sedating and carry an eight-hour driving restriction after use.
Lifestyle Habits That Lower Migraine Frequency
A structured lifestyle approach sometimes called SEEDS (Sleep, Exercise, Eat, Diary, Stress) targets the most common migraine triggers through daily habits. These changes won’t eliminate migraines on their own, but they form the foundation that makes every other treatment work better.
- Sleep: Keep a consistent bedtime and wake time, even on weekends. A dark, cool, quiet bedroom helps. Avoid screens in bed. Skipping naps keeps your sleep pressure steady.
- Exercise: Aim for 30 to 60 minutes of moderate activity three to five times a week. Start small if exercise currently triggers headaches, and build up gradually. Over time, regular aerobic exercise reduces migraine frequency.
- Eat: Don’t skip meals. Drops in blood sugar are a reliable migraine trigger for many people. Drink seven to eight glasses of water daily and keep caffeine under 200 mg per day (roughly two small cups of coffee).
- Diary: Track your attacks using an app or calendar. Note the severity, possible triggers, what you ate, how you slept, and what helped. A simple stoplight system works: red for bedridden, yellow for limited function, green for no impact. This record helps you and your doctor spot patterns.
- Stress: Chronic stress is one of the most commonly reported migraine triggers. Techniques like mindfulness, progressive muscle relaxation, and structured breathing can reduce both stress and migraine frequency.
Supplements With Clinical Evidence
Three supplements have enough research behind them to be recommended by headache specialists for migraine prevention. They tend to work best when taken consistently for two to three months before you can judge their effect.
Magnesium oxide at 400 to 500 mg per day is the most widely recommended. Many people with frequent migraines have low magnesium levels, and supplementation can reduce attack frequency. The most common side effect is loose stools, which usually improves at lower doses or with a different form of magnesium. Riboflavin (vitamin B2) at 400 mg per day supports energy production in brain cells and has shown benefit in several trials. CoQ10 at 300 mg per day has been found to reduce migraine frequency in adults. All three are generally safe and inexpensive, which makes them a reasonable first step before or alongside prescription preventives.
Behavioral Therapies
Cognitive behavioral therapy (CBT) and biofeedback are the two most studied behavioral treatments for migraine. A pooled analysis of ten trials found that interventions including a CBT component reduced migraine frequency by about one day per month. Biofeedback, where you learn to control physiological responses like muscle tension using real-time feedback from sensors, performed even better in one trial, reducing migraine days by about two per month compared to CBT combined with relaxation training. For children and adolescents, a combination of CBT, biofeedback, and relaxation training reduced attacks by about 1.6 days per month and meaningfully lowered migraine-related disability compared to education alone.
These approaches are especially useful if stress, anxiety, or poor sleep are major triggers for you, and they carry no side effects. The practical barrier is access: finding a therapist trained in headache-specific CBT or a biofeedback practitioner can take effort depending on where you live, though telehealth options have expanded availability.
Preventive Medications
If you’re experiencing four or more migraine days per month, or if your attacks are severe enough to regularly disrupt your life, preventive medication can cut the number of attacks substantially. Older options include certain blood pressure medications, antidepressants, and anti-seizure drugs that were found to reduce migraines as a secondary benefit.
The newest class of preventives targets CGRP, the same pain-signaling protein that gepants block during acute attacks. Four injectable or infusion-based CGRP antibodies are available. These are given monthly or quarterly depending on the specific treatment. In studies, switching to a CGRP-targeting preventive reduced monthly migraine days by 50% or more in roughly one-quarter to one-third of patients. If one doesn’t work, switching to a different one in the same class can still help: one study found 60% of patients who switched achieved a 50% or greater reduction in migraine days within a year.
For chronic migraine (15 or more headache days per month, with at least eight having migraine features), injections of botulinum toxin are another option. The standard protocol involves 31 small injections across seven muscle areas in the head and neck, takes about 15 minutes, and is repeated every 12 weeks. Most people need two to three rounds before seeing the full benefit.
Wearable Neuromodulation Devices
Several FDA-cleared devices offer drug-free options for both treating and preventing migraines. These work by delivering mild electrical or magnetic stimulation to nerves involved in migraine.
- Cefaly: A forehead device that stimulates the trigeminal nerve. Cleared for both acute and preventive use. Available over the counter.
- Nerivio: A smartphone-controlled armband worn on the upper arm. Cleared for acute and preventive treatment in adults and adolescents.
- gammaCore: A handheld device applied to the neck that stimulates the vagus nerve. Cleared for both acute and preventive use.
- SAVI Dual: A handheld magnet placed on the back of the head that delivers brief magnetic pulses. Cleared for acute and preventive treatment.
These devices won’t replace medication for everyone, but they’re useful as add-on treatments or for people who want to reduce how often they take medication. Side effects are minimal, typically limited to mild tingling at the stimulation site.
What Happens in the ER for Severe Attacks
A migraine that lasts beyond 72 hours is called status migrainosus and sometimes requires emergency treatment. In the ER, treatment typically starts with IV fluids for hydration, followed by a combination of an anti-inflammatory pain reliever, an anti-nausea medication, and sometimes a steroid to prevent the headache from bouncing back within the next 24 to 72 hours. This combination is often informally called a “migraine cocktail.” If you’ve already taken a triptan at home without relief, the ER may use an injectable form or a different class of medication entirely. Opioids are generally avoided because they’re less effective for migraine and increase the risk of more frequent attacks later.
If you’re ending up in the ER more than once or twice a year for migraine, that’s a strong signal that your current preventive plan needs adjustment. Tracking your attack frequency and severity gives your doctor the information they need to find a better long-term approach.