Migraines are strong, pounding headaches on one or both sides of the head. They may be caused by the activation of nerve fibers in the blood vessels of the brain.

Migraines typically include several other symptoms aside from the strong headache. These include:

According to the Migraine Research Foundation, roughly 12 percent of the U.S. population gets migraines. Any person of any age, class, gender, or ethnicity can get one.

Researchers believe that there are certain events, or “triggers,” that can lead to a migraine. These triggers are different for each person.

There are several different types of medications and alternative treatments available to treat migraines after they’ve already started. However, avoiding a migraine trigger is the best way to prevent a migraine from happening in the first place.

Migraine prevention is aimed at identifying and avoiding a particular thing that triggers your migraines. You can learn to do this by keeping a migraine diary for a few months.

You write down the following information in a migraine diary:

  • what you ate and drank before the migraine, including if you drank water or alcohol that day and how much
  • the time the migraine started and when it ended
  • what events happened before the migraine and what you did that day
  • how you were feeling around the time the migraine started
  • what medications you took and how much
  • the proximity to the onset of menses, if you’re females

It’ll be much easier to figure out whether or not your migraine attacks are related to something you do, eat, drink, or experience if you keep a migraine diary.

For example, if you have a meal high in monosodium glutamate (MSG) or salt prior to each migraine, you could avoid meals high in MSG or sodium.

According to the Institute for Quality and Efficiency in Health Care (IQWiG), some of the most commonly reported food- and beverage-related triggers for migraines include:

Other events or situations that could trigger a migraine include:

According to a 2008 study of 200 people with migraines in Brazil, fasting (not eating for long periods of time) was the most commonly reported migraine trigger. Alcohol, chocolate, and caffeine were the most common dietary substances associated with a migraine attack. Red wine was a frequent trigger among women.

Avoiding these triggers can be the key to preventing your migraines and improving your overall quality of life.

In addition to avoiding triggers, lifestyle changes are also important for preventing a migraine. You can do the following to help prevent a migraine:

Some people continue to experience frequent migraines even after making serious attempts to identify or avoid triggers. You should talk to your doctor about taking migraine or pain medications if this is the case.

Some medications are available over the counter, while others require a prescription. The choice of medication depends on several factors. These may include having a co-existing medical condition, the frequency of your migraines, and side effects of the medications.

Prevention

There are medications that are taken regularly in order to prevent migraines. These include:

Botulinum toxin A (Botox) is a toxin secreted by a bacterium that’s been used for years to treat muscle contracting disorders and is commonly known for its ability to treat wrinkles. Botox was approved in the United States to prevent migraines in 2010.

To treat migraines, Botox is injected into muscles of the forehead and neck and usually only needs to be repeated every three months.

Treatment

There are also medications available to treat an attack that has already started:

  • pain-relieving medications such as analgesics and non-steroidal anti-inflammatory drugs (NSAIDs); these include ibuprofen (Motrin) or drugs marketed specifically for migraines such as Excedrin Migraine
  • triptans, including sumatriptan (Imitrex) and frovatriptan (Frova)
  • ergots, including ergotamine and caffeine combination drugs such as Cafergot
  • anti-nausea medications, which are usually combined with other medications

Buy now: Shop for ibuprofen and Excedrin Migraine.

Nontraditional or alternative treatments may be helpful for people who experience chronic migraines. They’re aimed at relieving migraine pain. Alternative therapies include the following:

Talk to your doctor before attempting to use an herbal or vitamin supplement for your migraines. Don't use feverfew, riboflavin, or butterbur if you're pregnant.

Many people who have migraines learn from experience what needs to be done to get through a migraine attack. They may lie down in a dark room, take a nap, or apply cold packs to their forehead. Sometimes that’s enough to treat their migraine.

For others, however, migraines are more difficult to control or prevent and happen too often.

Talk to your doctor about which treatment is right for you if you’re experiencing frequent migraine attacks. Medications, in combination with lifestyle changes and avoidance of migraine triggers, may be the key to treating your migraines.

Healthline and our partners may receive a portion of revenues if you make a purchase using a link above.