Our Services
Medical Information
Helpful Resources
Published on: 7/15/2026
Nocturnal leg cramps are sudden, involuntary muscle contractions that occur in the legs during sleep, most often affecting the calves, feet, or thighs. Common causes include muscle fatigue from overuse, dehydration, electrolyte imbalances (such as low potassium, magnesium, or calcium), poor circulation, prolonged sitting, and nerve compression. Certain medical conditions—like diabetes, peripheral artery disease, kidney disorders, thyroid issues, and pregnancy—can also trigger them, as can medications such as diuretics and statins. Identifying the underlying cause is key to effective prevention and treatment.
Because leg cramps at night can stem from so many different sources—some harmless, others signaling a deeper health concern—guessing the cause can delay real relief. A free, instant, online symptom check can help you quickly narrow down possible causes based on your unique symptoms, guide you on whether home remedies may help, and clarify when it's time to see a doctor. It only takes a few minutes and could save you from nights of unnecessary pain.
Reviewed for medical accuracy: 07/14/2026
Not seeing your question? No worries.
Submit your own QuestionNocturnal leg cramps are sudden, involuntary contractions of the muscles in the legs that occur during the night. These cramps can be quite painful and may disrupt sleep. They typically affect the calf muscles but can also involve the thighs or feet.
Several factors can contribute to the occurrence of leg cramps at night:
To manage and prevent nocturnal leg cramps, consider the following strategies:
(References)
Hallegraeff J, de Greef M, Krijnen W, van der Schans C. Criteria in diagnosing nocturnal leg cramps: a systematic review. BMC Fam Pract. 2017 Feb 28;18(1):29. doi: 10.1186/s12875-017-0600-x. PMID: 28241802; PMCID: PMC5330021.
Monderer RS, Wu WP, Thorpy MJ. Nocturnal leg cramps. Curr Neurol Neurosci Rep. 2010 Jan;10(1):53-9. doi: 10.1007/s11910-009-0079-5. PMID: 20425227.
Allen RE, Kirby KA. Nocturnal leg cramps. Am Fam Physician. 2012 Aug 15;86(4):350-5. PMID: 22963024.
We would love to help them too.
For First Time Users
We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.
Was this page helpful?
Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.