What to Do for Bad Cramps: Relief That Actually Works

Bad cramps respond best to a combination of physical techniques and simple at-home remedies, and the right approach depends on where the cramp is happening. Whether you’re dealing with a seized-up calf muscle, intense period pain, or abdominal cramping, there are specific steps you can take right now to get relief, plus longer-term strategies to keep cramps from coming back.

Muscle Cramps: Immediate Relief

When a muscle locks up, your instinct is to grab it and hold still. That’s half right. Stretching the cramped muscle while gently massaging it is the fastest way to release the contraction. The key is to lengthen the muscle in the opposite direction of the spasm.

For a calf cramp, keep your leg straight and pull the top of your foot toward your face. You can also stand up and press your full weight down through the cramped leg, which works for calf and back-of-thigh cramps alike. For a front thigh cramp, pull your foot up behind you toward your buttock (hold a chair for balance). In each case, hold the stretch until the spasm releases, then continue massaging the area to prevent it from seizing again.

Once the acute cramp passes, applying a warm towel or heating pad to the muscle helps relax any lingering tightness. Some people find that alternating warmth with a brief cold application reduces soreness in the hours afterward.

Period Cramps: What Actually Works

Menstrual cramps are a different animal from muscle cramps. They’re driven by hormone-like compounds called prostaglandins, which trigger the uterus to contract and shed its lining. Higher prostaglandin levels mean stronger, more painful contractions. This type of cramping, when it happens without any underlying condition, accounts for the vast majority of period pain.

Heat is one of the most effective tools. A heating pad or hot water bottle placed on your lower abdomen can rival the relief of a painkiller for many people. A warm bath works too. Over-the-counter anti-inflammatory pain relievers (ibuprofen, naproxen) work by directly lowering prostaglandin production, which is why they tend to outperform other painkillers for period cramps. Taking them at the first sign of pain, rather than waiting until cramps peak, makes a noticeable difference.

TENS units, small devices that deliver mild electrical pulses through pads placed on the skin, are another option gaining traction. High-frequency settings (50 to 120 pulses per second) at low intensity can interrupt pain signals traveling to the brain. They’re drug-free, portable, and available without a prescription.

When Period Cramps Signal Something Else

About 10% of people with painful periods have what’s called secondary dysmenorrhea, meaning the pain is caused by an underlying condition rather than normal prostaglandin activity. Red flags include pain that progressively worsens over months or years, pain during intercourse or bowel movements, abnormally heavy or prolonged bleeding, unusual vaginal discharge, or fever.

Endometriosis is one of the most common culprits and can also cause pain with urination, difficulty with fertility, and pain outside your period window. Fibroids tend to cause heavy, prolonged periods and are more common as you get older. Pelvic inflammatory disease typically shows up with abdominal pain, fever, and vaginal odor. A normal ultrasound doesn’t rule out endometriosis, which often requires a surgical procedure to confirm.

Stomach and Gut Cramps

Abdominal cramps from digestive issues involve smooth muscle in the intestinal wall going into spasm. Peppermint oil capsules are the only over-the-counter antispasmodic available in the U.S., and they work by directly relaxing the smooth muscle in your gut. Enteric-coated capsules are best since they dissolve in the intestine rather than the stomach, reducing the chance of heartburn. Chamomile tea has milder but similar calming effects on intestinal cramps.

Heat helps here too. A warm compress on your abdomen can ease the spasm. Avoiding large meals, carbonated drinks, and high-fat foods during a bout of cramping gives your gut less work to do while it settles down. If you notice cramping tied to specific foods, bloating, or changes in bowel habits, that pattern is worth tracking and discussing with a provider, since it may point to conditions like irritable bowel syndrome.

Hydration and Electrolytes

Dehydration is one of the most overlooked cramp triggers, especially during exercise or hot weather. But it’s not just about drinking more water. Your muscles rely on a balance of sodium, potassium, calcium, and magnesium to contract and relax properly. When you sweat heavily, you lose sodium fastest, and that imbalance can set off cramps.

For exercise-related cramps, adding roughly one-third teaspoon of salt per liter of water helps replace what you’ve lost. Research on athletes has shown that drinking about half a liter of an electrolyte beverage with 3 grams of added salt, consumed over 5 to 10 minutes, can relieve active cramps and reduce the chance of severe cramping later in the session.

The type of drink matters too. Hypotonic beverages (lower in sugar, around 3 grams per 100 mL) get absorbed faster and cause less stomach discomfort during intense activity or heat. Higher-sugar sports drinks with concentrations above a certain threshold can actually pull water into the intestine and worsen dehydration temporarily, sometimes causing stomach cramps of their own. For short workouts or hot conditions, diluted electrolyte drinks or lightly salted water are your best bet. Save the full-sugar sports drinks for longer endurance sessions where you also need the energy.

Magnesium and Other Nutrients

Magnesium plays a role in muscle relaxation, and low levels have been associated with more frequent cramping. Magnesium glycinate is one of the better-tolerated supplement forms, typically taken at 200 to 400 mg daily with meals or before bed. It’s worth noting that the scientific evidence behind magnesium supplementation for cramps is not yet strong, though many people report subjective improvement. It’s unlikely to cause harm at standard doses.

Potassium-rich foods like bananas, potatoes, and avocados support the electrolyte balance your muscles need. Calcium from dairy or fortified alternatives matters too, especially if your diet is low in it. These nutrients work together, so a generally balanced diet does more for cramp prevention than any single supplement.

Longer-Term Prevention

If you get cramps regularly, prevention comes down to a few consistent habits. Staying hydrated throughout the day (not just during exercise) keeps your baseline electrolyte balance stable. Stretching the muscle groups that cramp most often, particularly your calves and thighs, for a few minutes before bed can reduce nocturnal cramps. Warming up before exercise and cooling down afterward gives muscles time to transition rather than locking up abruptly.

For recurring period cramps, regular aerobic exercise has been shown to reduce severity over time, likely by improving blood flow to the pelvis and modulating the inflammatory response. Starting an anti-inflammatory painkiller a day or two before your period begins, if your cycle is predictable, can blunt the prostaglandin surge before it peaks.

For any type of cramp that keeps getting worse, doesn’t respond to these measures, or comes with swelling, weakness, numbness, or other new symptoms, that’s a signal to get it evaluated rather than continuing to manage it on your own.