The best headache medicine depends on what type of headache you’re dealing with. For the most common type, tension headaches, ibuprofen (Advil, Motrin), naproxen sodium (Aleve), aspirin, and acetaminophen (Tylenol) are all effective first-line options. Combination products that pair a pain reliever with caffeine, like Excedrin, tend to work better than single-ingredient versions. For migraines and cluster headaches, you’ll likely need something stronger or more targeted.
Best Options for Tension Headaches
Tension headaches account for the majority of headaches most people experience. They feel like a band of pressure around the head, sometimes extending into the neck and shoulders. Over-the-counter pain relievers are the standard treatment, and the four main options are ibuprofen, naproxen sodium, aspirin, and acetaminophen.
Ibuprofen and acetaminophen perform similarly in the first hour after taking them, with both roughly three to four times more effective than a placebo at relieving headache pain. By the two-hour mark, ibuprofen tends to pull slightly ahead. One clinical trial published in the journal Neurology found ibuprofen was about twice as likely as acetaminophen to completely stop a headache within two hours. That said, the overall difference between the two is modest, and either works well for most people.
Combination medications that include caffeine alongside a pain reliever (like Excedrin, which combines acetaminophen, aspirin, and caffeine) are often more effective than any single ingredient alone. Caffeine helps your body absorb pain relievers faster and has mild pain-relieving properties of its own.
How Ibuprofen and Acetaminophen Compare
The biggest practical difference between these two isn’t effectiveness. It’s how they interact with your body. Ibuprofen, naproxen, and aspirin are all NSAIDs (nonsteroidal anti-inflammatory drugs). They reduce inflammation, which makes them especially useful when a headache involves swollen or irritated tissues. But they can irritate the stomach lining. Research shows that regular NSAID use increases the risk of upper gastrointestinal bleeding by about four times compared to not taking them at all. That risk jumps dramatically if you also take corticosteroids, blood thinners, or certain antidepressants (SSRIs).
Acetaminophen is gentler on the stomach but works differently. It reduces pain signals without addressing inflammation. It’s the better choice if you have a history of stomach ulcers, acid reflux, or kidney concerns. The key safety limit: never exceed 4,000 milligrams (4 grams) of acetaminophen in a 24-hour period, as higher amounts can cause serious liver damage. This includes acetaminophen hidden in combination products, cold medicines, and sleep aids.
Naproxen sodium (Aleve) lasts longer than ibuprofen, typically 8 to 12 hours per dose versus 4 to 6 hours. If you want fewer pills throughout the day, naproxen is a reasonable choice, though it carries the same stomach risks as other NSAIDs.
When It’s a Migraine, Not a Tension Headache
Migraines are a different condition entirely, and they often don’t respond well to standard OTC pain relievers alone. If your headache comes with throbbing pain on one side, sensitivity to light or sound, nausea, or visual disturbances, you’re likely dealing with a migraine.
OTC options can still help if you take them early, ideally within the first 30 minutes of symptoms. Ibuprofen or a combination product with caffeine works best at this stage. But if your migraines are moderate to severe or don’t respond to OTC treatment, prescription medications called triptans (like sumatriptan) are the standard next step. These target the specific nerve pathways involved in migraine and work in a fundamentally different way than general pain relievers.
A newer class of prescription medications targets a protein called CGRP, which plays a central role in migraine attacks. The American Headache Society now considers these a first-line option for migraine prevention, meaning they’re taken regularly to reduce how often migraines occur rather than treating individual attacks.
Sinus Headaches Are Usually Migraines
If you frequently reach for sinus headache products, it’s worth reconsidering the diagnosis. True sinus headaches are rare. They’re caused by an active viral or bacterial sinus infection and come with thick, discolored nasal discharge, reduced sense of smell, and sometimes fever. The pain resolves within about a week of the infection clearing.
Many people who think they have sinus headaches actually have migraines. The nerves activated during a migraine attack are the same ones that supply the sinuses, eyes, and ears. This means migraines can cause congestion, a runny nose, and facial pressure that feels exactly like a sinus problem. If your “sinus headaches” keep coming back without signs of infection, treating them as migraines is likely to work better.
Cluster Headaches Need Specialized Treatment
Cluster headaches are intense, one-sided headaches that strike suddenly and can last 15 minutes to three hours. They’re far less common than tension headaches or migraines, but they’re among the most painful conditions in medicine. Standard OTC pain relievers don’t work fast enough to help.
The most effective acute treatment is breathing pure oxygen through a mask at a high flow rate, which provides relief within about 15 minutes for most people. An injectable form of sumatriptan given at the onset of an attack is another first-line option. Nasal spray versions of triptans also work, though not as quickly as the injection. All of these require a prescription and a proper diagnosis.
The Rebound Headache Trap
One of the most important things to know about headache medicine is that using it too often can actually cause more headaches. This is called medication overuse headache, and it creates a frustrating cycle: the headache returns as each dose wears off, prompting you to take more medicine, which makes the pattern worse.
The thresholds are lower than most people expect. For simple pain relievers like acetaminophen, ibuprofen, or naproxen, using them on more than 15 days per month puts you at risk. For combination products containing caffeine, triptans, or opioids, the threshold drops to just 10 days per month. A safe general rule is to limit headache medications to no more than two to three days per week.
If you find yourself reaching for pain relievers that often, it’s a sign you need a preventive approach rather than just treating each headache as it comes.
Supplements That Reduce Headache Frequency
For people who get frequent headaches or migraines, a few supplements have solid evidence behind them for prevention. These won’t stop a headache that’s already happening, but taken daily, they can reduce how many you get.
- Magnesium oxide: 400 to 500 milligrams per day, recommended by the American Headache Society for migraine prevention. Many people with frequent migraines have low magnesium levels.
- Riboflavin (vitamin B2): 400 milligrams per day. This is far higher than the amount in a standard multivitamin, so you’ll need a standalone supplement.
- CoQ10: 300 milligrams per day has been shown to reduce migraine frequency in adults.
These supplements typically take 6 to 12 weeks of consistent daily use before you notice a difference. They’re generally well-tolerated, with magnesium’s main side effect being loose stools at higher doses.
Choosing the Right Medicine for Your Situation
For an occasional tension headache, ibuprofen is a strong default choice. It’s slightly more effective than acetaminophen at the two-hour mark and addresses inflammation. If you have stomach sensitivity, switch to acetaminophen. If you want longer-lasting relief from a single dose, try naproxen sodium.
For headaches that come with nausea, light sensitivity, or throbbing one-sided pain, try a combination OTC product with caffeine at the very first sign of symptoms. If that’s not enough, prescription triptans or newer CGRP-targeting medications are the next tier. If you’re getting headaches more than a few times a month, shifting your focus from acute treatment to prevention with supplements or prescription preventives will do more for your quality of life than any single pill.