Why Do I Keep Getting Charley Horses in My Feet?

Recurring charley horses in your feet usually come down to one or more fixable problems: dehydration, low electrolytes, tight or unsupportive shoes, or overworked muscles. In some cases, though, frequent foot cramps signal an underlying condition like nerve damage, poor circulation, or a medication side effect. Understanding what’s driving your cramps is the first step toward making them stop.

What Happens Inside Your Foot During a Cramp

A charley horse is an involuntary, sustained muscle contraction. Your foot contains over 20 small muscles packed into a tight space, and when the signaling between your nerves and those muscles misfires, a muscle can lock into contraction and refuse to relax. The root of the problem is often at the motor endplate, the junction where a nerve tells a muscle fiber to fire. When too much of the chemical messenger acetylcholine gets released at that junction, the muscle contracts and stays contracted, producing that intense, sometimes toe-curling pain.

This can become a self-reinforcing loop. Sensors inside the muscle called spindles detect the contraction, send signals back to the spinal cord, and the spinal cord responds by telling the muscle to contract even harder. That feedback cycle is why a foot cramp can escalate from a twinge to an agonizing knot in seconds, and why it sometimes takes active intervention to break it.

Electrolytes and Hydration

Potassium, sodium, calcium, and magnesium all play roles in telling your muscles when to contract and when to relax. Potassium is especially important: it acts as a transmitter between nerves and muscles, and when levels drop, muscles can essentially get stuck in a contracted position. Sodium losses matter too, particularly if you sweat heavily. Research on cramp-prone athletes found that those who cramped had declining blood sodium levels after training and tended to drink more plain water instead of electrolyte-containing fluids, widening the sodium gap.

Dehydration amplifies the problem. A lab study found that losing just 3% of body weight through fluid loss significantly increased cramping in toe flexor muscles. In another study, athletes who drank an electrolyte solution during exercise delayed cramp onset by more than double compared to those who drank nothing (about 37 minutes versus 15 minutes). Drinking plain water after heavy sweating can actually make things worse by diluting the sodium and chloride still in your blood, a phenomenon researchers identified as far back as the 1920s in industrial heat cramp cases.

If your cramps tend to happen after exercise, in hot weather, or on days you haven’t been drinking enough, electrolyte imbalance is a likely culprit. A drink with sodium and potassium will do more than water alone.

Why Foot Cramps Strike at Night

Nighttime is the most common time for foot and leg cramps, and there are a few reasons for that. During sleep, your feet often rest in a pointed position (called plantar flexion), which shortens the muscles along the sole of your foot and makes them more prone to involuntary contraction. You’re also mildly dehydrated after hours without fluids, and your circulation slows while you’re still.

Lack of physical activity during the day is actually listed as a common contributor to nocturnal cramps. If you sit for long stretches, the small muscles in your feet don’t get the regular contracting and relaxing cycles that keep them limber. Then at night, a small shift in position can trigger a full spasm in a muscle that’s been essentially idle.

Your Shoes Could Be the Problem

Footwear is an underappreciated cause of recurring foot cramps. Shoes that are too tight or too small restrict blood flow and force your toes into cramped positions, directly triggering spasms. Switching from flat shoes to heels puts your foot in an unnatural position that shortens certain muscles and overloads others, setting the stage for cramps later in the day or at night.

Flat feet deserve special attention. Without a proper arch, the muscles in your foot work overtime to stabilize each step, leading to chronic fatigue and cramping. If you have flat feet or very high arches, supportive insoles can redistribute the workload and improve circulation. If your cramps started around the same time you changed your footwear, that’s a strong clue.

Medications That Cause Cramps

A surprisingly long list of common medications can trigger muscle cramps as a side effect. Diuretics (water pills) are among the most frequent offenders because they increase fluid and electrolyte loss through urine. Blood pressure medications, including certain beta-blockers and angiotensin receptor blockers, are also known culprits. Statins used for cholesterol, birth control pills, and even some asthma medications can contribute.

Stimulants are another category to consider. Caffeine, nicotine, and decongestants containing pseudoephedrine can all promote muscle cramping. On the flip side, suddenly stopping sedatives like alcohol or certain anti-anxiety medications can trigger cramps as well. If your foot cramps started or worsened after beginning a new medication, that connection is worth exploring with whoever prescribed it.

Medical Conditions Behind Chronic Cramps

When foot cramps are persistent and don’t improve with better hydration, stretching, and shoe changes, an underlying health condition may be involved. The list of possibilities is broad, but a few stand out.

Peripheral artery disease (PAD) narrows the blood vessels supplying your legs and feet, which means your muscles don’t get enough blood flow to meet demand. This often shows up as cramping or pain during walking, but it can also cause cramps at rest. Diabetes is both a risk factor for PAD and a direct cause of nerve damage (peripheral neuropathy) that disrupts the signals controlling muscle contraction. Thyroid disorders, both overactive and underactive, can alter muscle function and trigger cramps. Kidney disease, anemia, cirrhosis, and even Parkinson’s disease are all associated with nocturnal leg and foot cramps.

Spinal stenosis, a narrowing of the spinal canal that compresses nerves, can cause cramping in the legs and feet, especially with prolonged standing or walking.

The Truth About Magnesium Supplements

Magnesium is one of the most commonly recommended supplements for muscle cramps, but the evidence is disappointing. A Cochrane review combining results from five well-designed studies found, with moderate certainty, that magnesium supplementation does not meaningfully reduce the frequency, intensity, or duration of muscle cramps in older adults. A separate study in people with liver cirrhosis found no benefit either. On top of that, magnesium supplements frequently cause digestive side effects like diarrhea, affecting up to 37% of people taking them in some trials.

This doesn’t mean your magnesium levels are irrelevant. If you have a genuine deficiency (common in people who drink heavily, take certain medications, or have digestive conditions), correcting it may help. But for most people experiencing foot cramps, taking a magnesium supplement is unlikely to be the fix.

How to Stop a Foot Cramp in the Moment

When a cramp hits, your goal is to break that contraction-feedback loop. Stretch the cramped muscle by pulling your toes back toward your shin, which lengthens the muscles along the sole of your foot. If the cramp is in the arch, standing up and pressing your foot flat against the floor can help. Gently massage the area while stretching to encourage the muscle to release.

Heat works well for a muscle that’s locked up. A warm towel, heating pad, or a stream of hot water from the shower can relax the tissue. Once the acute cramp passes, rubbing ice on the sore spot can ease the residual ache.

Preventing Cramps From Coming Back

The most effective prevention targets whatever is causing your cramps in the first place. If dehydration and electrolyte loss are likely contributors, drink fluids with sodium and potassium throughout the day, not just plain water. This matters even more if you exercise, sweat heavily, or take diuretics.

Stretch your feet daily, especially before bed. Simple exercises like towel curls (placing a towel on the floor and scrunching it with your toes), calf stretches against a wall, and rolling a tennis ball under your arch can keep the small foot muscles flexible and better supplied with blood. If you sit for long periods during the day, take breaks to walk and flex your feet.

Evaluate your shoes. Make sure they fit well, provide arch support, and don’t squeeze your toes. If you have flat feet, arch-supporting insoles can reduce the chronic muscle fatigue that leads to cramping. Review your medications and supplements for known cramp-causing side effects, and keep an eye on caffeine and alcohol intake, both of which can contribute to dehydration and electrolyte imbalance.

If your cramps are severe, come with swelling or skin changes, involve muscle weakness, or simply won’t respond to these measures, those are signs that something beyond lifestyle factors may be going on.