What Helps Reduce Cramps? Remedies That Work

Several proven strategies can reduce cramps, whether they strike your legs at night, hit during exercise, or arrive with your period. The most effective approaches target the underlying cause: replenishing key minerals, applying heat, stretching tight muscles, and using the right pain relievers. What works best depends on the type of cramp you’re dealing with.

Why Cramps Happen

Muscle cramps occur when a muscle contracts involuntarily and won’t relax. Three electrolytes play the biggest role in keeping your muscles functioning smoothly. Calcium helps your nerves fire and your muscles contract properly. Magnesium supports dozens of bodily functions, including muscle relaxation after contraction. Potassium is critical for nerve and muscle cell communication. When any of these drop too low in your blood, your muscles become more excitable and prone to seizing up.

Dehydration amplifies the problem. When you’re low on fluids, electrolyte concentrations shift and your muscles misfire more easily. Older adults are especially vulnerable because many cut back on water in the evening to avoid bathroom trips, then wake up with leg cramps in the middle of the night.

Menstrual cramps have a different mechanism. Your uterus produces hormone-like compounds called prostaglandins that trigger contractions to shed the uterine lining. Higher prostaglandin levels mean stronger, more painful cramps.

Foods That Fight Cramps

You can build a cramp-resistant diet by focusing on magnesium and potassium-rich foods. A single avocado delivers about 975 milligrams of potassium. A cup of orange juice provides nearly 500 milligrams of potassium plus 27 milligrams each of calcium and magnesium. A 3-ounce portion of cooked salmon has about 326 milligrams of potassium.

For magnesium specifically, black beans are one of the best sources at 120 milligrams per cooked cup. A cup of cooked lentils provides 71 milligrams, and an ounce of roasted almonds has about 74 milligrams. Even an ounce of toasted sunflower seeds adds 37 milligrams. Spreading these foods across your meals gives your muscles a steady supply of the minerals they need.

Staying Hydrated

Drinking water consistently throughout the day is one of the simplest ways to prevent cramps. There’s no magic number that works for everyone, but if you’re physically active, you need significantly more than someone sitting at a desk. A practical gauge: your urine should be pale yellow. If it’s dark, you’re behind on fluids. Pay special attention to hydration in the hours before bed if nighttime leg cramps are your problem, even if that means one extra bathroom trip.

Stretching for Nighttime Leg Cramps

Nighttime leg cramps, especially in the calves, affect a huge number of adults over 50. A daily stretching routine can reduce how often they happen. The Cleveland Clinic recommends a simple wall stretch: stand about 3 feet from a wall, lean forward with your arms outstretched touching the wall, and keep your feet flat on the floor. Hold for a count of five, then repeat for at least five minutes. Do this three times per day.

When a cramp strikes in the moment, gently stretch the affected muscle. For a calf cramp, flex your foot so your toes point toward your shin. For a thigh cramp, pull your foot behind you toward your glute. Hold the stretch until the spasm releases, which usually takes 30 to 60 seconds.

The Pickle Juice Trick

Pickle juice has a real, measurable effect on muscle cramps, and it works faster than any electrolyte drink could. Research published in Medicine and Science in Sports and Exercise found that about 70 to 100 milliliters of pickle juice (roughly a third of a cup) can abort a cramp within seconds. The surprising part: it has nothing to do with replacing lost salt or fluids.

The acetic acid in pickle brine triggers sensory receptors in the mouth and throat, sending a nerve signal to the brain that essentially tells the overactive muscle to calm down. This reflex acts on the nervous system before the liquid even reaches the stomach. Mustard works through a similar mechanism. If you’re prone to exercise cramps, keeping a small bottle of pickle juice nearby is a low-risk, evidence-backed option.

Heat Therapy

Applying heat is effective for both muscle cramps and menstrual cramps. For period pain, heat patches that deliver a constant temperature of about 39°C (102°F) have been studied head to head against over-the-counter pain relievers. Two studies found that topical heat patches actually provided greater pain reduction than oral anti-inflammatory drugs, while a third study found them equally effective. The patches reach maximum effectiveness around 8 hours of wear.

A heating pad or hot water bottle works the same way for leg cramps and muscle spasms elsewhere in the body. Heat increases blood flow to the area, helping the muscle relax and recover. Apply it for 15 to 20 minutes at a time.

Pain Relievers for Menstrual Cramps

If you’re dealing with period cramps, ibuprofen is significantly more effective than acetaminophen (Tylenol). The reason comes down to how they work. Ibuprofen is an anti-inflammatory that directly blocks the production of prostaglandins, the compounds responsible for uterine contractions. In a clinical trial, ibuprofen cut prostaglandin levels in menstrual fluid by more than half compared to placebo. Acetaminophen reduces pain signals in the brain but doesn’t touch prostaglandin production, which is why it falls short for this specific type of pain.

Naproxen (Aleve) works through the same anti-inflammatory pathway as ibuprofen and is another strong option. The advantage of naproxen is that it lasts longer per dose, so you take it less frequently throughout the day.

B Vitamins for Recurring Cramps

A small but striking study from Taiwan tested daily vitamin B complex supplements in older adults with recurring muscle cramps. After 12 weeks, 86% of participants who took the supplement experienced complete remission of their cramps, compared to zero improvement in the group that didn’t take it. The participants weren’t known to be vitamin B deficient beforehand, which makes the result more interesting. This is a single study with only 28 participants, so the evidence isn’t definitive, but the low risk of B complex supplementation makes it worth considering if cramps are a persistent problem.

What to Avoid: Quinine

Quinine, the bitter compound in tonic water, has a long history of being used for leg cramps. The FDA has explicitly warned against this. Quinine is approved only for treating malaria and carries serious cardiovascular risks, including dangerous heart rhythm changes (QT prolongation). Despite declining use, the FDA continues to report serious adverse events linked to people taking quinine for leg cramps. Drinking a glass of tonic water contains far less quinine than a medicinal dose, but relying on quinine in any form for cramp relief isn’t considered safe or effective.