Most muscle cramps respond to a few simple interventions: stretching the affected muscle, applying heat or ice, and staying hydrated. But the best approach depends on what kind of cramp you’re dealing with, whether it hits during exercise, wakes you up at night, or accompanies your menstrual cycle. Here’s what actually works, what’s overhyped, and when cramping signals something more serious.
Stop a Cramp in the Moment
When a cramp strikes, your first move is to gently stretch and lengthen the contracted muscle. For a calf cramp, flex your foot upward toward your shin, pulling your toes back. For a thigh cramp, straighten your leg and pull your foot toward your glute. Hold the stretch for 15 to 30 seconds, release, and repeat until the spasm fades. Massaging the area with moderate pressure while stretching can help the muscle relax faster.
One surprisingly effective trick: pickle juice. Research from the journal Medicine and Science in Sports and Exercise found that drinking about a tablespoon of pickle juice shortened cramp duration by roughly 37% compared to water. The effect kicks in within about 35 seconds, far too fast for the liquid to be digested and absorbed. Instead, the acetic acid (vinegar) triggers receptors in the mouth and throat that send a rapid signal through the nervous system to quiet the overactive nerve driving the cramp. Mustard works through a similar mechanism. You don’t need much, just a small mouthful.
Heat, Ice, or Both
After the acute spasm passes, applying warmth to the area relaxes the muscle and increases blood flow. A heating pad, warm towel, or hot water bottle for 15 to 20 minutes works well. If the muscle feels sore or bruised afterward, switching to an ice pack wrapped in a cloth for 10 to 15 minutes can reduce lingering inflammation. For cramps that recur in the same spot, a warm bath or shower before bed can help prevent them.
Relieving Menstrual Cramps
Menstrual cramps involve the uterine muscle contracting to shed its lining, so the approach differs slightly from skeletal muscle cramps. Heat therapy is one of the most effective options. A systematic review and meta-analysis published in Frontiers in Medicine, covering 22 randomized controlled trials and nearly 2,000 women, found that heat therapy provided pain relief comparable to or slightly better than standard anti-inflammatory painkillers. Heat also came with significantly fewer side effects: women using heat were about 70% less likely to experience adverse reactions compared to those taking anti-inflammatory medications.
Self-heating patches or a hot water bottle placed on the lower abdomen work well for on-the-go relief. You can also combine heat with an over-the-counter pain reliever if one approach alone isn’t enough. Light exercise, particularly walking or gentle yoga, helps some people by increasing circulation to the pelvic area.
The Role of Hydration
The relationship between dehydration and cramping is more nuanced than the old advice to “just drink more water” suggests. A 2024 study analyzing medical data from over 10,500 Ironman triathletes found a strong link between dehydration and cramping during competition. Interestingly, the same study found no evidence that imbalanced electrolytes, potassium, or salt levels were responsible, which aligns with other recent research questioning the electrolyte theory.
That said, staying well hydrated still matters. Dehydration appears to alter how your nerves and muscles communicate, making cramps more likely during prolonged physical activity. The practical takeaway: drink fluids consistently throughout the day rather than trying to catch up all at once. During exercise, sip water or a sports drink at regular intervals instead of waiting until you feel thirsty.
Minerals and Vitamins That May Help
Magnesium plays a central role in muscle relaxation. When levels are low, muscles are more prone to involuntary contractions. The recommended daily intake for adults is 310 to 420 mg depending on age and sex, and many people fall short. If you deal with frequent cramps, magnesium citrate, glycinate, or lactate are better absorbed than the magnesium oxide found in most cheap supplements. Good dietary sources include dark leafy greens, nuts, seeds, and whole grains.
Vitamin B complex has shown some promise as well. A small clinical trial found that daily B complex supplementation induced remission of muscle cramps in 86% of treated older adults compared to no improvement in the control group. The study was limited in size (28 participants), but no serious side effects were observed. A review by the American Academy of Neurology classified vitamin B complex as “possibly effective” for managing cramps.
Potassium and sodium are essential for normal muscle contraction and relaxation. During exercise, muscles lose potassium to the surrounding fluid, which can shift the electrical balance needed for orderly contraction. Eating potassium-rich foods like bananas, potatoes, and avocados, along with getting adequate sodium from your diet, supports the pumps in your muscle cells that maintain this balance.
Preventing Nocturnal Leg Cramps
Night cramps, particularly in the calves or feet, are common in adults over 50 and can jolt you awake with intense pain. A consistent stretching routine before bed is one of the most reliable preventive measures. Standing about two feet from a wall, leaning forward with your palms flat against it while keeping your heels on the ground stretches the calves effectively. Holding for 30 seconds per leg, repeated two or three times, can reduce nighttime cramp frequency over several weeks.
Keeping bedsheets loose also helps. Tightly tucked sheets can push your feet into a pointed position, shortening the calf muscles and making cramps more likely. Some people find that sleeping with a pillow under their knees or propping their feet slightly prevents the calf from staying in a shortened position overnight.
Quinine, once commonly recommended for night cramps, is no longer considered safe for this purpose. The FDA has specifically warned against using quinine for leg cramps due to serious risks including dangerous drops in blood platelet counts, life-threatening allergic reactions, and heart rhythm abnormalities. Fatalities and kidney failure requiring dialysis have been reported. Quinine remains approved only for treating malaria.
When Cramping Signals Something Serious
Most cramps are harmless and resolve on their own. But certain patterns warrant prompt attention. Cramping in one leg accompanied by swelling, redness, warmth, or a bluish-purple discoloration of the foot could indicate a deep vein thrombosis (blood clot). This is especially concerning if the pain is behind the knee and came on suddenly.
Cramps that come with progressive muscle weakness, particularly weakness spreading across multiple areas of the body, may point to a neurological issue rather than a simple muscle spasm. Similarly, if cramping occurs alongside a fever, severe joint pain and swelling, or skin that looks pale, grey, or blotchy, these are signs of conditions that need urgent evaluation.
Cramps that happen frequently despite adequate hydration, stretching, and nutrition, or that don’t respond to any of the strategies above, are worth discussing with a healthcare provider. Recurring cramps can occasionally reflect underlying conditions like nerve compression, thyroid dysfunction, or circulation problems that benefit from targeted treatment.

