For most headaches, over-the-counter pain relievers like ibuprofen, acetaminophen, naproxen, or aspirin will do the job. The best choice depends on the type of headache, how often you get them, and what else is going on with your health. Beyond pills, several non-drug options can provide real relief, either on their own or alongside medication.
Over-the-Counter Pain Relievers
The four main OTC options for headaches all work slightly differently, and those differences matter when choosing between them.
Ibuprofen reduces both pain and inflammation. A standard dose is 200 to 400 mg every four to six hours, with a daily maximum of 1,200 mg for OTC use. It tends to kick in within 20 to 30 minutes and is a solid first choice for tension headaches and migraines alike. Because it can irritate the stomach lining, taking it with food helps.
Acetaminophen works differently from the anti-inflammatory options. It targets pain and fever but doesn’t reduce inflammation. It’s gentler on the stomach, which makes it a better pick if you have acid reflux or a history of ulcers. The FDA sets the maximum daily dose at 4,000 mg for adults, but staying well under that limit is wise, especially if you drink alcohol, because the drug is processed by the liver and high doses can cause serious liver damage. Many cold medicines, sleep aids, and combination products contain hidden acetaminophen, so always check labels to avoid doubling up.
Naproxen lasts longer than ibuprofen. A single 220 mg dose can provide relief for up to 12 hours, which makes it useful for headaches that tend to linger or come back later in the day. Like ibuprofen, it’s an anti-inflammatory and can bother the stomach.
Aspirin is effective for headaches in adults but carries one important restriction: do not give it to children or teenagers. Aspirin has been linked to Reye’s syndrome in young people who have the flu or chickenpox, a serious condition that causes swelling in the liver and brain. Most children who develop Reye’s syndrome survive, but lasting brain damage is possible, and without treatment it can be fatal.
Why Caffeine Helps
Caffeine is more than just a pick-me-up when you have a headache. It acts as an adjuvant, meaning it boosts the pain-relieving power of whatever you take it with. That’s why you’ll find it alongside acetaminophen and aspirin in products like Excedrin. A cup of coffee or tea alongside your pain reliever can speed up and strengthen the effect. On its own, caffeine constricts blood vessels that may be contributing to the pain, which is partly why caffeine withdrawal itself causes headaches in the first place.
There’s a catch, though. If you rely on caffeine for headache relief too often, you can end up in a cycle where skipping it triggers a new headache. Keeping your daily caffeine intake moderate and consistent helps avoid this.
The Medication Overuse Trap
Any pain reliever, OTC or prescription, can backfire if you use it too frequently. Medication overuse headache develops when you take acute headache medication on 15 or more days per month for longer than three months. The headaches become more frequent and more persistent, and the medication that once helped starts to feel like it barely takes the edge off.
If you notice your headaches creeping up in frequency and you’re reaching for pain relievers most days of the week, that pattern itself may be part of the problem. The standard approach is to gradually reduce the overused medication, which often means a rough stretch of worse headaches before things improve.
Non-Drug Options That Work
Cold packs applied to the forehead or temples are one of the simplest and most reliable non-drug headache treatments. Cold constricts blood vessels, slows cell activity, and numbs the area, which can interrupt pain signaling. A cold compress or ice pack wrapped in a thin cloth for 15 to 20 minutes is typically enough. For tension headaches that involve tight muscles in the neck and shoulders, heat works better, loosening the muscles that are contributing to the pain.
Staying hydrated matters more than most people realize. Dehydration is one of the most common and easily fixable headache triggers, and drinking water can resolve a mild headache within 30 minutes to a couple of hours without any medication at all. Dimming bright lights, stepping away from screens, and resting in a quiet room all help, particularly with migraines where sensory input makes the pain worse.
Peppermint oil applied to the temples has modest evidence behind it for tension headaches. Gentle pressure on the muscles between your thumb and index finger or at the base of your skull can also provide short-term relief.
Supplements for Prevention
If you get frequent headaches, particularly migraines, certain supplements taken daily can reduce how often they occur. These aren’t quick fixes for a headache you have right now. They’re daily preventive strategies that build up over weeks.
The American Headache Society recommends 400 to 500 mg of magnesium oxide daily for migraine prevention. Magnesium plays a role in nerve signaling and blood vessel function, and people who get migraines tend to have lower levels. Riboflavin (vitamin B2) at 400 mg daily has also shown benefit for reducing migraine frequency. Both are inexpensive, widely available, and carry minimal side effects at these doses, though magnesium can cause loose stools in some people.
Prescription Options for Severe Headaches
When OTC medications aren’t cutting it, prescription treatments offer stronger options. Triptans have been the go-to prescription treatment for migraines for decades. They work by narrowing blood vessels and blocking pain pathways specific to migraines. They’re most effective when taken early in an attack.
A newer class of medications called gepants (including rimegepant and ubrogepant) targets a protein involved in migraine pain signaling. In a large analysis comparing the two classes, patients using gepants had roughly half the rate of emergency department visits compared to those using triptans, suggesting they may do a better job of resolving attacks before they become severe. Gepants also don’t carry the blood vessel-constricting effects of triptans, making them an option for people with heart disease or other cardiovascular concerns.
Devices for Drug-Free Relief
Several FDA-cleared wearable devices use mild electrical stimulation to treat or prevent headaches. These are designed for people who want to reduce their medication use or who haven’t responded well to drugs.
The Cefaly device, worn on the forehead, targets the nerve most commonly involved in migraines. In studies, about one-third of users reported at least 50% pain relief within an hour, and 29% were completely pain-free after treatment. The gammaCore device stimulates a nerve in the neck and has shown that almost 30% of episodic migraine users had little to no pain within two hours of their first use. These devices aren’t a silver bullet, but for the right person they offer a meaningful alternative.
Matching Treatment to Headache Type
Tension headaches, the most common kind, respond well to any of the standard OTC options. They feel like a band of pressure around your head and are often tied to stress, poor posture, or muscle tightness. An anti-inflammatory like ibuprofen or naproxen paired with a short break from whatever triggered it is usually enough.
Migraines are a different animal. They tend to be one-sided, pulsing, and accompanied by nausea or sensitivity to light and sound. OTC pain relievers can work for mild migraines, especially if taken at the first sign of symptoms. Once a migraine is fully established, OTC medications become less effective, and prescription treatments like triptans or gepants are more reliable.
Cluster headaches are rarer but intensely painful, usually centered around one eye. They don’t respond well to standard pain relievers because the attacks are short, often 15 to 90 minutes, and the medication can’t absorb fast enough. High-flow oxygen inhaled through a mask for about 20 minutes is the primary treatment, and the American Headache Society considers it extremely safe and effective for aborting these attacks.

