How to Relieve Cramps: Period, Muscle, and Leg Pain

The fastest way to relieve cramps depends on the type. For menstrual cramps, heat applied to your lower abdomen works as well as over-the-counter pain relievers and carries fewer side effects. For a sudden muscle cramp in your leg or foot, stretching the affected muscle is the most reliable way to stop it. Both types respond well to simple, at-home strategies, and most people don’t need anything beyond what’s covered here.

Heat Therapy for Menstrual Cramps

A heating pad on your lower abdomen or back is one of the most effective tools for period pain. A large meta-analysis of 22 randomized trials involving nearly 2,000 women found that heat therapy provided pain relief comparable to, or slightly better than, anti-inflammatory medications. The real advantage: heat reduced the risk of side effects by about 70% compared to those same medications. A hot water bottle, microwavable heat wrap, or adhesive heat patch all work. Place it directly over where you feel the cramping and leave it on as long as it’s comfortable.

Anti-Inflammatory Pain Relievers

Ibuprofen and naproxen both target the specific compounds your uterus produces to trigger cramping. They work best when you take them early, ideally at the first sign of pain or even slightly before your period starts if your cycle is predictable. Waiting until the pain is severe means those compounds have already built up, and the medication has to work harder to catch up.

For naproxen, the NHS recommends 500 mg initially, then 250 mg every 6 to 8 hours as needed, with a cap of 1,250 mg per day after the first day. Most people only need these for one or two days. Taking them with food reduces the chance of stomach irritation.

TENS Machines for Period Pain

A TENS unit sends small electrical pulses through pads stuck to your skin, which can interrupt pain signals before they reach your brain. For menstrual cramps, the most commonly studied setting is a frequency around 100 Hz with a biphasic waveform. You place the electrode pads either on your lower back (near the spinal nerves connected to your uterus) or on your lower abdomen just above the pubic bone. The key is turning the intensity up until you feel a strong but tolerable buzzing sensation and adjusting it throughout use. If the pain shifts location, move the pads to follow it. TENS units are inexpensive, reusable, and drug-free, which makes them a good option if you want to avoid or supplement medication.

Stopping a Muscle Cramp Mid-Spasm

When a muscle seizes up in your calf, thigh, or foot, stretching it is the fastest way to end it. The goal is to lengthen the contracting muscle, which signals it to release. Hold each stretch gently for about 30 seconds.

  • Calf cramp: Stand facing a wall with the cramping leg stepped back, heel flat on the floor. Lean forward into the wall, bending your front knee while keeping the back leg straight. You should feel the stretch down the back of your lower leg.
  • Hamstring cramp (back of the thigh): Lie on your back near a doorframe. Raise the cramping leg and rest your heel against the wall, keeping a slight bend in the knee. Gently straighten the leg until you feel the stretch along the back of your thigh.
  • Quadriceps cramp (front of the thigh): Stand near something sturdy for balance. Grab the ankle of the cramping leg and pull your heel toward your backside. Keep your knees close together and your core tight.

Massaging the muscle during or after the stretch can also help. If you get cramps during exercise, stop the activity and stretch immediately rather than trying to push through it.

The Pickle Juice Trick

Drinking a small amount of pickle juice can shorten a muscle cramp significantly. In a study on dehydrated volunteers with electrically induced cramps, those who drank pickle juice had cramps that lasted about 49 seconds less than those who drank water (roughly 85 seconds versus 134 seconds). Anecdotal reports suggest relief can kick in within 35 seconds of swallowing it.

The surprising part: this has nothing to do with replacing electrolytes. Researchers found that plasma composition barely changed five minutes after drinking it. The leading explanation is that the strong, acidic taste triggers a reflex in the mouth and throat that tells the overactive nerve driving the cramp to calm down. Any intensely sour or vinegary liquid may have a similar effect, though pickle juice is the most studied.

Preventing Exercise-Related Cramps

The old advice to “just drink more water” or “eat a banana” is too simplistic. Exercise-associated cramps likely involve multiple factors, including muscle fatigue, inadequate fueling, and individual sweat composition. A review in the Journal of Athletic Training concluded that generic recommendations lack strong evidence and that prevention should be personalized.

What does help: eating a balanced meal with carbohydrates and electrolytes before training, sipping a carbohydrate-electrolyte drink during prolonged exercise, and gradually building up the intensity and duration of workouts rather than jumping into something your muscles aren’t conditioned for. If you cramp frequently during exercise, the most useful step is figuring out your own sweat rate and fluid needs rather than following a one-size-fits-all hydration plan. Fatigue is a major trigger, so pacing yourself and conditioning the specific muscles you’ll be using matters more than any single supplement.

Does Magnesium Help With Leg Cramps?

Magnesium supplements are widely recommended for nighttime leg cramps, but the evidence is underwhelming. A systematic review of seven randomized trials found that magnesium did not meaningfully reduce cramp frequency in the general adult population. The one exception was pregnant women, where a small benefit was observed, reducing cramps by roughly one fewer episode per week compared to placebo. Magnesium also caused slightly more digestive side effects than placebo. If you’re pregnant and dealing with frequent leg cramps, it may be worth trying. For everyone else, stretching your calves before bed is a better-supported strategy.

When Cramps Signal Something Else

Normal menstrual cramps are uncomfortable but manageable. They shouldn’t force you to miss work, school, or daily activities. If your period pain is severe enough to sideline you, gets worse over time rather than staying stable cycle to cycle, or is accompanied by pain during sex, bowel movements, or urination, those are signs of a condition like endometriosis or fibroids rather than typical cramping. Lower back pain that starts days before your period and lingers well after it ends is another pattern worth investigating. Endometriosis affects roughly 1 in 10 women of reproductive age, and the average delay between symptom onset and diagnosis is years, often because people assume their pain is normal.

For muscle cramps, occasional episodes are harmless. Cramps that happen frequently without an obvious trigger (like exercise or dehydration), occur in multiple muscle groups, or come with muscle weakness or swelling can point to circulatory issues, nerve compression, or medication side effects, particularly from statins or diuretics.