What are the safe and effective treatments for headaches in a patient who is 24 weeks pregnant?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: November 23, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

Treating Headaches at 24 Weeks Pregnancy

For acute headache treatment at 24 weeks pregnancy, start with acetaminophen 650-1000 mg combined with caffeine 200 mg; if this fails, add a triptan (sumatriptan is preferred) rather than opioids or butalbital, as evidence supports triptan safety over these alternatives during pregnancy. 1, 2

Acute Treatment Algorithm

First-Line Therapy

  • Acetaminophen 650-1000 mg + Caffeine 200 mg is the initial treatment of choice 1
  • If acetaminophen alone was tried previously without adequate dosing, ensure maximum recommended daily dose is not exceeded before escalating therapy

Second-Line Therapy (if first-line fails)

  • Add a triptan to acetaminophen when NSAIDs are contraindicated or acetaminophen alone is insufficient 1
  • Sumatriptan has the most safety data in pregnancy and is preferred 3
  • Evidence supports triptans over butalbital combination analgesics as second-line treatment 3
  • Never use opioids or butalbital for acute migraine in pregnancy 1

Alternative Acute Options

  • NSAIDs (ibuprofen 400 mg) can be used cautiously only until 28 weeks gestation (end of second trimester), then must be discontinued due to risks of oligohydramnios and ductus arteriosus closure 4
  • At 24 weeks, you are still within the safe window for short-term NSAID use (7-10 days maximum) 4

Procedural Intervention

  • Occipital nerve block is highly effective and quick-acting for acute headache in pregnancy 5
  • Provides lower pain scores at 1 hour compared to acetaminophen-caffeine (median VAS 2 vs 6, p=0.014) 5
  • Consider this especially for severe or refractory headaches
  • Uses lidocaine, which has minimal systemic absorption and excellent safety profile

Preventive Treatment (if frequent headaches)

If headaches are occurring frequently enough to warrant prevention, maximize non-pharmacologic approaches first, then consider nifedipine as the safest pharmacologic option. 2

Non-Pharmacologic Prevention (Maximize These First)

  • Behavioral interventions
  • Acupuncture
  • Exercise programs
  • Trigger identification and management
  • These must be maximized before considering pharmacologic prevention 2

Pharmacologic Prevention Algorithm

First Choice:

  • Nifedipine - ACOG lists this as first-line with no associated pregnancy risks 2
  • This is the only preventive medication with no documented fetal risks according to ACOG guidelines

Second Choice (if nifedipine fails or is not tolerated):

  • Metoprolol or Propranolol - but counsel on risks including cardiovascular abnormalities, cleft lip/palate, neural tube defects, and fetal growth restriction 2
  • Propranolol has moderate confidence evidence for efficacy 2
  • These risks must be balanced against severe migraine morbidity (e.g., severe nausea/vomiting) 2

For Chronic Migraine Only:

  • OnabotulinumtoxinA may be offered after risk-benefit discussion 2
  • Limited data available, mostly from preconception/first trimester exposures
  • Fetal defect rate of 2.6% is consistent with general population 2

Medications to ABSOLUTELY AVOID

  • Valproate/divalproex - teratogenic, causes neural tube defects 2
  • Topiramate - known teratogenic effects 2
  • Amitriptyline - despite being in some guidelines, ACOG text states tricyclic antidepressants are NOT recommended in pregnancy due to risks of small for gestational age births, major congenital anomalies, neonatal convulsions, and respiratory distress 2

Critical Clinical Considerations

Red Flags Requiring Immediate Evaluation

At 24 weeks pregnancy, pregnant women with migraine have higher risk of preeclampsia, preterm birth, and cerebrovascular/cardiovascular events 2. Evaluate immediately if headache has:

  • Neurologic symptoms or signs
  • Progressive worsening or refractory to treatment
  • Acute severe onset
  • Postural component
  • Different character from typical headaches
  • Associated with hypertension

Shared Decision-Making Requirements

  • Any pharmacologic prevention during pregnancy requires thorough discussion of risks and alternatives with joint decision-making 2
  • Consider that migraine often improves after first trimester 2
  • Severe attacks can cause significant morbidity (severe nausea/vomiting) that may justify preventive therapy 2

Medication Overuse Caution

  • Counsel on medication overuse headache risk
  • Threshold: ≥15 days/month with NSAIDs or acetaminophen; ≥10 days/month with triptans 1

Common Pitfalls to Avoid

  1. Do not reflexively avoid all medications - untreated severe migraine causes maternal morbidity and may increase pregnancy complications 2, 6

  2. Do not use NSAIDs after 28 weeks - must discontinue by end of second trimester due to fetal risks 4

  3. Do not prescribe opioids or butalbital - these have worse safety profiles than triptans and are explicitly not recommended 1, 3

  4. Do not continue valproate or topiramate - these are teratogenic and must be stopped 2

  5. Do not minimize headache severity - providers must not dismiss migraine during pregnancy as it significantly impacts maternal quality of life 7

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.