What’s Good for Cramps: Remedies for Every Type

The best remedy for cramps depends on what type you’re dealing with, but a few options work across the board: heat, gentle stretching, and over-the-counter pain relievers. Menstrual cramps, muscle cramps, and stomach cramps each have their own triggers, so the most effective relief targets the specific cause. Here’s what actually works for each type.

Menstrual Cramp Relief

Menstrual cramps happen because your uterus contracts to shed its lining, driven by hormone-like compounds called prostaglandins. The higher your prostaglandin levels, the worse the pain. Anti-inflammatory painkillers like ibuprofen and naproxen work by lowering prostaglandin production directly, which is why they’re the most effective over-the-counter option for period pain. The key is timing: starting them before your period begins (or at the very first sign of cramping) and continuing through the first two days gives significantly better results than waiting until the pain is already intense.

Heat works surprisingly well too. A continuous-heat patch held at about 40°C (104°F) for up to eight hours provides pain relief comparable to ibuprofen during that window. A heating pad or hot water bottle on your lower abdomen does the same thing. If you prefer not to take medication, or want to combine approaches, heat is a solid standalone option.

Ginger is the best-studied herbal alternative. Taking 1,500 mg of ginger root powder daily (split into three 500 mg doses) for three days starting at or just before the onset of your period has been shown to meaningfully reduce pain intensity in people with moderate to severe cramps. You can find ginger root capsules at most pharmacies, or use fresh ginger tea, though capsules make dosing more precise.

Muscle Cramp Relief

When a muscle seizes up mid-exercise or in the middle of the night, the fastest way to stop it is a passive stretch. Hold the cramping muscle in a lengthened position for about 30 seconds, rest briefly, and repeat. Three rounds of 30-second stretches, with 30-second breaks between them, is the protocol that raises your threshold against further cramping. Stretch to the point of mild discomfort, not beyond it. For a calf cramp, that means pulling your toes toward your shin. For a foot cramp, straighten the toes and press the sole flat.

Pickle juice has gained a reputation as a cramp cure, and there’s real science behind it. Drinking roughly 1 mL per kilogram of body weight (about 70 mL, or a third of a cup, for an average person) shortened cramp duration by nearly 50 seconds compared to water in one controlled study. The interesting part is that it works too fast to be explained by rehydration or electrolyte absorption. Researchers believe the strong vinegar taste triggers a reflex in the back of the throat that tells the overactive nerve signals in the cramping muscle to calm down. Mustard may work through the same mechanism.

What Actually Causes Muscle Cramps

For years, the standard advice was to drink more water and eat bananas for potassium. The science tells a more complicated story. The strongest evidence now points to neuromuscular fatigue as the primary driver. When a muscle is overworked, the balance between signals that excite the muscle and signals that tell it to relax gets disrupted, resulting in an involuntary contraction. Because dehydration and electrolyte loss are whole-body problems, they don’t fully explain why cramps almost always hit one specific muscle group rather than causing widespread spasms.

A large study of 210 Ironman triathletes found that dehydration and changes in blood electrolyte levels did not predict who got cramps. Separate research showed that even when athletes drank fluids with high sodium content (around 1,620 mg of sodium per serving, designed to match sweat losses), 69% still cramped. That said, staying hydrated and replacing electrolytes during prolonged exercise is still good practice for overall performance. It just isn’t a cramp-proof guarantee.

Magnesium supplements are commonly recommended for nighttime leg cramps, but a randomized crossover trial using 900 mg of magnesium citrate twice daily for a month found no difference compared to placebo. Participants improved over time regardless of whether they were taking magnesium or the sugar pill, likely reflecting the natural pattern of the condition rather than any treatment effect.

Stomach and Abdominal Cramp Relief

Abdominal cramps involve involuntary contractions of smooth muscle in your digestive tract, and the approach depends on whether you’re dealing with a one-off episode or a recurring pattern. For occasional cramps from gas, mild food reactions, or stress, heat on the abdomen, peppermint tea, and gentle movement like walking often provide enough relief. Simethicone (the active ingredient in Gas-X) helps if trapped gas is the culprit.

For chronic or recurring abdominal cramping, as seen in irritable bowel syndrome, a class of medications called antispasmodics can help. These work by relaxing the smooth muscle lining your gut, either by blocking the chemical signals that trigger contractions or by preventing calcium from entering muscle cells (calcium is what powers the contraction). Some of these are prescription-only, but your provider can help determine which type fits your symptoms.

When Cramps Signal Something Serious

Most cramps are uncomfortable but harmless. A few warning signs suggest something more urgent is going on. Sudden, severe abdominal pain that comes on without warning can indicate a serious underlying condition. Be alert for pain accompanied by fever, vomiting, blood in your stool or vomit, dark tarry stools, or abdominal tenderness so intense that hitting a bump while riding in a car makes it worse. Jaundice (yellowing of the skin or eyes) combined with pain in the upper right abdomen also warrants prompt evaluation. In children, watch for inconsolable crying or episodes of intense pain that come and go in waves.