Factsheet 8 · Treatment

Medicines for migraine

Treating attacks, preventing them, and avoiding medication-overuse headache.

Key points

  • Acute medicines treat an attack. Preventive medicines reduce how often attacks happen.
  • Avoid codeine and other opioids for migraine.
  • Take acute treatment early and on no more than 2 days a week.
  • Finding the right medicine can take a few tries.

Treating an attack

MedicineWhat to know
Aspirin, ibuprofen, paracetamolFirst choice. Soluble forms often work faster. Ask your pharmacist about the right dose. Aspirin is not suitable for under-16s.
Anti-sickness medicines (for example metoclopramide, prochlorperazine)Prescription. Ease sickness and help other medicines work. Can be combined with painkillers.
Triptans (for example sumatriptan, zolmitriptan)Prescription. Effective for most people. Try each one for 3 attacks. Nasal sprays and injections help if you are sick early.
Gepants (for example rimegepant)Newer prescription option for some people when triptans haven’t worked or aren’t suitable.

If you have aura, take treatment when the headache starts.

Getting the most from treatment

  • Take it early in the headache. Medicines work less well once pain is severe.
  • Use soluble or dispersible forms, or nasal sprays if you vomit early.
  • Take an anti-sickness medicine with painkillers if you feel sick.
  • Check cold and flu remedies. Many contain codeine or caffeine.
  • If an attack goes on beyond 2 days, more painkillers rarely help. Speak to your GP or call NHS 111.

Medication-overuse headache

Taking acute medicines too often can cause more headaches. Your risk rises if you take:

  • painkillers on 15 or more days a month
  • triptans, opioids or combination painkillers on 10 or more days a month

Cutting back usually makes headaches worse for 1 to 2 weeks before they improve. Talk to your GP first, especially if you take opioids, which need a slower plan. See our Medication overuse headache factsheet.

Preventing attacks

Your GP may suggest a daily preventive medicine if attacks are frequent or disabling. They start at a low dose and increase slowly. Give each one 2 to 3 months at a good dose before judging it, and review whether you still need it after 6 to 12 months.

MedicineWhat to know
PropranololUsually tried first. Use with caution if you have asthma.
AmitriptylineTaken at night. Can cause a dry mouth and drowsiness.
CandesartanA blood pressure medicine with few side effects.
TopiramateCan cause tingling and weight loss. Must not be taken in pregnancy. Effective contraception is needed.
Sodium valproateMust not be used by anyone who could become pregnant. It can seriously harm an unborn baby.
Specialist optionsBotulinum toxin and CGRP medicines (monthly injections or tablets), usually after three preventives haven’t worked.

Triptans aren’t suitable for everyone

Your GP will check your heart health and blood pressure first. Triptans are not usually prescribed if you have had a heart attack or stroke, or have uncontrolled high blood pressure.

Devices

Nerve stimulation devices worn on the forehead or neck may help some people. They aren’t routinely available on the NHS and the evidence is still developing. See our Migraine relief products factsheet.

Pregnancy and breastfeeding

Tell your GP if you are planning a pregnancy, are pregnant or are breastfeeding. Paracetamol is usually the first choice. Check every medicine, including ones you buy. See our Pregnancy, contraception and migraine factsheet.

It’s OK to ask

Ask your GP or pharmacist: What are the benefits? What are the risks? What are the alternatives? What happens if I do nothing?

Side effects

Many side effects are mild and settle within a few weeks. Tell your GP if they don’t. There is usually another option. Don’t stop a preventive suddenly without advice.

When to see your GP

See your GP if you need acute medicines on more than 2 days a week, if treatments aren’t working, or if side effects bother you. Call 999 for a sudden, severe headache unlike any you have had before. For advice, call NHS 111.

References

  1. Scottish Intercollegiate Guidelines Network (2022) Migraine: a booklet for people with migraine, their families and carers (PAT155). Edinburgh: SIGN.
  2. Walton Centre NHS Foundation Trust (no date) Migraine: a comprehensive guide. Liverpool: The Walton Centre.

Factsheet 8 · Version 1.0 · November 2026 · Next review November 2028. General information, not medical advice. Talk to your GP or pharmacist before starting, stopping or changing any treatment.