The most effective over-the-counter medicine for a common headache is ibuprofen. In a head-to-head clinical trial, 400 mg of ibuprofen provided faster and more complete relief of tension headaches than 1,000 mg of acetaminophen, though both worked significantly better than a placebo. Which medicine works best for you depends on the type of headache, how often it happens, and what other health conditions you have.
Ibuprofen, Acetaminophen, and Aspirin
These three medications are the starting point for most headaches. Ibuprofen and aspirin are anti-inflammatory drugs, meaning they reduce both pain and the inflammation that can contribute to headache pressure. Acetaminophen works differently: it blocks pain signals in the brain but doesn’t reduce inflammation. For a standard tension headache, the kind that feels like a tight band around your head, ibuprofen tends to outperform acetaminophen. More people in clinical studies achieved complete headache relief with ibuprofen, and they got there faster.
That said, acetaminophen has advantages for people who can’t take anti-inflammatory drugs. If you have stomach ulcers, kidney problems, or take blood thinners, acetaminophen is generally the safer choice. It’s also the only option for children and teenagers during viral illnesses, since aspirin has been linked to Reye’s syndrome, a rare but serious condition affecting the brain and liver in young people recovering from the flu or chickenpox.
Why Caffeine Makes Pain Relievers Work Better
Adding caffeine to a pain reliever isn’t a marketing gimmick. A large Cochrane review found that combining at least 100 mg of caffeine (roughly one cup of coffee) with a standard painkiller increased the number of people who got meaningful relief by 5% to 10%. For headache pain specifically, the benefit was even clearer: 33% of people got strong relief with a caffeine-plus-analgesic combination, compared to 25% with the painkiller alone.
This is why products like Excedrin combine acetaminophen, aspirin, and caffeine in a single tablet. If you’re using plain ibuprofen or acetaminophen, drinking a small cup of coffee alongside it can provide a similar boost. Doses under 65 mg of caffeine didn’t show a statistically significant benefit, so a few sips of tea probably won’t cut it.
Prescription Options for Migraines
Migraines are a different animal from tension headaches. They involve throbbing pain (often on one side), sensitivity to light and sound, and sometimes nausea or visual disturbances called auras. Over-the-counter painkillers can help mild migraines, but moderate to severe attacks often need something stronger.
Triptans have been the standard prescription treatment for migraines for decades. Seven are available in the U.S., with sumatriptan being the most widely known. These drugs work by narrowing the blood vessels around the brain that dilate during a migraine and by blocking pain signals from being transmitted through the trigeminal nerve, the main pain pathway in the head and face. Triptans come as tablets, nasal sprays, and injections, so there are options even when nausea makes swallowing a pill difficult.
A newer class of migraine drugs called gepants takes a different approach. Instead of narrowing blood vessels, they block a protein called CGRP that plays a central role in triggering migraine pain and inflammation. Two are currently approved for treating acute migraine attacks in adults: ubrogepant (Ubrelvy) and rimegepant (Nurtec ODT). Gepants are particularly useful for people who can’t take triptans due to heart disease or blood vessel problems, since they don’t constrict blood vessels.
Cluster Headache Treatment
Cluster headaches are among the most painful headache types, producing intense, stabbing pain around one eye that can last 15 minutes to three hours. Standard painkillers are too slow to help. The two most effective acute treatments are high-flow oxygen and triptans delivered as an injection or nasal spray.
Oxygen therapy involves breathing 100% oxygen through a non-rebreather mask at flow rates of 12 to 15 liters per minute for about 15 minutes. Clinical trials have consistently shown higher flow rates work better. This requires a prescription for a home oxygen setup, but for people with frequent cluster attacks, it’s one of the safest and most reliable options available.
Safe Dosing Limits
Over-the-counter doesn’t mean unlimited. Acetaminophen’s absolute maximum for a healthy adult is 4,000 mg per day, but staying at or below 3,000 mg is safer, especially with regular use. That ceiling includes all sources of acetaminophen, and it hides in many combination products: cold medicines, sleep aids, and prescription painkillers. Exceeding the limit can cause serious liver damage.
For ibuprofen, the standard over-the-counter dose is 400 mg every four to six hours as needed. Keep in mind that anti-inflammatory drugs can irritate the stomach lining over time, so taking them with food helps. If you find yourself reaching for any headache medicine regularly, that itself becomes a concern.
When Headache Medicine Starts Causing Headaches
Using pain relievers too frequently can lead to medication overuse headache, sometimes called rebound headache. The thresholds are well defined: for triptans, combination analgesics, and opioids, using them on 10 or more days per month for three months triggers the risk. For simpler painkillers like acetaminophen, aspirin, and ibuprofen, the threshold is 15 days per month over three months.
The pattern is deceptive. Your headaches get more frequent, so you take more medicine, which makes the headaches more frequent still. The treatment is to stop the overused medication, which typically causes a rough withdrawal period of worsened headaches for a week or two before things improve. If you’re taking headache medicine more than two or three days a week on a regular basis, that pattern is worth addressing before it escalates.
Headaches That Need Emergency Care, Not Medicine
Most headaches are painful but not dangerous. A few warning signs, however, mean you should skip the medicine cabinet and get evaluated immediately. The most critical is a thunderclap headache: pain that reaches maximum intensity within seconds, often described as the worst headache of your life. This can signal a ruptured aneurysm or bleeding in the brain. A headache that comes with fever and a stiff neck, one that follows a head injury, or a new headache pattern in someone over 50 all warrant urgent evaluation rather than self-treatment.