What Is the Best Medicine for a Headache, by Type?

The best medicine for a headache depends on the type of headache you’re dealing with. For a standard tension headache, ibuprofen and acetaminophen are both effective first-line options, with ibuprofen having a slight edge at the two-hour mark. For migraines, a combination of acetaminophen, aspirin, and caffeine outperforms any single ingredient. And for severe or recurring migraines, prescription medications called triptans are the gold standard.

Tension Headaches: Ibuprofen vs. Acetaminophen

Most headaches are tension-type headaches, that band-like pressure across your forehead or the back of your head. Both ibuprofen and acetaminophen work well here, and a large review of 14 studies covering over 6,500 people found no statistically significant difference between the two. That said, the data shows some nuance worth knowing.

Acetaminophen tends to work slightly faster, showing better pain-free rates at one hour. Ibuprofen pulls ahead at the two-hour mark. Interestingly, people who took acetaminophen were less likely to need a second dose of medication to finish the job. In practice, either one is a solid choice for an ordinary headache.

The deciding factor is often your own health profile. If you have kidney problems or a history of stomach bleeding, acetaminophen is the safer pick. If you have liver concerns or drink alcohol regularly, ibuprofen may be preferable. For most healthy adults, it comes down to what you respond to best.

Migraines: Why Combination Pills Work Better

If your headache comes with throbbing pain, nausea, or sensitivity to light and sound, you’re likely dealing with a migraine. A single pain reliever often isn’t enough. The most effective over-the-counter option is a combination of acetaminophen (250 mg), aspirin (250 mg), and caffeine (65 mg) per tablet, taken as two tablets. This is the formula in Excedrin Migraine and its generic equivalents.

In three pooled clinical trials published in JAMA Neurology, 59% of patients who took this combination had their pain reduced to mild or none within two hours, compared to 33% on placebo. By six hours, 79% of treated patients had significant relief. The combination also improved nausea, light sensitivity, and sound sensitivity, with measurable improvement beginning at just 30 minutes. Caffeine is the key multiplier here. It narrows blood vessels in the brain and helps your body absorb the other two ingredients faster.

Prescription Options for Severe Migraines

When over-the-counter options fall short, triptans are the primary prescription treatment for acute migraines. They work by targeting serotonin receptors in the brain, which narrows dilated blood vessels and blocks pain signals from being transmitted through the trigeminal nerve, the main pain pathway involved in migraines.

Several versions exist, and they differ mainly in speed and duration. The fastest-acting oral option, rizatriptan, starts working in about 30 minutes but wears off relatively quickly and has a higher chance of the headache returning within 24 hours. On the other end, frovatriptan takes longer to kick in but lasts much longer, with a recurrence rate as low as 7% to 25%. If one triptan doesn’t work for you after three attempts, switching to a different one often helps.

Triptans aren’t appropriate for everyone. They’re not recommended during pregnancy, for people with uncontrolled high blood pressure, or for those with a history of stroke or vascular disease.

Cluster Headaches Need Different Treatment

Cluster headaches are a different beast entirely: intense, stabbing pain usually behind one eye, lasting 15 minutes to three hours, and occurring in clusters over weeks or months. Standard pain relievers are too slow to help.

The fastest relief comes from inhaling pure oxygen through a mask at high flow rates (14 to 15 liters per minute), which provides complete relief for most people within minutes. Injectable sumatriptan (a triptan delivered under the skin) is the other go-to acute treatment, with a 6 mg dose recommended specifically for cluster attacks. Nasal spray sumatriptan also works, with a 57% response rate at 30 minutes compared to 26% for placebo.

For people who get frequent clusters, a daily preventive medication is typically added. Verapamil, a blood pressure medication, is considered the standard preventive treatment for both episodic and chronic cluster headaches under European guidelines.

Daily Dosage Limits That Matter

Taking too much of any headache medication creates its own risks. For acetaminophen, the traditional maximum is 4,000 mg per day, but the FDA has suggested reducing that to 3,000 to 3,250 mg. The maker of Tylenol voluntarily lowered its recommended maximum to 3,000 mg per day. Exceeding these limits, especially combined with alcohol, can cause serious liver damage. Keep in mind that acetaminophen hides in dozens of other products, from cold medicines to sleep aids, so it’s easy to take more than you realize.

For ibuprofen, the standard over-the-counter maximum is 1,200 mg per day (three doses of 400 mg). Higher doses are sometimes prescribed by doctors but increase the risk of stomach bleeding and kidney problems, particularly with long-term use.

The Rebound Headache Trap

One of the most common causes of chronic daily headaches is, paradoxically, taking headache medicine too often. This is called medication overuse headache, and it can develop with any pain reliever. The general rule: keep simple painkillers to fewer than 15 days per month. Triptans and combination medications have an even lower threshold and should be limited to fewer than 9 days per month. If you find yourself reaching for headache medicine more than twice a week, that pattern itself needs attention.

Breaking the cycle usually means stopping the overused medication, which temporarily makes headaches worse before they improve. This is one of those situations where working with a doctor to develop a prevention strategy pays off significantly.

Supplements That Help Prevent Headaches

If you get frequent migraines, two supplements have enough evidence behind them to be formally recommended for prevention. Magnesium helps regulate nerve signaling and blood vessel tone, and it’s particularly useful for people whose migraines come with aura. Riboflavin (vitamin B2) supports energy production in brain cells and has shown benefit in reducing migraine frequency in adults. Both are well-tolerated, with magnesium occasionally causing mild digestive side effects.

These supplements work as preventives, not as acute treatments. You take them daily, and the benefits build over weeks. They won’t stop a headache that’s already started.

Headaches in Children and Teens

For children, ibuprofen is considered first-line for acute headaches and migraines, dosed by weight at 7.5 to 10 mg per kilogram. Acetaminophen is the alternative at 10 to 20 mg per kilogram. Neither should exceed 1,000 mg per dose. To avoid medication overuse headache in children, limit treatment to no more than 3 days per week.

One critical safety note: aspirin-containing products, including Excedrin, should not be given to anyone under 16 due to the risk of Reye syndrome, a rare but serious condition affecting the liver and brain. For children aged 6 and older with migraines that don’t respond to standard pain relievers, rizatriptan is the one triptan with established evidence of effectiveness in pediatric patients.

Red Flags Worth Knowing

Most headaches are harmless, but certain patterns signal something more serious. A sudden, explosive headache that peaks within seconds (often called a thunderclap headache) needs emergency evaluation. The same applies to headaches accompanied by fever, confusion, vision changes, weakness on one side of the body, or a stiff neck. A headache that keeps getting worse over days or weeks, one that changes dramatically from your usual pattern, or a new headache starting after age 65 all warrant medical investigation. Headaches that come on after a head injury, during pregnancy, or that worsen with coughing, sneezing, or straining also fall into this category.