To stretch out a charley horse, you need to lengthen the cramping muscle by pulling it in the opposite direction of the contraction. For a calf cramp, the most common type, that means flexing your foot upward toward your shin. Most charley horses resolve within seconds to a few minutes once you apply a sustained stretch, though the residual soreness can linger for hours or even a day or two.
The Calf Cramp: Fastest Way to Stop It
The classic charley horse hits the calf, and the quickest relief comes from stretching that muscle while it’s actively seizing. You have two options depending on whether you can stand.
If you can get up, face a wall from about three feet away. Step one foot forward, place both palms on the wall, and lean in while keeping the cramping leg straight behind you with the heel pressed flat on the floor. Hold for 5 to 10 seconds, release briefly, and repeat two to three times. For a more aggressive version, hold the stretch for 5 seconds, then push the ball of your back foot into the floor (as if trying to point your toes) for another 5 seconds while staying in the stretched position. That contract-and-release cycle activates sensors in your tendons that send a “relax” signal to the cramping muscle, overriding the spasm.
If you’re in bed or can’t stand, sit up, straighten the cramping leg, and pull your toes toward your shin with your hand or a towel looped around the ball of your foot. The key is keeping the knee as straight as you can tolerate so the full length of the calf gets stretched.
Why Stretching Actually Works
A charley horse is an involuntary contraction where the muscle locks in a shortened position and won’t let go. When you stretch the muscle under tension, structures called Golgi tendon organs detect the force building in the tendon and trigger a reflex that inhibits the nerve signals firing the cramp. Essentially, the stretch tells your nervous system to shut down the contraction. This is why simply rubbing or squeezing the muscle provides less reliable relief than a sustained, deliberate stretch that loads the tendon.
Stretching a Hamstring or Thigh Cramp
Charley horses don’t only strike the calf. If the cramp is in the back of your thigh (hamstring), lie on your back and loop a towel behind the affected thigh. Use the towel to pull your leg toward your chest, keeping the knee straight or only slightly bent. Hold for 30 to 60 seconds, lower the leg, and repeat two to three times. Pulling at the thigh rather than the knee joint protects the ligaments while still lengthening the cramping muscle.
For a quadriceps cramp (the front of the thigh), stand near something sturdy for balance, bend the cramping leg behind you, and grab the ankle or top of the foot. Gently pull the heel toward your glute until you feel a strong stretch along the front of the thigh. If you can’t reach your foot, loop a towel around the ankle and use that instead.
Dealing With Soreness Afterward
Once the spasm passes, the muscle often feels bruised and tender. What you do in the first 48 hours matters. A network meta-analysis published in the Journal of Rehabilitation Medicine found that a hot pack is the most effective option for pain relief within the first 48 hours after muscle stress. Heat promotes blood flow to the area, increases oxygen and nutrient delivery, and reduces nerve excitability around the sore tissue. A warm towel, heating pad, or warm bath all work.
After 48 hours, cold therapy becomes more effective if soreness persists. So the simple rule is: heat first, then switch to ice if needed days later. Keep in mind that a heating pad only penetrates about 1 to 2 centimeters below the skin, so the relief can be temporary. Reapply as needed, especially before bed if the soreness is disrupting sleep.
Preventing Nighttime Charley Horses
Charley horses that jolt you awake tend to happen when the foot drifts into a pointed-toe position during sleep, which shortens the calf and makes it more vulnerable to spontaneous cramping. One simple fix: keep your bed sheets and blankets loose at the foot of the bed so they don’t press your feet downward. Sleeping on your back with a pillow under your knees, or on your side with feet slightly flexed, also helps keep the calf in a more neutral position.
A brief stretching routine before bed can reduce the likelihood of nighttime cramps. The same wall stretch described above, held for 10 to 15 seconds per side and repeated two to three times, is enough to signal the muscle to stay relaxed through the night.
Hydration and Electrolytes
Dehydration and electrolyte shifts are commonly cited as cramp triggers, though the science is more nuanced than most people realize. Some studies of marathoners and cyclists found no difference in hydration or blood electrolyte levels between those who cramped and those who didn’t. Other research, however, has linked consistently low sodium intake and decreased urinary sodium chloride to increased cramp frequency. The honest answer is that both neuromuscular fatigue and electrolyte shifts likely play a role, and the balance varies from person to person.
The practical takeaway: staying well hydrated and getting enough sodium, potassium, and magnesium through your diet is a reasonable prevention strategy, even if it’s not a guaranteed fix. If you sweat heavily during exercise or work in the heat, a drink with electrolytes is more useful than plain water.
Does Magnesium Supplementation Help?
Magnesium is the most popular supplement recommendation for leg cramps, but the evidence is surprisingly weak for short-term use. A review by the American Academy of Family Physicians found that magnesium supplements taken for less than 60 days showed no meaningful reduction in cramp frequency compared to placebo. At four weeks, the difference was less than one cramp per week.
There is one exception: a trial using 226 mg of magnesium oxide daily for 60 days did show a significant drop, from about 5.4 cramps per week to 1.9, compared with a smaller improvement in the placebo group. So magnesium may help if you commit to taking it consistently for at least two months, but it’s not a quick fix for the cramp you’re having tonight.
When a Charley Horse Might Be Something Else
A typical charley horse lasts seconds to a few minutes, hurts intensely during the spasm, and then fades. If you’re experiencing calf pain that doesn’t resolve, or you notice swelling, warmth, or a purplish discoloration in the leg, those are warning signs of a deep vein thrombosis (blood clot). Cleveland Clinic notes that a calf cramp can sometimes be the initial symptom of a clot. The distinguishing factor is persistence: cramp pain that lasts only a few seconds and doesn’t return is almost certainly not a clot, but pain that lingers along with visible swelling or skin color changes warrants prompt medical attention.

