Certain foods can meaningfully reduce period cramps by lowering the inflammatory compounds that cause them. Your uterus produces hormone-like chemicals called prostaglandins during menstruation, and the more prostaglandins it makes, the stronger your cramps. The good news: what you eat directly influences how much of these chemicals your body produces, giving you a practical, drug-free way to turn down the pain.
Why Food Affects Cramp Severity
Prostaglandins trigger the uterine contractions that shed your lining each month. They also restrict blood flow to the uterus, which creates that deep, aching pain. Diets high in inflammatory ingredients, including sugar, processed oils, and excess salt, ramp up prostaglandin production. Anti-inflammatory foods do the opposite, reducing the raw materials your body uses to make these pain-causing compounds. That’s why shifting what you eat in the days leading up to and during your period can change how intense your cramps feel.
Omega-3 Rich Fish and Seeds
Omega-3 fatty acids are one of the most studied nutrients for menstrual pain. They work by competing with omega-6 fatty acids (the inflammatory kind found in vegetable oils and processed foods) for the same enzymes. When omega-3s win that competition, your body produces fewer prostaglandins and more anti-inflammatory compounds instead. Two randomized controlled trials found that omega-3 supplementation eased menstrual pain effectively enough that participants reduced their ibuprofen use.
The richest food sources are fatty fish like salmon, sardines, and mackerel. Plant-based options include flaxseeds, chia seeds, and walnuts. Aim to eat these regularly throughout the month rather than only during your period, since omega-3s need time to build up in your tissues.
Magnesium-Rich Foods
Magnesium helps relax smooth muscle, including the uterine muscle that cramps during your period. Small clinical studies suggest that 150 to 300 milligrams of magnesium per day can reduce cramp intensity, and one study found that combining 250 milligrams of magnesium with 40 milligrams of vitamin B6 worked better than magnesium alone. The recommended daily allowance for women is 320 milligrams, and most people fall short.
Foods that deliver meaningful amounts of magnesium include pumpkin seeds (one ounce provides about 150 milligrams), spinach, black beans, edamame, almonds, and cashews. Dark chocolate is another solid source: an ounce of 70% or higher cocoa dark chocolate contains about 15% of your daily magnesium needs. Studies suggest that 40 to 120 grams of dark chocolate daily during your period may help reduce pain. Stick to varieties with at least 70% cocoa, since milk chocolate contains far less magnesium and far more sugar.
Ginger
Ginger has performed surprisingly well in head-to-head comparisons with over-the-counter painkillers. In one clinical trial, participants who took 250 milligrams of ginger four times a day for the first three days of their cycle experienced the same level of pain relief as those taking 400 milligrams of ibuprofen on the same schedule. There was no significant difference between the two groups in pain severity, relief, or satisfaction.
You don’t need a supplement to get this benefit. Grate fresh ginger into hot water for tea, add it to stir-fries, or blend it into smoothies. Starting a day or two before your period begins gives the anti-inflammatory effects time to build.
Calcium and Vitamin D
Calcium plays a direct role in controlling muscle and nerve activity, including in the uterus. Vitamin D, meanwhile, suppresses the enzyme responsible for prostaglandin production in the uterine lining. Research consistently shows that women with low vitamin D levels experience more severe cramps, and multiple randomized trials have demonstrated significant pain reduction after correcting a deficiency.
In one study, women who took 1,000 milligrams of calcium daily saw a meaningful drop in pain severity compared to placebo. Another trial combining calcium with 1,500 IU of vitamin D daily also showed benefits. Rather than relying on supplements alone, you can build these nutrients into your diet with yogurt, kefir, fortified plant milks, leafy greens like kale and bok choy, and canned sardines or salmon with bones. For vitamin D, fatty fish, egg yolks, and fortified foods help, though sunlight exposure remains the most efficient source.
Water (More Than You Think)
Dehydration worsens cramps through a surprisingly direct mechanism. When your body senses low fluid levels, it releases a hormone that increases uterine contractions and reduces blood flow to the uterus, both of which intensify pain. A semi-experimental study found that women who consistently drank 1,600 to 2,000 milliliters of water daily (roughly 7 to 8 cups) experienced less severe cramps, shorter menstrual bleeding, and needed fewer painkillers compared to a control group.
This isn’t about chugging water on day one of your period. The benefits appeared after consistent daily hydration over two full menstrual cycles. Herbal teas (especially ginger or chamomile) count toward your intake and may offer additional anti-inflammatory effects. Fruits with high water content, like watermelon, oranges, and cucumbers, also contribute.
Foods That Make Cramps Worse
What you remove from your plate matters as much as what you add. Diets high in inflammatory foods are associated with more severe cramps, and several categories deserve attention.
- Vegetable oils and processed foods: Soybean oil, corn oil, and the many packaged foods made with them are high in omega-6 fatty acids, which concentrate in uterine muscles and the uterine lining. These directly fuel prostaglandin production.
- Excess sugar: Refined sugar promotes systemic inflammation and can worsen bloating, compounding the discomfort you already feel.
- Salty foods: High sodium intake increases water retention and bloating, which adds pressure and discomfort to an already sensitive pelvic area.
- Caffeine: While a small amount may not cause problems, caffeine constricts blood vessels and can increase tension in the uterus. If your cramps are severe, cutting back during your period is worth trying.
- Alcohol: It promotes inflammation and dehydration, working against two of the mechanisms that help reduce cramps.
Putting It Together
You don’t need to overhaul your entire diet. The most effective approach is to increase anti-inflammatory foods in the week before your period and maintain them through menstruation. A practical day might include oatmeal with chia seeds and berries in the morning, a salmon and spinach lunch, a handful of pumpkin seeds as a snack, and a dinner with beans, leafy greens, and ginger. A square or two of dark chocolate in the evening covers the magnesium angle while satisfying a craving.
The key shift is moving away from processed, omega-6 heavy foods and toward whole foods rich in omega-3s, magnesium, calcium, and vitamin D. These changes won’t eliminate cramps overnight, but over two to three cycles of consistent eating, many women notice a real difference in pain intensity and how many painkillers they reach for.

