Iatrogenic causes
Various medications may cause nocturnal leg cramps:
Diuretics, especially potassium sparing
IV iron sucrose
Conjugated estrogens
Teriparatide
Naproxen
Raloxifene
Long acting adrenergic beta-agonists (LABAs)
Hydroxymethylglutaryl-coenzyme A reductase inhibitors (HMG-CoA inhibitors or statins)