How to Treat Muscle Cramps | Stop the Spasm Fast

Treat a muscle cramp by stopping activity, gently stretching the muscle, and massaging it until the spasm releases.

A muscle cramp seizes without warning — a calf knot in bed, a hamstring grab mid-run — and the instinct is to fight it. The working route for relief is the opposite: stop what you’re doing, stretch the muscle gently, and massage it. Heat and hydration help it let go, and most cramps end within minutes. Here’s the order that works, along with what to skip.

The Fastest Way To Stop A Cramp Right Now

The moment a cramp hits, stop the activity and ease the muscle into a gentle, sustained stretch. Force makes it worse. Hold the stretch until the spasm releases, then move the limb lightly.

  • Calf cramp: keep the leg straight and pull the top of the foot toward your face, or stand and press the cramped foot firmly into the floor.
  • Front-of-thigh cramp: hold onto a chair for balance, bend the knee, and pull the foot toward your buttock.
  • Hamstring cramp: sit with the leg extended and reach for your toes, or contract the opposing thigh muscle to coax the cramp out.

Once the muscle relaxes, massage it with your hands or a foam roller. Then apply heat — a warm towel, heating pad, or hot shower — to ease any lingering tension. If pain persists or heat doesn’t help, wrap ice in a cloth and apply it briefly. Never put ice directly on skin. Walking around gently after a leg or foot cramp can also help it settle.

When The Cramp Is Exercise-Related: Hydration And Electrolytes

Exercise-induced cramps often trace back to fluid and sodium losses. Replacing them — with a sports drink or another sodium source — alongside stretching and massage is the recommended course. Fluids containing carbohydrates and electrolytes support recovery and help prevent the next cramp.

For exercise-associated cramps, no medication should be used without a physician’s consent. If someone cannot tolerate fluids by mouth or has severe vomiting or diarrhea, that’s an emergency — get medical help immediately.

For cramps unrelated to exercise, over-the-counter pain relievers like acetaminophen, ibuprofen, or naproxen are sometimes used. Follow label instructions, and don’t use them as a substitute for stretching and hydration.

What Actually Works For Nighttime Leg Cramps

Cramps that keep waking you from sleep follow the same immediate treatment — stretch, massage, heat — but may need a longer-term approach. If they’re frequent, mention them to a clinician. A care provider might prescribe medicine to relax muscles or help you sleep, and if prescribed, it should be taken exactly as directed.

Current evidence-based guidance is specific about what not to reach for:

  • Quinine is out. Quinine derivatives should not be used routinely for cramps. They carry potentially serious side effects and should only be considered for very disabling cramps after other treatments fail, with careful monitoring. Tonic water contains quinine and isn’t a treatment for exercise-associated cramps.
  • Weaker options exist.

If a medication you already take seems to trigger cramps, don’t stop or change it on your own — contact the prescribing clinician first.

Common Mistakes That Make Cramps Worse

Most cramp treatment goes wrong in predictable ways. Avoid these:

  • Forcing the stretch. Aggressive movement tears muscle. Use a gentle, sustained stretch.
  • Exercising through the cramp. Stop the activity first; pushing through prolongs the spasm.
  • Skipping the cloth barrier with ice. Direct ice on skin burns.
  • Self-prescribing quinine. Routine use is advised against due to serious side-effect risks.

If cramps are regular, last longer than a few minutes, or keep recurring, see a doctor. Persistent cramping can signal an underlying condition worth investigating.

For ongoing relief between cramps, a topical option can help soothe sore muscles — our tested roundup of the best creams for muscle cramps covers what actually works. Topical creams complement, not replace, the stretching and hydration routine above.

FAQs

How long should a muscle cramp last before I see a doctor?

Most cramps resolve within minutes. Frequent or prolonged cramping can indicate dehydration, electrolyte imbalances, or an underlying neurological or circulation issue that warrants professional assessment.

Does drinking water prevent muscle cramps?

Proper hydration helps, particularly for exercise-associated cramps, but it’s not a guaranteed prevention. Sodium and other electrolytes also play a role, which is why sports drinks with carbohydrates and electrolytes are recommended during prolonged activity. Cramps can also stem from muscle fatigue, medication side effects, or medical conditions that hydration alone won’t address.

Why do I get cramps at night?

Nighttime leg cramps are common and often have no clear cause. They may relate to muscle fatigue, prolonged sitting, dehydration, or certain medications. Treatment focuses on relief when they occur — stretching, massage, and heat — and addressing any underlying factors with a clinician if they disrupt sleep regularly.

References & Sources

Please use a real email you check. If it's fake or mistyped, your message won't reach us and we can't reply — wrong addresses are rejected automatically.