The best pain reliever for a headache depends almost entirely on what kind of headache you’re dealing with. For the most common type, a tension headache, over-the-counter options like ibuprofen and acetaminophen both work well, with ibuprofen holding a slight edge in head-to-head comparisons at standard doses. For migraines, those same drugs can help mild attacks, but moderate-to-severe episodes often need prescription medications called triptans. Cluster headaches are a different animal altogether and rarely respond to ordinary painkillers. The honest answer is that no single pill is universally “best,” and choosing the wrong one for your situation can mean suffering longer than you need to.
Tension Headaches and the OTC Workhorses
Tension-type headaches account for the majority of headaches most people experience. That dull, band-like pressure across both sides of your head is the classic version. For these, the standard first-line choices are ibuprofen, other anti-inflammatory drugs, and acetaminophen (paracetamol outside the U.S.). Both classes are considered safe, cheap, and effective for episodic tension headaches.1PubMed Central. Debate: differences and similarities between tension-type headache and migraine
A systematic review and network meta-analysis comparing the two found that ibuprofen was slightly better at eliminating pain completely within two hours, while acetaminophen actually worked a bit faster within the first hour. The overall statistical difference between them was not significant, meaning both are reasonable choices.2Scientific Reports. Paracetamol versus ibuprofen in treating episodic tension-type headache: a systematic review and network meta-analysis A separate network meta-analysis that ranked multiple analgesics for tension headache found ibuprofen at the top, followed by diclofenac potassium and ketoprofen, with acetaminophen in the middle and naproxen trailing at the bottom.3PubMed Central. Efficacy and safety of simple analgesics for acute treatment of episodic tension-type headache in adults: a network meta-analysis
Does that mean you should always reach for ibuprofen? Not necessarily. An older meta-analysis found no real efficacy difference between low-dose anti-inflammatory drugs and acetaminophen for tension headaches. Higher-dose anti-inflammatories did perform better, but they also came with more side effects.4PubMed Central. A Comparison of Efficacy and Safety of Non-steroidal Anti-inflammatory Drugs versus Acetaminophen in the Treatment of Episodic Tension-type Headache: A Meta-analysis of Randomized Placebo-controlled Trial Studies So for most people with a run-of-the-mill tension headache, either drug at a standard dose will get the job done. Your stomach, your medical history, and what you have in the medicine cabinet can reasonably break the tie.
Why Adding Caffeine Makes a Difference
If you’ve ever noticed that Excedrin works better than plain aspirin or acetaminophen, caffeine is a big part of why. A Cochrane review covering thousands of patients found that adding at least 100 mg of caffeine to a standard painkiller boosted the proportion of people who got good pain relief by roughly 5% to 10%.5PubMed Central. Caffeine as an analgesic adjuvant for acute pain in adults That effect was consistent across different painkillers and pain types, including headaches.
For ibuprofen specifically, a trial found that combining it with caffeine provided greater total pain relief, faster meaningful improvement, and higher rates of complete headache resolution compared to ibuprofen alone, caffeine alone, or placebo.6PubMed. Ibuprofen plus caffeine in the treatment of tension-type headache A similar pattern holds for acetaminophen plus caffeine, where the caffeine appears to speed up absorption and amplify pain relief in people with primary headaches, without adding meaningful safety concerns.7PubMed Central. Paracetamol and Caffeine Combination in Pain Management: A Narrative Review
One thing worth noting: that 100 mg of caffeine is roughly the amount in a small cup of coffee. If you’re already a regular coffee drinker, you’re effectively getting a caffeine-combination effect any time you take a painkiller with your morning cup. Conversely, if you’re caffeine-sensitive or trying to cut back, be aware that combination products like Excedrin contain caffeine that can interfere with sleep or trigger jitteriness.
When You Need More Than an OTC Pill
Migraines are not just bad headaches. They involve a cascade of neurological events that can bring throbbing one-sided pain, nausea, light sensitivity, and sometimes visual disturbances called aura. Standard painkillers can handle mild migraine attacks, but for moderate-to-severe episodes, prescription medications called triptans are the established first choice. A network meta-analysis comparing anti-inflammatory drugs and triptans head-to-head found that certain triptans, particularly eletriptan and rizatriptan, were more effective for pain relief than ibuprofen or aspirin.8PubMed Central. Network meta-analysis of migraine disorder treatment by NSAIDs and triptans
Over the past few years, newer migraine-specific drugs have arrived. These include gepants (like rimegepant and ubrogepant) and ditans (like lasmiditan), which work through different pathways than triptans. A large comparison study found that most triptans still outperformed these newer agents for achieving complete pain freedom at two hours. However, the gepants had a notably better side-effect profile, with lower rates of adverse events than several triptans.9PubMed Central. Comparison of New Pharmacologic Agents With Triptans for Treatment of Migraine That trade-off matters especially for people who can’t tolerate triptans or who have cardiovascular concerns that make triptans risky.
Cluster Headaches Play by Different Rules
Cluster headaches are among the most painful conditions a person can experience, often described as a hot poker through the eye. They strike fast, peak quickly, and typically last 15 minutes to three hours. Standard painkillers are essentially useless here because they take too long to kick in. The go-to treatments are injectable sumatriptan and high-flow oxygen, both of which can cut an attack short in minutes.
A study comparing the main acute treatments found that subcutaneous sumatriptan at 6 mg was significantly more effective than both oxygen and zolmitriptan nasal spray.10PubMed Central. Effectiveness of medication in cluster headache An international survey of cluster headache patients confirmed that over half reported complete or very effective relief from both triptans and oxygen.11PubMed Central. Effectiveness of Oxygen and Other Acute Treatments for Cluster Headache: Results From the Cluster Headache Questionnaire, an International Survey A Cochrane review found that high-flow oxygen delivered at 12 liters per minute produced effective pain relief in about 78% of patients within 15 minutes, compared to 20% with placebo.12Cochrane Database of Systematic Reviews. Triptans for acute cluster headache
If you’re reaching for ibuprofen during a cluster attack, you’re wasting time. These headaches require specific treatment, and getting a proper diagnosis from a neurologist or headache specialist is critical because many people with cluster headache go years being treated for the wrong condition.
The Safety Trade-Offs People Overlook
Every headache drug has a downside, and the frequency with which you take it matters as much as which one you pick. People tend to think of over-the-counter painkillers as harmless, but repeated use brings real risks.
Anti-inflammatory drugs like ibuprofen, aspirin, and naproxen all carry risks for your stomach, kidneys, and cardiovascular system.13PubMed. Minimizing risks of NSAIDs: cardiovascular, gastrointestinal and renal The stomach risk is the one most people know about, but kidney injury is an underappreciated hazard, especially if you’re dehydrated, on blood pressure medication, or have any existing kidney compromise.14Gut. Non-steroidal anti-inflammatory drug (NSAID) therapy in patients with hypertension, cardiovascular, renal or gastrointestinal comorbidities: joint APAGE/APLAR/APSDE/APSH/APSN/PoA recommendations These risks increase with higher doses and longer use, and they can be compounded by interactions with other common medications, including blood thinners and certain antidepressants.15PubMed Central. Adverse drug reactions and drug-drug interactions with over-the-counter NSAIDs
Acetaminophen is easier on the stomach and kidneys, which is exactly why many people default to it. But the liver is where acetaminophen’s danger lies. It’s broken down in the liver, and in excess, it generates a toxic byproduct that can overwhelm the organ’s defenses.16PubMed Central. Acetaminophen-Induced Hepatotoxicity: a Comprehensive Update This risk is dose-dependent, but there are reported cases of liver failure even at doses within the recommended daily limit, particularly in people with low body weight, poor nutrition, or alcohol use.17PubMed Central. Acute Liver Failure After Administration of Acetaminophen at the Recommended Daily Dose in an Adult: A Case Report The sneaky part is that acetaminophen hides in dozens of combination products, from cold medicines to sleep aids, so it’s easy to accidentally take more than you realize.
Triptans come with their own concerns. Because they constrict blood vessels, they’ve traditionally been considered off-limits for people with heart disease, prior heart attacks, or significant cardiovascular risk factors.18JAMA Neurology. Risk of Stroke and Myocardial Infarction Among Initiators of Triptans Interestingly, a large retrospective study found no increased cardiovascular event rate among triptan users, even those with cardiovascular risk factors, suggesting the real-world risk may be lower than the theoretical concern.19PubMed Central. Cardiovascular risk and triptan usage among patients with migraine Still, the formal contraindication remains, and the newer gepants offer an alternative that avoids the vasoconstriction issue entirely.
The Trap of Medication Overuse Headaches
Here’s an irony that catches a lot of people off guard: taking headache medication too frequently can itself cause more headaches. This phenomenon, called medication overuse headache, is particularly common in people with migraines who take triptans or opioids regularly, though it can happen with any acute pain medication.20PubMed Central. Medication-Overuse Headache: Update on Management The general guideline is to limit acute headache medication to no more than about 10 to 15 days per month, depending on the drug type. If you find yourself needing painkillers more often than that, the headache pattern has probably shifted, and a preventive approach makes more sense.
The scale of this problem is larger than many people realize. While an estimated 38% of migraine patients would benefit from daily preventive therapy, only about 3% to 13% are actually on one.21PubMed Central. Preventive treatment in migraine and the new US guidelines Preventive medications include blood pressure drugs like propranolol, antidepressants like amitriptyline, anti-seizure drugs like topiramate, and the newer CGRP monoclonal antibodies. These don’t stop a headache once it starts; they reduce how often headaches happen in the first place. If you’re reaching for painkillers more than twice a week, it’s worth talking to a doctor about whether prevention could reduce your reliance on acute treatment.
Headache Relief During Pregnancy
Pregnant women face a particularly frustrating version of this question because most of the usual options come with caveats. Acetaminophen is generally considered the safest bet for mild-to-moderate pain during pregnancy. Anti-inflammatory drugs like ibuprofen and naproxen can be used in some circumstances earlier in pregnancy but should be avoided in the third trimester due to established risks to the fetus.22PubMed. Medication Use and Pain Management in Pregnancy: A Critical Review
For migraine specifically, a systematic review found limited evidence that triptans may not be associated with fetal or child adverse effects, though the strength of that evidence is low.23PubMed. Management of primary headaches during pregnancy, postpartum, and breastfeeding: A systematic review The practical reality for many pregnant migraine sufferers is a period of reduced treatment options and, for some, a welcome decrease in migraine frequency that happens naturally during the second and third trimesters due to hormonal changes.
What About Children and Teenagers?
The evidence base for headache treatment in kids is thinner than for adults, and that matters. A review of the available recommendations found that about half the published guidance endorsed either acetaminophen or ibuprofen as appropriate first-line treatments for headaches and migraines in children and adolescents. The other half recommended ibuprofen or other anti-inflammatory drugs preferentially over acetaminophen. Aspirin was considered appropriate only for adolescents over 16, due to the rare but serious risk of Reye syndrome in younger children.24PubMed Central. Self-Management Strategies for Treating Pediatric and Adolescent Headaches and Migraines with Over-the-Counter Molecules: Expert Opinion and Literature Review
One consistent recommendation across pediatric headache guidelines is timing: the medication should be given as early as possible in the headache, at the right dose for the child’s weight, with the goal of a quick return to normal activity.25PubMed Central. Overview of diagnosis and management of paediatric headache. Part II: therapeutic management That advice applies to adults too, but it’s especially emphasized for kids because undertreating a headache, either with too-small doses or waiting too long, tends to make the whole episode drag out unnecessarily.
Cannabis for Migraine Is No Longer Just Anecdotal
For years, many migraine sufferers have reported that cannabis helps their attacks, but rigorous evidence was scarce. A randomized, double-blind, placebo-controlled trial has finally provided some hard numbers. Adults with migraine treated attacks with vaporized cannabis in several formulations: THC-dominant, CBD-dominant, a combination of THC and CBD, or placebo. The THC+CBD combination performed best, with about 67% of participants achieving pain relief at two hours compared to about 47% with placebo, and about 35% achieving complete pain freedom compared to roughly 16% with placebo. THC alone helped with pain relief but didn’t reach significance for complete pain freedom. CBD alone did not outperform placebo.26PubMed Central. Vaporized cannabis versus placebo for acute migraine: A randomized, double-blind, placebo-controlled crossover trial
These results are promising but come with context. This is a single trial with a small sample size, and the 67% pain relief rate, while superior to placebo, doesn’t clearly top what triptans achieve in comparable studies. Cannabis also comes with cognitive effects, legal variability, and dosing challenges that prescription medications don’t. It’s an area to watch, not a settled recommendation. The finding that CBD alone didn’t work is worth emphasizing, since many people assume CBD products will help headaches, and this trial suggests they won’t do much on their own.
Non-Drug Approaches That Have Evidence Behind Them
Not every headache needs a pill. For migraine with aura, a handheld device called a single-pulse transcranial magnetic stimulator, held against the back of the head, has shown real results. In one trial, about 39% of patients who used it were pain-free at two hours compared to 22% with a sham device, and participants reported a 75% reduction in pain intensity in the minutes after stimulation.27PubMed Central. Non-Pharmacological Approaches to Headaches: Non-Invasive Neuromodulation, Nutraceuticals, and Behavioral Approaches These devices are FDA-cleared and available by prescription, though access and cost remain barriers for many people.
For prevention rather than acute treatment, supplements like magnesium, riboflavin (vitamin B2), and coenzyme Q10 are commonly recommended in headache clinics. A trial testing a combination of riboflavin, magnesium, and feverfew found that both the active supplement group and the placebo group improved significantly from their baseline migraine frequency, with no meaningful difference between them.28PubMed Central. A combination of riboflavin, magnesium, and feverfew for migraine prophylaxis: a randomized trial That’s a humbling result and a reminder that supplements get a lot of hype that runs ahead of the data. Individual components like magnesium have shown benefit in some trials, but the evidence is less consistent than what exists for prescription preventives. If supplements are appealing to you, they’re generally low-risk, but keep expectations realistic.
Behavioral approaches, including cognitive behavioral therapy, biofeedback, and structured relaxation training, have solid evidence for reducing headache frequency. They’re typically used alongside medication rather than in place of it, and they work especially well for people whose headaches have a strong stress or muscle-tension component. For children in particular, behavioral strategies are often preferred as a first step before adding medication.
How Delivery Method Affects What Works
A detail that gets surprisingly little attention is how your painkiller gets into your system. Nausea and vomiting are common during migraines, which means a pill you swallow may never get absorbed properly. This is one reason injectable sumatriptan and nasal-spray formulations exist. For cluster headaches, where speed is everything, a subcutaneous injection works in minutes while a tablet takes far longer. Even for tension headaches, liquid gel capsules or effervescent tablets tend to hit faster than standard coated tablets because they dissolve and absorb more quickly.
The broader point is that the “best” painkiller isn’t just about the molecule. It’s about whether your body can actually use it during an attack. If you routinely vomit with migraines and rely on oral tablets, you may be getting a fraction of the dose. Asking your doctor about nasal sprays, dissolvable tablets, or even anti-nausea medication to take before your painkiller can make a mediocre treatment work dramatically better.