For most headaches, an over-the-counter pain reliever like ibuprofen, acetaminophen, or naproxen will do the job. Ibuprofen at 400 mg tends to work faster and more effectively than acetaminophen at 1,000 mg for tension headaches, the most common type. But the best choice depends on how often you get headaches, what kind they are, and what other health conditions you have.
Ibuprofen, Acetaminophen, and Naproxen Compared
Ibuprofen (Advil, Motrin) and naproxen (Aleve) are anti-inflammatory drugs, while acetaminophen (Tylenol) works differently by reducing pain signals in the brain without targeting inflammation. In head-to-head clinical trials, 400 mg of ibuprofen provided better pain relief than 1,000 mg of acetaminophen, and patients felt relief about 8 minutes sooner (39 minutes vs. 47 minutes). Naproxen at higher doses also outperformed acetaminophen, though at lower doses the two were roughly equivalent. Aspirin at 650 mg performed about the same as 1,000 mg of acetaminophen.
That said, none of these are miracle workers. Only about 17 to 22% of people taking acetaminophen for a tension headache are completely pain-free at the two-hour mark. Even the strongest OTC option in trials, a 50 mg dose of ketoprofen (available in some countries without a prescription), only got 32% of people to pain-free status. These medications take the edge off and gradually reduce pain, but you shouldn’t expect instant, total relief.
How Long Each One Lasts
Both ibuprofen and naproxen start working within 30 to 60 minutes. The key difference is duration. Ibuprofen provides 4 to 6 hours of relief, so you may need to redose during the day. Naproxen lasts up to 12 hours, making it a better choice if you want one dose to carry you through most of the day. Acetaminophen also kicks in within 30 to 60 minutes with a duration similar to ibuprofen.
Combination Products for Migraines
If your headache is a migraine, or you’re not sure, combination products like Excedrin Migraine pack three active ingredients into one dose: 250 mg of acetaminophen, 250 mg of aspirin, and 65 mg of caffeine. The caffeine isn’t just a bonus. A large Cochrane review found that adding caffeine to a pain reliever gets an additional 5% to 10% of people to meaningful relief compared to the pain reliever alone. That’s a modest but real improvement, and it’s why caffeine shows up in so many headache formulas.
You can get a similar effect by taking your regular pain reliever with a cup of coffee or tea, though the dose of caffeine will be less precise.
Who Should Avoid NSAIDs
Ibuprofen, naproxen, and aspirin all belong to the NSAID family, and they’re not safe for everyone. The National Kidney Foundation recommends that people with chronic kidney disease avoid NSAIDs entirely, especially if kidney function is below a certain threshold. NSAIDs should also be avoided if you have liver disease, heart failure, high blood pressure, or if you’re taking blood pressure medications like ACE inhibitors or diuretics. For these groups, acetaminophen is the safer choice.
Aspirin carries an additional warning: it should not be given to anyone under 19 due to the risk of Reye’s syndrome, a rare but serious condition that can cause brain damage.
Daily Limits That Matter
The FDA sets the maximum adult dose of acetaminophen at 4,000 mg per day across all products you’re taking. This is important because acetaminophen hides in cold medicines, sleep aids, and combination products. Exceeding this limit can cause serious liver damage. Many doctors suggest staying below 3,000 mg to be safe, especially if you drink alcohol. For ibuprofen, the standard OTC limit is 1,200 mg per day (three doses of 400 mg).
Medication Overuse Headaches
If you’re reaching for pain relievers regularly, there’s an ironic risk: the medication itself can start causing headaches. The International Headache Society defines medication overuse headache as headaches occurring 15 or more days per month in someone who has been using acute pain medications on 10 to 15 days per month (depending on the specific drug) for more than three months. The cycle is hard to recognize because the obvious response to a headache is to take more medication.
As a general rule, if you’re using headache medication more than two or three days a week on a regular basis, it’s worth talking to a provider about prevention strategies instead.
Non-Medication Approaches
Some headaches respond to simpler interventions. Tension headaches in particular are often driven by sustained posture problems. Staring down at a phone, working on a laptop for hours, or driving long distances without breaks overstretches and weakens the muscles at the back of your neck, making you more prone to headaches. Taking regular breaks and adjusting your workstation so your screen is at eye level can make a real difference over time.
Sleep position also plays a role. Sleeping on your back or on your side with your neck in a neutral position (not bent forward by a pillow that’s too thick) helps reduce morning headaches. Dehydration is another common trigger that’s easy to overlook, especially if your headache started on a day when you skipped water in favor of coffee.
Supplements for Frequent Headaches
If you get headaches frequently, particularly migraines, two supplements have enough evidence behind them to be recommended by the American Headache Society. Magnesium oxide at 400 to 500 mg daily and riboflavin (vitamin B2) at 400 mg daily are both used for prevention, not acute relief. These are slow-burn strategies. You won’t feel a difference after one dose, but over weeks to months, they can reduce how often headaches occur. They’re generally well tolerated, though magnesium can cause loose stools at higher doses.
Red Flags Worth Knowing
Most headaches are harmless, but certain patterns signal something more serious. A sudden, explosive headache that hits maximum intensity within seconds, sometimes called a thunderclap headache, can indicate a vascular emergency like an aneurysm and needs immediate evaluation. New neurological symptoms alongside a headache, such as weakness in an arm or leg, new numbness, or vision changes, are also concerning.
Other warning signs include headaches that are clearly getting worse over weeks, a first-ever severe headache after age 50, headaches that change with position (worse when standing or lying down), headaches triggered by coughing or straining, and headaches accompanied by fever or unexplained weight loss. A new headache during or shortly after pregnancy also warrants a medical evaluation for conditions like blood pressure complications.

