Why Do I Get Headaches on My Period, Explained

Period headaches are driven by a sharp drop in estrogen that happens in the days just before and during your period. This hormonal shift disrupts pain-processing systems in your brain, making you more vulnerable to headaches and migraines. Over half of premenopausal women with migraines report that their attacks are tied to their menstrual cycle, and roughly 6.2 million women in the U.S. experience what’s clinically called menstrual migraine.

Two biological mechanisms work together to cause these headaches: estrogen withdrawal and a surge in pain-promoting compounds called prostaglandins. Understanding both helps explain why period headaches feel different from a regular tension headache and why certain treatments work better than others.

How Falling Estrogen Triggers Head Pain

Throughout your cycle, estrogen rises and falls. It peaks around ovulation, then drops steeply in the days before your period starts. That decline is the primary trigger. Estrogen influences your brain’s natural pain-relief system, specifically the opioid receptors in a region of the hypothalamus called the paraventricular nucleus. When estrogen is high, this system works smoothly: your brain releases its own pain-dampening chemicals and keeps pain signaling in check.

When estrogen drops in the premenstrual phase, that system breaks down. The hypothalamus becomes overactive because the usual braking mechanism no longer suppresses it properly. This matters because the hypothalamus directly controls the activity of the trigeminal nerve system, the main pain pathway responsible for headaches and migraines. In simple terms, falling estrogen removes a layer of natural pain protection, and the trigeminal nerve fires more easily as a result. That’s why the headache typically arrives in the two days before your period or the first three days of bleeding, right when estrogen hits its lowest point.

Why Prostaglandins Make It Worse

Estrogen isn’t the only player. Your body releases prostaglandins at the start of menstruation to help the uterus contract and shed its lining. These same compounds circulate through your bloodstream and affect blood vessels and nerve endings elsewhere in your body, including your head. Prostaglandin levels increase significantly once bleeding begins, which is why headaches can intensify on day one or two of your period even after the initial estrogen drop.

This is also why ibuprofen and naproxen work well for period headaches. These medications block the enzyme that produces prostaglandins, reducing both uterine cramps and headache pain at the same time. If you’ve noticed that a painkiller helps your cramps and your headache simultaneously, prostaglandins are the reason.

Period Headaches vs. Regular Migraines

Menstrual migraines tend to be more severe, last longer, and respond less well to treatment than migraines that strike at other times in the cycle. They’re more likely to come with nausea and sensitivity to light. Many women who get migraines at other times find their worst attacks are the ones tied to their period.

Some women only get migraines around menstruation and never at other times. This pattern, called pure menstrual migraine, affects a smaller subset but can be particularly frustrating because the attacks are predictable yet intense. The more common pattern is menstrual-related migraine, where attacks happen around the period but also at other points in the cycle.

Not every period headache is a migraine, though. Some women get tension-type headaches or a dull, steady ache rather than the throbbing, one-sided pain of a migraine. Heavy bleeding can contribute to this through a different route: blood loss lowers your iron stores over time, and iron deficiency causes its own headaches along with fatigue, dizziness, and difficulty concentrating. If your periods are heavy and your headaches come with those symptoms, low iron may be compounding the problem.

Preventing Headaches Before They Start

Because menstrual headaches are predictable, you can treat them before they arrive. This approach, sometimes called mini-prophylaxis, involves starting a medication a couple of days before you expect your period and continuing through the first few days of bleeding.

Naproxen taken twice daily during the five to seven days around the start of your period can decrease or prevent menstrual migraines. A dose of 550 milligrams twice a day has been studied and shown effective for this purpose. This strategy works on both mechanisms at once: it reduces prostaglandin production and lowers overall inflammation.

For women whose migraines don’t respond to anti-inflammatory medications, prescription options exist. Frovatriptan, a long-acting migraine medication, reduced the incidence of menstrual migraine from 67% to 41% when taken twice daily during the six-day window around menstruation. More than half the women on that regimen had no migraine at all during their perimenstrual window. Naratriptan, another option in the same class, cut the number of migraine days roughly in half compared to placebo.

Hormonal Birth Control: Helpful or Risky

Since estrogen withdrawal is the core trigger, stabilizing hormone levels can help. Some forms of hormonal birth control reduce or eliminate the estrogen drop that occurs before a period. Extended-cycle pills that let you skip the placebo week, or continuous hormone delivery methods, can prevent the withdrawal phase entirely.

There’s an important safety consideration here. If your migraines come with aura (visual disturbances like flashing lights, zigzag lines, or temporary blind spots), estrogen-containing birth control is contraindicated. The combination of migraine with aura and estrogen-based contraceptives increases the risk of ischemic stroke. CDC guidelines classify this as an unacceptable health risk. Progestin-only methods are considered safe for women with aura and may still help with cycle-related headaches, though they work through a different mechanism.

Magnesium and Other Supplements

Magnesium is the most studied supplement for menstrual migraine prevention. Women taking 360 milligrams of magnesium daily experienced fewer headache days and lower pain intensity. Supplemental doses in the range of 200 to 800 milligrams daily are commonly used for migraine prevention more broadly. Magnesium plays a role in nerve signaling and blood vessel tone, both of which are relevant to how migraines develop.

If you want to try magnesium, start at a lower dose and increase gradually. High doses can cause loose stools, and different forms (citrate, glycinate, oxide) vary in how well they’re absorbed and tolerated. Magnesium glycinate tends to be gentlest on the stomach.

Riboflavin (vitamin B2) at 400 milligrams daily has shown benefit for migraine prevention in general, though evidence specifically for menstrual migraine is mixed. One study found that a combination supplement with riboflavin, magnesium, and feverfew performed similarly to placebo, suggesting these ingredients may not be more effective together than individually. Magnesium alone has stronger standalone evidence for period-related headaches.

Tracking Your Pattern

The single most useful thing you can do is track your headaches alongside your cycle for at least three months. Note the day your period starts, when the headache begins, how long it lasts, and how severe it is. This pattern tells you whether your headaches are truly menstrual (tied to the hormonal drop) or coincidental, and it gives you the information needed to time preventive treatment correctly. Many period-tracking apps now include symptom logging that makes this simple. If your headaches consistently start one to two days before bleeding, the estrogen withdrawal mechanism is almost certainly at play, and preventive strategies timed to that window become much more effective.