Print OverviewExercise headaches occur during or after sustained, strenuous exercise. Some activities associated with exercise headaches include running, rowing, tennis, swimming and weightlifting. Health care providers divide exercise headaches into two categories. Primary exercise headaches are usually harmless, aren't connected to any underlying problems and can often be prevented with medication. Secondary exercise headaches are caused by an underlying, often serious problem within the brain — such as bleeding or a tumor — or outside the brain — such as coronary artery disease. Secondary exercise headaches may require emergency medical attention.Products & ServicesA Book: Mayo Clinic Family Health BookA Book: Mayo Clinic Guide to Pain ReliefAvailable Solutions for Pain Relief from Mayo Clinic StoreNewsletter: Mayo Clinic Health Letter — Digital EditionShow more products from Mayo Clinic SymptomsPrimary exercise headachesThese headaches: Are usually described as throbbing Occur during or after strenuous exercise Affect both sides of the head in most cases Secondary exercise headachesThese headaches may cause: The same symptoms as primary exercise headaches Vomiting Loss of consciousness Double vision Neck stiffness Primary exercise headaches typically last between five minutes and 48 hours, while secondary exercise headaches usually last at least a day and sometimes linger for several days or longer. When to see a doctorIf you experience a headache during or after exercise, consult your provider. Call your provider right away if the headache begins abruptly or if it's your first headache of this type. Request an appointment CausesPrimary exercise headachesThe exact cause of primary exercise headaches is unknown. One theory is that strenuous exercise dilates blood vessels inside the skull. Secondary exercise headachesSecondary exercise headaches are caused by an underlying problem, such as: Bleeding in the area between the brain and the thin membranes that cover the brain (subarachnoid hemorrhage) Irregularities in a blood vessel leading to or within the brain Cancerous or noncancerous tumors Obstruction of cerebrospinal fluid flow Sinus infection Structural irregularities in the head, neck or spine Risk factorsYou may be at greater risk of exercise headaches if you: Exercise in hot weather Exercise at high altitude Have a personal or family history of migraine PreventionExercise headaches tend to occur more often when the weather is hot and humid, or if you're exercising at high altitudes. If you're prone to exercise headaches, you may want to avoid exercising in these conditions. Some people experience exercise headaches only during the performance of certain activities, so they may prevent their headaches by avoiding these activities. A warm-up prior to strenuous exercise also can help prevent exercise headaches. By Mayo Clinic Staff Request an appointment Diagnosis & treatment May 14, 2022 Print Show references Starling AJ. Unusual headache disorders. Continuum. 2018; doi: 10.1212/CON.0000000000000636. Headache: Hope through research. National Institute of Neurological Disorders and Stroke. https://www.ninds.nih.gov/Disorders/Patient-Caregiver-Education/Hope-Through-Research/Headache-Hope-Through-Research. Accessed Feb. 13, 2022. Ropper AH, et al. Headache and other craniofacial pains. In: Adams and Victor's Principles of Neurology. 11th ed. McGraw Hill; 2019. https://accessmedicine.mhmedical.com. Accessed Feb. 13, 2022. Cutrer FM. Exercise (exertional) headache. https://www.uptodate.com/contents/search. Accessed Feb. 13, 2022. Jameson JL, et al. Migraine and other primary headache disorders. In: Harrison's Principles of Internal Medicine. 20th ed. McGraw Hill; 2018. https://accessmedicine.mhmedical.com. Accessed Feb. 20, 2022. Primary exercise headache. International Headache Society. https://ichd-3.org/other-primary-headache-disorders/4-2-primary-exercise-headache/. Accessed Feb. 13, 2022. Related Associated Procedures CT coronary angiogram CT scan Lumbar puncture (spinal tap) MRI Show more associated procedures Products & Services A Book: Mayo Clinic Family Health Book A Book: Mayo Clinic Guide to Pain Relief Available Solutions for Pain Relief from Mayo Clinic Store Newsletter: Mayo Clinic Health Letter — Digital Edition Show more products and services from Mayo Clinic Exercise headachesSymptoms&causesDiagnosis&treatment Advertisement Mayo Clinic does not endorse companies or products. Advertising revenue supports our not-for-profit mission. Advertising & Sponsorship Policy Opportunities Ad Choices Mayo Clinic Press Check out these best-sellers and special offers on books and newsletters from Mayo Clinic Press. NEW: Listen to Health Matters Podcast - Mayo Clinic PressNEW: Listen to Health Matters PodcastMayo Clinic on Incontinence - Mayo Clinic PressMayo Clinic on IncontinenceThe Essential Diabetes Book - Mayo Clinic PressThe Essential Diabetes BookMayo Clinic on Hearing and Balance - Mayo Clinic PressMayo Clinic on Hearing and BalanceFREE Mayo Clinic Diet Assessment - Mayo Clinic PressFREE Mayo Clinic Diet AssessmentMayo Clinic Health Letter - FREE book - Mayo Clinic PressMayo Clinic Health Letter - FREE book CON-20372261 Patient Care & Health Information Diseases & Conditions Exercise headaches