How to Get Rid of a Charley Horse in Your Leg

To stop a charley horse mid-cramp, straighten your leg and pull your toes toward your shin. This counterstretch forces the seized muscle to lengthen and typically breaks the spasm within seconds to a minute. Once the acute pain passes, you can take steps to ease the lingering soreness and reduce the chances it happens again.

How to Stop a Cramp While It’s Happening

A charley horse is an involuntary, intense contraction of a muscle, most commonly in the calf. The fastest way to shut it down depends on which muscle is locked up.

Calf cramp: Stand or sit with your leg straight and flex your foot so your toes point toward your shin. If you can reach your toes, gently pull them back to deepen the stretch. Walking around on your heels also works well because it forces the calf into a lengthened position.

Thigh cramp (front): Stand near a wall or chair for balance, bend the knee of the cramping leg, and pull your foot up toward your buttock. This stretches the quadriceps and releases the contraction.

Thigh cramp (back): Straighten the leg and flex at the hip, leaning forward gently. The goal is always the same: lengthen the muscle that’s seizing.

While you stretch, use your hands to firmly massage the knotted area. Rubbing in the direction of the muscle fibers helps blood flow back in and signals the nervous system to relax the contraction.

Heat, Ice, or Both Afterward

Once the cramp itself releases, you’ll often feel a deep ache in the muscle that can last hours or even into the next day. Heat is your best tool here. A warm towel, heating pad, or warm bath reduces muscle stiffness and lingering spasm. Johns Hopkins Medicine specifically recommends a damp, warm towel placed directly on the affected area to ease residual tightness.

Ice is better suited for injuries involving swelling and inflammation, like a sprained ankle or tendonitis, not for the post-cramp soreness of a charley horse. If the area does feel swollen or tender to the touch the next day, a brief cold application can help with pain, but warmth is generally more effective for the tight, achy feeling cramps leave behind.

Why Charley Horses Happen

Scientists have debated the cause for decades, and current evidence points to a nervous system problem rather than a simple muscle malfunction. The leading theory is that local muscle fatigue triggers abnormal signaling in the spinal cord. Specifically, the excitatory signals telling the muscle to contract ramp up while the inhibitory signals that would normally keep the contraction in check fade out. The result is an uncontrolled, sustained contraction you can’t voluntarily stop.

This explains why charley horses tend to strike during or after exercise, in the middle of the night (when muscles have been in shortened positions for hours), or when you’re dehydrated or low on key minerals. All of these situations make your motor neurons more excitable and your muscles more prone to firing out of control.

Common contributing factors include:

  • Dehydration: Not drinking enough fluids, especially during exercise or hot weather
  • Low electrolytes: Insufficient magnesium, potassium, or calcium
  • Muscle fatigue: Overuse, prolonged standing, or a sudden increase in activity
  • Nerve compression: A pinched nerve in the back can increase cramp frequency in the legs
  • Medications: Diuretics, statins, oral contraceptives, bronchodilators, and stimulants like caffeine are all linked to increased cramping
  • Withdrawal: Cutting back on alcohol, benzodiazepines, or sedatives can trigger cramps

If you recently started a new medication and noticed more frequent charley horses, that connection is worth exploring with your prescriber. Diuretics are particularly common culprits because they flush out the very electrolytes your muscles need to function smoothly.

Preventing Cramps Before They Start

Hydration matters more than most people realize, especially around exercise. The American Council on Exercise recommends drinking 17 to 20 ounces of water about two hours before a workout, then 7 to 10 ounces every 10 to 20 minutes during exercise. For context, 17 ounces is roughly one standard water bottle. If you’re sweating heavily, a drink with electrolytes helps replace the sodium, potassium, and magnesium lost through sweat.

Magnesium is the mineral most closely associated with cramp prevention. A Cochrane review found that magnesium supplements taken twice daily reduced leg cramps in pregnant women, a group especially prone to them. Magnesium citrate and magnesium lactate are the forms with the best evidence behind them. Many adults don’t get enough magnesium from food alone, and leafy greens, nuts, seeds, and beans are the richest dietary sources.

A short stretching routine before bed can make a meaningful difference if you get cramps at night. Spend 30 to 60 seconds stretching each calf: stand facing a wall, step one foot back, keep the heel down, and lean forward until you feel a pull in the back of the lower leg. Repeat on the other side. For your thighs, do a standing quad stretch by pulling one foot toward your buttock. These stretches keep the muscles in a lengthened state as you fall asleep, making involuntary contractions less likely.

Keeping blankets loose at the foot of your bed also helps. Tight sheets can push your feet into a pointed position, shortening the calf muscles for hours and setting the stage for a middle-of-the-night cramp.

When a Charley Horse Isn’t Just a Cramp

Most charley horses are harmless and resolve on their own. But leg pain that mimics a cramp can occasionally signal something more serious. A deep vein thrombosis (DVT), or blood clot in a leg vein, is sometimes described as feeling like a charley horse. The National Blood Clot Alliance notes that DVT pain differs in key ways: the leg is often swollen (usually just one leg), the skin may look reddish or bluish, and the area feels warm to the touch. A standard charley horse doesn’t cause discoloration or persistent swelling.

If your leg pain comes with visible swelling, skin color changes, or warmth that doesn’t fade after the cramp resolves, that combination of symptoms needs prompt medical evaluation.

Skip the Quinine

Quinine, found naturally in tonic water and available in prescription form, has a long reputation as a cramp remedy. The FDA has explicitly warned against using it for leg cramps. Quinine is approved only for treating malaria, and when used for cramps it carries risks of serious blood disorders, dangerous heart rhythm changes, and kidney failure requiring dialysis. Fatalities have been reported. Since 2006, the FDA has added a boxed warning to quinine labeling and issued multiple safety communications about this off-label use. Drinking small amounts of tonic water is unlikely to cause harm, but taking quinine pills for cramps is a risk that isn’t worth the modest benefit.