For most headaches, an over-the-counter anti-inflammatory like ibuprofen is the single most effective option you can reach for at home. But headaches respond to a surprisingly wide range of treatments, from a glass of water and a cup of coffee to peppermint oil rubbed on your temples. The best approach depends on the type of headache you’re dealing with, how severe it is, and how often it happens.
Why Anti-Inflammatories Work Best
Ibuprofen at 400 mg outperforms 1,000 mg of acetaminophen (Tylenol) for tension-type headaches in head-to-head trials. This has been demonstrated in multiple randomized studies, and the International Headache Society considers ibuprofen the first choice for acute tension headaches, followed by naproxen sodium (Aleve). Both belong to a class of drugs that reduce inflammation and block pain signaling, while acetaminophen works through a different, less well-understood mechanism that simply isn’t as effective for this type of pain.
Naproxen at 550 mg also beats acetaminophen, and it lasts longer in your system, which can be helpful if your headaches tend to linger. Aspirin at about 975 mg is another solid option. All of these are best taken early, at the first sign of pain, rather than after a headache has fully set in.
One important caution: using any pain reliever more than about 10 days per month can cause rebound headaches, where the medication itself starts triggering new headaches. This applies to every type of over-the-counter analgesic, including acetaminophen.
Adding Caffeine for a Stronger Effect
Caffeine is more than just a pick-me-up. A Cochrane review found that adding 100 mg or more of caffeine to a standard dose of any common pain reliever produces a meaningful increase in the number of people who get good pain relief. That’s roughly the amount in one strong cup of coffee. This is why many combination headache products (like Excedrin) include caffeine alongside aspirin or acetaminophen.
If you already drink coffee regularly, though, caffeine plays a dual role. Skipping your usual intake can trigger withdrawal headaches within 12 to 24 hours. So if your headache hits on a morning you missed your coffee, the fix might be as simple as having a cup.
Peppermint Oil on Your Temples
Topical peppermint oil is one of the better-supported natural remedies for tension headaches. A gel containing 6% menthol, the active cooling compound in peppermint, reduced headache pain intensity within two hours in clinical testing. You can dilute a few drops of peppermint essential oil in a carrier oil (like coconut or almond oil) and massage it into your temples, the back of your neck, and your shoulders. Tension headaches often involve tightened muscles in these areas, and the cooling sensation combined with gentle pressure can provide real relief.
Ginger for Migraines
If your headaches are migraines rather than tension headaches (meaning they’re throbbing, often one-sided, and may come with nausea or light sensitivity), ginger powder is worth trying. In a clinical trial, a single 250 mg capsule of ginger powder taken at the onset of a migraine performed nearly identically to sumatriptan, one of the most commonly prescribed migraine medications. Both reduced pain by about 4.6 to 4.7 points on a 10-point scale after two hours. Ginger is cheap, widely available, and comes with far fewer side effects than prescription options.
For mild to moderate migraines, anti-inflammatories like ibuprofen and naproxen are still the recommended first-line treatment. Prescription migraine medications called triptans are reserved for moderate to severe attacks that don’t respond to over-the-counter options. Your doctor will typically try the simpler, cheaper treatments first before stepping up.
Hydration and Other Quick Fixes
Dehydration is one of the most common and most overlooked headache triggers. Even mild dehydration, the kind you might not notice as thirst, can bring on a dull, pressing headache. Drinking a full glass or two of water is one of the first things to try, especially if you’ve been sweating, skipped meals, or had alcohol recently. It won’t fix every headache, but when dehydration is the cause, it works faster than you’d expect.
A cold compress on your forehead or the back of your neck can dull pain by constricting blood vessels and numbing the area. Lying down in a dark, quiet room helps too, particularly for migraines, which are worsened by light and sound. These measures won’t replace medication for a severe headache, but they’re effective complements.
Supplements That Prevent Frequent Headaches
If you get headaches regularly, certain daily supplements can reduce how often they occur. Magnesium oxide at 400 to 600 mg per day is recommended by the American Migraine Foundation for migraine prevention. Many people with frequent migraines have lower magnesium levels, and supplementation helps correct this. Digestive side effects (loose stools) are the main downside, so starting at the lower end of the dose range makes sense.
Riboflavin (vitamin B2) at 400 mg per day is another well-supported preventive option. It plays a role in cellular energy production, and supplementation has been shown to reduce migraine frequency. Both magnesium and riboflavin take weeks of consistent daily use before you’ll notice a difference, so these are long-term strategies rather than quick fixes.
Acupuncture for Recurring Tension Headaches
Acupuncture has stronger evidence behind it than most people assume. In a large trial of over 1,200 participants with tension-type headaches, 48% of those receiving acupuncture experienced at least a 50% reduction in headache frequency, compared to just 19% in the group receiving only routine care. A second trial found an even more dramatic split: 45% versus 4%. These are meaningful differences, and they suggest acupuncture is a reasonable option if you’re dealing with frequent tension headaches and want to reduce your reliance on medication.
Headaches That Need Immediate Attention
Most headaches are harmless, but certain patterns signal something more serious. A sudden-onset headache that reaches maximum intensity within seconds, sometimes called a thunderclap headache, can indicate a blood vessel problem in the brain and needs emergency evaluation. New headaches starting after age 50, headaches accompanied by neurological symptoms like weakness on one side, new numbness, or vision changes, and headaches that are clearly getting worse over weeks all warrant prompt medical attention.
Headaches triggered by coughing, straining, or changes in position (like standing up or lying down) can point to pressure issues inside the skull. Fever, night sweats, or unexplained weight loss alongside new headaches suggest a systemic illness. And any new headache during or shortly after pregnancy should be evaluated for vascular or hormonal complications. None of these patterns are typical of ordinary tension headaches or migraines.

