What Medicine Is Best for Each Headache Type?

The best medicine for a headache depends on what type of headache you’re dealing with. For the most common type, a tension headache, ibuprofen at 400 mg outperforms acetaminophen at 1,000 mg, delivering complete pain relief for nearly twice as many people. But migraines, cluster headaches, and sinus headaches each respond to different treatments, so getting the right answer starts with identifying what you actually have.

Tension Headaches: Ibuprofen Has the Edge

Tension headaches feel like a band of pressure around your head, usually on both sides. They’re the most common headache type, and over-the-counter pain relievers are the standard treatment. Both ibuprofen and acetaminophen work, but head-to-head trials show ibuprofen consistently performs better.

In one clinical trial comparing 400 mg of ibuprofen against 1,000 mg of acetaminophen, 63% of people in the ibuprofen group were completely pain-free, compared with just 34% in the acetaminophen group. Ibuprofen also kicked in faster: people noticed initial relief at about 39 minutes versus 47 minutes for acetaminophen, and meaningful relief came at 39 minutes versus 53 minutes.

That said, acetaminophen is still a reasonable choice if you can’t take anti-inflammatory drugs due to stomach issues, kidney concerns, or blood-thinning medications. It simply doesn’t work as well or as quickly for most people with tension headaches.

Migraines Need a Different Approach

Migraines are more than a bad headache. They produce moderate to severe throbbing pain, often on one side of your head, and commonly come with nausea, sensitivity to light and sound, or visual disturbances beforehand. They can last a full day or longer and tend to be more common in women after puberty.

Over-the-counter pain relievers can help mild migraines if you take them early. But for moderate to severe attacks, prescription medications called triptans have been the gold standard for decades. They work by narrowing blood vessels around the brain and blocking pain signals. The catch is that triptans constrict blood vessels, which makes them off-limits for people with heart disease, uncontrolled high blood pressure, or a history of stroke.

A newer class of prescription medications (gepants) offers an alternative. These drugs block a pain-signaling molecule involved in migraines without any blood vessel constriction. Two oral versions were approved in 2019 and 2020, and they provide rapid pain relief with a much safer cardiovascular profile. If you get migraines and have been told you can’t use triptans, these are worth discussing with your provider.

Is It Really a Sinus Headache?

Many people who think they have sinus headaches actually have migraines. True sinus headaches produce mild to moderate steady pain across the bridge of your nose or cheeks, along with nasal congestion and postnasal drip. They’re usually seasonal and tied to allergies or infection. If your “sinus headache” comes with throbbing pain, nausea, or light sensitivity, it’s more likely a migraine, and sinus medication won’t help much.

Cluster Headaches Are a Special Case

Cluster headaches are rare but extremely intense. They strike quickly, usually around one eye, and last anywhere from 15 minutes to a few hours. They come in clusters over weeks or months, sometimes multiple times a day. Standard painkillers like ibuprofen or acetaminophen are too slow to help because the attack often peaks before the pill kicks in.

The two primary treatments are high-flow oxygen therapy and injectable sumatriptan (a fast-acting triptan delivered by injection rather than pill). Breathing pure oxygen through a mask for about 20 minutes can abort an attack with virtually no side effects and no drug interaction concerns. The American Headache Society ranks oxygen as a first-line treatment, and every major international guideline agrees. If you’re experiencing recurring headaches that fit this pattern, getting a proper diagnosis opens the door to treatments that actually work.

How to Avoid Making Headaches Worse

One of the biggest risks with headache medication is using it too often. Taking any combination of pain relievers on 10 or more days per month for three months or more can trigger medication-overuse headache, a cycle where the drugs themselves start causing daily or near-daily head pain. For simple analgesics like ibuprofen or acetaminophen used alone, the threshold is 15 days per month. For combination products or mixed drug classes, it drops to 10 days.

If you find yourself reaching for pain relievers more than two or three days a week, that’s a signal to look into preventive strategies rather than continuing to treat each individual episode.

Preventing Frequent Headaches

For people who get headaches regularly, daily supplements can reduce how often they occur. Riboflavin (vitamin B2) at 400 mg per day has evidence behind it for migraine prevention, as endorsed by the American Headache Society. It takes several weeks of consistent use to see results, but it’s inexpensive and well tolerated. Magnesium and CoQ10 are also commonly recommended, though the evidence is less precisely defined.

Lifestyle factors matter too. Consistent sleep, regular meals, adequate hydration, and stress management reduce headache frequency for many people. These aren’t glamorous solutions, but they address the triggers that medication can only react to after the fact.

Acetaminophen Safety Limits

If you use acetaminophen, pay close attention to your total daily intake. The absolute ceiling is 4,000 mg in 24 hours, beyond which the risk of serious liver damage rises sharply. For extra-strength formulations, the manufacturer recommends a lower cap of 3,000 mg per day. The danger is compounded by the fact that acetaminophen is an ingredient in dozens of products, from cold medicines to sleep aids. If you’re taking more than one product, check every label to make sure you aren’t doubling up.

Headache Medicine for Children

Both ibuprofen and acetaminophen are appropriate for children’s headaches, but dosing must be based on the child’s weight, not just age. Liquid acetaminophen is typically available as 160 mg per 5 mL, and it can be given every four hours for children under 12, with a maximum of five doses in 24 hours. Extra-strength products (500 mg) should not be given to children under 12, and extended-release formulations (650 mg) are not appropriate for anyone under 18. Children under 2 should not receive acetaminophen without guidance from a pediatrician.