Foods that fight inflammation and relax uterine muscles can meaningfully reduce period cramps. The most effective options are rich in magnesium, omega-3 fatty acids, fiber, and certain vitamins that lower the production of prostaglandins, the hormone-like compounds your uterus releases during menstruation that drive cramping and pain. The more prostaglandins your body produces, the worse the cramps. What you eat in the days and weeks leading up to your period can influence how much of these compounds your body makes.
Why Food Affects Cramp Severity
During your period, the uterine lining produces prostaglandins that cause the uterus to contract and shed its lining. These contractions reduce blood flow to the uterus, creating the oxygen deprivation that you feel as cramping pain. The process is fundamentally inflammatory, which is why anti-inflammatory foods help and inflammatory foods make things worse.
Food also plays a role through estrogen. Higher estrogen levels lead to a thicker uterine lining, which produces more prostaglandins when it breaks down. Your body normally clears excess estrogen through the liver and digestive tract, where dietary fiber binds to it and carries it out. Without enough fiber, that estrogen gets reabsorbed back into the bloodstream, raising levels and potentially worsening cramps. Research on women in Japan found that those who ate the most fiber reported significantly less menstrual pain.
Magnesium-Rich Foods
Magnesium helps uterine smooth muscle relax rather than spasm, which directly counters the contractions that cause cramping. Most people in the U.S. don’t get enough magnesium through diet alone. Small clinical studies have used 150 to 300 milligrams per day to reduce menstrual pain, and staying closer to 150 milligrams daily is a reasonable starting point.
Good food sources include pumpkin seeds (one ounce has about 150 mg), spinach, black beans, almonds, cashews, and avocado. Dark chocolate also counts: a 40-gram serving of dark chocolate with at least 69% cocoa provides roughly 115 mg of magnesium. In a study on young women, that daily serving was enough to help relax uterine contractions and reduce pain during menstruation. So if you’re craving chocolate on your period, reaching for a high-cocoa dark chocolate is one craving worth following.
Omega-3 Fatty Acids
Omega-3s compete with the fats your body uses to make prostaglandins, effectively reducing their production. In a crossover study comparing omega-3 supplements to ibuprofen in young women, both produced similar pain relief across all three days of menstruation. The omega-3 group took capsules containing EPA and DHA (the two main omega-3s found in fish) daily for two months before seeing results, which suggests this is about building up levels over time rather than a quick fix.
The best dietary sources are fatty fish like salmon, mackerel, sardines, and anchovies. Two to three servings per week is a reasonable target. Plant sources like walnuts, flaxseeds, and chia seeds provide a different form of omega-3 that your body converts less efficiently, but they still contribute to an overall anti-inflammatory diet.
High-Fiber Vegetables, Beans, and Whole Grains
Fiber works on cramps through a less obvious pathway: estrogen clearance. Your liver filters estrogen from the blood and dumps it into the intestinal tract through bile. Fiber acts like a sponge, soaking up that estrogen and carrying it out of the body. Without enough fiber, the estrogen gets reabsorbed and recirculated, raising blood levels and ultimately contributing to a thicker uterine lining that produces more prostaglandins.
Beans, lentils, oats, brown rice, broccoli, Brussels sprouts, and berries are all excellent sources. A low-fat, high-fiber eating pattern built around vegetables, whole grains, and legumes supports this natural estrogen disposal system most effectively.
Ginger
Ginger is one of the most studied foods for period pain, and the effective dose is surprisingly small. In clinical trials, just a quarter teaspoon of ground ginger powder taken three times a day during the first three days of menstruation reduced pain significantly. A follow-up study found that even an eighth of a teaspoon three times a day worked nearly as well. One trial directly compared an eighth of a teaspoon four times daily to 400 mg of ibuprofen and found comparable relief.
You can stir ginger powder into tea, smoothies, or oatmeal. Fresh ginger grated into stir-fries or soups works too, though the studies specifically used powdered ginger, which is more concentrated.
Zinc-Rich Foods
Zinc reduces prostaglandin production and improves blood flow to uterine tissue, addressing two of the core mechanisms behind cramp pain. A meta-analysis found a significant dose-response relationship: higher zinc intake correlated with greater pain reduction. Notably, doses as low as 7 mg per day (well within what you can get from food) were enough to produce meaningful relief, though the benefits were strongest after eight or more weeks of consistent intake.
Oysters are the single richest food source of zinc, but more practical everyday options include beef, chicken thighs, chickpeas, lentils, pumpkin seeds, and yogurt. A single serving of chickpeas or a couple ounces of beef gets you close to that 7 mg threshold.
B Vitamins and Vitamin D
Vitamin B1 (found in whole grains, pork, and sunflower seeds) reduced menstrual pain in a clinical study after participants took it daily for at least 30 days. The effect required consistent use over time, not just during the period itself. Vitamin B6, found in poultry, potatoes, bananas, and chickpeas, also showed improvements in pain scores in a smaller trial.
Vitamin D helps reduce the inflammatory factors in the uterus that drive prostaglandin production. Fatty fish, fortified milk, egg yolks, and sun exposure are the main sources, though many people are deficient and may benefit from a supplement, particularly in winter months.
Water
This one isn’t a food, but it matters enough to include. Even mild dehydration triggers the release of vasopressin, a hormone that causes the uterine muscle to contract more forcefully and reduces blood flow to the uterus. Research has shown that increasing water intake lowers vasopressin levels, which in turn reduces uterine contractions and pain. When saline solution was infused to simulate dehydration in women with cramps, even a slight hormone increase led to more contractions and more pain. Staying well-hydrated throughout your cycle, not just during your period, helps keep this system in check.
Foods That Make Cramps Worse
Diets high in sugar, salt, red meat, fried foods, caffeine, and alcohol are associated with worse period pain. These foods promote inflammation, and since cramping is fundamentally an inflammatory process, they add fuel to the fire. Salt also increases water retention and bloating, which compounds discomfort. Refined sugar causes blood sugar spikes and crashes that can worsen fatigue and mood symptoms alongside the pain.
You don’t need to eliminate every one of these during your period, but reducing them in the week leading up to menstruation and during the first few days can make a noticeable difference. Swapping a sugary snack for dark chocolate, or replacing a salty processed meal with a fiber-rich bowl of beans and vegetables, targets cramps from both directions: less inflammation in, more anti-inflammatory support out.

