What Do You Take for Cramps? Period and Leg Relief

The answer depends on the type of cramp. For menstrual cramps, over-the-counter anti-inflammatory pain relievers are the most effective first-line option. For muscle and leg cramps, stretching and magnesium tend to work better than medication. Here’s what actually helps for each type, and what to skip.

Menstrual Cramps: Anti-Inflammatory Pain Relievers

Nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen and naproxen are the gold standard for period pain. They work by blocking the hormone-like compounds your uterus produces to trigger contractions. The key is timing: taking them before the pain peaks, ideally at the first sign of cramping or even slightly before your period starts, makes them significantly more effective than waiting until you’re already in pain.

Naproxen sodium lasts longer per dose than ibuprofen. The Mayo Clinic lists a starting dose of 550 mg for menstrual cramps, then 550 mg every 12 hours or 275 mg every 6 to 8 hours as needed, up to 1,375 mg per day. Ibuprofen requires more frequent dosing (typically every 4 to 6 hours) but kicks in faster. Both are available without a prescription. Acetaminophen can help with pain but doesn’t reduce the inflammation driving the cramps, so it’s a backup rather than a first choice.

TENS Units for Period Pain

A transcutaneous electrical nerve stimulation (TENS) unit is a small battery-powered device that sends mild electrical pulses through pads you stick to your skin. For menstrual cramps, a Cochrane review found that higher-frequency settings between 50 and 120 Hz are most effective. You place the pads on your lower abdomen or back and adjust the intensity until it feels strong but not painful. To avoid building tolerance, vary the intensity throughout use. TENS units are available without a prescription and have essentially no side effects, making them a solid option if you prefer to avoid medication or want something to use alongside it.

Muscle and Leg Cramps: Stretching First

For sudden muscle cramps, especially the charley horses that hit your calves at night, the fastest relief is stretching the affected muscle. Pull your toes toward your shin if it’s a calf cramp, or straighten your leg and flex your foot. Walking on the cramped leg can also help it release.

If you get cramps regularly, a daily stretching routine can reduce how often they happen. A pilot study of adults over 75 who performed calf and hamstring stretches three times daily found that after six weeks, both the frequency and pain intensity of nighttime leg cramps dropped significantly compared to a control group. The stretches don’t need to be complicated: a standing calf stretch against a wall and a seated hamstring stretch, held for 10 to 30 seconds each, cover the major muscle groups involved.

Magnesium for Recurring Cramps

Magnesium plays a direct role in muscle contraction and relaxation, and low levels can make cramps more likely. Supplementing with 300 mg of magnesium daily has shown benefits in some studies. One trial found fewer muscle cramps after six weeks of supplementation, and another found reduced frequency and intensity of leg cramps during pregnancy at the same dose.

That said, a 2021 review found the overall evidence for magnesium and cramps is not conclusive. It seems to help most when you’re actually low on magnesium, which is common in older adults, people who exercise heavily, and those who don’t eat many nuts, seeds, or leafy greens. Magnesium citrate and magnesium glycinate are absorbed better than magnesium oxide, so they’re worth the slight price difference if you decide to try it.

B Vitamins for Nighttime Leg Cramps

A small but notable trial of 28 older adults found that daily B-complex supplementation led to remission of muscle cramps in 86% of treated patients over 12 weeks, compared to no improvement in the control group. The participants weren’t known to be B-vitamin deficient, which makes the result more interesting. This is a single small study, so it’s far from settled science, but a B-complex supplement carries very little risk and may be worth trying if nighttime cramps are a persistent problem.

Why Pickle Juice Works

Pickle juice has a reputation as a cramp remedy, and the science behind it is surprisingly well understood. It’s not about replacing electrolytes. The acetic acid in pickle juice activates receptors in your mouth and throat that trigger a reflex in your nervous system, calming the overexcited nerve signals that cause the muscle to seize. This is why it can stop a cramp within seconds of drinking it, far too fast for any nutrient to be absorbed. A small sip (about an ounce) is enough. Mustard appears to work through the same mechanism, activating those same throat receptors.

What to Avoid: Quinine

Quinine, found in tonic water and sometimes sold as a supplement, was once commonly recommended for leg cramps. The FDA has explicitly stated that quinine is not considered safe or effective for treating or preventing leg cramps. It is approved only for treating 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. Drinking a glass of tonic water contains a very small amount of quinine and is unlikely to cause harm, but it also won’t contain enough to relieve cramps.

Cramps That Signal Something Else

Most cramps are harmless, if painful. But cramping in one leg accompanied by swelling, skin that looks red or purple, or a feeling of warmth in that leg can be signs of a deep vein thrombosis (a blood clot). This is especially worth paying attention to if the symptoms came on without exertion, if you’ve been sitting for a long time (like after a flight), or if you have other risk factors like recent surgery or hormonal birth control use. DVT can also occur without noticeable symptoms. Persistent cramps that don’t respond to any of the remedies above, or cramps that come with muscle weakness, numbness, or visible swelling, warrant a conversation with your doctor to rule out circulation problems or nerve issues.