The fastest way to get rid of a migraine is to take a pain reliever early, reduce sensory input, and apply a cold compress to your head or neck. Timing matters more than almost anything else: treating a migraine within the first 30 to 60 minutes of symptoms, while pain is still mild, dramatically improves your chances of stopping it. Waiting until the pain peaks makes every treatment less effective.
Over-the-Counter Pain Relievers
For most people, an OTC pain reliever taken early is the first line of defense. Not all options work equally well, and the right dose matters.
Ibuprofen at 400 mg is one of the most studied options. In trials involving over 4,000 people, about one in three got meaningful relief within two hours, and about one in seven had complete pain relief in that same window. Naproxen at 500 mg works more slowly but lasts longer, which means you’re less likely to need a second dose. A slightly higher 825 mg dose may be marginally more effective. Acetaminophen at 1,000 mg is a reasonable choice if you can’t take anti-inflammatory drugs due to stomach issues.
The combination of acetaminophen, aspirin, and caffeine (sold as Excedrin Migraine and generics) has some of the strongest evidence behind it and works well as a first choice. The caffeine component helps your body absorb the other ingredients faster and narrows blood vessels in the brain. If you reach for this option, be aware that using it more than two or three days per week can lead to rebound headaches over time.
Cold Compress and Environment
While you wait for medication to kick in, a cold compress can meaningfully reduce pain intensity. Wrap an ice pack or bag of frozen vegetables in a towel and place it on your forehead, temples, or the back of your neck, wherever the pain is worst. Keep it on for 15 minutes, take a 15-minute break, then reapply if needed. Some people prefer heat on the neck to relax tight muscles, and that’s fine too. Protect your skin with a cloth layer either way.
Light and sound make migraines worse on a neurological level, not just because they’re annoying. During a migraine, the brain becomes hypersensitive to sensory input, so bright light and loud noise actively intensify pain. Move to a dark, quiet room if you can. Turn off screens, close blinds, and consider a sleep mask or earplugs. Even reducing light by 50% can make a noticeable difference in how quickly you recover.
Prescription Options
If OTC medications don’t cut it, prescription treatments exist that target migraines specifically rather than just dulling pain signals. Triptans are the most established option. They work by activating serotonin receptors in the brain, which reduces inflammation and constricts dilated blood vessels. Among the triptans, eletriptan tends to provide the fastest and most complete relief at the two-hour mark, followed by rizatriptan and sumatriptan.
A newer class of medications works by blocking a protein called CGRP, which plays a central role in triggering migraine attacks. These drugs don’t constrict blood vessels the way triptans do, making them a better fit for people with heart disease or uncontrolled blood pressure who can’t safely take triptans. Both classes typically provide relief within two hours, though individual response varies. If you’ve been managing migraines with OTC drugs alone and they’re not working, these are worth discussing with your doctor.
What Triggers Migraines
Getting rid of a migraine also means understanding what set it off so you can reduce the frequency of future attacks. Stress is the single biggest trigger, playing a role for nearly 70% of people with migraine. One study found that 50 to 70% of participants had a direct, day-to-day correlation between their stress levels and migraine activity.
Irregular sleep is the second most common trigger. Nearly half of all migraine attacks happen between 4:00 a.m. and 9:00 a.m., which suggests that disruptions in sleep cycles are a major factor. Going to bed and waking up at roughly the same time each day, even on weekends, is one of the most effective preventive steps you can take.
Hormonal changes affect women disproportionately. Women are three times more likely to experience migraines than men, and up to 75% of women with migraines notice attacks clustering around their menstrual period, driven by shifts in estrogen levels.
Caffeine and alcohol are double-edged. Some people find a cup of coffee stops a migraine in its tracks, while others find it triggers one. Red wine often gets blamed, but research shows other types of alcohol trigger migraines just as frequently. Weather changes, particularly storms, high humidity, and shifts in barometric pressure, round out the top triggers. Dehydration from heat is a common and easily preventable contributor.
Supplements That May Reduce Frequency
Three supplements have enough clinical evidence behind them to be recommended by headache specialists for migraine prevention. They 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 blood vessel function, and people with migraines tend to have lower levels.
- Riboflavin (vitamin B2): 400 mg per day. This is well above the amount in a typical multivitamin. It supports energy production in brain cells.
- CoQ10: 300 mg per day. Research has found this dose reduces migraine frequency in adults.
These supplements generally take 6 to 12 weeks of consistent daily use before you notice a difference. They’re well tolerated for most people, though magnesium can cause loose stools at higher doses.
When a Headache Isn’t Just a Migraine
Most migraines, while miserable, aren’t dangerous. But certain features signal something more serious that needs immediate evaluation. A sudden-onset headache that reaches maximum intensity within seconds, sometimes called a thunderclap headache, can indicate a vascular emergency like a brain aneurysm and requires an ER visit right away.
Other warning signs include a headache accompanied by fever, neck stiffness, or night sweats. New neurological symptoms like weakness in an arm or leg, numbness you’ve never had before, or sudden vision changes alongside a headache also warrant urgent attention. A headache that clearly worsens when you change position (standing to lying down) or that’s triggered by coughing or straining can point to a pressure problem inside the skull.
If you’re over 50 and experiencing a new type of headache for the first time, or if your existing headaches are progressively getting worse in severity or frequency over weeks, these patterns are more likely to have a secondary cause that needs investigation.

