What to do in the first minutes of a migraine

The first step is to take a pain reliever as soon as you recognize the migraine is starting—not after it has built to full strength. Over-the-counter options include ibuprofen (Advil, Motrin), naproxen (Aleve), or acetaminophen (Tylenol). Ibuprofen and naproxen are nonsteroidal anti-inflammatory drugs (NSAIDs) and tend to work better for migraine than acetaminophen alone, though individual response varies.

If over-the-counter medication has not worked for you in the past, or if your migraines are severe, your doctor may have prescribed a triptan—a medication class designed specifically for migraine. Common triptans include sumatriptan (Imitrex), rizatriptan (Maxalt), and zolmitriptan (Zomig). These work by narrowing blood vessels and blocking pain pathways in the brain. Triptans work best when taken early, ideally during the aura phase if you have one, or within the first hour of pain.

Stop what you are doing and move to a quiet, dark room if possible. Light and sound often make migraine worse, and removing yourself from stimulation can prevent the headache from intensifying. If you are at work or cannot leave immediately, dimming your screen and putting in earplugs can help.

Key Takeaways

  • Take a pain reliever or triptan within the first hour of migraine onset—waiting makes medication less effective.
  • Move to a dark, quiet space and lie down; light and sound worsen most migraines.
  • Apply a cold compress to your head or neck, or try a warm compress if cold makes it worse—individual preference matters.
  • Stay hydrated and avoid caffeine withdrawal, but do not use caffeine as a regular migraine treatment because rebound headaches develop.
  • If migraines happen more than four days a month, talk to your doctor about preventive medications that reduce frequency and severity.

Cold and heat: which one works

A cold compress applied to your head, neck, or temples can numb the area and reduce pain signals. Many people find ice packs or even a bag of frozen vegetables wrapped in a thin cloth effective. The cold also causes blood vessels to constrict, which may ease the throbbing sensation.

Some people respond better to heat—a warm compress or heating pad on the neck or shoulders can relax tense muscles that contribute to migraine pain. There is no universal rule; you will need to test both and see which one your body prefers. Some people alternate between cold and heat in cycles.

Hydration and what to avoid during a migraine

Dehydration is a known migraine trigger, so drinking water during an attack can sometimes reduce severity. However, if nausea is part of your migraine, drinking large amounts at once may make it worse. Sip water slowly instead of gulping it.

Avoid caffeine during an active migraine if you do not regularly consume it, because caffeine can trigger rebound headaches. However, if you are a regular caffeine user and suddenly stop, caffeine withdrawal itself can trigger or worsen migraine. The key is consistency: if you normally drink coffee, having your usual amount during a migraine is unlikely to harm you.

Do not reach for alcohol, high-sugar foods, or processed foods during a migraine. These can worsen nausea and delay recovery. If you can eat, bland foods like toast or crackers are easier to tolerate than heavy meals.

When to consider preventive medication

If you have migraines more than four days per month, or if individual attacks are so severe that they disrupt your life, your doctor may recommend preventive medication. These are taken daily to reduce how often migraines occur and how severe they are when they do happen—they do not stop an active migraine.

Common preventive options include beta-blockers (propranolol, metoprolol), tricyclic antidepressants (amitriptyline), anticonvulsants (topiramate, valproic acid), and newer medications called CGRP inhibitors (erenumab, fremanezumab, eptinezumab). CGRP inhibitors are monoclonal antibodies that block a protein involved in migraine pain; they are injected monthly or quarterly. Your doctor will choose based on your migraine pattern, other health conditions, and how you tolerate side effects.

Preventive medications typically take four to eight weeks to show benefit, so patience is necessary. If one does not work or causes side effects you cannot tolerate, your doctor can switch you to another class.

Recognizing when to seek medical care

Most migraines can be managed at home, but certain warning signs mean you should contact a doctor or go to an emergency room. Seek immediate care if you experience a migraine that is different from your usual pattern, a sudden severe headache unlike anything you have felt before, migraine accompanied by fever, stiff neck, confusion, vision changes, weakness, or difficulty speaking.

These symptoms can indicate a more serious condition such as meningitis, stroke, or other neurological emergency. If you have never been diagnosed with migraine by a doctor, or if your migraines have changed significantly, schedule an appointment with your primary care doctor or a neurologist to confirm the diagnosis and discuss treatment options.

Lifestyle changes that reduce migraine frequency

Beyond medication, certain habits lower how often migraines strike. Regular sleep on a consistent schedule is one of the most powerful tools—both too little sleep and sudden changes in sleep pattern trigger migraine. Aim for seven to nine hours nightly and keep your bedtime and wake time roughly the same on weekends.

Regular aerobic exercise (walking, swimming, cycling) three to four times per week reduces migraine frequency in many people. Exercise should be gradual; sudden intense activity can trigger a migraine, so build up slowly. Stress management through meditation, deep breathing, or yoga also helps, since stress is a common trigger.

Keep a migraine diary for two to three months, noting the date, time, severity, what you were doing before it started, what you ate, your sleep the night before, and your stress level. Patterns often emerge—certain foods, hormonal cycles, weather changes, or situations may consistently precede your migraines. Once you identify your triggers, you can work to avoid or manage them.

Frequently Asked Questions

Can I use over-the-counter pain relievers every time I have a migraine?

Using over-the-counter pain relievers more than ten to fifteen days per month can lead to medication overuse headache, also called rebound headache. This is a cycle where frequent medication use actually triggers more frequent headaches. If you are taking pain relievers more than twice a week, talk to your doctor about preventive medication instead.

Does caffeine help or hurt a migraine?

Caffeine can narrow blood vessels and may reduce migraine pain in the short term, which is why it is included in some migraine medications. However, using caffeine as a regular treatment leads to dependence and rebound headaches when you skip it. If you do not regularly drink caffeine, avoid it during migraine. If you do drink it daily, maintaining your usual amount is fine.

What is the difference between a migraine and a regular headache?

Migraines typically involve throbbing pain on one side of the head, often with nausea, vomiting, or sensitivity to light and sound. Regular tension headaches are usually a steady pressure on both sides and do not come with nausea or light sensitivity. Migraines also tend to be more disabling and last longer (four to seventy-two hours). If you are unsure, your doctor can help distinguish between the two.

Should I go to the emergency room for a migraine?

If your migraine is your usual pattern and your usual medication works, you do not need the emergency room. Go if the migraine is unusually severe, different from your normal migraines, accompanied by fever or stiff neck, or if your medication is not working and you have been in pain for more than a few hours. The emergency room can provide IV fluids, stronger medications, and imaging if needed to rule out other causes.

Can children take the same migraine medications as adults?

Some medications are approved for children, but dosing is different and depends on age and weight. Ibuprofen and naproxen are generally safe for children over certain ages. Triptans are approved for children ages six and up, though specific triptans and doses vary. Talk to your child's doctor before giving any migraine medication; do not assume adult doses are safe.