How to Prevent Headaches

One of the most effective treatments for preventing headaches is to stop them before they start. Headaches can be triggered by a number of things, so understanding how to interrupt the cycle can be a huge benefit, and a wonderful way to improve your quality of life.

Woman in bed with headache
LaylaBird / Getty Images

Reduce Stress

Stress is a common trigger for most types of headaches. Stress releases hormones into the bloodstream that can affect the way we experience pain. Muscle tension, teeth grinding, and stiff shoulders are other responses to stress that can increase the likelihood that you will have a headache.

There are a number of things you can do to reduce stress in your life. Learning to simplify your life by cutting out things that can wait and learning to manage your time wisely are two things that can be a big help. Keep an updated to-do list to help you work on one thing at a time. This will also help you organize your day.

Another big help is learning to "let go." Recognize the things that are beyond your control and stop worrying about them. This can be part of an overall attitude adjustment — where you learn to re-frame your negative thoughts as positive ones.

Learn to relax. Find time to practice your deep breathing and block out the work, if only for a few minutes each day. Also, take a break. Sometimes you have to walk away from stressful situations to regain focus and perspective, and getting away also disperses stress.

Practice “healthy living.” Try to eat right and exercise. There are some forms of extreme exercise that can cause headaches, so be cautious. When appropriate, laugh lots, this causes a brief endorphin, or "happy hormone" release, that can go a long way toward making you feel better.

Adjust Your Diet

There are a lot of dietary triggers for headaches, especially foods high in the amino acid tyramine. Here is a list of common dietary triggers:

  • Caffeine (reduce your intake slowly to avoid rebound headaches)
  • Aged, smoked, or pickled meats (like salami or pepperoni)
  • Aged cheeses (blue, brie, Swiss, etc.)
  • Snow peas
  • Fava beans
  • Sauerkraut
  • Pickles
  • Olives
  • Fermented soy products (miso, soy sauce, teriyaki sauce)
  • Nuts or nut products
  • Alcoholic beverages
  • MSG
  • Nitrates and nitrates (found mostly in processed meats)
  • Yeast

Eliminate foods from your diet one at a time to determine if there is a dietary trigger for your headaches.

Monitoring Your Estrogen Exposure

Estrogen is the main female hormone and a potent trigger for migraines in some women. If you are on an estrogen supplement or estrogen-containing medication — like oral contraceptive pills — discuss how this may be connected to your headaches with your personal physician.

Quit Smoking

Nicotine and other chemicals in cigarette smoke can trigger and aggravate headache symptoms. If you are a smoker, explore options for quitting. Not only will this reduce the likelihood of developing headaches, but it will also improve other areas of your health.

Take Prophylactic Medications

In some cases, daily medication is necessary to prevent the development of headaches. Beta-blockers, antidepressants, calcium channel blockers, and anticonvulsants are all medications sometimes used in preventing headaches. Discuss options together with your physician to determine the best course of action for you.

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.
  • Lewis, Donald W., M.D. “Headaches in Children and Adolescents.” American Family Physician, Vol. 65/No. 4 (February 15, 2002).
  • Low-Tyramine Headache Diet. National Headache Foundation.

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