A small 2020 randomized trial reported that women who took 300 mg of magnesium a day had more relief from menstrual symptoms than women who took 150 mg or a placebo. The headline is narrow on purpose. It is one trial, in a body of research that has been quietly looking at magnesium and period pain for more than two decades, and the bigger picture is more interesting than a single dose recommendation.
Primary dysmenorrhea, the medical name for cramps that come from a normal menstrual cycle rather than from a disease like endometriosis, affects somewhere between 16 and 91 percent of women of reproductive age depending on the population studied, with severe pain reported by up to 29 percent in a 2014 review of 15 prevalence studies5. That is a wide band, and it is part of why the search for cheap, low risk options that women can try at home keeps coming back to the same short list. Magnesium is on that list.
What is actually happening when your uterus cramps
The pain of a normal period is not random. During menstruation, cells in the lining of the uterus release a group of fatty acid compounds called prostaglandins, which trigger the smooth muscle wall of the uterus to contract and squeeze out the lining. Stronger or more frequent contractions reduce blood flow to the muscle, and that ischemic squeeze is a big part of what gets felt as a cramp.
Calcium drives those contractions at the cellular level. Magnesium, in turn, is the body’s quietly counterbalancing mineral. It behaves like a natural calcium channel blocker, slowing the rate at which calcium ions enter smooth muscle cells, which lets the muscle relax sooner and contract less forcefully2. The same review notes that magnesium also dampens the release of substance P, a neuropeptide involved in pain signaling, and may modulate NMDA receptors that amplify pain messages on the way to the brain.
That is the mechanism story, and it is plausible enough that researchers have been testing it in clinical settings since at least the 1980s. The honest version is that the mechanism is well described, but the clinical effect size in human trials has been modest and inconsistent.

What the trials actually found
In 2016, a Cochrane systematic review titled “Dietary supplements for dysmenorrhoea” pooled the available randomized evidence on a long list of supplements, magnesium included1. The reviewers found that the trials were generally small and at moderate to high risk of bias, and they rated the overall certainty of the evidence as low. Within those limits, magnesium was one of a handful of supplements where there was at least some signal that it worked better than placebo at reducing pain. The reviewers stopped well short of a strong recommendation, and they specifically called for larger, better designed trials before clinicians should suggest any supplement as a first line option.
A 2017 narrative review in Magnesium Research, focused specifically on gynecological uses of the mineral, came to a similar shape of conclusion4. The authors wrote that magnesium has been used for dysmenorrhea, premenstrual symptoms, pregnancy related leg cramps, and preeclampsia, and that the dysmenorrhea data, while supportive, rests on small studies that do not all use the same dose, the same form of magnesium, or the same outcome scale. The throughline is that the mineral looks promising and is hard to argue with on a safety basis at modest doses, but the clinical evidence is thinner than the popular coverage suggests.
A 2022 study published in Cureus took a slightly different angle, comparing magnesium directly with combined oral contraceptives in women with primary dysmenorrhea3. Both interventions reduced pain scores from baseline, with the contraceptive group showing the larger drop. The authors framed magnesium as a reasonable option for women who cannot or prefer not to use hormonal therapy, not as an equivalent. That is a useful framing because it matches what most clinicians say in practice.
The 2020 trial referenced in the social media post that prompted this article, comparing 300 mg and 150 mg of daily magnesium against placebo, fits inside that same broad pattern. Some women in the higher dose group reported clearer relief than the placebo group. The trial was small, the symptom scales were self reported, and the result is consistent with, but not on its own proof of, the mechanism described above.

Dose, form, and timing: what is reasonable
The recommended dietary allowance for magnesium in adult women is around 310 to 320 mg per day from food, set by the U.S. Institute of Medicine. The tolerable upper limit for supplemental magnesium, set separately because food sources are not associated with the same side effects, is 350 mg per day. Trials of magnesium for menstrual pain have used doses in the 200 to 600 mg range, sometimes for the whole month and sometimes only in the days leading up to and during bleeding.
The form matters more than most popular articles admit. Magnesium oxide, the cheapest and most common over the counter form, has poor bioavailability, which is one reason it is sold as a stool softener. Magnesium glycinate, citrate, and malate are absorbed better and tend to be gentler on the gut. The 2017 gynecology review notes that the choice of compound likely affects how much usable magnesium reaches tissue, but very few dysmenorrhea trials have compared forms head to head4.
Timing is the other lever. Some clinicians suggest starting magnesium a few days before bleeding is expected and continuing through the first two or three days of the period, on the theory that prostaglandin release peaks just before and during early menstruation. Other protocols use a steady daily dose. The trials are not consistent enough to declare a winner, and the practical answer is that whichever schedule a woman can actually keep is the one most likely to show her any real effect.
What about getting it from food
The Facebook post that started this conversation is essentially built around a banana. A medium banana contains roughly 32 mg of magnesium, which is real but is not going to push anyone close to a therapeutic dose on its own. The mineral is more abundant in pumpkin seeds, almonds, cashews, dark leafy greens like spinach and Swiss chard, black beans, edamame, dark chocolate at 70 percent or higher, and whole grains. A handful of pumpkin seeds delivers more than five times the magnesium of a banana.
Food first is a reasonable default for a few reasons. National nutrition surveys in the United States and Europe consistently find that a large share of adults do not meet the recommended intake from diet, and the gap is bigger in people who eat heavily processed food. Food also supplies magnesium alongside potassium, B vitamins, and fiber, which together have their own modest benefits for menstrual symptoms in some studies. And food doses are self limiting in a way that capsules are not.

Side effects and who should be cautious
Magnesium is generally considered safe at the doses used for menstrual pain, but it is not consequence free. The most common side effect of supplements, especially magnesium oxide, is loose stools or diarrhea, which is dose dependent and reversible. Bloating and mild stomach upset are also reported.
People with reduced kidney function should not take magnesium supplements without talking to a clinician, because the kidneys are how the body clears extra magnesium, and impaired clearance can lead to dangerously high blood levels. Magnesium can also interact with certain medications, including some antibiotics in the tetracycline and quinolone families, bisphosphonates used for osteoporosis, and high doses of diuretics or proton pump inhibitors taken long term, which can lower magnesium levels in the body. None of these are reasons to avoid the mineral. They are reasons to mention any supplement during a regular medical appointment.
How does magnesium compare with the other usual options
For most women, the first line treatment for menstrual cramps remains a nonsteroidal anti inflammatory drug like ibuprofen or naproxen, taken at the start of pain or just before it is expected. NSAIDs work by blocking the enzyme that produces prostaglandins in the first place, which is why they tend to be effective when they are tolerated. The Cureus comparison study and the broader Cochrane evidence both treat NSAIDs and combined oral contraceptives as the most reliably effective options, with magnesium and other supplements occupying a more supportive role1,3.
Heat helps. A warm pad on the lower abdomen has been shown in randomized trials to reduce cramp pain to a degree similar to ibuprofen, which is part of why heating pads keep showing up in clinical guidelines despite being technologically humble. Regular aerobic exercise across the cycle, adequate sleep, and stress reduction also have small but real effects on the experience of menstrual pain, likely through several mechanisms at once.
Magnesium fits into this stack as a low cost, low risk, food first adjunct. It is not a replacement for talking to a clinician about pain that limits daily life, and it is not a substitute for ruling out conditions like endometriosis or fibroids when the pain pattern shifts. Severe pain that is new, that is getting worse over months, or that is not responding to NSAIDs is worth investigating, regardless of supplement use.

Common questions about magnesium and period cramps
How long before I might notice a difference?
Most trials that show a benefit run the supplement for at least one full cycle, often two or three, before measuring outcomes. A few days is rarely long enough to know.
Is it safer to start low and work up?
Yes. Starting at 100 to 200 mg of a well absorbed form like glycinate or citrate, taken with food, is a reasonable on ramp. Increasing in steps of 100 mg every few days reduces the chance of loose stools.
Can I just eat more bananas?
Bananas are a fine source, but magnesium rich foods like pumpkin seeds, dark leafy greens, almonds, and dark chocolate will move the needle faster. A varied real food plate beats a single fruit.
Does the form really matter?
It does for absorption and gut tolerance. Magnesium oxide is cheapest but is poorly absorbed. Glycinate, citrate, and malate are usually better tolerated and more available to the body, although direct dysmenorrhea comparisons are limited.
Should I keep taking it during my period or only the days before?
The evidence does not clearly favor one schedule. Many clinicians suggest starting two to three days before bleeding is expected and continuing through the first two days. A steady daily dose is also reasonable.
The honest takeaway
Magnesium is one of the better studied non drug options for period cramps, with a clear and biologically sensible mechanism, a long safety record at modest doses, and a small but real signal in randomized trials across more than two decades of work1. It is not a cure. It is not as reliably effective as an NSAID for most women, and the trial evidence is still thinner than the headlines suggest. It is, for many people, a worthwhile thing to try alongside the rest of a sensible routine, and it is a good prompt to look at whether daily diet is actually hitting the recommended intake at all in the first place.
If period pain is keeping you home from work or school, waking you up at night, or pushing you toward stronger pain medication month after month, that is information worth bringing to a clinician. Magnesium can be part of the answer. The honest version is that it is rarely the whole one.
Sources
- Pattanittum P, Kunyanone N, Brown J, et al. Dietary supplements for dysmenorrhoea. Cochrane Database of Systematic Reviews. 2016. PubMed: 27000311
- Shin HJ, Na HS, Do SH. Magnesium and Pain. Nutrients. 2020;12(8):2184. PubMed: 32718032
- Gök S, Gök B. Investigation of Laboratory and Clinical Features of Primary Dysmenorrhea: Comparison of Magnesium and Oral Contraceptives in Treatment. Cureus. 2022. PubMed: 36600872
- Parazzini F, Di Martino M, Pellegrino P. Magnesium in the gynecological practice: a literature review. Magnesium Research. 2017;30(1):1-7. PubMed: 28392498
- Ju H, Jones M, Mishra G. The prevalence and risk factors of dysmenorrhea. Epidemiologic Reviews. 2014;36:104-113. PubMed: 24284871





