← Back to blog
Thoughtful woman holding a pill, in front of a glass of water and various migraine medications
Treatments

Migraine Medication: Painkillers, NSAIDs and Triptans Explained

By Laurine Nicoletti10 min

You stand in the pharmacy aisle staring at a wall of boxes: paracetamol, ibuprofen, aspirin, "migraine" formulas with caffeine. Or your doctor mentions a triptan and you wonder how it differs from the painkillers you already know. Nobody explains how migraine medication all fits together.

This guide gives you the big picture of migraine medication used during an attack: the main families, what each is generally for, and why your doctor or pharmacist should stay in the loop. It's part of our migraine treatments series, and it deliberately contains no doses, because those depend on you.

In short

  • Migraine medication taken during an attack falls into a few families: simple painkillers, anti-inflammatories (NSAIDs), triptans, and anti-sickness medicines, often used in combination.
  • The Mayo Clinic says over-the-counter pain relievers usually help only against mild migraine pain, while triptans are prescription medicines made for migraine.
  • The NHS advises trying not to take painkillers for more than 2 days a week, because overuse can lead to more headaches.
  • Which medication suits you depends on your health, other medicines and attack pattern, so that choice belongs to a doctor or pharmacist.

Why are there so many different types of migraine medication?

There are several families because migraine attacks differ from person to person, and from one attack to the next. Some are mild and respond to a simple painkiller. Others are severe, come with nausea, and need something that targets migraine itself.

Doctors also tend to work in steps. The NHS describes starting with ordinary painkillers and moving to a triptan, possibly with anti-sickness medicine, if painkillers alone aren't enough. In practice, the plan is often a combination rather than one single pill.

One idea runs through every family: timing matters. The Mayo Clinic notes that medicines for migraine pain work best when taken as soon as symptoms begin. The NHS gives the reason for painkillers: taken early, they have time to be absorbed and ease your symptoms.

If you're not sure whether what you have is migraine or an ordinary headache, our guide on migraine vs headache can help you tell the difference.

Painkillers and anti-inflammatories: the over-the-counter options

Many people start here. The NHS says over-the-counter painkillers such as paracetamol, aspirin and ibuprofen help reduce symptoms for many people who have migraines.

Simple painkillers: paracetamol (acetaminophen) and aspirin

Simple painkillers are the most familiar and the easiest to find, and they can be enough for milder attacks. In the US, paracetamol is called acetaminophen (the brand name Tylenol is common). Some products combine acetaminophen, aspirin and caffeine, such as Excedrin Migraine.

The Mayo Clinic says these medicines may help, but usually only against mild migraine pain. The American Migraine Foundation adds that most over-the-counter options are swallowed, so they can take a little longer to work.

One safety point: the NHS says children under 16 shouldn't take aspirin unless a healthcare professional advises it. If you're buying for a teen, ask the pharmacist first, and see our article on migraine in children and teens.

Anti-inflammatories (NSAIDs): a common first choice

NSAIDs (non-steroidal anti-inflammatory drugs) include ibuprofen, naproxen, aspirin and diclofenac. Many of them are sold over the counter, and some are prescription-only.

A Mayo Clinic News Network piece on a large analysis reports that triptans, NSAIDs, or a combination of the two had the largest evidence base for pain relief at two hours. The American Migraine Foundation adds that NSAIDs are sometimes cheaper than triptans and, in the few studies that compared them head to head, performed at least nearly as well.

NSAIDs aren't right for everyone, for example if you have stomach problems, kidney problems or are pregnant. That's a conversation for your pharmacist or doctor, not a guess in the aisle.

What are triptans and when are they used?

Triptans are prescription medicines designed specifically for migraine, and they're often the next step when ordinary painkillers aren't enough. The NHS describes them as a specific painkiller for migraine, thought to work by reversing changes in the brain that may cause the headache.

They come in several forms. The Mayo Clinic lists pills, injections, nasal sprays and dissolving tablets, which can matter if nausea makes swallowing a tablet hard. The Mayo Clinic also notes that triptans are usually the first treatment recommended for moderate to severe attacks.

Triptans can be combined with other medicines. According to the NHS, a triptan plus an NSAID works better than either one alone. In the UK, sumatriptan can also be bought from a pharmacy without a prescription by people who already have a migraine diagnosis.

Because triptans act on blood vessels, they're generally not used by people with heart disease, uncontrolled high blood pressure or a history of stroke, as the American Migraine Foundation explains. Your doctor will check this before prescribing. For types, side effects and safety, read our full guide to triptans explained.

What helps when nausea makes everything harder?

Anti-sickness medicines (antiemetics) can be added to a migraine plan to treat nausea and vomiting, and sometimes the migraine itself. The Mayo Clinic says your healthcare professional may recommend them, naming prochlorperazine and promethazine as examples.

The NHS goes further: anti-sickness medicines can successfully treat migraine in some people even if they don't feel or get sick. They're prescribed by a GP, can be taken alongside painkillers and triptans, and, like painkillers, work better when taken as soon as symptoms begin.

This matters in practice. If you vomit a tablet, it may not have a chance to work, which is why doctors sometimes discuss other forms such as nasal sprays or dissolving tablets. For non-drug ways to settle your stomach, see migraine nausea: why it happens and how to ease it.

Newer, older and more cautious options

Beyond the main families, a few other medicines exist, and some deserve extra caution.

  • Gepants. These newer tablets block CGRP, a molecule involved in migraine. The Mayo Clinic says ubrogepant and rimegepant are approved for treating attacks in adults, and in trials were more effective than placebo at relieving pain after two hours, including nausea and sensitivity to light and sound. The American Migraine Foundation says they have a non-vasoconstrictive mechanism, which makes them an option for people who can't take triptans for cardiovascular reasons. Availability varies by country.
  • Ergots. The Mayo Clinic describes ergotamine and caffeine combinations as less effective than triptans, seemingly most useful when pain lasts more than 72 hours.
  • Opioids. The Mayo Clinic's large analysis found low evidence of pain relief for migraine from opioids.
  • Butalbital combinations. The American Migraine Foundation notes that some combination medicines, including butalbital ones, can contribute to medication overuse headache.

None of this means you should stop or switch a medicine on your own. If you take any of these today, raise it with your doctor.

How often can you take migraine medication?

Taking attack medication too often can backfire, so it's worth knowing roughly where the limits sit. The NHS advises trying not to take painkillers for more than 2 days a week, because it can cause more headaches and make migraine harder to treat.

This is called medication overuse headache, or rebound headache. The American Migraine Foundation says over-the-counter pain relievers can cause it when used 15 or more days a month, and that products like Excedrin can do so at lower frequency (more than eight times a month). Triptans and other prescription options have their own thresholds, which your doctor can explain.

If you're reaching for a pill most days, don't push through. Our article on why you may have a headache every day covers this loop, and a doctor can help you break it safely.

What's the difference between attack medication and preventive treatment?

Attack (acute) medication treats a migraine that has already started, while preventive treatment aims to make attacks less frequent or less severe over time. Everything above belongs to the first group. The American Migraine Foundation frames acute medication as something you take once an attack starts.

Preventive options are a separate conversation, usually considered when attacks are frequent or disabling. They include newer CGRP-targeting treatments, covered in our guide to CGRP inhibitors for migraine prevention. Whether prevention makes sense for you is something to decide with your doctor.

Medication isn't the only tool. Our article on how to relieve a migraine without medication covers what can support you alongside it.

How to prepare the conversation with your doctor or pharmacist

A few notes make the appointment far more productive, because your answers help the professional choose well. A simple migraine diary works well for this.

Before you go, try to write down:

  • how many attacks you have a month, and how long they last;
  • how severe they are, and whether nausea, vomiting or aura come with them;
  • what you've already taken, when in the attack you took it, and what happened;
  • how many days a month you take any pain medicine;
  • your other medicines, health conditions, and whether you might be pregnant or planning to be.

And here are good questions to ask:

  • Which medicine fits my attacks, and when should I take it?
  • Is a triptan suitable for me, and in which form?
  • Do I need something for nausea?
  • How many days a month is too many?
  • At what point should we think about preventive treatment?

If you're unsure who to book, see when to see a doctor for migraine.

Conclusion: you don't have to figure it out alone

Migraine medication is easier to navigate once you see the logic: simple painkillers and NSAIDs for milder attacks, triptans as migraine-specific medicine, anti-sickness medicines when nausea gets in the way, and newer options for people who can't use the others. Taking them early and not too often matters as much as which one you choose.

Your pharmacist and doctor can match the options to your health and your pattern, and your own notes make that match much more accurate. If what you're taking isn't working, that's a reason to ask for a review, not to put up with it.

Frequently asked questions

What is the best medication for a migraine?

There isn't one best medicine for everyone. The Mayo Clinic says over-the-counter options usually help with mild pain, while triptans are usually the first recommended treatment for moderate to severe attacks. A doctor or pharmacist can help you choose based on your health.

Is ibuprofen or paracetamol better for migraine?

Both can help with milder attacks, and they work differently: ibuprofen is an anti-inflammatory, paracetamol (acetaminophen) is a simple painkiller. The NHS lists both as options, and the right one depends on your health and other medicines, so check with a pharmacist.

Can I take a triptan and a painkiller together?

Often, yes. The NHS says a triptan combined with an NSAID is more effective than either alone, and that a GP may recommend a triptan together with painkillers and anti-sickness medicine. Never combine them on your own: ask your doctor or pharmacist what's safe for you.

Why does my migraine medication not work anymore?

There are several possible reasons, including taking it late in the attack or too often. The NHS says painkillers work better early, and that using them more than 2 days a week can make migraine harder to treat. If it's not working, ask your GP or doctor to review your plan.

Sources

Written by Laurine Nicoletti, founder of Mellow, who has lived with migraine since she was 21. Learn more · How we write our articles

Related articles

All “Treatments” articles

Download Mellow

Free to download. Log your first attack in a few seconds.

4.8 from 62 ratings
Download on the App StoreGet it on Google Play