What Helps with Cramps: Remedies That Actually Work

What helps with cramps depends on whether you’re dealing with menstrual cramps, exercise-related muscle cramps, or nighttime leg cramps. The good news is that most cramps respond well to simple treatments you can start at home: heat, stretching, over-the-counter pain relievers, and targeted nutrition all have solid evidence behind them.

Why Cramps Happen in the First Place

Menstrual cramps and muscle cramps have completely different causes, which is why they respond to different treatments.

Menstrual cramps are driven by hormone-like substances called prostaglandins, which your uterine lining releases during your period. These cause the uterus to contract frequently and irregularly while reducing blood flow to the area and making nearby nerves more sensitive to pain. The more prostaglandins your body produces, the worse the cramping tends to be.

Muscle cramps, including calf cramps and exercise cramps, were long blamed on dehydration and electrolyte loss. But several large studies have challenged that idea. A study of 82 marathon runners found no difference in sodium or potassium levels between those who cramped and those who didn’t. A 2011 study of 210 Ironman triathletes reached the same conclusion. The strongest evidence now points to neuromuscular fatigue: when a muscle is overworked, the normal balance between signals that excite the muscle and signals that tell it to relax gets disrupted, locking the muscle into a contraction.

Heat for Menstrual Cramps

Applying heat to your lower abdomen is one of the most effective and immediate options for period pain. Clinical trials have tested adhesive heat wraps and heating pads set between 38.9°C and 40°C (about 102°F to 104°F), worn for 8 to 12 hours. Heat at this temperature penetrates about 1 cm into tissue, enough to relax the uterine muscle and improve blood flow to the area. A hot water bottle or microwavable heat pad works just as well. Aim for a temperature that feels comfortably warm without burning your skin, and use it as long as you need to.

Pain Relievers That Target the Source

NSAIDs like ibuprofen and naproxen don’t just mask menstrual pain. They block the enzyme responsible for producing prostaglandins, directly reducing the contractions and nerve sensitivity that cause cramping. For best results, start taking them at the first sign of your period or cramping rather than waiting until the pain peaks. This gives the medication time to lower prostaglandin levels before they build up.

NSAIDs are less useful for muscle cramps because those aren’t driven by prostaglandins. For a sudden calf or foot cramp, physical interventions work faster and more directly.

Stretching for Muscle Cramps

Stretching is the most reliable way to break an active muscle cramp. It works by stimulating receptors in the tendon that send inhibitory signals to the overexcited nerve, essentially telling the muscle to release. For a calf cramp, keep your leg straight and pull the top of your foot toward your face. You can also stand on the cramping leg and press your weight down firmly. Gently massaging the muscle while stretching it helps speed things along. Hold the stretch until the cramp fully releases, which usually takes 30 to 60 seconds.

The Pickle Juice Trick

This one sounds strange, but it has real science behind it. Drinking a small amount of pickle juice can relieve an active muscle cramp in roughly 35 seconds. That’s far too fast for any nutrient to be absorbed and reach the muscle, which means the mechanism isn’t about replacing salt or fluids. Researchers believe the sharp, acidic taste triggers a reflex in the mouth and throat that sends a signal down the spinal cord to quiet the overactive nerve firing in the cramping muscle. About 1 milliliter per kilogram of body weight (a few tablespoons for most people) reduced cramp duration by about 37% in controlled testing. Mustard, which has a similarly sharp taste from acetic acid, may work through the same reflex.

Potassium-Rich Foods

While the electrolyte theory of exercise cramps has weakened, potassium still plays a real role in muscle function. It acts as a neuromuscular transmitter, facilitating communication between nerves and muscles. When potassium levels drop, muscles can essentially get stuck in a contracted position. If you’re prone to cramps and your diet is low in potassium, increasing your intake is worth trying.

Bananas get all the credit, but they only provide about 9% of your daily recommended intake. Better sources include sweet potatoes, cantaloupe and honeydew melon, cooked spinach, nuts, and beans. High-sodium sports drinks can also help during prolonged exercise by replacing the sodium lost through sweat, even if sodium depletion alone doesn’t fully explain cramping.

Does Magnesium Actually Help?

Magnesium supplements are one of the most commonly recommended remedies for cramps, but the evidence is disappointing. A Cochrane review, the gold standard for evaluating medical evidence, looked at magnesium supplementation across dosages ranging from 100 to 520 mg daily and found it did not significantly reduce cramp frequency compared to a placebo for general muscle cramps. The review’s authors concluded that magnesium supplementation is unlikely to help with idiopathic (unexplained) skeletal muscle cramps at any dosage. If your doctor has confirmed you have a magnesium deficiency, supplementation makes sense for overall health, but it probably won’t be the thing that fixes your cramps.

B Vitamins for Nighttime Leg Cramps

Nocturnal leg cramps, the kind that jolt you awake with a seizing calf or foot, are especially common in older adults. A randomized, placebo-controlled study of elderly patients with severe nighttime cramps found that a B-complex vitamin taken three times daily for three months led to prominent remission of leg cramps in 86% of participants. The placebo group showed no significant change. The treatment reduced not just the frequency of cramps but also their intensity and duration. If you’re dealing with recurring nighttime cramps, a B-complex supplement is a low-risk option to discuss with your healthcare provider.

TENS Units for Period Pain

A TENS (transcutaneous electrical nerve stimulation) unit is a small, battery-powered device that sends mild electrical pulses through pads stuck to your skin. For menstrual cramps, the most commonly tested setting is a frequency of 100 Hz, using four large electrodes. You can place the pads on your lower back near the spine or on your lower abdomen over the painful area. The electrical pulses are thought to interrupt pain signals traveling to the brain while also encouraging the body’s own pain-relief pathways. TENS units are available without a prescription and can be used alongside other treatments like heat or pain relievers.

Prevention for Recurring Cramps

If muscle cramps hit you regularly during exercise, the strongest evidence points to managing fatigue rather than loading up on electrolytes. That means building up training intensity gradually, staying conditioned for the specific activity you’re doing, and not pushing a muscle group past the point of exhaustion. Warming up thoroughly and staying hydrated are still good practices, even if dehydration alone isn’t the primary trigger.

For menstrual cramps that come back every cycle, regular physical activity between periods can reduce their severity over time. Hormonal birth control is another option, as it thins the uterine lining and reduces the amount of prostaglandins produced each cycle. Some people also find that omega-3 fatty acids from fish or supplements help take the edge off, though the evidence is less robust than for NSAIDs or heat.