Post-exercise migraine: prevention, diagnosis, and when to see a doctor

If a headache after training has become a regular occurrence, it can and should be controlled. Some attacks can be prevented with simple changes of routine, some require a doctor, and some types of pain are a signal of dangerous conditions. Our editors have prepared a practical overview: what to do before and after training, how the diagnosis is made, and which symptoms require emergency care.
Prevention: how people with migraine should train
Regular aerobic activity can reduce the frequency of attacks, so giving up sport is not the solution. The task is to remove those elements of training that provoke pain and keep those that help.
The most important element is the warm-up. A gradual increase in heart rate over 10–15 minutes allows the vessels and nervous system to adapt, whereas an abrupt start at maximum intensity is one of the most frequently mentioned triggers. In strength training it is worth avoiding prolonged straining with breath-holding, especially at the start of the session.
- Plan training at the same time of day, if possible.
- Do a gradual warm-up; do not start with maximum effort.
- Increase volume and intensity gradually, without sharp jumps.
- Avoid training in severe heat without adaptation.
- Add a cool-down and do not switch abruptly from intense work to complete rest.
Sleep is another key factor. Both sleep deprivation and excessive sleep on weekends can provoke attacks. For athletes with early training this means careful planning of bedtime.
It is also useful to work with pre-start stress. Migraine attacks often occur not at the moment of stress but after it — on the rest day after a competition. Relaxation techniques, breathing exercises, and a gradual reduction of activity after a start reduce this risk.
Nutrition, fluid, and caffeine
Regularity of meals is one of the simplest ways to prevent attacks. Training on an empty stomach, long intervals between meals, and low-carbohydrate diets increase the risk of attacks in susceptible people. Before training, a meal with carbohydrates is advisable, and afterward — replenishment of glycogen stores.
Hydration should be adequate but not excessive. You should be guided by thirst, urine color, and the change in body weight before and after training, and during prolonged exercise in the heat — use drinks with electrolytes.
| Factor | What can provoke an attack | What helps |
|---|---|---|
| Food | Skipped meals, training on an empty stomach | Regular meals, carbohydrates before and after |
| Fluid | Dehydration, especially in the heat | Planning drinking, electrolytes on long events |
| Caffeine | Large doses and abrupt withdrawal | Stable moderate use or gradual reduction |
| Alcohol | Especially after competitions, against a background of dehydration | Limitation or avoidance |
| NO supplements | Possible individual sensitivity | Monitor the reaction, avoid if necessary |
Caffeine requires special attention. Stable moderate use usually does no harm, but large doses from several sources — coffee, energy drinks, pre-workout formulas — and abrupt withdrawal before competitions or on weekends are capable of provoking headache. If you need to reduce caffeine, do it gradually.
Supplements for migraine prevention that neurological guidelines consider are magnesium, riboflavin (vitamin B2), and coenzyme Q10. Their evidence base is moderate; their use is worth discussing with a doctor, especially if you already take other agents.

Diagnosis: what the doctor evaluates
The diagnosis of migraine and primary exercise headache is made clinically according to the criteria of the International Classification of Headache Disorders (ICHD-3). The doctor asks about the nature, localization, and duration of the pain, accompanying symptoms, the presence of aura, the frequency of attacks, medication intake, and the connection with training.
The best helper in diagnosis is a headache diary: the date and time of the attack, the type of training, the conditions, nutrition, sleep, caffeine, supplements, the painkillers taken, and their effectiveness. After several weeks, such records often show clear patterns.
Additional examinations in typical migraine are usually not needed. However, in exercise-associated headache, especially at the first episode, doctors more often order neuroimaging (MRI or CT, sometimes with a vascular study) to rule out subarachnoid hemorrhage, aneurysm, arterial dissection, tumor, or malformation. Blood pressure is also checked.
For athletes it is important to tell the doctor about all supplements, stimulants, and hormonal drugs, and the frequency of painkiller use. Blood pressure, hematocrit, and caffeine load can be directly related to headache.
Treatment: general principles and sporting nuances
Migraine treatment is divided into aborting an attack and preventive therapy. To abort an attack, simple painkillers and NSAIDs are used, and for moderate and severe attacks — triptans; the new classes of drugs targeting CGRP are used by indication. The choice of drug and dose is determined by the doctor.
The key rule is not to overuse painkillers. Frequent use (on average more than 10–15 days a month depending on the class of agent) threatens the development of medication-overuse headache, when the drugs themselves maintain chronic pain.
Preventive therapy is considered when attacks are frequent or severe. For athletes the choice of drug has particularities: beta-blockers can reduce maximal aerobic performance and are banned by WADA in certain sports; topiramate can affect body weight, cognitive functions, and increase the risk of kidney stones; amitriptyline can cause drowsiness. Therefore the doctor and athlete together weigh the benefit and the impact on training.
For athletes who participate in competitions with doping control, any prescription should be checked against the current WADA Prohibited List, and if necessary a therapeutic use exemption should be arranged before starting treatment.
When to see a doctor
A neurologist is recommended for everyone whose post-exercise headache recurs, worsens, or forces them to give up their sessions. You should also see a doctor if painkillers are needed more than a few times a month.
Some signs require emergency care. They correspond to the 'red flags' of secondary headache, summarized in the SNNOOP10 list (Do et al., 2019):
- sudden, 'thunderclap' pain that reaches its maximum within seconds to a minute;
- the first-ever severe headache during exercise;
- pain with fever, neck stiffness, rash;
- pain with weakness in the limbs, impairment of speech, vision, consciousness;
- pain after a head injury;
- pain that appeared for the first time after age 50, or a sharp change in the usual character of the pain.
A separate situation is a headache together with a sharp rise in blood pressure, chest pain, shortness of breath, or heart rhythm disturbances. This may be a sign of a hypertensive crisis, especially against a background of stimulants or hormonal drugs, and requires immediate medical care.
Nor should you ignore a headache combined with confusion and nausea during a long event in the heat: this may be how heat stroke or hyponatremia manifests.
Editorial conclusions
In most cases, post-exercise migraine can be controlled: a warm-up, gradual progression of loads, regular meals, hydration, stable sleep, and a sensible attitude to caffeine reduce the frequency of attacks.
The diagnosis is made clinically, and a headache diary is the best tool for finding triggers. A first episode of exercise pain often requires neuroimaging to rule out secondary causes.
Thunderclap pain, neurological symptoms, fever with neck stiffness, or pain after an injury are reasons to seek help immediately.
We also recommend familiarizing yourself with our materials on the causes of post-exercise migraine and the role of pharmacology, on caffeine in sport, and on training in the heat.
References
- Headache Classification Committee of the International Headache Society. The International Classification of Headache Disorders, 3rd edition. Cephalalgia. 2018;38(1):1–211.
- Do TP, Remmers A, Schytz HW, et al. Red and orange flags for secondary headaches in clinical practice: SNNOOP10 list. Neurology. 2019;92(3):134–144.
- Eigenbrodt AK, Ashina H, Khan S, et al. Diagnosis and management of migraine in ten steps. Nat Rev Neurol. 2021;17(8):501–514.
- Varkey E, Cider A, Carlsson J, Linde M. Exercise as migraine prophylaxis: a randomized study using relaxation and topiramate as controls. Cephalalgia. 2011;31(14):1428–1438.
- Diener HC, Dodick D, Evers S, et al. Pathophysiology, prevention, and treatment of medication overuse headache. Lancet Neurol. 2019;18(9):891–902.
- Ashina M. Migraine. N Engl J Med. 2020;383(19):1866–1876.
- World Anti-Doping Agency. The World Anti-Doping Code: International Standard. Prohibited List. Montreal: WADA; чинна редакція.
Andriy Melnyk
A strength-sports coach and author of programs for beginner and intermediate levels. Writes about training planning.


