Most headaches resolve with a combination of over-the-counter pain relief, hydration, and rest. The right approach depends on what type of headache you’re dealing with and what’s triggering it. A tension headache from a long day at your desk responds differently than a migraine or a headache from skipping your morning coffee. Here’s what actually works, and why.
Over-the-Counter Pain Relievers
For a standard tension headache, ibuprofen and acetaminophen are the two most common options, and both work. At the one-hour mark, clinical trials show both drugs perform about equally, reducing pain roughly three times more effectively than a placebo. By the two-hour mark, ibuprofen pulls slightly ahead for more severe headaches, proving about twice as likely as acetaminophen to fully stop a migraine attack. For a mild to moderate tension headache, either one will likely do the job.
Aspirin is another solid choice for tension headaches, and it works through the same anti-inflammatory pathway as ibuprofen. If your stomach tolerates it well, it’s a reasonable alternative. Naproxen lasts longer than ibuprofen (up to 12 hours versus 4 to 6), which makes it useful if your headaches tend to linger or come back later in the day.
One important limit: if you find yourself reaching for pain relievers on 15 or more days per month, you risk developing medication overuse headache. The International Headache Society defines this as a pattern where frequent use of pain medication over three or more months actually starts causing headaches rather than curing them. The threshold is even lower for some medications, kicking in at just 10 days per month. If your headaches are that frequent, the pain relievers themselves may be part of the problem.
Hydration and Dehydration Headaches
A surprising number of headaches are simply your body telling you to drink water. Dehydration headaches typically resolve within a few hours once you start rehydrating, but technique matters. Take small, steady sips rather than gulping a large amount at once, which can cause nausea. You don’t need a specific volume. Just drink water consistently until the pain eases.
If your headache doesn’t improve after a few hours of steady fluid intake, dehydration probably isn’t the cause. But if you’ve been sweating, skipping meals, drinking alcohol, or spending time in heat, water should be your first move before reaching for medication.
Caffeine: Help and Hindrance
Caffeine is a double-edged sword for headaches. A small amount can actually enhance pain relief, which is why it’s included in some OTC headache formulas alongside acetaminophen and aspirin. It narrows blood vessels and helps your body absorb pain medication faster.
But if you’re a regular caffeine drinker and you skip your usual intake, the headache you get isn’t random. It’s withdrawal. Your blood vessels dilate in the absence of caffeine, creating a throbbing pain that feels a lot like a tension headache or mild migraine. The fix is straightforward: have some caffeine. For a longer-term solution, you can wean yourself off gradually. Cut your intake by small amounts every few days. If you drink two cups of coffee each morning, drop to one. If you drink espresso, start mixing in decaf. A slow taper avoids the withdrawal headache entirely.
Migraine-Specific Treatments
If your headache comes with pulsing pain on one side, sensitivity to light or sound, or nausea, you’re likely dealing with a migraine rather than a tension headache. OTC pain relievers can help mild migraines, especially if taken early. But for moderate to severe migraines, prescription medications called triptans are significantly more effective.
A large network meta-analysis published in The BMJ compared all major migraine drugs head to head. The most effective option for being completely pain-free at two hours was eletriptan, which outperformed nearly every other drug studied. Rizatriptan and sumatriptan also performed well. All triptans were substantially better than placebo, with the weakest still nearly twice as effective. These require a prescription, so if OTC medications consistently fail to touch your migraines, it’s worth asking about them.
For people who get migraines frequently, prevention may matter more than treatment. The American Headache Society recommends 400 to 500 milligrams of magnesium oxide daily as a preventive supplement. Magnesium is inexpensive, widely available, and has a strong enough evidence base that headache specialists routinely suggest it. Riboflavin (vitamin B2) and coenzyme Q10 are also used for prevention, though the evidence is more modest.
Non-Drug Approaches That Work
Not every headache needs medication. Several non-drug strategies can relieve pain on their own or speed up recovery alongside a pain reliever.
- Cold or warm compress: A cold pack on your forehead or the back of your neck constricts blood vessels and numbs the area. For tension headaches driven by tight muscles, a warm compress on your neck and shoulders can release the tension causing the pain.
- Dark, quiet room: This is especially helpful for migraines. Reducing sensory input gives your overstimulated nervous system a chance to calm down.
- Sleep: Many headaches, particularly migraines, resolve completely after even a short nap. If you can sleep, it’s one of the most effective treatments available.
- Pressure points: Firm pressure on the fleshy area between your thumb and index finger for a few minutes can reduce headache pain. The muscles at the base of your skull respond well to sustained pressure too.
Peppermint oil applied to the temples is a popular remedy, but clinical evidence is mixed. One randomized trial found that peppermint oil added to a warm foot bath didn’t reduce pain beyond what the foot bath alone provided. Topical application to the forehead and temples has slightly better anecdotal support, and the cooling sensation can feel soothing, but it’s unlikely to replace a pain reliever for a significant headache.
Cluster Headaches Need Different Treatment
Cluster headaches are a distinct category: intensely painful, usually behind one eye, and lasting 15 minutes to three hours. Standard OTC pain relievers are too slow to help because the attack is often over before the medication kicks in. The primary treatment is high-flow oxygen inhaled through a mask for about 20 minutes. The American Headache Society describes oxygen therapy as “extremely safe and effective” for aborting cluster attacks, with no medication interaction concerns. Triptans in injectable or nasal spray form also work because they act faster than pills. If you experience recurring one-sided headaches with tearing, redness, or nasal congestion on the same side, you’re likely dealing with clusters rather than migraines.
Headaches That Need Emergency Attention
Most headaches are harmless, but certain patterns signal something more serious. Headache specialists use a set of red flags to identify potentially dangerous headaches:
- Sudden, explosive onset: A headache that hits maximum intensity within seconds, sometimes called a thunderclap headache, can indicate a ruptured blood vessel in the brain. This is the single most concerning headache feature.
- Neurological symptoms: New weakness in an arm or leg, numbness, vision changes, or difficulty speaking alongside a headache.
- Fever, night sweats, or weight loss: These systemic symptoms suggest an underlying illness driving the headache.
- New headaches after age 50: A person who has never had significant headaches developing them later in life is more likely to have a secondary cause.
- Steadily worsening pattern: Headaches that are clearly becoming more severe or more frequent over weeks.
- Position-dependent pain: Headaches that dramatically change intensity when you stand up, lie down, or strain (coughing, bearing down) can point to pressure problems inside the skull.
A sudden, severe headache unlike anything you’ve experienced before warrants immediate evaluation, potentially including imaging. The vast majority of headaches are benign, but these specific warning signs exist because early detection of the rare serious causes makes a significant difference in outcomes.

