What to Eat for Menstrual Cramps and What to Avoid

Anti-inflammatory foods rich in omega-3 fatty acids, magnesium, and fiber can meaningfully reduce menstrual cramp severity by lowering your body’s production of prostaglandins, the hormone-like compounds that trigger uterine contractions. The right dietary choices won’t replace pain relief entirely for everyone, but clinical trials show certain foods and nutrients rival ibuprofen in effectiveness.

Why Food Affects Cramp Severity

Menstrual cramps happen when your uterine lining releases prostaglandins, which cause the uterine muscle to contract and squeeze out its lining. Higher prostaglandin levels mean stronger contractions, less blood flow to the uterus, and more pain. The foods you eat influence how much of these compounds your body produces and how quickly it clears them.

Inflammatory foods like refined sugar, red meat, processed cooking oils, and excess salt increase prostaglandin release. That leads to greater vasoconstriction of the blood vessels feeding the uterine muscle, which intensifies cramping. Anti-inflammatory foods work in the opposite direction: they either reduce prostaglandin production at the source or help your body eliminate prostaglandins faster. Fiber, for example, acts like a sponge in the liver, absorbing prostaglandins and carrying them out as waste.

Omega-3 Fatty Acids

Omega-3s are one of the most studied nutrients for period pain. They directly interfere with prostaglandin production, shifting your body toward less inflammatory compounds. In a clinical trial of 95 women, those who took omega-3 supplements for three months experienced a significant reduction in pain intensity compared to the placebo group. They also needed fewer ibuprofen tablets for rescue pain relief, averaging about 3 to 4 tablets over a cycle compared to 5 to 6 in the placebo group.

You don’t need supplements to get this benefit. Cold-water fish like salmon, sardines, mackerel, and cod are the richest food sources. Plant-based options include walnuts, flaxseed, chia seeds, and hemp seeds. Aim to include these foods regularly throughout your cycle rather than only during your period, since the anti-inflammatory effect builds over time.

Magnesium-Rich Foods

Magnesium helps relax smooth muscle, including the uterine wall. A randomized controlled trial in college-aged women found that 300 mg of magnesium daily significantly reduced cramps, back pain, abdominal pain, and headaches compared to placebo. Both 150 mg and 300 mg doses helped, but the higher dose outperformed on nearly every symptom measured, including mood-related ones like irritability and depression.

Foods high in magnesium include dark chocolate (about 65 mg per ounce), pumpkin seeds (156 mg per ounce), spinach, black beans, almonds, and avocado. A quarter cup of pumpkin seeds alone gets you close to half a day’s intake. If your diet is low in leafy greens, nuts, and legumes, you’re likely not getting enough magnesium, and your cramps may be worse as a result. In the study above, participants started supplementing at day 15 of their cycle, which is roughly when the luteal phase begins, about two weeks before the next period.

Ginger

Ginger has performed surprisingly well in head-to-head comparisons with conventional painkillers. In one study, women who took 250 mg of ginger powder four times daily during the first three days of their cycle reported the same level of pain relief as women taking 400 mg of ibuprofen on the same schedule. About 62% of the ginger group said their pain was relieved or considerably relieved, compared to 66% in the ibuprofen group, a difference that wasn’t statistically significant.

Fresh ginger in cooking, grated into smoothies, or steeped as tea are all reasonable ways to get it. The clinical doses used roughly 1,000 mg of ginger powder per day, which translates to about a teaspoon of ground ginger or a one-inch piece of fresh root.

Calcium and Vitamin D

A large study found that women with high intakes of both calcium and vitamin D had a 40% lower risk of developing premenstrual symptoms, which includes cramping. The protective amount was roughly 1,200 mg of calcium and 400 IU of vitamin D per day, equivalent to about four servings of skim or low-fat milk, fortified orange juice, or yogurt.

If dairy isn’t part of your diet, calcium-fortified plant milks, canned sardines with bones, tofu made with calcium sulfate, and kale are good alternatives. For vitamin D, fatty fish and fortified foods help, though sunlight exposure remains the most efficient source for most people.

B Vitamins and Vitamin E

Vitamin B1 (thiamine) at 100 mg daily was effective enough in one well-conducted trial to earn a positive recommendation from a Cochrane review, one of the highest standards in evidence-based medicine. Good food sources include sunflower seeds, lentils, black beans, and fortified cereals, though reaching 100 mg through food alone is difficult, making this one nutrient where a supplement may be more practical.

Vitamin E may inhibit prostaglandin production directly. Clinical guidance from The Royal Women’s Hospital suggests starting 200 IU of vitamin E two days before your period begins and continuing for three days after it starts. Sunflower seeds, almonds, hazelnuts, and spinach are the best dietary sources.

High-Fiber Plant Foods

Fiber’s role in reducing cramps is less glamorous but genuinely useful. By binding to prostaglandins in the liver and shuttling them out of the body, fiber lowers the overall prostaglandin load that reaches your uterus. Vegetables, fruits, beans, whole grains, and legumes are the foods that do this most effectively. There’s no single “best” fiber food for cramps. The benefit comes from consistently eating a plant-heavy diet rather than adding one specific item.

This also partly explains why plant-based diets are associated with less severe period pain in observational research. It’s not just the absence of inflammatory foods like red meat and processed sugar. It’s the presence of fiber, antioxidants, and anti-inflammatory compounds working together.

Foods That Make Cramps Worse

A research review identified several food categories that consistently worsened menstrual pain: red and processed meat, refined sugar, common cooking oils high in omega-6 fats, excess salt, and coffee. These are all considered pro-inflammatory, meaning they promote prostaglandin release. Salt also contributes to water retention and bloating, which can compound the discomfort of cramps even though it doesn’t directly cause uterine contractions.

Coffee deserves special attention because many people rely on it more during their period due to fatigue. But caffeine constricts blood vessels, which can reduce blood flow to the uterus and amplify cramping. If cutting coffee entirely feels unrealistic, try switching to green tea during the first few days of your period. You’ll still get some caffeine, but with anti-inflammatory compounds that partially offset its effects.

When to Start Eating Differently

Dietary changes work best when you don’t wait until cramps have already started. Most clinical trials that showed positive results had participants begin their nutritional interventions during the luteal phase, the roughly two-week stretch between ovulation and your period. For magnesium, starting around day 15 of your cycle proved effective. For vitamin E, beginning two days before your expected period was the tested approach.

The broader dietary pattern matters even more than timing individual nutrients. Consistently eating more fish, leafy greens, nuts, seeds, and whole grains while cutting back on processed food, sugar, and red meat shifts your inflammatory baseline over weeks and months. Women in the omega-3 trial didn’t see peak benefits until three months of consistent intake. If you change your diet only on the days you have cramps, you’re catching the process too late. The prostaglandins that cause your pain were already produced days earlier.

Hydration

Staying well hydrated during your period helps ease both cramping and PMS symptoms. Dehydration thickens your blood and can make muscle contractions feel more intense. Plain water is the simplest option, but warm or hot liquids like herbal tea (ginger, chamomile, or peppermint) may offer additional muscle-relaxing benefits. If you tend to forget to drink enough water, front-loading your intake in the morning and keeping a bottle visible throughout the day makes a noticeable difference during the first two to three days of your cycle when cramps are typically strongest.