- Headaches Overview
- Migraine
- Cluster & Tension Headaches
- Other Types of Headaches
- Appointment Prep
- View Full Guide
Ways to Prevent Migraines
![](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/biographies/begum_jabeen_382x382.jpg?resize=51px:51px&output-quality=75)
![Start With the Basics Start With the Basics](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_thinkstock_rf_couple_running.jpg?resize=652px:*&output-quality=75)
Start With the Basics
Doubling down on good health habits helps prevent some migraines. Don't skip meals. Drink plenty of water. Be consistent about coffee, and you may not have to give it up. Sleep for 7 to 8 hours every night; you're more likely to have a migraine with less than 6 hours or more than 9. Regular exercise, especially cardio, will boost endorphins. Ease into your workouts with a warmup and end with a cool-down.
![Nutrients Nutrients](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_thinkstock_rf_couple_grocery_shopping-1.jpg?resize=652px:*&output-quality=100)
Nutrients
Having more of these in your diet may help prevent migraines:
- Magnesium, a mineral in greens, grains, nuts, and seeds
- CoQ10, an antioxidant in fatty fish and whole grains
- Riboflavin, a B vitamin in milk and beef
- Melatonin, a brain hormone that regulates sleep, in many plant-based foods like tomatoes, olives, walnuts, barley, and rice
Ask your doctor before you take them as supplements though.
![Use an App Use an App](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_thinkstock_rf_person_using_phone.jpg?resize=652px:*&output-quality=100)
Use an App
In one study, 87% of the people that used a diary found that they had their own unique cluster of triggers, about four each. A high-tech diary, such as an app, can both track and analyze what you record. This helps you focus your prevention efforts.
![Monitor and Manage Stress Monitor and Manage Stress](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_thinkstock_rf_women_doing_yoga.jpg?resize=652px:*&output-quality=100)
Monitor and Manage Stress
Write down your stress level at the end of each day. When it's higher than normal (a sign that a migraine is likely), ask your doctor if it’s a good idea to take your migraine medication. This may help you avoid getting one.
Yoga is great for easing stress. If you do it regularly, like 5 times a week, you may also get fewer migraines. Choose a gentle style like hatha or yin, not a challenging one like Iyengar or hot yoga.
![Migraine Prevention Medication Migraine Prevention Medication](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_getty_rf_woman_talking_to_pharmacist.jpg?resize=652px:*&output-quality=100)
Migraine Prevention Medication
If you don’t respond to other treatments and you have more than 4 migraine days a month, your doctor may suggest preventive medicines. You can take these regularly to reduce the severity or frequency of the headaches. These include seizure medicines, blood pressure medicines (like beta blockers and calcium channel blockers), and some antidepressants. CGRP inhibitors are a new class of preventive medicine that your doctor may recommend if other medicines don’t help.
![Botox Botox](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_medicalimages_rm_botox_injection-1.jpg?resize=652px:*&output-quality=100)
Botox
If you have chronic migraine, a series of onabotulinumtoxinA injections could give you relief for a few months. You'll get shots under the skin or into the muscles around your head, neck, and shoulders to interrupt the nerve signals for pain so you have fewer attacks. It doesn't work right away, it doesn't work for everyone, and it can be expensive.
![Be Aware of Your Menstrual Cycle Be Aware of Your Menstrual Cycle](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_thinkstock_rf_birth_control_pills.jpg?resize=652px:*&output-quality=100)
Be Aware of Your Menstrual Cycle
For many women, migraines follow a monthly pattern, often in the stretch before and during each period. Taking NSAIDs (like ibuprofen or naproxen) or your preventive medication for a few days before your period may help. If that doesn't work or your period is irregular, ask your doctor about using birth control pills continuously.
![Watch the Weather Watch the Weather](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_getty_rf_person_walking_dog.jpg?resize=652px:*&output-quality=100)
Watch the Weather
While you can't always avoid it, you can try to become less sensitive to elements that affect you -- like higher temperature, humidity, a drop in barometric pressure -- by facing them regularly and for gradually longer stretches. If you get migraines more often when you also have a stuffy, runny, or itchy nose, ask your doctor if antihistamines or allergy shots could help. Avoid decongestants; they can sometimes cause migraines.
![Acupuncture Acupuncture](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_thinkstock_rf_acupuncture.jpg?resize=652px:*&output-quality=100)
Acupuncture
In some studies, this ancient Chinese practice was effective for reducing the number of migraine headaches for many people. Acupuncture seems to be about as effective as some of the standard medical treatments in preventing migraines.
![Tinted Glasses Tinted Glasses](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_thinkstock_rf_migraine_prevention_glasses.jpg?resize=652px:*&output-quality=100)
Tinted Glasses
Special lenses might help if your migraines are triggered or made worse by light. And they're available without a prescription.
![At-Home Devices At-Home Devices](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_thinkstock_rf_nervous_system-1.jpg?resize=652px:*&output-quality=100)
At-Home Devices
Hand-held gadgets send magnetic or electrical signals to certain nerves in your brain. Depending on the unit, you simply place it on your head or neck for a short amount of time. Over time, you may get fewer migraines and need less migraine medicine.
![Review Your Medicines Review Your Medicines](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_getty_rf_doctor_talking_to_patient.jpg?resize=652px:*&output-quality=100)
Review Your Medicines
Some prescription and over-the-counter products, from heartburn pills to antidepressants, have been linked to migraine. Check with your doctor to see if what you're taking could be a trigger. Adjusting the dose or changing problem drugs may lower the number of migraines you get.
![Medical Marijuana Medical Marijuana](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_thinkstock_rf_medical_marijuana.jpg?resize=652px:*&output-quality=100)
Medical Marijuana
If it's legal where you live, using a strain high in CBD may help prevent migraines. There is some limited research available that suggests CDB may help prevent migraines, but more research is needed
![Don't Wait for Pain Don't Wait for Pain](https://img.lb.wbmdstatic.com/vim/live/webmd/consumer_assets/site_images/articles/health_tools/ways_to_prevent_migraines_slideshow/493ss_thinkstock_rf_woman_sitting_in_dark_room.jpg?resize=652px:*&output-quality=100)
Don't Wait for Pain
Most migraines start with at least one symptom hours or even a day before a headache sets in. Common ones are yawning, a change in mood or irritability, fatigue, neck ache, and sensitivity to light. Take your migraine medication as soon as you notice any of these signs, and you may be able to prevent a full-blown attack.