For most headaches, an over-the-counter pain reliever like ibuprofen (Advil, Motrin), naproxen (Aleve), or acetaminophen (Tylenol) will do the job. These are the standard first-line treatments for tension headaches and general head pain. Which one works best depends on the type of headache you’re dealing with, how often you get them, and what other health conditions you have.
Over-the-Counter Pain Relievers
The most common pills for headaches fall into two categories: NSAIDs (nonsteroidal anti-inflammatory drugs) and acetaminophen. NSAIDs include ibuprofen, naproxen, and aspirin. They reduce both pain and inflammation, which can make them more effective for headaches that involve swelling or tension in muscles and blood vessels. Acetaminophen relieves pain and reduces fever but doesn’t target inflammation, and it tends to be gentler on the stomach.
One practical difference is how long they last. Ibuprofen and acetaminophen work on a 4- to 6-hour cycle, meaning you may need to redose during the day. Naproxen lasts longer, taken every 8 to 12 hours, which makes it a better choice if you want fewer doses. Acetaminophen typically reaches peak effect within 30 to 60 minutes of taking it, so you shouldn’t have to wait long to feel relief.
For acetaminophen, the hard ceiling is 4,000 milligrams in 24 hours, though many experts recommend staying at or below 3,000 milligrams to protect your liver. A regular-strength pill is 325 mg, and extra strength is 500 mg, so it’s easy to creep toward that limit without realizing it. This is especially important if you’re taking any other medications that contain acetaminophen, like cold medicine or combination pain relievers. Drinking three or more alcoholic drinks a day raises the risk of liver damage from acetaminophen and stomach bleeding from NSAIDs.
Combination Pills With Caffeine
Some headache pills combine aspirin or acetaminophen with caffeine (Excedrin is the best-known example). These aren’t just marketing gimmicks. Caffeine appears to help your body absorb the pain reliever faster by lowering stomach pH, which speeds up how quickly the active ingredients get into your bloodstream. It also has a mild vasoconstricting effect, meaning it narrows blood vessels, which can directly ease certain types of headache pain. The result is that combining caffeine with a pain reliever produces noticeably better relief than either ingredient alone.
Who Should Avoid NSAIDs
NSAIDs aren’t safe for everyone. If you have heart disease or significant cardiovascular risk factors, you should avoid all NSAIDs. They can raise blood pressure, cause fluid retention, reduce blood flow to the kidneys, and worsen heart failure. They can also cause stomach or intestinal bleeding, sometimes without warning, particularly if you’re over 60, have a history of ulcers, smoke, drink regularly, or take blood thinners. In those situations, acetaminophen is generally the safer pick for occasional headaches.
Prescription Options for Migraines
If your headaches are migraines and over-the-counter pills aren’t cutting it, doctors typically prescribe triptans. These are a class of medication designed specifically for migraine attacks. Sumatriptan is the most widely prescribed, and about 59% of people who take 100 mg experience meaningful pain reduction within two hours. Roughly 29% get complete relief in that window. Rizatriptan tends to perform slightly better in head-to-head comparisons.
Triptans work by targeting serotonin receptors in the brain, which constricts blood vessels and blocks pain signals. That same blood vessel effect means they’re not safe for people with cardiovascular disease, multiple heart risk factors, or poorly controlled high blood pressure.
Newer Migraine Pills
A newer class called gepants (rimegepant, ubrogepant) works differently. Instead of narrowing blood vessels, gepants block a protein called CGRP that plays a central role in triggering migraine pain and inflammation. They’re slightly less effective than triptans overall, but they have fewer side effects and no signal of cardiac risk, making them an option for people who can’t safely take triptans. Early data also suggest gepants are less likely to cause rebound headaches from frequent use. Current guidelines position them as a next step when triptans don’t work well enough, aren’t tolerated, or are contraindicated.
Preventive Pills for Frequent Headaches
When headaches happen regularly and pain relievers aren’t keeping up, your doctor may suggest a daily preventive medication rather than treating each headache individually. For chronic tension headaches, tricyclic antidepressants like amitriptyline are the most commonly used preventive option. These aren’t prescribed because headaches are “in your head.” They work by altering pain signaling pathways in the brain.
Other preventive options include certain antidepressants like venlafaxine and mirtazapine, anti-seizure medications like topiramate and gabapentin, and for some people, the muscle relaxant tizanidine. These all take time to build up in your system, so they’re daily commitments rather than something you reach for when pain starts.
The Rebound Headache Trap
One of the most important things to know about headache pills is that using them too often can make headaches worse. This is called medication overuse headache, and it’s diagnosed when you’re experiencing headaches on 15 or more days per month while regularly taking pain medication for more than three months. The threshold varies by medication type, but the general cutoff is using headache pills on 10 to 15 days per month.
This applies to virtually every acute headache treatment: OTC pain relievers, triptans, and combination analgesics. The pattern is insidious. You take pills because you have headaches, but the frequent pill use causes more headaches, so you take more pills. If you find yourself reaching for headache medication more than two or three days a week on a regular basis, that’s a sign to talk to a provider about a different approach, likely a preventive medication instead.

