How to Stop Tension Headaches: Treatment and Prevention

Tension headaches respond well to a combination of pain relievers, lifestyle changes, and workstation adjustments. Most episodes resolve within hours using over-the-counter medication, but if you’re getting these headaches frequently, the real fix is addressing the triggers that keep bringing them back. Here’s how to handle both the immediate pain and the bigger pattern.

What a Tension Headache Actually Is

A tension headache feels like a tight band pressing around your head. The pain is bilateral (both sides), non-pulsating, and mild to moderate in intensity. Episodes last anywhere from 30 minutes to 7 days. Unlike migraines, tension headaches don’t cause nausea or vomiting, and they rarely come with sensitivity to both light and sound at once.

When these headaches show up fewer than 15 days per month, they’re classified as episodic. Once they hit 15 or more days per month for three months running, they’ve crossed into chronic territory, which requires a different treatment approach.

Why They Happen

Tension headaches typically start in the muscles. Pain receptors in the muscles, tendons, and connective tissue around your skull become activated, often through inflammation, reduced blood flow, or sustained muscle contraction. If you’ve ever noticed tender, tight spots in your neck and shoulders during a headache, those are myofascial trigger points: hyperirritable knots in taut bands of muscle that hurt when compressed or stretched.

For occasional tension headaches, these peripheral muscle signals are the main driver. But when headaches become chronic, the nervous system itself changes. Constant pain input from tight muscles rewires pain processing in the brain and spinal cord, a process called central sensitization. The brain becomes more excitable and less effective at dampening pain signals. This creates a feedback loop: increased muscle tenderness feeds the brain more pain, and the sensitized brain amplifies that pain further. It’s why chronic tension headaches feel harder to shake than the occasional one.

Stopping a Tension Headache Once It Starts

Ibuprofen is the strongest first-line option. In a controlled trial of over 450 patients, 400 mg of ibuprofen produced better pain relief than 1,000 mg of acetaminophen, and it worked faster. Naproxen sodium at 550 mg also outperformed acetaminophen in a large multicenter trial.

Acetaminophen still works for many people, but the evidence is less consistent. One study of 703 patients found that 1,000 mg of acetaminophen wasn’t significantly better than a placebo over four hours. If acetaminophen is your go-to and it’s not cutting it, switching to an anti-inflammatory like ibuprofen or naproxen is worth trying.

Beyond medication, a short nap can help. Sleep has a direct pain-relieving effect on tension headaches, though researchers aren’t entirely sure why. Applying a cold or warm compress to your neck and shoulders can also ease the muscle tightness feeding the headache.

The Medication Overuse Trap

Here’s something many people don’t realize: taking pain relievers too often can actually cause more headaches. Most headache specialists recommend limiting simple analgesics like ibuprofen or acetaminophen to no more than 15 days per month. Beyond that threshold, you risk developing medication-overuse headache, a rebound cycle where your brain starts generating headaches partly because it expects the next dose of painkiller. If you find yourself reaching for pain relievers more than two or three days a week, that’s a signal to focus on prevention instead.

Fixing Your Workspace

Desk work is one of the most common tension headache drivers because it keeps your neck and shoulder muscles locked in one position for hours. Small ergonomic adjustments can make a significant difference:

  • Monitor position: The top of your screen should sit at eye level, directly in front of you, so your head stays neutral rather than tilting forward or down.
  • Chair setup: Sit upright with lumbar support for your lower back. Your elbows should rest at roughly 90 degrees with your shoulders relaxed, not hiked up toward your ears.
  • Feet placement: Keep your feet flat on the floor or on a footrest. Dangling feet pull your posture out of alignment from the bottom up.
  • Movement breaks: Get up every 30 to 45 minutes to stretch or walk. Even a 60-second break resets the sustained muscle contraction that builds toward a headache.

If you use a laptop as your primary screen, a separate keyboard and a laptop stand (or a stack of books) to raise the screen to eye level is one of the highest-impact changes you can make.

Managing the Major Triggers

Stress is the single most cited tension headache trigger. It tightens the muscles in your shoulders and neck, and that tension climbs upward until you feel it wrapping around your head. Dr. Sait Ashina, a neurologist at Harvard-affiliated Beth Israel Deaconess Medical Center, explains it this way: when tension headaches become frequent, the pain in your shoulder and neck muscles gets interpreted by the brain as pain in the head itself. Regular stress management, whether that’s exercise, breathing techniques, or simply building downtime into your schedule, directly reduces headache frequency.

Poor sleep is another major contributor. Sleep deprivation is associated with both more frequent and more intense tension headaches, and improving sleep quality often reduces headache days even without other interventions. Aim for a consistent sleep and wake time, and prioritize seven to eight hours.

Other common triggers include skipping meals, dehydration, and excessive alcohol. Dr. Ashina’s core advice: “Headaches are a condition of hypersensitivity, so you need balance in your system to fight triggers.” That means eating regularly, staying hydrated, exercising, and limiting alcohol. None of these are dramatic interventions on their own, but together they reduce the baseline irritability of your nervous system.

Supplements That May Help

Magnesium is one of the most widely used supplements for headache prevention. People with frequent headaches tend to have lower magnesium levels, and supplementation helps stabilize overexcitable nerve cells. The American Headache Society recommends 400 to 500 mg of magnesium oxide daily. Magnesium citrate is another well-absorbed option. Most of the clinical evidence comes from migraine studies, but because tension headaches and migraines share overlapping mechanisms (particularly central sensitization), many headache specialists recommend magnesium for both.

Riboflavin (vitamin B2) at 400 mg daily is another option supported by headache research. It appears to improve mitochondrial energy production in brain cells, which may help reduce headache susceptibility. Again, the strongest evidence is in migraine, but it’s a low-risk supplement worth discussing if you’re dealing with frequent tension headaches.

When Headaches Become Chronic

If tension headaches are hitting 15 or more days per month, over-the-counter painkillers aren’t the answer. At that frequency, daily preventive treatment becomes the standard approach. The most well-studied option is amitriptyline, a low-dose tricyclic antidepressant. It’s typically started at 10 to 25 mg per day, taken at bedtime, and gradually increased until headaches improve or side effects become an issue.

Amitriptyline works through a different mechanism than its antidepressant effect. It boosts the activity of serotonin and norepinephrine in pain-processing pathways, strengthens your body’s natural pain-suppression system, and directly reduces the central sensitization that drives chronic tension headaches. Research shows it accomplishes this by decreasing the transmission of pain signals from tight muscles rather than dulling overall pain sensitivity. This means it targets the specific feedback loop that makes chronic tension headaches self-perpetuating.

Preventive medication works best when combined with the lifestyle strategies above. Fixing your sleep, managing stress, staying active, and setting up an ergonomic workspace all reduce the muscle tension and nervous system hypersensitivity that medication alone can’t fully address.