How to Get a Charley Horse Out of Your Leg Fast

To stop a charley horse fast, stretch the cramping muscle and hold it in a lengthened position until the spasm releases, usually within one to three minutes. The specific stretch depends on where the cramp hits, but the goal is always the same: counteract the contraction by pulling the muscle in the opposite direction.

Stretches That Stop a Calf Cramp

Most charley horses strike the calf, and you have two reliable options. If you’re in bed, keep your leg straight and pull the top of your foot toward your face. You’ll feel a strong stretch down the back of your lower leg. If you can stand, plant the cramping leg behind you with your knee straight and your heel flat on the floor, then lean forward into a wall or chair until you feel the calf stretch. Hold either position for 30 to 60 seconds.

A third option is simply standing on the cramping leg and pressing your weight down firmly through it. This works because your body weight forces the calf to lengthen under load, which can override the spasm signal.

If the cramp is in the front of your thigh instead, stand near a chair for balance and pull your foot on that side up toward your buttock, like a standing quad stretch. For a cramp in the back of the thigh, the same straight-leg, foot-toward-face stretch used for calf cramps applies.

What to Do After the Cramp Releases

Once the spasm stops, the muscle often feels bruised or tender for hours afterward, sometimes into the next day. This residual soreness responds well to heat. A warm towel, heating pad, or hot bath increases blood flow to the area, speeds up the clearing of inflammatory byproducts, and reduces nerve sensitivity. Apply heat for 15 to 20 minutes at a time.

If the muscle feels swollen or acutely sore rather than just tight, ice can help by reducing tissue metabolism and calming pain receptors. Some people benefit from alternating between the two. Gentle massage and light walking also help the muscle return to its normal resting state. The soreness is harmless and typically resolves within a day.

Why Charley Horses Happen

A charley horse isn’t a muscle problem. It’s a nerve problem. The involuntary contraction is caused by motor neurons firing excessively, sending a sustained “contract” signal that your muscle can’t ignore. Normally, your spinal cord balances excitatory signals (telling the muscle to contract) with inhibitory signals (telling it to relax). When you’re fatigued, dehydrated, or low on electrolytes, that balance breaks down. The inhibitory signals weaken, and the motor neuron keeps firing unchecked.

This is also why stretching works so well as an immediate fix. Lengthening the muscle activates tension sensors in the tendon that send inhibitory signals back to the spinal cord, essentially telling the motor neuron to quiet down.

Hydration and Electrolytes Matter More Than Water Alone

Dehydration is a well-known cramp trigger, but drinking plain water after heavy sweating can actually make muscles more susceptible to cramping. A study published in BMJ Open Sport and Exercise Medicine found that rehydrating with an electrolyte solution containing sodium, potassium, and chloride made muscles significantly more resistant to cramps, while plain water did not have the same protective effect.

The practical takeaway: if you cramp during or after exercise, or if you sweat heavily at night, rehydrating with something that contains electrolytes is more effective than water alone. Sports drinks, oral rehydration solutions, or even water with a pinch of salt and a splash of juice all work.

Does Magnesium Actually Help?

Magnesium is the most commonly recommended supplement for leg cramps, but the evidence is disappointing for most people. A Cochrane systematic review found that magnesium supplementation is unlikely to provide meaningful cramp prevention in older adults, the group most commonly affected by nocturnal charley horses. Studies tested doses ranging from 200 to 366 mg of elemental magnesium daily and found no significant benefit over placebo.

For pregnancy-related cramps, the picture is slightly more promising but inconsistent. Some trials showed magnesium reduced cramp frequency, while others showed no effect. Interestingly, one trial found that calcium (500 mg daily) and B vitamins were more effective than magnesium for pregnant women’s leg cramps. A separate study in elderly patients with high blood pressure found that a B vitamin complex reduced the frequency, intensity, and duration of nocturnal cramps in 86% of participants after three months, compared to no improvement with placebo.

Blood tests for magnesium aren’t particularly useful here either, since blood levels correlate poorly with the actual magnesium stored in your tissues. If you want to try magnesium, it’s generally safe at supplemental doses, but don’t expect it to be a cure-all.

How to Prevent Nighttime Cramps

Nocturnal leg cramps are the most common type, and a few adjustments can reduce how often they strike. Stretching your calves and hamstrings before bed is the most consistently recommended strategy. The wall-lean calf stretch described above, held for 30 to 60 seconds on each side, is a good nightly routine.

Sleeping position also plays a role. If you sleep on your back, keep your toes pointed upward rather than letting them fall forward, which shortens the calf muscle and can trigger a cramp. If you sleep on your stomach, let your feet hang off the end of the bed so your ankles stay in a neutral position. Tight or heavy blankets that push your feet into a pointed position are a surprisingly common trigger.

Staying hydrated throughout the day, not just at bedtime, helps maintain the electrolyte balance your motor neurons need to fire normally. Regular physical activity reduces cramp frequency over time, though you should stretch after exercise rather than stopping abruptly.

When a Leg Cramp Might Be Something Else

Ordinary charley horses are painful but harmless, and they resolve within minutes. A few signs suggest something other than a simple cramp. Deep vein thrombosis (a blood clot in a leg vein) can cause pain and cramping that starts in the calf, but it typically comes with persistent swelling, skin that turns red or purple, and warmth in the affected area. These symptoms don’t go away when you stretch. DVT can also occur without obvious symptoms, so leg pain that lingers, worsens, or comes with visible swelling warrants prompt medical attention.

Cramps that happen frequently (several times a week), last longer than a few minutes, don’t respond to stretching, or occur in muscles you weren’t using may point to an underlying issue with electrolytes, nerve function, or circulation rather than the garden-variety charley horse.