by Scholten A
(Muscle Cramps; Nocturnal Muscles Cramps; Age-Related Cramps)


Nocturnal leg cramps are sudden spasms in the lower leg and foot muscles. The calf muscles are most often involved. The cramps are painful and often disrupt sleep.

The Calf Muscles
Nucleus factsheet image
Copyright © Nucleus Medical Media, Inc.


The exact cause of nocturnal leg cramps is unknown. They may be due to chemical imbalances. This may lead to problems with the nerves, muscles, or blood supply.

Risk Factors

Nocturnal leg cramps are more common in people aged 50 years and older. Other things that raise the risk are:


The main symptom is a sudden cramp in the calf or foot muscle.


The doctor will ask about symptoms and health history. A physical exam will be done. Diagnosis is based on symptoms.

Blood tests and imaging tests may be done to check for underlying causes.


The goal of treatment is to reduce cramps. It may also include treating any underlying causes.

If no cause is found, treatment options are:

  • Stretching leg muscles—when cramps occur
  • Standing on the affected leg and walking—to help stop cramping
  • Massage, and hot or cold treatments—to relax the muscles


Medicines may be used if the cramps are severe. Options are:

  • Muscle relaxants
  • Calcium channel blockers
  • Anticonvulsants


The risk of nocturnal leg cramps may be reduced by:

  • Exercising and stretching the legs and feet
  • Drinking plenty of liquids
  • Wearing comfortable, supportive shoes


Family Doctor—American Academy of Family Physicians 

Ortho Info—American Academy of Orthopaedic Surgeons 


The College of Family Physicians of Canada 

Women's Health Matters 


Delacour C, Chambe J, et al. Association between physical activity and nocturnal leg cramps in patients over 60 years old: a case-control study. Sci Rep. 2020;10(1):2638.

Nocturnal leg cramps. EBSCO DynaMed Plus website. Available at: Accessed February 16, 2021.

Roguin Maor N, Alperin M, et al. Effect of magnesium oxide supplementation on nocturnal leg cramps: a randomized clinical trial. JAMA Intern Med. 2017;177(5):617-623.

Revision Information