Foot cramps are due to sustained, painful, involuntary contractions of the muscles in your feet.

Foot cramps will usually go away with stretching and massaging.

Wearing supportive shoes can help prevent them from happening.

Causes of foot cramps with illustration of an athlete with a cramp

Illustration by Tara Anand for Verywell Health

You should see your healthcare provider if foot cramps persist or continue to come back.

Dehydration

Muscle cramps anywhere in the body can happen if you get dehydrated.

If you don’t give your feet enough rest, this can lead to pain and cramping.

You might get a foot cramp during or just after exercising or standing for a long time.

Stretching can help prevent foot muscle cramps.

Sometimes these cramps are called a charley horse.

Nighttime Cramping

Foot cramps at night (nocturnal leg cramps) can cause trouble sleeping.

They affect about 25% of people in the United States.

Foot Cramp Stretches

Stretches are the main treatment for foot cramps.

If youre getting foot cramps often, you should talk to your provider.

Sometimes, foot cramps can be related to a health condition or even a side effect of a medication.

National Library of Medicine.Muscle spasms.

American Academy of Orthopaedic Surgeons.Tight shoes and foot problems.

2019 Apr 11;5(1):e000478corr1].BMJ Open Sport Exerc Med.

2019;5(1):e000478.

doi:10.1136/bmjsem-2018-000478

Waters TR, Dick RB.Evidence of health risks associated with prolonged standing at work and intervention effectiveness.Rehabil Nurs.

Nefrologia; 39(3):277-286.

Muscular Dystrophy Association.Hyperthyroid and Hypothyroid Myopathies.

2022;15:827-837. doi:10.2147/DMSO.S352735

National Library of Medicine.Autoimmune Addison Disease.

2016;2016:7576292. doi:10.1155/2016/7576292

American Heart Association.Symptoms of PAD.

Stojakovic N, Igic R.Simvastatin-lnduced nocturnal leg pain disappears with pravastatin substitution.Srp Arh Celok Lek.

2013;141(5-6):387-389. doi:10.2298/sarh1306387s

Allen RE, Kirby KA.Nocturnal leg cramps.Am Fam Physician.

2012;86(4):350-355.

2017;12(6):e0178465.

doi:10.1371/journal.pone.0178465

American Orthopaedic Foot & Ankle Society.How to keep feet flexible.

2021;5(5):CD008496.

doi:10.1002/14651858.CD008496.pub3

Troyer W, Render A, Jayanthi N.Exercise-Associated muscle cramps in the tennis player.Curr Rev Musculoskelet Med.

2020;13(5):612-621. doi:10.1007/s12178-020-09662-8

Moretti A.What is the role of magnesium for skeletal muscle cramps?

A Cochrane Review summary with commentary.J Musculoskelet Neuronal Interact.

2021;21(1):1-3.