Calf cramps, commonly called charley horses, happen when the muscle involuntarily contracts and locks into a painful spasm that can last anywhere from a few seconds to several minutes. They’re one of the most common muscle complaints, especially in middle-aged and older adults, and they tend to strike at night or during exercise. The causes range from simple triggers like dehydration and tight muscles to underlying health conditions that affect your nerves or circulation.
What Happens Inside the Muscle
A charley horse isn’t your muscle deciding to contract on its own. The current understanding points to a problem with nerve signaling rather than the muscle tissue itself. The leading theory is that the terminal branches of motor nerves (the very ends of the nerves that tell muscle fibers to fire) become abnormally excitable, sending rapid bursts of signals that force the muscle into a sustained contraction. A competing theory suggests the problem starts higher up, with the motor neurons in the spinal cord becoming hyperactive.
Research published in the Journal of Applied Physiology found that during a cramp, the muscle doesn’t seize all at once. Instead, a slowly moving wave of contraction spreads across a fraction of the muscle fibers, which is why a cramp sometimes feels like it “builds” before hitting full intensity. The electrical signals recorded during cramps are unusually short and rapid compared to a normal strong contraction, confirming that something has gone haywire in the nerve-to-muscle communication.
Dehydration and Electrolytes
You’ve probably heard that dehydration causes cramps, but the science is more nuanced than that. The real culprit appears to be an imbalance between fluid and electrolytes, not just fluid loss alone. When you sweat heavily and replace that fluid with plain water, you dilute the sodium, potassium, magnesium, and calcium your muscles need to contract and relax properly. Studies of industrial workers and athletes consistently show that people who lose more sodium in their sweat are more prone to cramps.
One telling study found that after a run, drinking plain water actually made muscles more susceptible to cramping (as measured by electrical stimulation), while drinking a high-electrolyte solution made them less susceptible. Research on cramp-prone football players showed they had higher sweat sodium concentrations and greater overall sodium losses during training than teammates who never cramped. They also drank a higher percentage of their fluids as plain water rather than electrolyte-containing drinks.
That said, providing fluids to prevent dehydration alone hasn’t been shown to stop electrically induced cramps in controlled studies. So staying hydrated matters, but the mineral content of what you drink matters more.
Tight, Fatigued, or Inactive Muscles
Your calves are particularly vulnerable to charley horses because they’re among the hardest-working muscles in your body, bearing your weight with every step, and they spend long hours in a shortened position when you sit or sleep with your feet pointed. Tight calf muscles from inactivity, lack of stretching, or repeated fluid buildup in the lower legs all increase cramp risk.
Muscle fatigue is another major trigger. When a muscle is overworked, the normal feedback loop that prevents excessive contraction starts to break down. This is why cramps often hit near the end of a long run or a day spent on your feet, and why they target the calves more than almost any other muscle group. Stretching your calves daily, particularly before and after exercise and at bedtime, is one of the most consistently recommended prevention strategies.
Why Cramps Get More Common With Age
If you’re over 50 and noticing more frequent charley horses, you’re not imagining it. Several age-related changes converge to make cramps increasingly common. You gradually lose muscle mass, which means the remaining muscle fibers bear more of the workload and fatigue faster. Nerves that supply the calf muscles shorten and become less efficient over time. And older adults tend to be less active, leading to tighter, less flexible muscles that are primed to cramp.
Older adults are also more likely to take medications that contribute to cramping and to have chronic conditions that affect nerve function or circulation.
Medications That Trigger Cramps
A surprisingly long list of common medications can cause or worsen calf cramps. Diuretics (water pills) are among the most well-known offenders because they flush electrolytes out through urine. But the list also includes cholesterol-lowering statins, blood pressure medications like angiotensin II receptor blockers, oral contraceptives, bronchodilators, and stimulants including caffeine, nicotine, and certain cold medications containing pseudoephedrine.
Withdrawal from alcohol, sedatives, and anti-anxiety medications can also trigger cramps. If your charley horses started or worsened after beginning a new medication, that connection is worth exploring with whoever prescribed it.
Medical Conditions to Consider
Most calf cramps are harmless, but frequent or severe cramps can signal an underlying condition. Kidney disease is a common cause because the kidneys regulate electrolyte balance. Diabetic nerve damage can disrupt the signals between nerves and muscles, making cramps more likely. Poor blood flow from peripheral artery disease starves calf muscles of oxygen, especially during activity or at night.
Other conditions linked to leg cramps include thyroid disorders (both overactive and underactive), Parkinson’s disease, spinal stenosis (narrowing of the spinal canal that compresses nerves), cirrhosis, and Addison’s disease. Pregnancy also frequently triggers nighttime calf cramps, possibly related to changes in calcium levels, though the exact mechanism isn’t fully understood.
Does Magnesium Actually Help?
Magnesium supplements are one of the most popular home remedies for leg cramps, but the evidence is disappointing for most people. A Cochrane review, the gold standard for evaluating medical evidence, analyzed multiple trials and found that magnesium supplements provided no meaningful benefit for older adults with nighttime leg cramps compared to a placebo. The reduction in cramp frequency was small, not statistically significant, and magnesium didn’t improve cramp intensity or duration either. The percentage of people experiencing at least a 25% improvement was identical whether they took magnesium or a sugar pill.
For pregnancy-related cramps, the picture is murkier. The available studies are conflicting and generally low quality, so it’s not possible to say whether magnesium helps in that population. If you’re already low in magnesium, correcting that deficiency could make a difference, but taking extra magnesium when your levels are normal is unlikely to stop your charley horses.
When a Cramp Might Be Something Else
One important distinction: deep vein thrombosis, a blood clot in a leg vein, can feel remarkably similar to a charley horse. The National Blood Clot Alliance notes that DVT pain is often described as a cramp or charley horse. The key differences are that DVT typically causes persistent swelling in one leg, skin that looks reddish or bluish, and warmth to the touch. A charley horse resolves within minutes and doesn’t leave lasting swelling or discoloration. If your “cramp” doesn’t let up, or your calf stays swollen and tender afterward, that’s a different situation entirely.
Practical Ways to Reduce Calf Cramps
The most effective prevention strategies target the most common causes. Stretch your calves daily, with particular attention to stretching before bed if nighttime cramps are your pattern. A simple wall stretch, where you lean forward with one foot behind you and your heel pressed to the floor, held for 20 to 30 seconds per side, is enough.
When you’re sweating, whether from exercise, hot weather, or physical labor, replace fluids with drinks that contain sodium and potassium rather than plain water alone. Eating potassium-rich foods like bananas, potatoes, and leafy greens, along with adequate dietary sodium, supports the electrolyte balance your muscles depend on.
When a cramp strikes, the fastest relief comes from gently stretching the affected muscle. Pull your toes toward your shin to lengthen the calf, or stand and press your heel into the floor. Massaging the knotted muscle and applying warmth can help it release. Walking around for a few minutes after the cramp subsides helps prevent it from returning immediately.