Most muscle cramps release on their own within seconds to minutes, but you can speed that process with a targeted stretch of the affected muscle. For cramps that keep coming back, the treatment shifts from immediate relief to prevention, and the evidence behind popular remedies is more mixed than you might expect.
Immediate Relief During a Cramp
The fastest way to stop an active cramp is to stretch the muscle that’s seizing and hold it in a lengthened position. Which stretch you use depends on where the cramp hits.
For a calf cramp, the most common type, keep your leg straight and pull the top of your foot toward your face. You can also stand up and press your weight down firmly through the cramping leg, which forces the calf to lengthen. This same standing technique works for cramps in the back of the thigh.
For a front-of-thigh cramp, pull your foot on that side up toward your buttock, bending the knee behind you. Hold onto a chair or wall for balance. In all cases, hold the stretch until the cramp releases, then gently massage the area. Rubbing the muscle while it’s still in spasm can help it relax faster.
Heat, Cold, or Both
Once the cramp itself passes, the residual soreness can linger for hours. Heat is generally the better choice here. It reduces muscle tightness and spasm, making it useful when the muscle still feels knotted or stiff after the cramp ends. A warm towel, heating pad, or warm bath all work.
Cold therapy is better suited for injuries involving swelling and inflammation, like a sprained ankle or tendonitis. Since a standard muscle cramp doesn’t involve tissue damage or swelling, ice isn’t typically necessary. If the muscle feels bruised or tender the next day, alternating between warm and cool compresses can help, but heat alone is usually enough.
The Pickle Juice Question
Pickle juice, mustard, and spicy drinks have a real physiological basis for cramp relief, not just folklore. These substances contain compounds that activate specific sensory receptors (called TRP channels) in your mouth and throat. When those receptors fire, the signal travels to the spinal cord and appears to dial down the overexcited nerve activity driving the cramp. In other words, the strong taste itself seems to calm the misfiring motor neurons, rather than any electrolyte content being absorbed.
Research protocols have tested taking these substances either about 15 minutes before exercise or immediately at cramp onset. The theory is promising, and many athletes swear by it, but the evidence is still building. It’s a low-risk option worth trying if you cramp frequently during exercise.
Supplements: What the Evidence Shows
Magnesium is probably the most widely recommended supplement for muscle cramps, but the clinical evidence is surprisingly weak. A meta-analysis of four randomized controlled trials in pregnant women, totaling 332 participants, found that oral magnesium did not reduce the frequency of leg cramps compared to placebo. An evidence-based review published in the journal Neurology by the American Academy of Neurology went further, concluding that magnesium preparations are “probably not effective” for treating muscle cramps based on two well-designed studies.
That same AAN review found that vitamin B complex is “possibly effective” for cramp management, though the evidence supporting it is limited. It’s a lower tier of recommendation, meaning it might help some people but hasn’t been proven conclusively.
If you’re already taking magnesium and feel it helps, there’s little downside to continuing since it’s generally safe at normal doses. But if you’re looking for a supplement specifically to stop cramps, the research doesn’t strongly support magnesium as the answer.
Why Quinine Is Not Worth the Risk
Quinine, found in tonic water and available by prescription, was once commonly used for nighttime leg cramps. The FDA has made clear that quinine is not considered safe or effective for treating or preventing leg cramps. It is only approved for treating a specific type of malaria.
The risks are serious. Quinine can cause a dangerous drop in blood platelets, life-threatening allergic reactions, and heart rhythm problems. Fatalities and kidney failure requiring dialysis have been reported. The FDA added a boxed warning (the strongest safety warning available) specifically about blood-related complications from off-label use for leg cramps. The AAN review acknowledged quinine likely works for cramps but recommended it be avoided for routine use, reserved only for cases where cramps are severely disabling and nothing else has helped.
Preventing Cramps Before They Start
Most muscle cramps come down to a few modifiable factors: dehydration, muscle fatigue, and prolonged positions that keep a muscle shortened.
Staying well hydrated is the simplest preventive step, especially during exercise or hot weather. Electrolyte losses from sweat, particularly sodium and potassium, contribute to cramping during prolonged physical activity. A sports drink or adding a pinch of salt to water during long workouts addresses this more directly than plain water alone.
Stretching the muscles most prone to cramping, particularly calves and hamstrings, before bed can reduce nocturnal cramps. If you get cramps at night, avoid sleeping with your toes pointed downward, which keeps the calf in a shortened position. Tucking sheets loosely or using a footboard to keep your feet in a neutral position can make a noticeable difference.
For exercise-related cramps, building up training intensity gradually matters more than any supplement. Muscles that are deconditioned or pushed beyond their current fitness level are far more likely to cramp. Adequate warm-up and avoiding sudden increases in workout duration or intensity are practical, evidence-backed strategies.
Signs a Cramp May Be Something Else
Occasional cramps after exercise or during the night are common and rarely signal a serious problem. But certain patterns warrant medical evaluation. Be alert to cramps that come with leg swelling, redness, or skin changes, which could indicate a blood clot. Cramps paired with muscle weakness (not just soreness, but actual difficulty moving the limb) may point to nerve damage or another neurological issue. Cramps that happen frequently, cause severe pain, or don’t improve with the self-care strategies above are also worth bringing to a provider, since they can sometimes reflect an underlying metabolic or circulatory condition.

