How Headaches Are Treated

Treatments vary by the type of headache involved

There are many treatments for headaches, and what works well for one person may or may not work well for another. Finding the right approach can take time and a certain amount of trial and error. Changing your diet or using an over-the-counter pain reliever can often help, but you might also benefit from prescription drugs, specialized pain therapies, alternative practices such as acupuncture, and, in some cases, even surgery.

Woman on massage table
Gabriela Medina/Blend Images/Getty Images

Home Remedies and Lifestyle

Depending on the type of headache you have, you may benefit from avoiding various environmental, emotional, and food triggers that induce your headache pain. This applies to both primary headaches, which occur on their own, and secondary headaches, which arise from illness, pregnancy, menopause, medications, or other causes.

By way of the example:

  • Migraines may be alleviated by resting in a dark, quiet location, and placing a cool compress on your forehead. Drinking water also helps.
  • Tension headaches often improve when you get enough sleep each night or correct your eyeglass prescription.
  • Cluster headaches can be difficult to treat but you can sometimes reduce the frequency by reducing your alcohol consumption and smoking cessation.
  • Rhinogenic headaches, also known as sinus headaches, can often improve with nasal irrigation or breathing in steam from a simmering pot of water.
  • Exertional headaches can be improved by warming up prior to exercise, increasing the intensity of exercise gradually, and cooling down after activity.
  • Hypnic headaches can often be relieved by drinking caffeine.
  • Hormonal headaches caused by oral contraceptives may improve if you omit the placebo pill break or switch birth control type.
  • Cervogenic headaches, caused by referred pain from the neck, can often be relieved by placing a cold compress on the back of the neck or doing gentle neck stretches.

All headaches will generally improve if you can take the time to rest quietly away from bright lights and noise whenever symptoms develop.

Some people find that soaking in a warm bath helps (with the exception of cluster headaches, which can be induced by heat). Others prefer placing a cool cloth over their eyes, especially those experiencing migraine or exertional headaches. Ample hydration and improved sleep hygiene also help across the board.

Exercise can help reduce the frequency of headaches by relieving tension and managing musculoskeletal issues that trigger symptoms. Exercise also stimulates the release of endorphins, a group of hormones that act as natural painkillers.

Diet

Certain foods are associated with migraine symptoms. These foods appear to do so in different ways: some by triggering vasoconstriction (the narrowing of blood vessels), others by inducing vasodilation (the widening of blood vessels), decreasing serotonin levels, or stimulating pain receptors in the brain.

Among the substances associated with migraine food triggers are:

  • Alcohol
  • Aspartame
  • Caffeine
  • Histamine
  • Monosodium glutamate (MSG)
  • Phenylethylamine
  • Tyramine
  • Yeast

An elimination diet can often help identify food triggers. This involves the elimination of one suspected food group from your diet for a specific period of time, after which the foods are gradually re-introduced to see if migraine occurs.

Alternately, a food diary can help you identify the specific foods that may give rise to your headaches.

Over-the-Counter (OTC) Therapies

The most commonly used medications to treat headaches are over-the-counter non-steroidal anti-inflammatory drugs (NSAIDs) like aspirin, Advil (ibuprofen), and Aleve (naproxen). NSAIDs reduce headache symptoms by reducing the production of chemicals called prostaglandins that cause inflammation, pain, and fever. These medications block enzymes called cyclooxygenases (COX) that the body uses to produce prostaglandins.

Prostaglandins protect the lining of the stomach and intestine, and the overuse of NSAIDs can strip the digestive tract of this protection and increase the risk of stomach ulcers and gastrointestinal bleeding.

Analgesics like Tylenol (acetaminophen) can also help and without the gastrointestinal side effects associated with NSAIDs. With that said, Tylenol may not be as effective for treating certain types of headaches. The exact mechanism of action of the drug is unknown, but Tylenol is believed to work on centrally activating pathways that decrease pain.

While Tylenol is safer on the stomach, liver damage can occur if the drug is overused or taken with alcohol.

OTC antihistamines and steroid nasal sprays may be beneficial for treating sinus headaches caused by seasonal allergies.

Prescriptions

There are a wide variety of prescription drugs that can help reduce headaches if OTC options don't provide you with relief. Each type of headache is treated with a different prescription medication.

Migraine

Migraines may be treated with a class of oral drugs known as triptans, like Imitrex (sumatriptan) and Maxalt (rizatriptan) that act on serotonin receptors in blood vessels, causing them to relax. Dihydroergotamine (DHE), a vasoconstrictor, and Topamax (topiramate), an anticonvulsant, may also be useful for treating migraine episodes.

To relieve nausea and vomiting that accompany migraines, antiemetic drugs like Reglan (metoclopramide) and Zofran (ondansetron) may be prescribed; these may be delivered either by mouth or rectally. Intravenous Reglan may be prescribed in severe cases lasting longer than 12 hours.

Since triptans only work for the acute phase of migraines, healthcare providers will often prescribe other medications to prevent migraines, such as beta-blockers, antidepressants, anticonvulsants, and CGRP inhibitors. These interventions may be effective for some people, though not all.

Tension Headaches

Triptans are not effective for treating tension headaches. If NSAIDs and Tylenol are not helpful, the tricyclic antidepressant Elavil (amitriptyline) may be prescribed. Elavil has analgesic effects and works by increasing the availability of serotonin and norepinephrine in the brain.

Elavil, taken by mouth in 10-milligram (mg) to 75-mg daily doses, is the only drug that has consistently shown promise in controlling chronic tension headaches, according to a 2010 review of studies in BMJ.

Cluster Headaches

Cluster headache episodes generally improve with triptans. Sumatriptan can be taken via a nasal spray or taken as a subcutaneous injection beneath the skin. Both methods are effective in stopping ongoing cluster headaches. Dihydroergotamine and intranasal oxygen can also be useful.

Cluster headaches can be difficult to prevent, but can sometimes be prevented by Verelan (verapamil), a calcium channel blocker that is usually used to treat high blood pressure. If Verelan is not effective, lithium or a short course of prednisone may be prescribed.

Other Prescription Options

Your healthcare providers may prescribe another medication for you if the first- and second-line options don't provide you with relief. Picking the right option can take time, especially if the underlying cause of your headache is unknown.

Prescription Drug Type Useful for
Actron (ketoprofen) NSAID Treatment of tension headaches and migraines
Ansaid (flurbiprofen) NSAID Treatment of tension headaches and migraines
Cataflam (diclofenac) NSAID Treatment of tension headaches and migraines
Flexeril (cyclobenzaprine) Muscle relaxant Treatment of tension headaches
Meclomen (meclofenamate) NSAID Treatment of tension headaches
Nalfon (fenoprofen) NSAID Treatment of tension headaches and migraines
Norflex (orphenadrine) Muscle relaxant Treatment of tension headaches
Relafen (nabumetone) NSAID Treatment of tension headaches and migraines
Robaxin (methocarbamol)  Muscle relaxant Treatment of tension headaches
Skelaxin (metaxalone) Muscle relaxant Treatment of tension headaches
Toradol (ketorolac tromethamine) NSAID Treatment of tension headaches and migraines

Therapies and Specialist-Driven Procedures

Surgery is rarely used to treat primary headaches, with the exception of treatment-resistant migraines. Even so, surgery is considered a last resort when all other options have been exhausted and the quality of life has been significantly compromised.

Before surgery is considered, other specialist modalities would be explored, including physical therapy, botox, and psychotherapeutic approaches like cognitive behavioral therapy.

Physical Therapy

If your headaches are caused by muscle tension, physical therapy may be prescribed to treat and relieve your muscular issues. Treatment protocols vary, but most involve multiple treatments over the course of weeks or months, with adjustments made depending upon your improvement.

Massage therapy may also be beneficial for tension headaches. Many of these headaches are triggered by muscular tension, bony misalignment, postural patterns, temporomandibular joint (TMJ) disorders, ligament irritation, or other musculoskeletal imbalances. Massage, when used on an ongoing basis, may offer sustained headache relief.

Botox

Onabotulinumtoxin A, or Botox, was approved by the U.S. Food and Drug Administration in 2010 for the treatment of chronic migraines in adults. It works by blocking the transmission of pain signals near the site of injection.

The procedure typically involves a series of injections in the face and neck every 12 weeks. Injection site pain and reactive headaches are common side effects.

Cognitive Behavioral Therapy

Everyone has different responses to pain and different pain thresholds. In some cases, the reaction to headaches amplifies the perceived pain and diminishes tolerance levels and overall quality of life.

Cognitive-behavioral therapy (CBT) is a psychological approach that may benefit people who have unremitting tension headaches or migraines. CBT can help you manage the vicious cycle in which headaches trigger stress, anxiety, and depression, causing pain to increase.

CBT is administered by a certified psychologist on a one-on-one or group counseling basis. The aim of counseling is to increase your coping skills and teach relaxation techniques whenever headaches occur.

Surgery

Surgery is generally reserved only for the most severe, treatment-resistant migraine cases. One of the surgical approaches is a procedure called surgical decompression in which pressure points around the head are surgically released.

Surgical decompression, more accurately referred to as migraine trigger site deactivation, is performed on an outpatient basis by removing sections of muscle and tissues around peripheral nerves of the head, neck, or face. Doing so "re-routes" nerve signals away from the trigger points known to instigate migraine pain.

Success rates vary. In recent years, many dubious migraine centers have sprung up across the United States offering "cures" to desperate migraine sufferers. The cost of the procedure can be as high as $15,000 with no guarantee of relief.

Before embarking on migraine surgery, be sure that it is being performed by a board-certified neurosurgeon, and only if you have been diagnosed with nerve compression.

Other surgical options include septoplasty (a surgical procedure that corrects a deviated septum) and turbinectomy (the removal of bone and soft tissue in the nasal passages) for people with severe rhinogenic headaches.

Complementary and Alternative Medicine (CAM)

Many people with unremitting headache pain will turn to complementary and alternative therapies when standard medical approaches fall short. The various modalities can broadly be described as mind-body therapies, musculoskeletal adjustment, homeopathy, and acupuncture.

Mind-Body Therapies

Mind-body therapies are based on the understanding that the mind can directly influence physical health. With respect to pain, mind-body therapies focus on relaxation techniques that can remedy the imbalances that lead to pain.

Many of these techniques are incorporated into standard medical practices as healthcare providers increasingly acknowledge the role that stress plays in illness, including headaches.

Among some of the more common mind-body therapies used for headaches are:

Chiropractic Therapy

Chiropractic therapy is a discipline that is concerned with the treatment of mechanical disorders of the musculoskeletal system, especially the spine. Chiropractors have proposed that such disorders affect general health via the nervous system.

When used to treat headaches, chiropractors typically focus on spinal manipulation around the neck to relieve tension or compression caused by injury, poor posture, age, weight, or joint deterioration. Treatments are typically delivered on an ongoing basis until symptoms improve or on an as-needed basis for acute episodes.

In addition, the chiropractor may offer you advise on posture, ergonomics, exercise, and relaxation.

Homeopathy

Homeopathy is a medical system based on the belief that the body can cure itself. It is meant to treat a person as a whole rather than as a body of unrelated symptoms, often with the help of natural remedies. Many of these remedies have no proven benefit but are nevertheless widely embraced by many people with chronic pain.

Among the homeopathic remedies commonly suggested for headaches are:

Always speak with your healthcare provider before taking any such remedy to ensure that it poses no medication interaction or other concerns.

Acupuncture

Acupuncture is one of the most popular alternative therapies used to relieve pain. It involves the insertion of tiny needles into specific parts of the body to promote energy flow and pain relief. Despite assertions that acupuncture is quack medicine, the evidence supporting its use is promising.

According to a comprehensive review in the Cochrane Database of Systematic Reviews in 2016, acupuncture appears effective in reducing the frequency of episodic or chronic tension‐type headaches in adults.

The review, which involved 12 clinical trials and 2,349 adults, reported that 51% of the participants provided acupuncture had 50% fewer headaches compared to those provided a sham acupuncture procedure. The quality of the studies was considered moderate.

To date, there is little evidence that acupuncture can deliver the same results in people with cluster headaches or migraines given that the mechanisms for these conditions are different.

A Word From Verywell

To ensure the appropriate treatment of severe, chronic, or recurrent headaches, it is important that you see a healthcare provider rather than live with the pain. By getting an accurate diagnosis, you can treat your headaches more effectively, while minimizing the risk of complications and side effects.

Although it can take time to uncover the cause, try to remain patient and don't dismiss your symptoms. If needed, seek a second opinion or ask for a referral to a neurologist or board-certified headache specialist in your area. Persistent headaches should never be considered normal.

Frequently Asked Questions

  • What is the best over-the-counter treatment for headaches?

    NSAIDs (like Advil, Aleve, or aspirin) or Tylenol (acetaminophen) are often used to treat headaches. NSAIDs can be hard on the stomach, while Tylenol can cause liver damage when taken in excess or with alcohol. Migraines often improve with Excedrin, which is a combination of acetaminophen, aspirin, and caffeine.

  • Is there a natural cure for headaches?

    Most headaches will go away on their own after a period of time. There are a few natural things you can do to relieve the pain. Resting in a cool, dark room may help with a migraine. A warm or cool compress on your forehead or over your eyes may also be soothing.

  • What helps a cluster headache?

    A prescription medication known as sumatriptan may help to stop a cluster headache once it starts. High-flow oxygen can also be helpful in shortening the duration of an attack. Preventive medications include the blood pressure medication Verelan (verapamil), lithium, and prednisone.

8 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Sprouse-blum AS, Smith G, Sugai D, Parsa FD. Understanding endorphins and their importance in pain management. Hawaii Med J. 2010;69(3):70-1.


  2. Davis A, Robson J. The dangers of NSAIDs: look both ways. Br J Gen Pract. 2016;66(645):172-3. doi:10.3399/bjgp16X684433


  3. Yoon E, Babar A, Choudhary M, et al. Acetaminophen-Induced Hepatotoxicity: a Comprehensive Update. J Clin Transl Hepatol. 2016 Jun 28;4(2):131-42. doi:10.14218/JCTH.2015.00052


  4. Gooriah R, Buture A, Ahmed F. Evidence-based treatments for cluster headache. Ther Clin Risk Manag. 2015;11:1687-96. doi:10.2147/TCRM.S94193


  5. Espí-lópez GV, Arnal-gómez A, Arbós-berenguer T, González ÁA, Vicente-herrero T. Effectiveness of Physical Therapy in Patients with Tension-type Headache: Literature Review. J Jpn Phys Ther Assoc. 2014;17(1):31-8. doi:10.1298/jjpta.Vol17_005


  6. U.S. Food and Drug Administration. Highlights of Prescribing Information: Botox  (onabotulinumtoxinA). Silver Spring, Maryland; 2011.


  7. Mathew PG. A Critical Evaluation of Migraine Trigger Site Deactivation Surgery. 2014 Jan;54(1):142-52. doi:10.1111/head.12218


  8. Guo XN, Lu JJ, Ni JQ, Lu HF, Zhao HR, Chen G. The role of oxygen in cluster headache. Med Gas Res. 2019;9(4):229-231. doi:10.4103/2045-9912.273961

Additional Reading
Colleen Doherty, MD

By Colleen Doherty, MD
 Colleen Doherty, MD, is a board-certified internist living with multiple sclerosis.