Period headaches are driven by the sharp drop in estrogen that happens in the days just before your period starts. That hormonal shift affects pain-signaling chemicals in the brain, making you more sensitive to headache triggers you might otherwise shrug off. The good news: a combination of well-timed pain relievers, steady blood sugar, and a few targeted supplements can significantly reduce how often these headaches hit and how badly they hurt.
Why Your Period Triggers Headaches
Estrogen and progesterone don’t just regulate your cycle. They also influence chemicals in the brain that control pain perception. When estrogen levels plummet in the one to two days before bleeding begins, it can set off a cascade that lowers your pain threshold and triggers headache or full-blown migraine. This is why period headaches tend to land in the same narrow window every month, typically starting a day or two before your period and lasting into the first two or three days of bleeding.
If your headaches consistently show up in that window, they’re likely what doctors call menstrual migraine. These tend to be more severe, longer-lasting, and harder to treat than migraines that strike at random points in the cycle. Recognizing the pattern is the first step, because it means you can get ahead of the pain rather than chasing it.
Time Your Pain Relievers Before the Pain Starts
The most effective over-the-counter strategy is starting an anti-inflammatory medication before the headache arrives. Taking an NSAID like naproxen twice a day during the five to seven days surrounding the start of your period can prevent or significantly reduce menstrual headaches. In studies, naproxen at 550 milligrams twice daily used as this kind of “mini-prevention” was shown to be effective.
This works because NSAIDs block the inflammatory compounds your body releases alongside that estrogen drop. If you wait until the headache is already pounding, you’re playing catch-up. Track your cycle for two or three months so you can predict the window, then start your NSAID a day or two before you expect bleeding to begin. Ibuprofen works on the same principle if naproxen doesn’t agree with your stomach, though naproxen’s longer duration means fewer doses per day.
Keep Your Blood Sugar Steady
Skipping meals or eating sugary foods that spike and crash your blood sugar can act as a secondary trigger that makes a hormonal headache worse. During the days around your period, your brain is already primed for pain. A blood sugar dip on top of that can push a mild headache into a severe one. There’s even a newer theory that the blood sugar drop after eating (called postprandial hypoglycemia) may itself trigger migraine attacks in susceptible people.
The practical fix is straightforward: eat three meals spaced three to four hours apart, with snacks in between if needed. Start your day with breakfast that includes 20 to 30 grams of protein. At every meal and snack, aim for a combination of complex carbohydrates (whole grains, lentils, beans, berries), protein, and a healthy fat like avocado or olive oil. The protein and fat slow digestion, which keeps blood sugar from rising and crashing. Simple carbs like white bread, candy, or sugary drinks do the opposite.
This matters even more if you’re on a weight-loss medication that suppresses appetite. Going too long without eating or cutting protein too low can increase headache frequency.
Magnesium and Other Supplements
Magnesium is the supplement with the strongest track record for menstrual headaches. Women taking 360 milligrams of magnesium daily saw a reduction in both pain intensity and the number of headache days per cycle. Common supplemental doses range from 200 to 800 milligrams daily. Magnesium glycinate or magnesium citrate tend to be the best-tolerated forms (some other forms can cause digestive issues at higher doses).
Riboflavin (vitamin B2) at 400 milligrams daily is sometimes recommended for migraine prevention in general, though the evidence specifically for menstrual migraine is less clear-cut. One study found that a combination product with riboflavin, magnesium, and feverfew performed comparably to placebo, but standalone magnesium supplementation showed more consistent results. If you’re going to try one supplement first, magnesium is the better bet. Give it at least two to three menstrual cycles to judge whether it’s helping.
Hormonal Birth Control as Prevention
Since the root cause is a hormonal drop, one of the most effective long-term strategies is minimizing that drop altogether. Combined oral contraceptives have been shown to reduce menstrual migraine frequency and severity, especially when the hormone-free interval (the placebo pill week) is shortened or eliminated. A regimen using 24 active pills and only 4 inactive pills per cycle outperformed the standard 21/7 schedule in one study of 60 women with menstrual migraine.
Continuous-use options can be even more effective. Extended vaginal ring contraceptives reduced the median number of migraines with aura from about 3.2 per month to 0.23 per month in one study, and over 91% of participants saw their migraines stop entirely. Estradiol patches applied during the hormone-free interval also cut migraine days nearly in half, from about 1.19 days per week without treatment to 0.63 days during patch use.
The key principle is the same across all these approaches: the smaller and less abrupt the estrogen withdrawal, the fewer headaches. If you already use hormonal birth control with a full seven-day break, switching to an extended or continuous regimen is a conversation worth having with your prescriber.
Prescription Options for Severe Cases
When over-the-counter strategies aren’t enough, prescription medications can be used in the same “mini-prevention” window. Triptans, a class of drugs designed specifically for migraine, can be taken starting two days before your expected headache onset and continued twice daily for about six days. This short-course approach targets only the vulnerable window rather than requiring daily medication all month. Your doctor can help you choose the right one based on how long your headaches typically last and how quickly you need relief.
For people with frequent, debilitating menstrual migraines that don’t respond to these cyclical strategies, newer preventive treatments that target a protein involved in migraine signaling (CGRP) have become a first-line option. The American Headache Society’s 2023 guidelines backed these treatments based on over 150 studies. They’re taken continuously rather than just around your period, which can be the right call if your migraines are severe or unpredictable.
Putting It All Together
The most reliable approach combines several of these strategies rather than relying on just one. A practical plan looks something like this:
- Track your cycle for two to three months so you know your headache window.
- Start an NSAID one to two days before you expect your period, and continue through the first few days of bleeding.
- Take magnesium daily (200 to 400 milligrams) throughout the month, not just during your period.
- Eat balanced meals with protein, complex carbs, and healthy fats every three to four hours during your vulnerable window.
- Stay hydrated and sleep consistently, since dehydration and poor sleep lower the headache threshold further when estrogen is already dropping.
If that combination isn’t enough after three cycles, adjusting your birth control regimen or adding a prescription preventive is the next step. Period headaches are one of the more predictable forms of migraine, and that predictability is actually an advantage. It means you can intervene early, in the right window, with the right tools.

