Migraine Treatment: How to Stop an Attack Fast and Which Prevention Actually Works

Migraine isn't "just a bad headache" — it's a neurological condition: around 12–15% of adults have it, and women three times more often than men. It can't be fully cured yet, but it can be controlled: an attack can be stopped within an hour or two, and for many people prevention makes attacks half as frequent.
Migraine treatment is two separate plans. The first — what to do when an attack has already started. The second — what to do between attacks so there are fewer of them. This article covers both, plus the main trap: painkillers that, taken too often, start causing headaches themselves.
This article is for informational purposes and doesn't replace a consultation with a doctor. Before taking any medication, read the instructions, and if you're unsure about the choice or dosage — check with a doctor or pharmacist.
In brief: how to treat migraine
- Take the medicine at the start of the attack, while the pain is still tolerable, not when it peaks
- Mild and moderate attacks are stopped by anti-inflammatories — ibuprofen, naproxen, acetylsalicylic acid; severe ones — by triptans, chosen by a neurologist
- No more than 2 days a week and 10 days a month — otherwise medication-overuse headache develops
- 4 or more attacks a month — you need prevention, which makes attacks less frequent
- Thunderclap pain, arm weakness, speech trouble — not migraine, call an ambulance
Is it definitely migraine?
A migraine attack lasts from 4 to 72 hours. The pain is pulsating, moderate to unbearable, worsens with walking and routine household activity, and comes with nausea or sensitivity to light and sound. In some patients, 10–30 minutes before the pain an aura appears — flickering zigzags or a blind spot in part of the visual field, tingling in an arm, trouble speaking. It resolves without a trace.
The diagnosis is made by a neurologist: other, dangerous causes of headache can hide behind a migraine mask. But if your attacks are always the same and the diagnosis was made long ago, the main thing is to treat them correctly.
How to stop a migraine attack
The first rule: don't tough it out. Medicine taken in the first minutes, while the pain is still mild, works noticeably better than medicine taken at its peak.
- Mild and moderate attacks — anti-inflammatories: ibuprofen 400 mg, naproxen 500–550 mg, or acetylsalicylic acid (aspirin) 500–1000 mg. Effervescent forms act faster than tablets. The combination of aspirin, paracetamol, and caffeine is more effective than each component alone. Paracetamol 1000 mg is weaker, but saves the day when anti-inflammatories are off-limits — for example, with a stomach ulcer
- Anti-inflammatories — after food. With kidney disease or blood-thinning medication, check with a doctor first
- Severe attacks — triptans: sumatriptan, zolmitriptan, naratriptan, rizatriptan, eletriptan. These drugs were created specifically for migraine: they suppress pain transmission along the trigeminal nerve and help in most attacks. They're taken once the pain has started: during an aura they don't prevent the attack. If one triptan has failed in two or three consecutive attacks, try another. Triptans are prescription-only and contraindicated in angina, past heart attack, and stroke
- Nausea and vomiting. A tablet may not have time to work: for this case there are triptans as a nasal spray and injections, also prescribed by a doctor. And for the nausea itself a doctor may prescribe metoclopramide — it also helps the painkiller absorb
- The setting: a dark quiet room, a cool compress on the forehead or neck, water in small sips. If you can fall asleep, many wake up pain-free
Dosing intervals and daily limits differ for every drug — check the instructions.

Medication-overuse headache
If you take simple painkillers 15 or more days a month, or triptans or combination analgesics 10 or more days a month, for three months, your head starts hurting almost daily: the tablet brings relief for a couple of hours, then the pain returns. This is called medication-overuse headache, and it targets precisely those who have migraine.
It's treated by stopping the drug — usually abruptly and under a doctor's supervision: the first week or two are the hardest, but afterwards there are fewer attacks. Hence the benchmark: no more than 2 days a week and 10 days a month with tablets.

What not to do when treating migraine
- Take combination painkillers with metamizole and antispasmodics. There's no evidence they help in migraine, and metamizole has a rare but dangerous side effect — agranulocytosis, a sharp drop in white blood cells
- Make do with ergotamine. It was the first migraine-specific remedy, but triptans have surpassed it: ergotamine more often causes nausea and blood vessel spasm and leads to dependence faster. Unless a doctor says otherwise, the modern replacement is a triptan
- Treat it with antispasmodics and "vascular" drugs. Migraine isn't a vessel spasm, and there's no convincing evidence that drotaverine, vinpocetine, cinnarizine, or piracetam work for it
Migraine prevention
Prevention is started when there are 4 or more attacks a month, they disable you for long stretches, or painkillers have to be taken too often. The drug is chosen by a neurologist — usually from these groups:
- Beta-blockers — propranolol, metoprolol
- Antiepileptics — topiramate, valproic acid
- Antidepressants — amitriptyline, venlafaxine
- Botulinum toxin type A — injections for chronic migraine, when the head hurts 15 or more days a month for three months
- CGRP blockers — a new class: monthly injections and tablets are already used abroad; their availability in your country should be checked with a doctor
Success means the number of attacks at least halved. The effect is assessed after 2–3 months, and once the result is achieved, treatment continues for another 6–12 months and is then tapered off.
Vitamin B2 (riboflavin), magnesium, and coenzyme Q10 moderately reduce attack frequency in studies. They're an add-on, not a replacement for medication; discuss the doses with a doctor.

What else reduces attack frequency
- Routine. Go to bed, get up, and eat at the same times: too little sleep, oversleeping, and skipped meals are frequent attack triggers, while everyone's list of "forbidden foods" is their own and often exaggerated. After stress, an attack often arrives late — already during the letdown afterwards. Hence "weekend migraine"
- A headache diary. Record attacks and tablets taken for at least two or three months: it shows the triggers, how many days a month you take medicine, and whether prevention is working
- Aerobic exercise — 30–40 minutes three times a week: in studies it reduces the number of migraine days
- Psychotherapy. Cognitive behavioral therapy, relaxation, and biofeedback are comparable in effect to some preventive drugs
- Caffeine — in moderate doses it boosts painkillers, while in large regular doses it triggers headaches itself. Quitting coffee abruptly does too
Who needs extra caution
- Women with aura. Combined estrogen contraceptives are contraindicated for them: the combination raises stroke risk, especially in smokers. For menstrual migraine, a neurologist may prescribe a short course of medication a few days before the period
- Pregnant women. In most women migraine eases in the second and third trimesters. For an attack — paracetamol; anti-inflammatories, triptans, and prevention — only on a doctor's decision. Topiramate and valproic acid are not used in pregnancy or when planning one
- Children and teenagers. Ibuprofen or paracetamol at a weight-based dose; aspirin — never. Attacks more often than twice a month are a reason to see a pediatric neurologist
When you need a doctor urgently

Migraine is recognizable and each time resembles itself. Anything unlike it should raise alarm:
- The pain struck like a thunderclap — became unbearable within seconds or minutes
- Arm or leg weakness, speech or vision trouble lasting longer than an hour; confusion
- High fever, and the chin can't be pressed to the chest
- Pain in the eye with redness and blurred vision
- The pain started after a head injury, first appeared after age 50, or against the backdrop of cancer, HIV, pregnancy, or childbirth
- The attack lasts more than three days
In an aura, symptoms build gradually over 5–20 minutes; in a stroke they appear instantly. A first-ever aura after age 40 is a reason to see a doctor the same day.
As a routine matter, see a neurologist if painkillers have failed in two consecutive attacks: you may need triptans or prevention.
Frequently asked questions
Can migraine be cured for good?
Not yet: the tendency to attacks is genetic — about two-thirds of patients have relatives with migraine. But most people can control it, and with age the attacks often fade or go away.
Is migraine dangerous?
Usually not for the brain: no link to memory decline or dementia has been found in studies. But migraine with aura slightly raises stroke risk, which is why not smoking and avoiding estrogen contraceptives matter especially with it.
Why does only half of my head hurt?
It doesn't have to: one-sided pain is a common but not mandatory sign; many people hurt on both sides. The condition's name comes from the Greek for "half head" — hence the myth.
Instead of a conclusion
Migraine treatment is three steps: stop attacks early with the right drug, stay under the painkiller limit, and if attacks are frequent, choose prevention with a neurologist. Related reading:
- One Active Ingredient, Different Names
- The Home Medicine Cabinet: A Checklist
- How Long Medicine Lasts After Opening
The early-dose rule only works if the tablet is within reach. Put together a "migraine kit" — a painkiller, a triptan, and water — and keep one at home, at work, and in your bag: Tabletto (tabletto.online) lets you maintain multiple medicine kits, and the app reminds you when a medication needs replacing.
Disclaimer. This article is for informational purposes and doesn't replace a consultation with a doctor or pharmacist. Choose the medication, dosage, and duration of use according to the instructions, and when in doubt — together with a specialist. This is especially important when the patient is a child, a pregnant woman, or someone with chronic conditions.