How to Get Rid of Migraines: Treatments That Work

Most migraines can be significantly reduced or stopped within two hours using the right combination of medication, cold therapy, and environmental changes. The key is acting fast: treatments work best when started at the first sign of an attack rather than after pain has fully set in. For people who get migraines regularly, preventive strategies like supplements, trigger management, and lifestyle adjustments can cut the number of attacks dramatically over time.

What to Do Right Now During an Attack

If a migraine is building, your first move is to get into a dark, quiet room. Light and sound amplify migraine pain through sensory pathways that are already overactivated during an attack. Lying down and closing your eyes removes two major sources of ongoing stimulation.

Apply a cold pack to your forehead, temples, or the back of your neck. Cold therapy works by triggering temperature-sensitive receptors on nerve fibers that alter how pain signals travel to the brain. It also reduces inflammation around blood vessels in the head. A bag of frozen vegetables wrapped in a thin towel works fine. Keep it on for 15 to 20 minutes at a time, with breaks in between to protect your skin.

Caffeine can help in the early stages of a migraine if you don’t consume it regularly. It narrows blood vessels and enhances the absorption of pain relievers, which is why it’s an ingredient in many over-the-counter headache formulations. A small cup of coffee or tea alongside medication can boost its effectiveness. But if you rely on caffeine daily, skipping it can actually trigger migraines, so this strategy works best for occasional caffeine users.

Over-the-Counter Pain Relievers

Anti-inflammatory painkillers like ibuprofen, naproxen, and aspirin are considered first-line treatment for mild to moderate migraine attacks. International clinical guidelines recommend starting with these before moving to stronger options. They work by reducing the inflammation that contributes to migraine pain, and they’re most effective when taken within the first 30 minutes of symptoms.

Combination products that pair a pain reliever with caffeine tend to outperform single-ingredient versions. Take the full recommended dose early rather than a smaller dose that you top up later. If over-the-counter options consistently fail to provide relief within two hours, that’s a signal to talk to a provider about prescription alternatives.

Prescription Medications for Stronger Attacks

Triptans are the gold standard for moderate to severe migraines that don’t respond to over-the-counter options. A large network meta-analysis published in the BMJ compared all major acute migraine drugs head-to-head and found that eletriptan was the most effective, followed by rizatriptan, sumatriptan, and zolmitriptan. These older triptans actually outperformed newer, more expensive drugs on the market.

Triptans work by targeting serotonin receptors in the brain, constricting dilated blood vessels and blocking pain signal transmission. They come in tablets, nasal sprays, and injections. The nasal spray and injection forms act faster and can be helpful if nausea makes it hard to keep a pill down. Triptans do have restrictions for people with certain cardiovascular conditions, so they require a prescription.

One important rule with any acute migraine medication: avoid using it more than two or three days per week. Overuse can lead to rebound headaches, where the medication itself starts causing more frequent attacks.

Ginger as a Surprising Alternative

In a double-blinded clinical trial of 100 migraine patients, 250 mg of ginger powder performed nearly identically to sumatriptan. Pain severity dropped by 4.6 points on a 10-point scale in the ginger group compared to 4.7 points in the sumatriptan group, a difference that was not statistically significant. About 64% of ginger-treated patients achieved favorable relief (90% or greater pain reduction) within two hours, compared to 70% with sumatriptan.

The real advantage showed up in side effects. Only 4% of ginger users reported adverse symptoms, compared to 20% in the sumatriptan group. For people who want a non-pharmaceutical option or who experience unpleasant side effects from triptans, ginger powder capsules are worth trying. You can find 250 mg ginger root capsules at most pharmacies and health food stores.

Supplements That Reduce Migraine Frequency

Three supplements have enough clinical evidence behind them that the American Headache Society recognizes their role in migraine prevention. These won’t stop a migraine that’s already happening, but taken daily, they can reduce how often attacks occur.

  • Magnesium oxide: 400 to 500 mg per day. Magnesium plays a role in nerve signaling, and people with migraines tend to have lower levels. This is one of the best-studied supplements for migraine prevention and is often the first one neurologists recommend.
  • Riboflavin (vitamin B2): 400 mg per day. Riboflavin supports energy production in brain cells. At this dose, it’s been shown to reduce migraine frequency over a period of several months. Your urine will turn bright yellow, which is harmless.
  • CoQ10: 300 mg per day. This antioxidant supports mitochondrial function in brain cells. Research has found it reduces migraine frequency in adults at this dose.

Give any of these at least two to three months before judging whether they’re working. Preventive supplements build their effect gradually, so quitting after a few weeks won’t give you an accurate picture.

Identifying and Managing Your Triggers

Migraine triggers vary from person to person, but large surveys consistently find the same ones at the top. Sleep disturbance is the most common, reported by about 70% of migraine sufferers. Stress follows at roughly 67%, and fatigue at 64%. Among women, menstruation triggers attacks in about 32% of cases.

A headache diary is the most reliable way to identify your personal triggers. Track what you ate, how you slept, your stress level, weather changes, and where you are in your menstrual cycle (if applicable) for at least a month. Patterns usually emerge quickly. Many people discover their triggers are cumulative: one glass of wine after a good night’s sleep might be fine, but the same glass after a short night and a stressful day brings on an attack.

Sleep consistency matters more than sleep duration. Going to bed and waking up at roughly the same time every day, including weekends, is one of the most effective lifestyle changes for reducing migraine frequency. Irregular sleep disrupts the brain’s internal clock, which is deeply connected to migraine pathways.

Wearable Neuromodulation Devices

Several FDA-cleared devices now offer drug-free migraine treatment by delivering mild electrical or magnetic stimulation to nerves involved in migraine pain. These can be used for both acute treatment and prevention, depending on the device.

The most studied options include Cefaly, a small device worn on the forehead that stimulates the trigeminal nerve; gammaCore, a handheld device placed on the neck that stimulates the vagus nerve; and Nerivio, an armband that uses remote electrical stimulation. In a real-world study of over 1,300 Nerivio users, about 59% achieved pain relief within two hours, and 20% were completely pain-free without needing any medication in at least half their attacks.

These devices are prescription items in the United States, so you’ll need a provider to authorize one. They’re worth considering if you experience frequent migraines and want to reduce your medication use, or if medications cause side effects you can’t tolerate.

When Migraines Become Chronic

If you’re experiencing headaches on 15 or more days per month over a three-month period, you meet the criteria for chronic migraine. This is a distinct condition from episodic migraine (fewer than 15 days per month) and typically requires a different treatment approach, including daily preventive medication rather than just treating individual attacks.

Chronic migraine often develops gradually from episodic migraine, frequently driven by medication overuse, undertreated attacks, stress, or sleep disorders. The transition isn’t inevitable. Keeping episodic migraines well-controlled with the strategies above, avoiding overuse of acute medications, and addressing sleep and stress can prevent the shift to chronic patterns.