What Can You Take for Cramps? Period, Leg & Muscle

The most effective over-the-counter option for cramps is ibuprofen or naproxen, which work by blocking the chemicals that cause muscles to contract and blood vessels to constrict. But the best choice depends on what kind of cramps you’re dealing with. Menstrual cramps, leg cramps, and stomach cramps each respond to different remedies, and some popular options work better than you’d expect while others are surprisingly ineffective.

Anti-Inflammatory Pain Relievers for Menstrual Cramps

Ibuprofen and naproxen are the go-to for period cramps because they target the root cause, not just the pain. Your uterus produces hormone-like chemicals called prostaglandins that trigger contractions and restrict blood flow to the uterine lining. These medications reduce prostaglandin levels in menstrual fluid, which lowers the pressure inside the uterus and eases the contractions causing the pain. Taking them at the first sign of cramping, rather than waiting until pain peaks, gives them time to suppress prostaglandin production before it ramps up.

Acetaminophen (Tylenol) can dull the pain, but it doesn’t reduce prostaglandins the way ibuprofen and naproxen do. If you’re choosing between the two, naproxen lasts longer per dose, which means fewer pills throughout the day.

Heat Works as Well as Ibuprofen

A heating pad isn’t just comforting. In a randomized controlled trial, continuous low-level heat applied to the abdomen for about 12 hours was as effective as 400 mg of ibuprofen taken three times daily for menstrual pain relief. Using heat and ibuprofen together didn’t produce significantly greater pain relief than either one alone, but the combination cut the time to noticeable relief nearly in half: 1.5 hours versus nearly 3 hours with ibuprofen alone.

For menstrual cramps, a heating pad, hot water bottle, or adhesive heat patch applied to your lower abdomen is one of the simplest and most effective options available. It relaxes the uterine muscle directly and increases blood flow to the area.

Magnesium for Nighttime Leg Cramps

If you’re waking up with sudden, painful leg cramps, magnesium supplements may help, but only with consistent use over time. A double-blind trial of 184 people found that taking 226 mg of magnesium oxide daily reduced nighttime cramp frequency from about 5.4 episodes per week to 1.9 after 60 days. The placebo group also improved, dropping from 6.4 to 3.7, but the magnesium group saw meaningfully greater reduction. Short courses under 60 days haven’t shown reliable benefits, so this is a longer-term strategy rather than a quick fix.

Many people don’t get enough magnesium from their diet. Good food sources include nuts, seeds, dark leafy greens, and whole grains. If you supplement, magnesium glycinate and magnesium citrate tend to be better absorbed than magnesium oxide, though the oxide form is what was used in the clinical trial.

Vitamin B Complex for Muscle Cramps

A clinical study found that a vitamin B complex supplement (including 30 mg of vitamin B6 daily) led to complete remission of muscle cramps in 86% of treated patients compared to placebo. These were people who weren’t known to be deficient in B vitamins, which makes the result especially notable. Side effects were minimal and no more common than in the placebo group. The evidence is considered modest (based on a single study of 28 patients), but given the low risk, B complex supplements are a reasonable option to try alongside other approaches.

Stretching to Prevent Leg Cramps

Regular calf stretching can reduce how often leg cramps strike, particularly the nighttime kind. Cleveland Clinic recommends a simple wall stretch: stand about three feet from a wall, lean forward with your arms outstretched and palms on the wall, keeping your feet flat on the floor. Hold for a count of five, then repeat for at least five minutes. Do this three times a day. The stretch targets the calf muscles, which are the most common site for nocturnal cramps. Consistency matters more than intensity.

Pickle Juice for Acute Muscle Cramps

Pickle juice has a real physiological mechanism behind it. The acetic acid triggers receptors in the mouth and throat that activate a reflex through the nervous system, increasing signals that tell the cramping muscle to relax. This happens too fast to be explained by hydration or electrolyte absorption. Research has tested both swishing 25 mL (about a tablespoon and a half) in the mouth for 10 seconds and swallowing roughly 1 mL per kilogram of body weight (about 2 to 3 ounces for most adults). Both approaches showed effects on electrically induced cramps in active adults. It’s not a guaranteed fix, but it’s a legitimate tool for acute cramps during exercise or at night.

Remedies for Stomach and GI Cramps

Abdominal cramps from digestive issues involve a different type of muscle than leg or menstrual cramps. Your gut is lined with smooth muscle that contracts involuntarily, and when those contractions become excessive or spastic, you feel cramping. Peppermint oil capsules are a widely available option that relaxes this smooth muscle directly by affecting how the muscle cells take in calcium, which they need to contract.

For more persistent GI cramping, prescription antispasmodic medications work by blocking nerve signals from the parasympathetic nervous system. These drugs prevent the chemical messages that tell your gut muscles to contract from reaching their target. They’re commonly prescribed for conditions like irritable bowel syndrome. Over-the-counter options for milder stomach cramps include simethicone for gas-related cramping and bismuth subsalicylate for cramps associated with digestive upset.

Electrolytes and Hydration

Potassium, calcium, and sodium all play roles in muscle contraction and relaxation. When these electrolytes drop too low, muscles can fire involuntarily. Dehydration concentrates or depletes these minerals, which is why cramps are more common during heavy exercise, in hot weather, or after illness involving vomiting or diarrhea. For most people, eating potassium-rich foods (bananas, potatoes, avocados) and staying well-hydrated is enough to keep electrolyte levels in a normal range.

Severe electrolyte deficiency, particularly very low calcium, can cause a condition called tetany, where muscles contract uncontrollably. This requires medical treatment, typically intravenous replacement, because food and drink can’t correct it fast enough once symptoms appear. But this is rare and usually linked to an underlying condition rather than simple dietary gaps.

What to Avoid: Quinine

Quinine, the bitter compound in tonic water, was once widely recommended for leg cramps. The FDA has made clear it is not considered safe or effective for this purpose. Quinine is associated with serious and potentially fatal side effects, including dangerous drops in platelet counts, severe allergic reactions, and heart rhythm abnormalities. Fatalities and kidney failure requiring dialysis have been reported. Since 2006, the FDA has added a boxed warning (the strongest type) to quinine products and issued multiple safety communications. The only approved use for quinine is treating malaria. Drinking tonic water for cramps delivers a lower dose, but the risk-to-benefit ratio still doesn’t favor it given the availability of safer alternatives.