What Works for Cramps: Period, Muscle, and Leg Relief

What works for cramps depends on the type of cramp you’re dealing with, but the short answer is: anti-inflammatory painkillers for menstrual cramps, and stretching for muscle cramps. Those two interventions have the strongest evidence behind them. Beyond those basics, several other remedies can make a real difference, and a few popular ones don’t hold up as well as you’d think.

Menstrual Cramp Relief

NSAIDs (ibuprofen, naproxen, and similar anti-inflammatory painkillers) are the most effective over-the-counter option for period cramps. Two large meta-analyses of randomized controlled trials found that every NSAID studied outperformed acetaminophen (Tylenol) for menstrual pain. If you’ve been reaching for acetaminophen and wondering why it barely takes the edge off, that’s why. It reduces pain signals but doesn’t target the inflammation and prostaglandin production that actually cause the cramping.

All NSAIDs work about equally well, so the choice comes down to cost and convenience. Ibuprofen and naproxen are the most widely available. The key with either one is timing: taking your first dose at the very onset of pain, or even slightly before your period starts if your cycle is predictable, works better than waiting until cramps are already intense. Prostaglandins build up quickly, and getting ahead of them makes a noticeable difference.

Heat is the simplest non-drug option and genuinely effective. A heating pad or hot water bottle applied to your lower abdomen relaxes the uterine muscle directly. Some studies have found continuous low-level heat comparable to ibuprofen for mild to moderate cramps, and combining heat with an NSAID works better than either alone. Exercise also helps, even though it’s the last thing most people feel like doing. Physical activity increases blood flow to the pelvic area and triggers the release of the body’s natural painkillers.

Exercise-Related Muscle Cramps

If you get cramps during or after a workout, the old advice was to drink more water and eat a banana. That advice isn’t wrong exactly, but it’s incomplete. The most scientifically supported explanation for exercise-related cramps points to a neurological problem, not a hydration one. When a muscle is fatigued and contracting in a shortened position, the nerve signals that tell it to keep firing can overpower the signals that tell it to relax. The result is an involuntary, sustained contraction.

This is why stretching works so well for an active cramp. Lengthening the muscle reactivates the sensors (in the tendon) that send “relax” signals back to the nerve. If you get a calf cramp, pulling your toes toward your shin forces the calf to lengthen and typically breaks the cramp within seconds. For a hamstring cramp, straightening your knee does the same thing. Rest and gentle stretching remain the recommended first-line treatment, and they work faster and more reliably than drinking fluids or taking electrolytes in the moment.

That said, showing up to a workout already dehydrated or low on electrolytes does make cramps more likely. Staying hydrated is good prevention even if dehydration isn’t the direct mechanical cause of most cramps.

The Pickle Juice Trick

Pickle juice has a surprisingly real mechanism behind it. The acetic acid (vinegar) triggers a reflex in the back of the throat that decreases the nerve activity driving the cramp. It can relieve a cramp in under 3 to 4 minutes, and you don’t even need to swallow it for the reflex to kick in. This works through the same neurological pathway as stretching: calming down the overactive nerve signals. Mustard, which also contains acetic acid, appears to work by the same mechanism. It’s not a placebo, but it’s also not a replacement for addressing the underlying cause if you’re cramping regularly.

Nocturnal Leg Cramps

Cramps that jolt you awake at night are incredibly common, especially after age 50. Many people take magnesium supplements for these, but the evidence is disappointing. A Cochrane-level meta-analysis found that magnesium supplements performed no better than placebo for older adults with nighttime leg cramps. The difference in cramp frequency at four weeks was essentially zero, and there was no meaningful improvement in cramp intensity or duration either. The researchers concluded it’s unlikely magnesium provides clinically meaningful prevention for this group.

For pregnant women, who also frequently deal with nighttime leg cramps, the evidence on magnesium is mixed. One trial found benefits for both frequency and intensity, while another found none. There’s no clear consensus yet.

What does seem to help for nocturnal cramps: stretching your calves before bed (wall stretches or stair-edge stretches held for 30 seconds each side), keeping your sheets loose so your feet aren’t pointed downward all night, and staying hydrated throughout the day. Some people find that a short walk before bed reduces episodes. If you’re getting leg cramps multiple times a week and they’re disrupting your sleep, that’s worth bringing up with a doctor, as certain medications (diuretics, statins) and conditions like kidney disease or diabetes can increase cramping frequency.

When Cramps Signal Something Else

Most cramps are harmless, if painful. But certain patterns warrant attention. Cramps that come with sudden swelling, warmth, or redness in the leg can mimic the symptoms of a blood clot (deep vein thrombosis). The distinction: a typical muscle cramp is a brief, intense spasm that releases. A blood clot causes ongoing deep aching or burning, often with visible swelling and skin color changes, and doesn’t behave like a normal cramp.

Other reasons to pay attention:

  • Lingering weakness between cramps, not just soreness, but actual muscle weakness that doesn’t resolve
  • New frequent cramping after age 65 without an obvious trigger like increased exercise
  • Cramping with numbness that persists after the spasm ends
  • Chest pain or trouble breathing alongside leg cramping

People with diabetes, kidney disease, or circulation problems should be especially attentive to changes in cramping patterns, since these conditions affect nerves, blood flow, and electrolyte balance in ways that make cramps both more frequent and potentially more significant.