How to Make Period Cramps Better: Heat, Diet & More

Period cramps happen because your uterus produces hormone-like chemicals called prostaglandins, which trigger muscle contractions to shed its lining each month. When your body makes too many prostaglandins, those contractions become stronger and more painful, and blood flow to the uterus temporarily decreases. The good news: several approaches can dial down prostaglandin production, relax uterine muscles, or both.

Why Cramps Happen

Prostaglandins do useful work throughout your body, but during your period they concentrate in the uterus. Higher prostaglandin levels mean harder contractions and more inflammation, which is why some people barely notice their period while others are doubled over. The intensity tends to be worst in the first one to two days of bleeding, when prostaglandin levels peak. Anything that lowers prostaglandin production or relaxes the uterine muscle will reduce pain.

Heat Works as Well as Painkillers

A hot water bottle or heating pad on your lower abdomen is one of the most effective things you can do. A 2025 meta-analysis in Frontiers in Medicine pooled data from 22 randomized trials involving nearly 2,000 women and found that heat therapy provided pain relief comparable to, or slightly better than, anti-inflammatory painkillers after three months of use. Within the first 24 hours of a painful period, heat also matched or outperformed medication in two additional trials.

The safety difference was even more striking: women using heat had about 70% fewer side effects than those taking anti-inflammatory drugs. A self-heating adhesive patch, a hot water bottle, or an electric heating pad all work. Aim for a comfortable warmth (around 40°C or 104°F) rather than anything hot enough to burn skin. You can use heat on its own or combine it with other methods.

Anti-Inflammatory Painkillers

Over-the-counter anti-inflammatories like ibuprofen and naproxen work by blocking prostaglandin production directly. They’re considered a first-line treatment for period pain. The key to getting the most out of them is timing: they’re most effective when you start taking them one to two days before your period begins and continue through the first two to three days of bleeding, rather than waiting until pain is already intense.

If your cycle is regular enough to predict, this pre-treatment approach prevents prostaglandins from building up in the first place. If your cycle is irregular, start at the very first sign of bleeding or cramping rather than trying to push through.

Magnesium and Vitamin D

Two supplements have reasonable evidence behind them. Magnesium helps by relaxing uterine muscles and reducing prostaglandin production. Small studies have used 150 to 300 milligrams per day, and Cleveland Clinic recommends starting closer to 150 mg to avoid digestive side effects. Magnesium glycinate is the form that gets absorbed best.

Vitamin D also appears to lower the inflammatory factors that drive uterine cramping. A 2023 meta-analysis found that women who took vitamin D supplements experienced meaningful relief from period pain. You can also get vitamin D from fatty fish like salmon, trout, and mackerel, as well as egg yolks and cheese, though food sources alone rarely provide enough to move the needle on cramps. If you’re considering a supplement, a blood test can tell you whether you’re deficient.

Exercise Between Periods

Regular aerobic exercise and yoga both reduce cramp severity over time, though the benefits build gradually rather than providing instant relief. Research protocols typically use three sessions per week for at least eight weeks, starting with 30-minute sessions and progressing to 60 minutes. You don’t need to follow a rigid program. Consistent moderate activity like brisk walking, swimming, cycling, or a regular yoga practice appears to shift your body’s inflammatory baseline enough to make periods less painful over successive cycles.

During your period, gentle movement like walking or stretching can also help in the moment by increasing blood flow to the pelvic area, though intense exercise isn’t necessary or expected when you’re in pain.

TENS Devices

A TENS unit is a small, battery-powered device that sends mild electrical pulses through adhesive pads placed on your skin. You stick the pads on your lower abdomen or back, and the pulses interfere with pain signals traveling to your brain. A Cochrane review of multiple trials found that both high-frequency and low-frequency TENS reduced menstrual pain compared to placebo, though the evidence is still considered low-certainty. TENS devices are inexpensive, reusable, drug-free, and available without a prescription, making them worth trying if you want to avoid or reduce medication use.

Hormonal Options for Severe Cramps

If over-the-counter methods aren’t enough, hormonal contraceptives are the other main first-line treatment. The combined pill, hormonal IUDs, and implants all thin the uterine lining, which means fewer prostaglandins and lighter, less painful periods. Continuous or extended use (skipping the placebo week so you have fewer or no periods) is generally recommended over cyclic use when the goal is pain control. A hormonal IUD can stay in place for five to eight years and is safe regardless of age. These are prescription options, so they involve a conversation with a provider about which method fits your life.

Diet Changes That Help

Because prostaglandins are built from fatty acids, what you eat can influence how many your body produces. An anti-inflammatory eating pattern, one that emphasizes fatty fish, fruits, vegetables, nuts, and whole grains while limiting processed foods, red meat, and refined sugar, can reduce the raw materials your body uses to make prostaglandins. You don’t need a dramatic dietary overhaul. Adding two to three servings of fatty fish per week and cutting back on highly processed snacks during the week before your period is a practical starting point.

When Cramps Signal Something Else

Most period pain is primary dysmenorrhea, meaning it’s caused by normal prostaglandin activity and nothing structurally wrong. But pain that gets progressively worse over time, doesn’t respond to the approaches above, or comes with other symptoms can point to an underlying condition. Red flags include pain during sex or bowel movements (which can suggest endometriosis), very heavy bleeding with large clots (fibroids or adenomyosis), fever or unusual vaginal discharge (pelvic infection), or sudden sharp pain that resolves quickly (ovarian cysts). Pain that starts later in life after years of relatively comfortable periods also warrants investigation, since primary dysmenorrhea typically begins in adolescence.