How to Get Rid of a Migraine: Treatments That Work

The fastest way to get rid of a migraine depends on how early you catch it. Taking pain relief at the first sign of an attack, retreating to a dark room, and applying a cold compress to your forehead or neck can cut a migraine short within a couple of hours. For people who get migraines regularly, a combination of the right medication, trigger avoidance, and lifestyle adjustments can reduce how often they strike in the first place.

Recognize the Warning Signs Early

Most migraines announce themselves hours before the headache hits. This early phase, called the prodrome, can last up to 24 hours and includes symptoms you might not immediately connect to a migraine: excessive yawning, food cravings, neck stiffness, unusual thirst, mood changes, and needing to urinate more often. Some people feel tired or irritable without knowing why.

Catching these signals matters because treatment works best when you take it early. If you start recognizing your personal pattern, whether it’s yawning fits or a stiff neck, you can act before the pain escalates.

What to Do the Moment a Migraine Starts

Three things help immediately: medication, darkness, and cold. Take your chosen pain reliever as soon as possible, then find a quiet, dark space to rest. Dimming the lights directly addresses the light sensitivity that comes with most migraines. A cold pack on your forehead or the back of your neck constricts swollen blood vessels and reduces the metabolic activity that fuels the pain. Even a bag of frozen peas wrapped in a towel works. Keep it on for 15 to 20 minutes at a time.

Staying hydrated matters too. Dehydration is a common migraine trigger, and if your prodrome included increased thirst, your body may already be running low on fluids.

Over-the-Counter Medications That Work

For mild to moderate migraines, standard painkillers can be effective if you take them early and at the right dose. The doses studied in migraine trials are often higher than what people typically reach for:

  • Ibuprofen: 400 mg (two standard tablets)
  • Naproxen: 500 to 825 mg, with the higher dose being slightly more effective
  • Acetaminophen: 1,000 mg (two extra-strength tablets)
  • Acetaminophen/aspirin/caffeine combination: The triple combination sold as Excedrin Migraine has strong evidence behind it and is considered a first-line option

The caffeine in that combination product isn’t just filler. It enhances the pain-relieving effects of the other ingredients and helps your body absorb them faster. That said, regular caffeine use can itself become a trigger, so this works best as an occasional rescue rather than a daily habit.

Prescription Options for Stronger Attacks

When over-the-counter options aren’t enough, prescription medications called triptans are the standard treatment. They work differently from regular painkillers. Instead of just blocking pain signals, triptans target the underlying migraine process: they constrict swollen blood vessels in the brain and stop the release of inflammatory chemicals that drive the pain. They also quiet overactive nerve signaling in the brainstem’s pain-processing centers.

Triptans come in tablets, nasal sprays, and injections. The injection and nasal spray forms work faster, which helps if nausea makes swallowing a pill difficult. Your doctor can help you find the right form for your attacks.

For people who get four or more migraine days per month, newer preventive treatments that block a protein called CGRP have become a first-line option. The American Headache Society updated its guidance based on over 150 studies showing these therapies are effective, well-tolerated, and easier to stick with than older preventive medications. You no longer need to fail on other treatments before trying them.

Devices That Stimulate Nerves to Stop Pain

Several FDA-cleared devices offer a drug-free approach. These use mild electrical pulses or magnetic pulses to interrupt migraine signaling:

  • Cefaly: A forehead-worn device that stimulates the trigeminal nerve. It’s cleared for both prevention (daily use) and acute treatment, where two hours of use improved pain freedom and reduced symptoms like nausea and light sensitivity.
  • Nerivio: A wireless arm-worn device using remote electrical stimulation. Both its acute and preventive trials hit their primary goals, achieving two-hour pain freedom for active attacks and reducing migraine frequency within two months for both episodic and chronic migraine.
  • SAVI Dual: A magnetic stimulation device. In a large real-world study, it reduced monthly migraine days and cut medication overuse from 52% of users at the start to just 8% after 12 months.

These devices work best as part of a broader plan rather than a standalone fix, but they’re worth considering if you want to reduce how much medication you take.

Food Triggers to Watch For

Certain chemicals in food can lower your threshold for an attack. The main culprits are tyramine (found in aged cheeses, cured meats, and overripe fruit), nitrates (in hot dogs, bacon, deli meats), MSG, and sulfites. Caffeine, chocolate, alcohol (especially red wine), and artificial sweeteners like aspartame round out the most common triggers.

The list of potential trigger foods is long, ranging from citrus fruits and onions to fresh sourdough bread and soy sauce. Rather than eliminating everything at once, many headache specialists recommend an elimination approach: cut the major categories for a few weeks, then reintroduce foods one at a time to see which ones actually affect you. Most people react to only a handful of triggers, not all of them. Keeping a food and headache diary makes patterns much easier to spot.

Sleep, Stress, and Daily Habits

Irregular sleep is one of the most powerful and most fixable migraine triggers. Going to bed and waking up at the same time every day, including weekends, can produce noticeable improvement within a few months. People with the most disrupted sleep patterns tend to see the biggest reduction in migraine days once they establish consistency. If you work night shifts, switching to day shifts when possible can make a measurable difference.

Stress doesn’t just trigger migraines during high-pressure moments. The “letdown” period after stress passes is actually when many attacks strike, which is why weekend migraines are so common. Regular physical activity, even 30 minutes of moderate exercise most days, helps stabilize the brain’s response to stress. The key is consistency rather than intensity.

Supplements That Reduce Migraine Frequency

Three supplements have enough clinical evidence to be recommended by headache specialists for prevention:

  • Magnesium oxide: 400 to 500 mg daily. Many migraine sufferers have low magnesium levels, and supplementing can reduce attack frequency. Start gradually, as high doses can cause loose stools.
  • Riboflavin (vitamin B2): 400 mg daily. This is well above the amount in a multivitamin, so you’ll need a standalone supplement. It supports the energy production in brain cells that may be impaired in migraine.
  • CoQ10: 300 mg daily. Studies show this dose reduces migraine frequency in adults.

Supplements take time. Most people need six to eight weeks of consistent daily use before seeing a clear difference. They work best as part of a prevention strategy alongside trigger management and sleep hygiene, not as a replacement for acute treatment when an attack is already underway.