The fastest way to relieve a tension headache is with 400 mg of ibuprofen, which works for the majority of people within about 30 minutes. But medication is only one option. A combination of physical techniques, topical remedies, and simple habit changes can break the pain cycle and keep tension headaches from coming back.
Best Over-the-Counter Medication
A 2024 network meta-analysis in the Annals of Medicine compared all common painkillers head-to-head for episodic tension headaches. Ibuprofen at 400 mg came out on top, with a 91.7% probability of being the best treatment option based on both effectiveness and safety. Acetaminophen at 1,000 mg and aspirin at 1,000 mg also work, but they ranked lower in the analysis. If you’re reaching for something in your medicine cabinet right now, ibuprofen is the strongest bet.
One important limit to know: taking any of these painkillers too frequently can cause “rebound” headaches, where the medication itself starts triggering more pain. For anti-inflammatory drugs like ibuprofen and aspirin, the threshold is 15 days per month. For combination pain relievers (anything with caffeine added, for example), it drops to 10 days per month. If you’re using painkillers more often than that, the medication may be part of the problem.
Peppermint Oil for Quick Topical Relief
If you prefer something non-pharmaceutical, peppermint oil has genuine clinical support. A controlled study found that a 10% peppermint oil solution applied across the forehead and temples reduced headache intensity significantly within 15 minutes. The cooling sensation activates nerve receptors in the skin that essentially compete with pain signals.
To use it, dilute peppermint essential oil in a carrier like rubbing alcohol or a neutral oil (roughly one part peppermint to nine parts carrier). Spread it across your forehead and both temples, then reapply after 15 and 30 minutes if the headache persists. Pre-mixed peppermint roll-ons marketed for headaches follow a similar formulation and save you the trouble of mixing your own.
Release the Muscles at the Base of Your Skull
Tension headaches often originate in the suboccipital muscles, a small group of muscles right where your skull meets your neck. When these tighten from stress, poor posture, or screen time, they create a band of pressure that wraps around your head. Releasing them can provide noticeable relief.
Here’s how to do a self-release at home: lie flat on your back without a pillow. Place two tennis balls (or a rolled-up sock) side by side under the base of your skull, right where you feel the bony ridge. Let the weight of your head press into the balls so they push up into those tight muscles. Stay in this position for three to five minutes, breathing slowly, until you feel the tension soften. The pressure should be firm but not painful. This is a simplified version of a clinical technique used in osteopathic medicine specifically for tension headaches.
You can also use your fingertips. Sit comfortably, place your fingers at the base of your skull on either side of your spine, and press upward with steady pressure. Hold for 30 seconds, release, and repeat. Pair this with slow neck rolls and gentle chin tucks (pulling your chin straight back as if making a double chin) to stretch the surrounding muscles.
Check Your Desk Setup
If your tension headaches tend to hit in the afternoon or after long stretches at a computer, your workstation is a likely contributor. A monitor that’s too low forces your head forward, loading extra weight onto the muscles at the back of your neck. Over hours, this creates exactly the kind of sustained tension that turns into a headache.
The key measurements: your monitor should sit about an arm’s length from your face (20 to 40 inches), with the top of the screen at or just below eye level. Your feet should rest flat on the floor with your thighs parallel to it. If you use a laptop without an external monitor, a simple stand that raises the screen to eye level makes a significant difference. Even a stack of books works. Position your keyboard so your elbows stay close to your body and your shoulders can stay relaxed rather than hunched upward.
Hydration Helps, but Not How You Think
Drinking water is standard advice for headaches, and there is some truth to it, though the picture is more nuanced than “just drink more water.” A clinical trial testing an additional 1.5 liters of water per day found that it improved overall quality of life scores for headache sufferers but did not actually reduce the number of headache days. In other words, staying well-hydrated may make headaches less severe or easier to cope with, but it won’t prevent them on its own.
That said, dehydration absolutely can trigger headaches. If you haven’t had much to drink today and a headache is starting, drinking a full glass of water is a reasonable first step. Just don’t expect hydration alone to solve a headache that’s driven by muscle tension or stress.
Magnesium for Prevention
If you get tension headaches frequently, magnesium supplementation is worth considering as a preventive measure. Magnesium plays a role in muscle relaxation and nerve signaling, and many people don’t get enough of it through diet alone. The American Migraine Foundation suggests magnesium oxide at 400 to 600 mg per day for headache prevention. It’s inexpensive, available without a prescription, and safe during pregnancy at doses up to 400 mg.
Magnesium won’t stop a headache that’s already happening. It takes consistent daily use over several weeks before you’d notice a reduction in headache frequency. Think of it as a background strategy rather than a rescue treatment.
When a Headache Isn’t Just Tension
Most tension headaches are uncomfortable but harmless. A few patterns, however, signal something more serious. Seek immediate medical attention if your headache reaches maximum intensity within seconds (a “thunderclap” headache), comes with fever and a stiff neck, or is accompanied by neurological changes like confusion, weakness on one side of your body, or vision loss.
You should also get evaluated if you’re over 65 and experiencing a new type of headache for the first time, or if your usual headache pattern has changed noticeably in the past few months. A headache that feels different from your normal tension headaches, even if it’s not dramatically worse, deserves a closer look. These red flags don’t mean something is necessarily wrong, but they do mean the headache needs more than ibuprofen and a neck stretch.

