Medically reviewed by Dr. Tom Biernacki, DPM — Board-Certified Podiatric Surgeon — Balance Foot & Ankle, Howell & Bloomfield Hills, MI. Last updated April 2026.
Why Do Foot Cramps Happen?

Foot cramps—involuntary, painful muscle contractions in the foot, arch, or toes—are an extremely common complaint that ranges from a minor annoyance to a symptom of an underlying medical condition. Most cramps are benign and transient, lasting seconds to minutes before the muscle releases. However, frequent or severe foot cramps, cramps that occur at rest, or cramps accompanied by other symptoms deserve medical evaluation. Understanding the underlying mechanism guides both immediate relief and long-term prevention.
Common Causes of Foot Cramps
Dehydration and Electrolyte Imbalance
The most common cause of foot and leg cramps—particularly exercise-associated cramps and nocturnal cramps—is dehydration combined with electrolyte depletion. Muscle contraction depends on precise calcium, magnesium, potassium, and sodium balance. Heavy sweating during exercise or hot weather depletes these minerals, and even mild dehydration (1–2% body weight loss) can trigger cramping. Athletes who cramp during prolonged exercise or in hot environments are typically experiencing sodium and fluid depletion, not simply potassium deficiency—sports drinks that contain sodium are more effective than plain water or bananas for this type of cramping.
Overuse and Muscle Fatigue
Prolonged standing, walking, or athletic activity fatigues the intrinsic foot muscles and the gastrocnemius-soleus complex, reducing their ability to maintain normal tone and increasing susceptibility to spasm. This type of cramping is common in servers, nurses, retail workers, and athletes—particularly after an unusual increase in activity level. Tight calf muscles (gastrocnemius shortening) increase the mechanical load on intrinsic foot muscles and predispose to cramping during activity.
Poor Footwear
Ill-fitting footwear—shoes that are too narrow, too tight in the toe box, or lack adequate arch support—forces the foot muscles to work abnormally to maintain balance and propulsion. High heels maintain the foot in plantarflexion, shortening the calf muscles and fatiguing the intrinsic muscles. Flat, unsupportive footwear (flip-flops) forces the toes to claw to maintain grip, leading to cramping in the intrinsic toe flexors. Switching to properly fitted, supportive footwear and custom orthotics often reduces cramping frequency significantly.
Nerve Compression
Lumbar spinal nerve compression (from disc herniation or spinal stenosis) can produce cramping in the foot through abnormal nerve signaling. Morton’s neuroma (interdigital nerve compression) and tarsal tunnel syndrome (posterior tibial nerve compression at the medial ankle) can also produce toe and foot cramping accompanied by numbness, tingling, or burning. When foot cramps are associated with neurological symptoms—especially if they involve specific nerve distributions—imaging and nerve conduction studies should be considered.
Circulation Problems
Peripheral arterial disease (PAD)—narrowing of the arteries supplying the lower extremities—reduces oxygen delivery to foot muscles, causing cramping with activity (claudication) that is relieved by rest. Unlike exercise cramps that occur at peak exertion and resolve with stretching, vascular claudication produces cramping at a consistent activity level (the same walking distance each time) and is reliably relieved by stopping activity. Risk factors include smoking, diabetes, hypertension, and high cholesterol. Vascular claudication is a serious condition requiring medical evaluation, as it indicates significant atherosclerosis.
Medications
Several medications commonly cause muscle cramps as a side effect, including diuretics (by depleting electrolytes), statins (cholesterol medications), beta-blockers, and some asthma medications. If cramps began after starting a new medication, review the side effects with your prescribing physician—an alternative medication may be available.
Immediate Relief for a Foot Cramp
When a foot cramp strikes, the most effective immediate relief is forceful dorsiflexion of the foot (pulling the toes toward the shin) to stretch the affected muscle, combined with massage of the cramping area. Walking briefly often resolves the spasm faster than remaining stationary. Applying heat (a warm towel or heating pad) relaxes the muscle. If the cramp involves the toe flexors, manually pulling the toes into extension while massaging the arch directly counteracts the spasm. Most cramps resolve within 1–5 minutes with these measures.
Preventing Foot Cramps
Prevention focuses on addressing the underlying cause. Adequate hydration before, during, and after exercise is fundamental. Pre-exercise calf and foot stretching reduces cramping in athletes. Custom orthotics and supportive footwear reduce intrinsic muscle fatigue. Magnesium supplementation (300–400mg daily) reduces nocturnal cramping in some patients, particularly those with dietary deficiency. Regular calf stretching—holding the stretch 30 seconds, three times daily—is one of the most consistently effective interventions for recurrent foot and calf cramping.
Frequently Asked Questions
Why do I get foot cramps at night?
Nocturnal foot and leg cramps are extremely common, affecting up to 60% of adults at some point. The most common causes are relative dehydration overnight, electrolyte shifts during sleep, the foot’s resting plantarflexion position (which shortens the calf), and reduced circulation in the extremities during sleep. In older adults, reduced muscle mass and age-related changes in nerve function increase susceptibility. While usually benign, frequent severe nocturnal cramps can indicate peripheral arterial disease, nerve compression from lumbar spine disease, medication side effects, or electrolyte disorders—particularly in patients over 60. Stretching the calves before bed, staying hydrated throughout the day, and sleeping with a pillow under the knees to reduce plantarflexion are practical prevention measures.
What vitamin deficiency causes foot cramps?
Magnesium deficiency is the most consistently associated mineral deficiency with muscle cramping. Magnesium plays a critical role in muscle relaxation—without adequate magnesium, muscle fibers have difficulty fully relaxing after contraction. Potassium and calcium deficiencies also contribute to cramping, and true deficiency of these minerals (not just insufficient intake) can cause severe cramping. Vitamin D deficiency, which is common in Michigan due to limited sun exposure, can contribute to muscle weakness and cramps. Before supplementing, it is worthwhile to have a basic metabolic panel and magnesium level checked—supplementation is most effective when a true deficiency is present.
When should I see a doctor for foot cramps?
See a podiatrist or physician if: cramps are frequent (multiple times per week), severe, or disruptive to sleep or daily activities; cramps occur at a consistent level of walking and are relieved by rest (possible vascular claudication); cramps are accompanied by numbness, tingling, weakness, or burning (possible nerve compression); you have diabetes or known peripheral arterial disease and develop new cramping; or cramps began after starting a new medication. A podiatrist can evaluate for biomechanical causes (flat feet, tight calf muscles) while also screening for systemic causes that warrant medical management.
Medical References & Sources
- PubMed Research — Nocturnal Leg Cramps Causes and Treatment
- PubMed Research — Exercise-Associated Muscle Cramps
- American Podiatric Medical Association — Foot Conditions
📧 Get Dr. Tom’s Free Lab Test Guide
Discover the 5 lab tests every person over 35 should ask their doctor about — explained in plain English by a board-certified physician.
Dr. Tom Biernacki, DPM is a board-certified podiatric surgeon at Balance Foot & Ankle in Howell and Bloomfield Hills, Michigan. He evaluates and treats foot cramps and associated conditions including nerve compression, flat feet, and biomechanical imbalances contributing to muscle fatigue and cramping.
Join 950,000+ Learning About Foot Health
Dr. Tom shares honest medical advice, supplement reviews, and treatment guides you won’t find anywhere else.
Subscribe on YouTube →📍 Located in Michigan?
Our board-certified podiatrists treat this condition at two convenient locations. Same-day appointments often available.
Medically Reviewed by: Dr. Tom Biernacki, DPM — Board-Certified Podiatrist, Balance Foot & Ankle Specialists
Foot Cramps Waking You Up at Night?
Recurring foot cramps may indicate an underlying condition like neuropathy, electrolyte imbalance, or circulatory issues. Our podiatrists can identify the cause and provide relief.
Sources
- Garrison SR et al. “Nocturnal leg cramps and prescription use that precedes them.” Arch Intern Med. 2012;172(2):120-126.
- Allen RE, Kirby KA. “Nocturnal leg cramps.” Am Fam Physician. 2012;86(4):350-355.
- Monderer RS et al. “Nocturnal leg cramps.” Curr Neurol Neurosci Rep. 2010;10(1):53-59.
Insurance Accepted
BCBS · Medicare · Aetna · Cigna · United Healthcare · HAP · Priority Health · Humana · View All →
Howell Office
3980 E Grand River Ave, Suite 140
Howell, MI 48843
Get Directions →
Bloomfield Hills Office
43700 Woodward Ave, Suite 207
Bloomfield Hills, MI 48302
Get Directions →
Your Board-Certified Podiatrists
Ready to Get Back on Your Feet?
Same-week appointments available at both locations.
Book Your AppointmentDr. Tom Biernacki, DPM is a double board-certified podiatrist and foot & ankle surgeon at Balance Foot & Ankle Specialists in Southeast Michigan. With over a decade of clinical experience, he specializes in heel pain, bunions, diabetic foot care, sports injuries, and minimally invasive surgery. Dr. Biernacki is a member of the APMA and ACFAS, and his patient education content on MichiganFootDoctors.com and YouTube has reached over one million views.