Prevention consists of the elimination of predisposing factors and reducing the consumption of alcohol and caffeine.
Pharmacotherapy
Calcium-channel blockers, particularly diltiazem 30-60 mg in the evening
Vitamin B and E preparations
Gabapentin, especially for patients with a predisposing neurological disease; initial dose 300 mg twice daily
Diazepam or clonazepam may be considered in severe cases, but the patient must be monitored to evaluate the efficacy of the treatment and the emergence of adverse effects.
Magnesium has not been shown to be efficacious in the treatment of leg cramps in the elderly Magnesium for Skeletal Muscle Cramps. Evidence of the efficacy of magnesium in the treatment of leg cramps during pregnancy is uncertain.
Quinine has been shown to be effective in the treatment of leg cramps, but due to potential severe adverse effects, its use is not generally recommended, and the drug is not available for this indication.
References
Hawke F, Sadler SG, Katzberg HD, et al. Non-drug therapies for the secondary prevention of lower limb muscle cramps. Cochrane Database Syst Rev 2021;(5):CD008496. [PubMed]
Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev 2020;(9):CD009402. [PubMed]
Luo L, Zhou K, Zhang J, et al. Interventions for leg cramps in pregnancy. Cochrane Database Syst Rev 2020;(12):CD010655. [PubMed]
El-Tawil S, Al Musa T, Valli H, et al. Quinine for muscle cramps. Cochrane Database Syst Rev 2015;(4):CD005044. [PubMed]