Most headaches respond well to a combination of over-the-counter pain relief, water, and rest. The fastest option is usually an anti-inflammatory like ibuprofen, which can cut headache pain significantly within one to two hours. But the best approach depends on what’s causing your headache, and several non-drug strategies can speed up relief or work on their own.
Over-the-Counter Pain Relievers
Three common options sit on pharmacy shelves: ibuprofen, acetaminophen, and aspirin. All three work for headaches, but they aren’t identical. Acetaminophen reaches its peak blood levels within 30 to 60 minutes, so it tends to kick in a bit faster. Ibuprofen peaks at one to two hours but provides stronger overall relief. In clinical studies, ibuprofen was twice as likely as acetaminophen to fully stop a headache within two hours.
Aspirin works similarly to ibuprofen as an anti-inflammatory. A combination of aspirin, acetaminophen, and caffeine (sold as Excedrin and store-brand equivalents) is one of the most effective over-the-counter options for headaches, including migraines. Clinical guidelines rate it alongside prescription medications for short-term migraine treatment.
Caffeine is the key ingredient that boosts those combination products. Doses of at least 100 to 150 mg (roughly one strong cup of coffee) meaningfully improve how well pain relievers work. If you don’t have a combination product on hand, taking your pain reliever with a cup of coffee or tea can have a similar effect.
Drink Water First
Dehydration is one of the most overlooked headache triggers. Even mild dehydration, the kind you get from skipping water for a few hours on a busy day, can bring on a dull, pressing headache. The fix is straightforward: drink one to two glasses of water and rest for a bit. A dehydration headache typically eases within a few hours of rehydrating. If it persists beyond that, something else is likely going on.
As a baseline, aim for six to eight glasses of water a day (roughly 1.5 to 2 liters). You’ll need more if you’re exercising, drinking alcohol, or spending time in heat.
Cold Compress on the Forehead or Neck
Placing something cold on your forehead, temples, or the back of your neck can dull headache pain surprisingly well. A bag of frozen peas wrapped in a towel, a cold washcloth, or a gel ice pack all work. Keep it on for no more than 20 minutes at a time, with breaks in between. Cold narrows blood vessels near the skin and reduces the sensation of throbbing, which is why it tends to work best for migraines and tension headaches that pulse.
Heat packs work better for headaches driven by tight neck and shoulder muscles. If your headache starts at the base of your skull and radiates upward, a warm towel on your neck and shoulders may loosen the tension causing it.
Rest in a Quiet, Dark Room
Light and noise make most headaches worse, especially migraines. If you can step away from screens and lie down in a dim, quiet space for 20 to 30 minutes, that alone can bring the pain down a notch. This is particularly effective when combined with a cold compress and pain reliever. Sleep is one of the most reliable headache enders. Many migraines resolve completely after even a short nap.
When Headaches Keep Coming Back
If you get frequent headaches (more than a few per month), the strategies above still work for individual episodes, but certain supplements can reduce how often headaches strike in the first place. The American Headache Society recommends 400 to 500 mg of magnesium oxide daily. Studies have found that people with frequent headaches often have lower magnesium levels, and supplementing can meaningfully reduce attack frequency. Vitamin B2 (riboflavin) at 400 mg per day and CoQ10 at 300 mg per day have also shown effectiveness for prevention. These supplements take weeks to build up, so they’re a long-term strategy rather than a quick fix.
One critical thing to watch: using pain relievers too often can actually cause more headaches. This is called medication overuse headache, and it’s more common than most people realize. The threshold is lower than you might expect. Using simple painkillers like ibuprofen or acetaminophen more than 15 days a month puts you at risk. For combination products (like aspirin-acetaminophen-caffeine), the limit is even lower, around 9 to 10 days per month. If you find yourself reaching for pain relievers that frequently, the medication itself may be perpetuating the cycle.
For Migraines Specifically
Migraines are a different animal from tension headaches. They typically involve throbbing pain on one side, sensitivity to light and sound, and sometimes nausea. Over-the-counter options like ibuprofen and the aspirin-acetaminophen-caffeine combination are reasonable first steps. But if those don’t provide adequate relief, prescription medications called triptans are the standard treatment. They work by targeting the specific brain pathways involved in migraine attacks and are significantly more effective than general pain relievers for true migraines. Newer prescription options called gepants take a different approach and are an alternative for people who can’t use triptans.
Timing matters with migraines. Any treatment works better the earlier you take it. If you recognize the early signs of a migraine (visual changes, a feeling of “something coming on,” neck stiffness), treating immediately rather than waiting for full-blown pain makes a real difference.
Headaches That Need Immediate Attention
The vast majority of headaches are harmless, but a few patterns warrant urgent evaluation. A sudden-onset headache that hits maximum intensity within seconds (sometimes called a thunderclap headache) is the most concerning. It can signal a vascular emergency like a brain aneurysm and should be evaluated in an emergency room right away.
Other red flags include:
- Neurological symptoms like new weakness in an arm or leg, numbness, or vision changes that aren’t typical for you
- Headache with fever, night sweats, or unexplained weight loss, which can point to an infection or other systemic illness
- A new headache pattern after age 50, which is more likely to have a secondary cause
- Headaches that are clearly getting worse over weeks, becoming more severe or more frequent in a steady progression
- Headaches that change with position, noticeably worsening when you stand up, lie down, or strain (coughing, bearing down)
- New headache during or shortly after pregnancy
If none of these apply and your headache follows a familiar pattern, the combination of hydration, a pain reliever, caffeine, and rest in a dark room covers the most effective strategies available.