The fastest way to get rid of a migraine is to take medication early, ideally within the first 30 to 60 minutes of symptoms. Treating a migraine while the pain is still mild dramatically improves your chances of stopping it completely. Beyond that first critical window, a combination of environmental changes, the right over-the-counter or prescription options, and longer-term prevention strategies can reduce both the severity and frequency of attacks.
Stop an Attack Early With the Right Medication
Timing matters more than almost anything else. The sooner you treat a migraine, the better any medication works. This applies equally to over-the-counter painkillers and prescription options.
For mild to moderate attacks, a combination of acetaminophen, aspirin, and caffeine (the formula behind Excedrin Migraine) is one of the most effective over-the-counter choices. In clinical data, this combination provided pain relief for about 59% of people, compared to roughly 33% with placebo. It works best when taken at the very first sign of pain.
For moderate to severe migraines, prescription medications called triptans are the standard treatment. There are several options in this class, and they come in tablets, nasal sprays, and injections. If one triptan doesn’t work well for you, another might. A newer class of prescription medications, called gepants, targets the specific protein involved in migraine pain. Gepants have side effect profiles similar to placebo, meaning most people tolerate them well, and they’re a good alternative if triptans cause uncomfortable side effects or aren’t an option for you.
What to Do Right Now During an Attack
While you wait for medication to kick in, your environment makes a real difference. Move to a dark, quiet room if possible. Light sensitivity is one of the hallmarks of migraine, and reducing visual input helps your nervous system calm down. Apply a cold pack to your forehead or the back of your neck for 15 to 20 minutes. Some people find that alternating cold with a warm compress on tense neck muscles provides additional relief.
If you have access to a narrow-band green light lamp (around 520 nm wavelength), research suggests that two hours of exposure in an otherwise dark room can reduce headache intensity and light sensitivity during an active attack. This is a niche tool, but it’s one of the few types of light that doesn’t worsen migraine pain.
Caffeine deserves a special mention. In small amounts, it helps pain relievers work faster and can constrict blood vessels that contribute to migraine pain. That’s why it’s included in combination painkillers. A small cup of coffee alongside your medication can boost its effectiveness. But if you regularly consume a lot of caffeine, this strategy becomes less reliable, and caffeine withdrawal itself can trigger migraines.
Common Food and Lifestyle Triggers
Migraines rarely come out of nowhere. Most people have identifiable triggers, and learning yours is one of the most powerful prevention tools available. The five most commonly recognized food triggers are caffeine, chocolate, MSG (found in many processed soups, seasoned salts, and takeout foods), processed meats containing nitrates or nitrites (bacon, jerky, deli meats, smoked fish), and aged dairy products like older cheeses, sour cream, and yogurt.
If you suspect food is playing a role, an elimination diet can help you identify your specific triggers. Remove all five categories for at least three months, then reintroduce them one at a time. Depending on how frequently you get migraines, you may notice improvement well before the three-month mark. Keep a simple headache diary during this process so patterns become obvious.
Beyond food, the most reliable non-dietary triggers are irregular sleep, skipped meals, dehydration, stress, hormonal fluctuations, and weather changes. You can’t control all of these, but maintaining consistent sleep and meal schedules makes a measurable difference for many people.
Supplements That Reduce Migraine Frequency
Three supplements have enough clinical support that the American Headache Society recognizes them for migraine prevention. None of them stop an attack in progress, but taken daily, they can reduce how often migraines occur.
- Magnesium oxide: 400 to 500 mg per day. Magnesium plays a role in nerve signaling, and many migraine sufferers have lower levels. This is one of the most widely recommended starting points because it’s inexpensive and well tolerated, though high doses can cause loose stools.
- Riboflavin (vitamin B2): 400 mg per day. This is far above the amount you’d get from food. It supports energy production in brain cells, and it typically takes two to three months of daily use before you notice a change in migraine frequency.
- Coenzyme Q10: 300 mg per day. Research has found this dose reduces migraine frequency in adults. Like riboflavin, it takes consistent daily use over weeks to see results.
These supplements work best as part of a broader prevention plan, not as standalone solutions. They’re worth trying before or alongside prescription preventives, especially if you prefer starting with lower-risk options.
Prescription Prevention for Frequent Migraines
If you’re getting four or more migraine days per month, preventive medication becomes worth discussing with your doctor. Several classes of drugs originally developed for other conditions (blood pressure medications, antidepressants, anti-seizure medications) reduce migraine frequency when taken daily. The choice depends on your other health conditions, side effect tolerance, and preferences.
For people who don’t respond well to traditional preventives, newer injectable or oral medications that target the same migraine-specific protein as gepants are available for monthly or quarterly prevention. These tend to have fewer side effects than older preventives because they were designed specifically for migraine rather than repurposed from other uses.
Devices That Disrupt Migraine Pain Signals
Several FDA-cleared neuromodulation devices offer a drug-free option for both treating and preventing migraines. These include the Cefaly device, which stimulates the trigeminal nerve on the forehead; GammaCore, a handheld vagus nerve stimulator used on the neck; a single-pulse transcranial magnetic stimulator held against the back of the head; and Nerivio, a remote electrical neuromodulator worn on the upper arm and controlled by a smartphone app.
Each device works differently, but all interrupt pain signaling in the nervous system. They’re generally well tolerated with minimal side effects. Experts recommend using any device consistently for at least one to two months before judging whether it works for you, since it takes time to see the full effect across different types of headache episodes. These devices require a prescription but are used at home.
Headache Symptoms That Need Immediate Attention
Most migraines, while miserable, are not dangerous. But certain features signal something more serious. Seek emergency evaluation for a headache that reaches maximum intensity within seconds (sometimes called a “thunderclap headache”), as this can indicate a blood vessel problem like an aneurysm. New headaches accompanied by fever, night sweats, or unexplained weight loss also warrant urgent assessment.
Other warning signs include new neurological symptoms you haven’t experienced before (weakness on one side, unusual numbness, or vision changes that differ from your typical aura), a headache that changes significantly with position (worse when standing or lying down), and any new headache pattern starting after age 50. A headache that has been steadily worsening over weeks or months, rather than coming and going in discrete episodes, is also a red flag. These patterns don’t always mean something dangerous is happening, but they need evaluation to rule out secondary causes.

