Given how debilitating they can be, preventing migraines is the goal of anyone who experiences them. But prevention strategies can be particularly important if your migraines tend to be severe or last for several days, or if your migraine medication produces intolerable side effects or proves ineffective for you.

Home Remedies and Lifestyle

They say that the best offense is a good defense, and that is very true with migraines. Migraines often have several triggers, many of which are tied to lifestyle, and avoiding them can often prevent an episode. The best aspect of this approach: It is side effect-free.

Keep in mind that not every lifestyle factor affects every person the same way. For example, certain foods and sounds can be major migraine triggers for some people, but they might not affect you at all.

Get Enough Sleep

Sleep deprivation is among the most common causes of migraine headaches. The Centers for Disease Control and Prevention (CDC) recommend seven hours or more of quality sleep per night for adults. But if falling and staying asleep is consistently difficult or you often snore or gasp for air, you may want to talk to your healthcare provider to rule out the possibility of a sleep disorder.

A handful of adjustments can be made to your sleep environment to address things that may disrupt your sleep. You may benefit from hanging blackout shades to prevent light from creeping in, or setting your thermostat to a cool, comfortable temperature. It may also help to avoid caffeine and alcohol late in the day or eating right before bed.

Many people find that creating a consistent routine at nighttime makes a world of difference. This may include turning the TV and other devices off an hour before bed, putting your phone in another room, and reading or listening to soft music instead. Do your best to stick to a sleep schedule that will ensure adequate Zzzzs.

Be Aware of Dietary Triggers

Some people get migraines after eating chocolate, soy products, nitrate-containing foods, monosodium glutamate (MSG), or food coloring. Because some food items contain multiple ingredients, it can be difficult to nail down which one is triggering your migraines.

If you experience migraines after consuming any type of food, write the incident down in a food diary to see if, over time, there is a pattern. Take note of the time you ate it and how much you consumed. Keeping a detailed food diary can be a useful part of an elimination diet. But this approach has its downsides as well; over time, an aggressive elimination diet could lead to nutritional deficiencies, so it’s not recommended to pursue this approach for more than two weeks.

On the flip side, emerging research has pinpointed a few potential “migraine diets.” In particular, the ketogenic diet has been proposed to decrease cGRP levels, oxidative stress, and inflammation in the brain, all of which are closely associated with migraines.Still, more studies are needed to prove that the keto diet is specifically beneficial for migraine management.

Steer Clear of Triggering Smells and Sounds

Strong scents like cleaning products and cosmetics can trigger a migraine, and prolonged exposure to fumes can provoke them as well. If avoiding those triggers is not possible, you may find relief by using a nose plug, wearing an N95 mask, or applying a dab of peppermint oil to your forehead or temples.

Loud noises and certain sounds are also known to trigger migraines in some people, but maintaining a quiet environment is often easier said than done. Studies have shown that setting aside time for silent meditation can significantly reduce the frequency and severity of migraine attacks.Consider stepping away for 10 minutes of meditation when your senses feel overwhelmed.

Keep in mind that holding a phone to your ear for a long time or wearing headphones can result in a migraine as well. You may find it beneficial to use a speaker when you have prolonged phone calls or a day full of remote meetings.

Manage Stress

Stress is a common trigger, and related migraines can occur both during and after a stressful situation.

Completely avoiding stressful situations is not realistic, but you can dedicate yourself to employing techniques that can help you better manage them. Exercising, journaling, engaging in a hobby—find what works best for you and carve out time for it every day. Make sure that you also schedule in some down time after particularly stressful events to decompress.

When you are stressed, know that doubling down on your attention to other triggers can also go a long way. For example, make sure you get plenty of sleep when you’ve hit a hectic patch at work.

Regulate Your Caffeine Intake

Caffeine is a component in some over-the-counter migraine medications such as Excedrin (acetaminophen, salicylic acid, caffeine). That’s because caffeine can help control and prevent migraines. But for some people, ingesting caffeine actually induces migraines.

Caffeine is a vasoconstrictor (narrows the blood vessels), and migraine is associated with vasodilation. If your body becomes accustomed to caffeine-induced vasoconstriction, your natural vascular controls will adjust to that. It can take time (typically a few days) to adapt again when there’s a change in your routine.

As is the case with most things, listen to your body. If you can tolerate some caffeine, it is best to keep your caffeine intake predictable and regular—both in amount and in timing.

If you notice, however, that caffeine consumption tends to trigger migraines, you might consider simply avoiding it altogether. Be aware that coffee, chocolate, cocoa, and tea all contain caffeine. 

Avoid Bright Lights

Bright lights can trigger a migraine or make symptoms worse during a migraine attack. If you sense that the lights around you are too bright, consider wearing sunglasses or dimming the lights when possible. 

Interestingly, light—specifically green light—may have therapeutic benefits, and light therapy has gained a lot of attention for its potential to prevent migraines. Although more research is needed to determine the efficacy of this therapy, replacing some light sources around the house with green light bulbs and “migraine lamps” may be an effective and inexpensive form of preventive care.

Regulate Your Body Temperature

Migraines have been associated with temperature changes, including exposure to cold and heat. You can try to control your environmental temperature or dress in a way that prevents you from getting too hot or too cold.

If you feel a migraine coming on, or if you know that you have been exposed to one of your migraine triggers, using an ice pack on your neck, shoulders or forehead can reduce your chances of developing a full-blown migraine. Alternatively, using a warm pad might do the trick.

Prescriptions

If you have more than three to five migraines per month (or more than five days of migraine headaches per month), your healthcare provider may recommend that you take daily prescription medications for migraine prophylaxis (prevention).

Some of these medications are not formally indicated for migraine prophylaxis, but they are frequently used off-label for this purpose.

Over time, most people experience a fluctuation in the frequency and severity of migraines. You may need to use prescription migraine prophylaxis for years, or you may be able to discontinue it after a while when your migraines improve.

Anti-cGRP Drugs

Calcitonin gene-related peptide (cGRP) inhibitors are a class of medications used for migraine prevention.

There was an error. Please try again.

The following are approved by the Food and Drug Administration (FDA) for migraine prophylaxis.

Aimovig (erenumab), a monthly injection Ajovy (fremanezumab), available as a 225 milligram (mg) monthly injection or a 675 mg quarterly (every three months) injection Emgality (galcanezumab), a monthly injection Vyepti (eptinezumab), an IV infusion administered once every three months Nurtec ODT (rimegepant), the only anti-cGRP available in pill form (75 mg per dose), which is is taken once every other day

These medications are antibodies that block the cGRP receptor, which is a pain receptor. cGRP may also cause vasodilation (widening of the arteries), which is believed to contribute to migraine symptoms. By blocking the action of cGRP, blood vessels may maintain their normal width.

Antidepressants

Antidepressants are indicated for the treatment of depression. However, they are often used for migraine prevention as well.

When used for migraine prophylaxis, antidepressants are typically prescribed at a lower dose than recommended for the treatment of depression. These medications, including selective serotonin reuptake inhibitors (SSRIs) and tricyclic antidepressants, interact with neurotransmitters that mediate pain.

It can take up to four to six weeks of daily antidepressant use before you notice a decrease in the frequency and severity of your migraine headaches.

Anticonvulsants

Several medications that are normally used for seizure control can reduce migraine frequency and severity when used on a daily basis.

These include:

Equetro (carbamazepine) Neurontin (gabapentin) Dilantin (phenytoin) Topamax (topiramate) Depakote (valproic acid)

Like antidepressants, these medications begin reducing the frequency and severity of migraines after about four to six weeks of daily use. 

Blood Pressure Medications

Daily use of low-dose antihypertensives can be effective in reducing the frequency of migraine headaches for some people. Two forms of antihypertensives are particularly noted for their ability to prevent migraines.

Beta-blockers, such as Inderal (propranolol), or Lopressor (metoprolol) ACE inhibitors, such as Vasotec (enalapril), or Prinivil (lisinopril)

Since these medications lower blood pressure throughout the body, they are not recommended if you have low or borderline low blood pressure.

Non-Steroidal Anti-Inflammatories

While it is not common, prescription-strength anti-inflammatory medications are sometimes used for migraine prevention, particularly when inflammation is believed to be part of the cause. 

Steroids

In general, when steroids are used for migraine prevention, they are used for a short period of time (one to two weeks).

In other conditions that cause headaches as a symptom, such as giant cell arteritis, a longer-term prescription for oral steroids may be used (six to 12 months), followed by a gradual reduction in dose.

Oral Contraceptives

Some women experience a decrease in the frequency and severity of migraine headaches when using oral contraceptives. This is more common for women who experience menstrual migraines, but some women with other migraine patterns benefit from using these drugs as well.

In some forms of migraine, mainly with migraine with aura, oral contraceptives are very controversial, given that there may be an increased risk of stroke. It is important to discuss the pros and cons of this treatment with your gynecologist as well as your neurologist.

Specialist-Driven Procedures 

There are several procedures that are used to prevent migraine headaches. These are generally indicated if you have refractory migraines, which are migraines that don’t improve with preventive treatments or treatments that are usually used to stop a migraine.

If you experience intolerable side effects from medications, then you may experience better results from a procedure.

Botulinum Toxin Injections

Botulinum toxin injections are used as a preventive strategy for migraine headaches. The effect can last for several months, and treatment often needs to be repeated after a few months. Over time, most people can experience longer periods of improvement, and injections may be scheduled less frequently.

A healthcare provider places the injections under the skin and into the muscle in several locations on the head. Botulinum toxin is a muscle paralytic and this action is believed to help prevent migraines for some people.

Complementary and Alternative Medicine (CAM)

Several alternative therapies have been shown to help with migraine prevention. These strategies tend to be safe, but they may or may not work for you.

Magnesium

There are two ways that magnesium has been used for migraines: acutely at the time of the headache in IV form, or daily for preventive care in oral form.

Magnesium, used orally at a dose of 400 to 500 mg per day, has been shown to reduce the frequency and severity of migraines.

Even though you can get it over-the-counter, do not use magnesium for migraine prevention without your healthcare provider’s approval, because it can interact with other medications.

Neuromodulation

A number of neuromodulation (nerve stimulation) devices have been approved for migraine prevention. These devices are placed externally on the head to produce vibrations that may help prevent migraines.

Cephaly is a small device that creates superficial nerve stimulation. It is placed on the forehead and turned on daily for 20 minutes to prevent migraines.

GammaCore is a handheld device that’s held on the neck to stimulate the vagus nerve. It is used daily to prevent migraines. It was initially approved for migraine treatment and has also subsequently been approved for migraine prevention as well.

Additionally, a remote neuromodulation (REN) device titled Nerivio Migra has demonstrated effective therapeutic relief from migraine pain in clinical trials. The device is worn on the upper arm for 45 minutes at a time and remote controlled through a smartphone app. Stimulating sensory fibers in this part of the arm has shown to be effective in modulating the sensation of pain.

Acupuncture

Acupuncture may be as impactful as daily meditation when used for migraine prevention. Research studies that have reported the benefits of acupuncture for migraine prevention generally involved treatments ranging from several times per week to several times per month.

It can be hard to know the number and frequency of acupuncture sessions that it might take for you to see benefits, so talk to your healthcare provider and acupuncturist if you are planning to use this approach for migraine prevention.

Biofeedback

Biofeedback training has been found to be a valuable method of migraine prevention, potentially because it can help you find effective ways to cope with stress. The technique teaches people to recognize and alter physical responses that are not usually under voluntary control, such as blood pressure, breathing, and heart rate.

In a typical biofeedback session, a therapist will attach electrical sensors to specific parts of your body depending on what is being measured. Next, your therapist will walk you through a variety of mental exercises and relaxation techniques while a special measurement device records your physical responses.

One biofeedback session usually takes 30 to 60 minutes, and can be a valuable tool for uncovering how and when migraine triggers activate your body’s “fight-or-flight” response.

Meditation, Yoga, Tai Chi

These exercises, which are based on physical and cognitive control and awareness, have been found to be effective in reducing the frequency and severity of migraine headaches. Some research also shows that using yoga as a complementary therapy may increase the effectiveness of other preventive migraine medications or reduce the amount that a person needs to take.

A Word From Verywell

Prevention strategies may not seem very important to you if you have a migraine treatment that works. But keep in mind that using migraine medications excessively can induce a rebound effect, meaning your migraines may return after the medication wears off.

Factors such as your migraine triggers, your medical history, and your migraine pattern can help you and your healthcare provider design the best migraine prevention plan for you.

Prodome phase, which can happen several hours before the migraine, causing symptoms like mood changes or fatigueAura phase, which includes visual disturbances like blurry vision, flashing lights, or vision lossHeadache phase, which can last from several hours up to three daysPostdrome phase, which happens after the headache, and may include body aches and trouble concentrating