How to Get Rid of a Migraine Fast

Follow these steps to treat one, plus learn how to prevent them

Treating a migraine at the first sign is the quickest way to get relief. Taking medications and incorporating certain lifestyle changes and strategies to avoid triggers can help you manage and treat your migraines. This article discusses how to get rid of a migraine fast, as well as treatment options and how to prevent future migraines.

Getting Rid of a Migraine: A bed with Zs (take a nap), a person with closed eyes (find a quiet, dark place to rest with your eyes closed), water be poured out of a bottle (drink water), a mug of hot liquid (have a caffeinated beverage), pills, a bottle, and a needle (take a medication), a towel

Verywell / Laura Porter

Common Migraine Causes

Migraines can be set off by different stimuli, foods, and conditions. These triggers vary from person to person, with the most common including:

Emotional stress: Anxiety and emotional stress can release hormones that cause blood vessels to become narrowed, or constricted, causing the onset of symptoms.

Certain foods: Various foods contain substances that can trigger migraines in some individuals, including foods with certain preservatives (especially nitrates, the additives in cured meats), wine or other alcohol, aged cheeses, fermented foods, and foods that are pickled.

Caffeine: The presence or absence of caffeine, as in coffee or certain teas, can affect the dilation of the vessels. Depending on the case, both too much of this substance or withdrawal from it can bring on migraines.

Hormonal changes: The fluctuation of estrogen levels caused by menstrual periods or menopause is another common trigger. Rapid hormonal shifts also occur when you take certain kinds of birth control pills or undergo hormone replacement therapy.  

Certain stimuli: Bright sunlight, flashing lights, fluorescent lights, or the glow of TVs or computer screens can also be triggers. In addition, certain odors, smoke, or perfumes can bring on attacks in some people, as can very loud noises.

Other triggers: Disruptions in sleep patterns, dehydration, changing weather patterns, fatigue, and some medications can increase the likelihood of migraines. In addition, frequent or excessive use of pain medications can lead to attacks, a condition called medication overuse headache (MOH).

Who's More Prone to Migraines?

Certain people are more prone to developing migraines. There’s a strong genetic component. In fact, approximately 80% of people who experience migraines have a parent, sibling, or child with the condition. People who menstruate are more likely to get migraines than people who do not. Obesity is another risk factor.

Getting Rid of a Migraine

Once a migraine begins, try to be proactive. The sooner you can start mitigating its effects, the better off you’ll be. This may involve taking over-the-counter and prescribed medicines and other measures you can take to help with the symptoms.


A range of medications is at the front line of relieving migraine attacks. Delivered as tablets or pills, nasal sprays, suppositories, or injections, they include:

  • Over-the-counter painkillers: Widely available pain-relieving drugs, such as Tylenol (acetaminophen), Advil Migraine (ibuprofen), and Excedrin Migraine (aspirin) may work for mild attacks. These, however, may cause MOH.
  • Triptans: Regarded as the most successful prescription class of drugs for a migraine attack, triptans like sumatriptan, zolmitriptan, and others are the first-line treatment. Not only do they help with pain, but they also treat associated nausea, light sensitivity, and other symptoms.
  • Dopamine antagonist antiemetics: Antiemetics are drugs for nausea and vomiting and may help with migraines. Most commonly prescribed are Compazine (prochlorperazine), Thorazine (chlorpromazine), and Reglan (metoclopramide).  
  • Opioids: Stronger pain-killing drugs, such as butorphanol, codeine, ConZip (tramadol), and Demerol (meperidine), can help manage headaches. However, these should be used sparingly, as they have many side effects and have high abuse potential.
  • Calcitonin gene-related peptide (CGRP) inhibitors: Medications, including Zavzpret (zavegepant) block the effect of CGRP, a small protein involved in pain transmission during a migraine attack.

Furthermore, transcutaneous nerve stimulation—the delivery of mild electric currents to specific nerve areas through the skin using wearable devices—can be done at home. When migraines start, the electricity essentially scrambles the pain message.

Other Methods

The following methods may also help relieve pain:

  • Finding a quiet, dark place to rest with your eyes closed
  • Taking a nap
  • Icing or placing a cool cloth on your forehead
  • Drinking water
  • Having a caffeinated beverage

Ways to Manage and Prevent Migraines

Since there’s no cure for migraine, managing the condition means figuring out ways to reduce the frequency and severity of headaches and other symptoms. Along with medications and medical treatments, lifestyle changes and other at-home strategies can play a crucial role.

Preventive Medications and Treatments

A wide range of drugs may be prescribed to prevent migraine attacks from forming, and some medical treatments can help. Such approaches are considered especially in cases of chronic migraine, in which you have 15 or more headache episodes a month.

Several types of preventative migraine medications may be prescribed. The most common of these are:

Additionally, in cases in which medications aren’t yielding results, Botox (OnabotulinumtoxinA) injections can be considered. In this therapy, doctors target specific areas in your forehead, temples, sides, and back of the head and neck. Though the frequency and intensity of migraines are reduced, the effect is temporary, and appointments are needed every three months.    

When the condition is associated with the menstrual cycle, hormone replacement therapy may be attempted. 

Lifestyle Changes

A comprehensive migraine management plan will also involve lifestyle changes and strategies to avoid triggers. This includes:

  • Tracking headaches: Keep a headache diary and note attacks' frequency, intensity, and duration. Log what you discover is triggering the condition, and avoid triggers as much as possible.
  • Regular sleep: Disruptions in sleep patterns can bring on migraines, and irregular sleep predisposes you to them. Go to bed and wake up at consistent times every day to prevent attacks.
  • Losing weight: Since obesity can predispose you to migraines, exercising, changing your diet, and taking other measures to lose weight can reduce the frequency of attacks.
  • Biofeedback: Special devices can be worn on the head to detect physiological markers of stress and tension. This helps you identify when you’re feeling stressed, making you better able to head off related attacks.  

Vitamins and Natural Treatments

Along with medical management and lifestyle changes, some doctors may also recommend you take certain vitamins, minerals, or herbal supplements. These may include:

Always check with your doctor before taking any new supplements. They can help you determine if the supplement is safe for you and doesn't interfere with any of your medications.


Among the most commonly recommended interventions for migraines is ensuring you're getting enough exercise. Following are ways exercise can help:

  • Depression and anxiety management: The release of endorphins from exercise promotes positive feelings and can help with anxiety and depression, which are often associated with migraines.
  • Better sleep: Those who get regular exercise also enjoy better quality sleep, which can help prevent migraines.
  • Stress relief: Another benefit of the endorphin release related to exercise is that it can help manage stress. For many, the daily workout is a healthy way to unwind.
  • Weight management: Since obesity is a common risk factor for migraines, exercising—along with diet—to lose weight can be a means of managing the condition.

How much exercise should you aim for? If you don't currently have a routine, try 150 minutes of light-to-moderate activity a week, or 30 minutes a day, five days a week. Start small and scale up. Also, be wary of working too hard, as overexertion can trigger attacks.


Yoga may also be recommended along with other treatments as a means to help prevent migraines. The deep breathing and stretching associated with this practice can help ease stress, a common migraine trigger.

According to one study in the International Journal of Yoga, yoga can help when paired with other treatments. Compared to people using just standard therapies, those who combined other therapies with yoga sessions five days a week for six weeks reported a reduced frequency and intensity of attacks. In addition, yoga was associated with boosting the quality of life of migraine patients.

Mindfulness and Mediation

Another commonly recommended approach to managing migraines is incorporating mindfulness and meditation. Like yoga and exercise, the principal benefit is that this kind of practice helps reduce stress, preventing attacks. However, as with other methods, this is considered an adjunct therapy to be used alongside other treatments

For migraines, mindfulness approaches involve focusing on the present moment. This may mean breathing and visualization exercises, and thinking more broadly about your needs and immediate situation. It can help to practice mindfulness in your daily life.


Neuromodulation uses devices that deliver mild shocks or magnetic impulses through the skin to change the brain's electrical patterns. This scrambles the pain messaging pathways and may reduce their activity long-term. A growing body of research has shown this therapy effective in reducing the frequency and intensity of migraine attacks.

Generally considered when medications haven't yielded results or are likely to cause adverse effects, several devices that have been approved by the Food and Drug Administration (FDA) are:

  • Single-pulse transcranial magnetic stimulator: This handheld device, when held to the appropriate area of the skull, delivers magnetic fields to nerves in the brain. It's a treatment for migraine attacks with aura and a preventive measure.
  • Transcutaneous vagus nerve stimulator: Activity in the vagus nerve, which runs from the brain stem to the chest and abdomen, is associated with migraines. Transcutaneous vagus nerve stimulators are handheld devices that deliver mild electrical shocks here. Both acute and preventive treatments were cleared for use in children ages 12–17 in 2021.
  • Multichannel brain neuromodulation system: In March of 2021, the FDA approved a wearable headset that delivers electricity to several nerves in the brain. A treatment to take on attacks after they've started, reducing pain intensity and light and sound sensitivity.

Acupuncture and Acupressure

Acupuncture and acupressure, which involve stimulating nerve pathways using needles and physical pressure, may also help. In one review of 22 studies assessing data from 4,985 people with migraine, regular acupuncture reduced headache frequency by about 50% in 59% of the patients.

    Common Migraine Symptoms

    Migraine headaches typically last about four hours, though they can last up to three days, especially if untreated. The location of the pain and its intensity can vary throughout the course of the attacks. The headache may affect one side of the head or both, and it can spread to the face or jaw.

    Migraine attacks are typically preceded by a prodrome phase, during which symptoms start to set in, as well as a postdrome phase, characterized by:

    • Inability to concentrate 
    • Depressed mood 
    • Fatigue 
    • Speech and reading problems
    • Sleep disturbances
    • Light and sound sensitivity  

    In addition, some experience migraine with aura. In these cases, a phase of the episode is characterized by:

    • Visual disturbances, such as blurry spots, sparkles, or lines
    • Numbness and tingling
    • Temporary loss of sight in one or both eyes
    • Muscle weakness on one side of the body
    • Affected speech

    Migraines also cause other symptoms, including:

    • Nausea and vomiting
    • Irritability, depression, anxiety, giddiness, and inability to concentrate
    • Sensitivity to light, sound, or smell
    • Fatigue
    • Chills or hot flashes
    • Pale skin
    • Loss of appetite

    When to Seek Professional Treatment

    Knowing when you need to see a doctor is another critical aspect of living with migraines. Get emergency medical help if you experience:

    • A headache worse than any you’ve experienced in the past
    • Problems speaking, along with vision and motor function
    • Loss of balance or other neurological symptoms
    • Sudden onset of headache

    In addition, call your doctor if any of the following happens:

    • There’s a change in the pattern of your headaches.
    • Your treatments aren’t working anymore.
    • You’re experiencing side effects from medications.
    • You’ve started taking birth control while on medications.
    • You’re taking pain medications three or more days a week.
    • Headaches are worse when you’re lying down.

    A Word From Verywell

    Migraines are not “just” headaches. They’re debilitating, come at any time, and give rise to a range of symptoms. Living with migraines means being proactive and vigilant. It means knowing what to do when you have attacks and figuring out ways of preventing them. 

    If you’re struggling with migraines or headaches, make sure to talk to your doctor about what you can do. With their help, you’ll find strategies to ease and minimize this condition’s impact.   

    Frequently Asked Questions

    • Can you get rid of a migraine fast without medicine?

      Medications can help a great deal after the onset of migraine, but other means may also help. These other methods include:

      • Icing or using heat compresses on your head
      • Resting with your eyes closed in a dark, quiet place
      • Taking a nap
      • Drinking water
      • Having a coffee, tea, or caffeinated drink
    • How long should you sleep to get rid of a migraine fast?

      Increasingly, researchers are finding links between sleep cycles and migraines. This is why ensuring you get good, consistent sleep is essential to preventing attacks. It’s also why going to sleep can stop migraines.

      No set amount of sleep time is known to be necessary, and every case varies. Make sure you rest and avoid stimulation until you’re sure that symptoms have passed.

    • Will pressure points help you get rid of migraines quickly?

      Along with other ways to treat migraine attacks, there is some evidence that acupressure—a traditional Chinese medical approach involving applying pressure on a specific part of the body—may help you manage the pain.

      Evidence suggests that pressure on several points can help, Li4, or "Hegu," found between the thumb and forefinger, and PC6—on the inside arm, about three finger lengths up from the wrist—have been found to help with nausea.

    • What foods can trigger migraines?

      Common migraine triggers include:

      • Alcohol
      • Bread and other leavened products
      • Cheese
      • Chocolate
      • Citrus fruit
      • Coffee
      • Red wine
      • Tomatoes
    • What can I eat to relieve a migraine?

      Two nutrients may help to relieve migraines: magnesium and omega-3 fatty acids.

      Research suggests magnesium may prevent and treat migraines because it acts on neurons. Foods rich in magnesium include:

      • Legumes
      • Nuts
      • Spinach
      • White potatoes
      • Whole grains

      Omega-3 fatty acid intake is linked to fewer migraines as well. Foods rich in omega-3s include:

      • Fish such as mackerel and salmon
      • Legumes
      • Seeds


    19 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. Cleveland Clinic. Migraine headaches: causes, treatment & symptoms.

    2. Mayans L, Walling A. Acute migraine headache: treatment strategies. Am Fam Physician. 2018 Feb 15;97(4):243-251. PMID: 29671521

    3. National Institutes of Health. Migraine.

    4. Rizzoli P. Does Botox reduce the frequency of chronic migraine?. Harvard Health Blog.

    5. American Migraine Foundation. Managing migraine with exercise.

    6. Centers for Disease Control and Prevention. Move more; sit less.

    7. Sathyaprabha T, Kisan R, Adoor M et al. Effect of Yoga on migraine: A comprehensive study using clinical profile and cardiac autonomic functionsInt J Yoga. 2014;7(2):126. doi:10.4103/0973-6131.133891

    8. Wells R. Mindfulness as one component of an integrative approach to migraine treatment in clinical practice: companion editorialExpert Rev Neurother. 2020;20(3):199-202. doi:10.1080/14737175.2020.1724783

    9. American Migraine Foundation. Mindfulness for migraine.

    10. Reuter U, McClure C, Liebler E, Pozo-Rosich P. Non-invasive neuromodulation for migraine and cluster headache: a systematic review of clinical trials. J Neurol Neurosurg Psychiatry Res. 2019;90(7):796-804. doi:10.1136/jnnp-2018-320113

    11. American Migraine Foundation. Neuromodulation for migraine treatment.

    12. Linde K, Allais G, Brinkhaus B et al. Acupuncture for the prevention of episodic migraine. Cochrane Database of Systematic Reviews. 2016. doi:10.1002/14651858.cd001218.pub3

    13. Starling A, Nicholson R. Identifying & treating migraine.

    14. Allais G, Rolando S, Castagnoli Gabellari I et al. Acupressure in the control of migraine-associated nausea. Neuro Sci. 2012;33(S1):207-210. doi:10.1007/s10072-012-1069-y

    15. Wang Y, Xue C, Helme R, Da Costa C, Zheng Z. Acupuncture for frequent migraine: a randomized, patient/assessor blinded, controlled trial with one-year follow-upEvid Based Complement Alternat Med. 2015:1-14. doi:10.1155/2015/920353

    16. Razeghi Jahromi S, Ghorbani Z, Martelletti P, Lampl C, Togha M; School of Advanced Studies of the European Headache Federation (EHF-SAS). Association of diet and headache. J Headache Pain. 2019;20(1):106. doi:10.1186/s10194-019-1057-1

    17. Dolati S, Rikhtegar R, Mehdizadeh A, Yousefi M. The role of magnesium in pathophysiology and migraine treatment. Biol Trace Elem Res. 2020;196(2):375–83. doi:10.1007/s12011-019-01931-z

    18. Volpe SL. Magnesium in disease prevention and overall health. Adv Nutr. 2013;4(3):378S-83S. doi:10.3945/an.112.003483

    19. Sanders AE, Shaikh SR, Slade GD. Long-chain omega-3 fatty acids and headache in the U.S. population. Prostaglandins Leukot Essent Fatty Acids. 2018;135:47-53. doi:10.1016/j.plefa.2018.06.008

    By Mark Gurarie
    Mark Gurarie is a freelance writer, editor, and adjunct lecturer of writing composition at George Washington University.