Many people suffer from period discomfort on a monthly basis. Although pain management and hormone therapy can be successful, they are frequently associated with negative side effects. Anecdotal data suggests that for some people, changing their diet to eliminate gluten-containing foods may be the answer.

Why do periods hurt?
Females did not have many periods before modern times because they presumably spent the majority of their adult life pregnant or breastfeeding. As a result, they may only experience about 100 periods in their lifetime.
The treatment of period pain
“First and foremost, we must determine if the pain is primary, with no evident clinical explanation, or secondary, with an underlying illness such as endometriosis or fibroids that requires treatment.” – Dr. Polly Cohen.
“We start with paracetamol [acetaminophen] for basic pain. If that doesn't work, we'll try nonsteroidal anti-inflammatory medicines (NSAIDs) like ibuprofen and mefenamic acid,” she explained.
These may help for some people, but they are not a long-term solution.
Dr. Cohen continued, “Taking NSAIDs for a long period can create stomach problems like ulcers, so we switch to hormonal controls like the birth control pill or coil, which can work well for certain women.”
But what if you've done everything and nothing seems to be working? Eve informed MNT that she went from acetaminophen to NSAIDs to the birth control pill after starting with acetaminophen:
Pain[relievers] take a bit to set in, so unless you know when the pain will strike, you'll be in agony for around half an hour before they kick in, leaving you weary for the rest of the day. My period discomfort was unaffected by birth control tablets. I was at a loss for what to try next.
A change in diet?
“She stated she couldn't locate any clinical studies on it, but the girl who had worked for them before me had observed the same thing - no period pain and significantly shorter, lighter periods,” –EveEve followed a gluten-free diet with her family while in Germany, but ate regularly outside the house: "I wasn't completely avoiding wheat [...] but I was obviously eating a lot less than usual." But I had almost no menstrual pain for those six months.”
“My period pain was so awful, I was referred for an ultrasound to assess if I had endometriosis,” Paige, 21, told us. Thankfully, I don't have that.”
She subsequently attempted to cut down on her gluten consumption.
“It's easy to live off pasta and bread as a student,” she mused, “but I found alternatives, such as rice, quinoa, and rye bread.”
What does science have to say about it?
She informed MNT that switching back to a low-gluten diet had made her pain-free again.
A gluten-free diet, however, may not be suitable for everyone. Dr. Cohen added that without additional scientific data, she couldn't advise patients to become gluten-free to relieve period discomfort because restricting one's diet could have unintended health consequences.