Why Do I Get Migraines Before My Period?

The drop in estrogen that happens in the days before your period is the primary trigger for premenstrual migraines. Your estrogen levels peak mid-cycle and then fall sharply in the last few days before menstruation begins. That rapid withdrawal sets off a chain of events in the brain and nervous system that lowers your threshold for migraine pain. Among women who have migraines, roughly 60% report that their attacks are linked to their menstrual cycle.

How Falling Estrogen Triggers an Attack

Throughout your cycle, estrogen influences how your brain processes pain signals. When levels are high, the system stays relatively stable. But in the two to three days before your period, estrogen drops steeply, and this withdrawal has two key effects.

First, it increases the release of a pain-signaling molecule called CGRP in the nerve pathways around your head and face. Animal research has shown that when estrogen is removed, CGRP production ramps up significantly, and replacing estrogen brings it back down. CGRP dilates blood vessels and amplifies pain signals, which is why it plays a central role in migraine attacks of all types. In fact, some of the newest migraine treatments work specifically by blocking CGRP.

Second, falling estrogen disrupts serotonin activity in the brain. Serotonin helps regulate pain perception and blood vessel tone, and its levels tend to dip alongside estrogen. That combination of rising CGRP and falling serotonin creates the perfect conditions for a migraine to ignite.

Prostaglandins Add Fuel

Estrogen withdrawal isn’t working alone. As your period approaches, your uterus ramps up production of prostaglandins, the same inflammatory compounds responsible for menstrual cramps. Prostaglandins enter the bloodstream and can sensitize pain pathways throughout the body, including in the head. This is why menstrual migraines often come packaged with cramps, nausea, and general body aches. The combination of estrogen withdrawal and prostaglandin release is now recognized as a two-hit mechanism behind premenstrual migraine.

The Vulnerable Window

Menstrual migraines follow a remarkably predictable window: day one of your period, plus or minus two days. In practice, that means from about two days before bleeding starts through the third day of your period. If your migraines consistently land in this five-day window across most cycles, and you don’t experience aura, the pattern fits what headache specialists classify as menstrual migraine.

There’s an important distinction between two subtypes. “Pure menstrual migraine” means attacks happen only during that perimenstrual window and never at other times of the month. “Menstrual-related migraine” means you get attacks during that window but also at other points in your cycle. The pure form is less common. Either way, the hormonal drop is the driving force during the premenstrual window, even if other triggers like stress or poor sleep contribute at other times.

Why Menstrual Migraines Feel Worse

If you’ve noticed that your period migraines are more intense than attacks at other times of the month, you’re not imagining it. Menstrual migraines tend to last longer, respond less well to standard painkillers, and are more likely to come back within the same cycle. The sustained hormonal shift, combined with prostaglandin-driven inflammation, creates a more prolonged trigger than something like a single glass of red wine or a skipped meal. Many women describe these attacks as the hardest ones to shake.

Iron Deficiency as a Hidden Factor

Heavy periods don’t just cause fatigue. Iron deficiency anemia is significantly more common in women with menstrual migraines than in those without, found at roughly 22% versus 13% in one case-control study. Low iron affects how your brain produces dopamine and processes pain, and it may compound the effects of estrogen withdrawal. If your migraines seem to worsen toward the end of your period or if your periods are heavy, checking your iron levels is a reasonable step.

Short-Term Prevention Around Your Period

Because menstrual migraines are predictable, there’s a strategy called mini-prophylaxis: taking a preventive medication for just a few days each cycle, timed to your vulnerable window. This avoids the need for daily medication all month.

Triptans, the same class of medications used to treat migraine attacks, can also prevent them when taken on a short schedule. A systematic review found that starting a triptan two to three days before the expected onset and continuing for five to seven days was effective at reducing the number of menstrual migraines. The proportion of women who were migraine-free during the treated cycles nearly doubled compared to placebo in some trials.

Anti-inflammatory painkillers also work preventively. One protocol uses naproxen sodium starting about a week before menstruation and continuing through the first several days of bleeding. Because naproxen also suppresses prostaglandin production, it addresses both the headache and the cramping that often accompanies it.

Magnesium Supplementation

Magnesium plays a role in nerve signaling and blood vessel tone, and women with menstrual migraines are more likely to have lower magnesium levels. A double-blind study tested 360 mg of magnesium daily, taken from mid-cycle (day 15) through the start of menstruation. The treatment reduced both the intensity and duration of menstrual migraine attacks compared to placebo. Over-the-counter magnesium supplements are widely available, though the specific form and dose matter, so it’s worth discussing with a provider.

Hormonal Approaches

Since estrogen withdrawal is the core trigger, some treatment strategies aim to keep estrogen levels stable. Continuous hormonal contraceptives that skip the placebo week eliminate the monthly estrogen drop entirely. Estrogen patches or gels applied during the perimenstrual window can also smooth out the decline.

There’s one critical safety consideration here. If your migraines include aura (visual disturbances, tingling, or speech changes before the headache), estrogen-containing birth control carries a meaningful stroke risk. Research has found that the combination of migraine with aura and combined hormonal contraceptives is associated with a six-fold increase in ischemic stroke risk compared to having neither factor. For women with migraine without aura, combined contraceptives do not appear to substantially increase stroke risk. Knowing which type of migraine you have is essential before pursuing any estrogen-based treatment.

Tracking Your Pattern

The single most useful thing you can do is keep a headache diary alongside your cycle for at least three months. Record the day your period starts, when headaches hit, how long they last, and how severe they are. This data helps distinguish a true menstrual pattern from coincidental timing, and it gives your provider the information needed to prescribe timed prevention rather than daily medication. Many period-tracking apps now include a headache logging feature, which makes this straightforward.

Knowing that your migraines are hormonally driven also helps you manage other triggers more aggressively during your vulnerable days. Sleep disruption, dehydration, or skipping meals that you might tolerate mid-cycle can push you over the threshold when your estrogen is already dropping. Tightening up those basics in the days before your period can reduce attack frequency even without medication.