How to Get Rid of a Charley Horse in Your Foot

To stop a charley horse in your foot, grab your toes and pull them back toward your shin, stretching the cramped muscles until the contraction releases. This usually takes 30 to 60 seconds. While that handles the immediate pain, understanding why your foot cramps in the first place can help you prevent it from happening again.

How to Stop a Foot Cramp Right Now

When your foot seizes up, the goal is to manually lengthen the contracted muscle. Sit down, grab the toes on the cramping foot, and slowly pull them upward and back toward your knee. Hold the stretch until you feel the muscle release. If the cramp is in the arch, you can also try standing up and pressing your weight firmly through the cramping foot, which forces the muscles to lengthen under load.

While you stretch, use your other hand to rub and knead the cramped area. Gentle massage helps override the signals keeping the muscle locked. Once the cramp releases, apply a warm towel or heating pad to the area for a few minutes to relax any lingering tightness. If the spot stays sore afterward, rubbing it with ice can help with residual pain.

Another quick trick: place a tennis ball or water bottle on the floor and roll the sole of your foot over it. This applies targeted pressure to the small, deep muscles in the arch that are hardest to reach with your hands.

Why Your Foot Cramps in the First Place

A charley horse happens when motor nerves fire excessively, causing an involuntary, sustained muscle contraction. Normally, your nervous system balances the “contract” signals with “relax” signals. When something disrupts that balance, such as fatigue, dehydration, or a mineral shortage, the relaxation signals weaken and the muscle locks up.

Your feet are particularly prone to this. The foot contains over 20 small muscles packed into a tight space, and they spend hours bearing your full body weight or held in fixed positions inside shoes. That combination of workload and restricted movement makes them easy targets for cramping.

Why Foot Cramps Happen at Night

Foot cramps are notoriously common during sleep. Lying still for hours means your foot muscles stay in a shortened position, especially if your toes point downward under the weight of blankets. That sustained shortening can trigger the same nerve misfiring that causes daytime cramps.

Sitting for long periods during the day, standing on hard surfaces like concrete, or overworking your feet through exercise can all set the stage for cramps that show up hours later when you’re in bed. If nighttime cramps are a recurring problem, try adjusting your sleep position: keep your toes pointing upward if you sleep on your back, or hang your feet over the edge of the mattress if you sleep on your stomach. Keeping a heating pad next to the bed gives you a fast response tool when a cramp strikes at 3 a.m.

The Electrolyte Connection

Sodium, potassium, magnesium, and calcium all play roles in muscle contraction and relaxation. When any of these minerals drops too low, muscle cells become more excitable and more likely to cramp. This is why cramps often follow heavy sweating, illness with vomiting or diarrhea, or restrictive diets that cut out mineral-rich foods.

Interestingly, drinking plain water after heavy sweating can actually make cramps worse. A study published in BMJ Open Sport and Exercise Medicine found that rehydrating with water alone diluted participants’ blood sodium and chloride levels, making their muscles more susceptible to cramping. When participants drank a solution containing electrolytes instead, cramp susceptibility decreased. The takeaway: if you’ve been sweating heavily, reach for a drink that replaces minerals, not just water.

If you take diuretics (water pills) for blood pressure, those medications are one of the most common drug-related causes of muscle cramps. They work by flushing fluid and minerals from your body, which directly affects muscle cell stability. Potassium-sparing diuretics can also cause cramping, so the link isn’t limited to one type.

Does Magnesium Actually Help?

Magnesium supplements are one of the most commonly recommended remedies for muscle cramps, but the evidence is disappointing. A Cochrane systematic review, the gold standard for evaluating medical evidence, found that magnesium supplementation did not provide meaningful relief for older adults with muscle cramps. Across multiple trials using doses between 200 and 366 mg of elemental magnesium daily for two to six weeks, the difference between magnesium and a placebo was essentially zero: about 0.01 fewer cramps per week.

That said, if you have a confirmed magnesium deficiency (which a blood test can identify), correcting it may still help. The research suggests that magnesium supplements just don’t do much for people whose levels are already normal. Foods rich in magnesium, like spinach, almonds, black beans, and avocados, are worth including in your diet regardless.

How to Prevent Recurring Foot Cramps

Prevention comes down to addressing the most common triggers: dehydration, mineral imbalances, muscle fatigue, and prolonged positioning.

  • Stay hydrated with electrolytes. Drink enough fluid throughout the day, and add an electrolyte source when you’re sweating heavily or exercising for more than an hour.
  • Eat mineral-rich foods. Potassium from bananas, potatoes, and oranges. Magnesium from nuts, seeds, and leafy greens. Calcium from dairy or fortified alternatives. Sodium from normal dietary salt, especially if you sweat a lot.
  • Stretch your feet daily. Spend a minute or two pulling your toes back, rolling your arches over a ball, and flexing your feet up and down. Do this before bed if nighttime cramps are your issue.
  • Wear supportive shoes. Shoes that crowd your toes or lack arch support force your foot muscles to work harder in awkward positions, increasing fatigue.
  • Move during the day. If you sit at a desk for hours, flex and circle your feet periodically. Prolonged stillness is a consistent trigger for nighttime cramps.

When Foot Cramps Signal Something Else

Occasional foot cramps are normal and rarely indicate a serious problem. But cramps that happen frequently, affect multiple muscle groups, or come with other symptoms like numbness, tingling, or muscle weakness can point to an underlying condition. Nerve damage from diabetes, poor circulation from peripheral artery disease, and thyroid disorders can all cause chronic cramping. Liver disease and certain metabolic conditions can impair the energy supply muscles need to relax, leading to prolonged contractions.

If your foot cramps are getting worse over time, happening daily, or accompanied by visible muscle wasting, swelling, or skin color changes in your feet, those patterns warrant a medical evaluation to rule out something beyond simple muscle fatigue.