Muscle Cramps: Drugs That Cause or Treat Them

At a glance
- Nocturnal leg cramps affect up to 60% of adults over age 50
- Statins cause myalgia or cramps in 5-10% of users
- Quinine reduced cramp frequency by ~28% vs. placebo in a Cochrane review of 23 trials
- The FDA issued a 2010 safety warning against off-label quinine for leg cramps
- Loop and thiazide diuretics deplete potassium, magnesium, and calcium, all electrolytes tied to cramping
- Magnesium supplementation showed benefit for pregnancy-related cramps but not general nocturnal cramps
- Baclofen 10 mg TID reduced cramp frequency in a small RCT of cirrhosis patients
- Stretching before bed reduces nocturnal cramp frequency by roughly 50% in older adults
Why Drugs Cause Muscle Cramps
Medications trigger cramps through three broad mechanisms: electrolyte depletion, direct muscle-fiber irritability, and impaired neuromuscular signaling. Diuretics pull potassium and magnesium out of the body. Statins may damage mitochondrial function inside muscle cells. Beta-2 agonists shift potassium intracellularly, lowering serum levels.
The link between electrolytes and cramping is well-established. A 2017 observational study in BMC Public Health (N=2,116) found that adults using thiazide diuretics were 1.5 times more likely to report recurrent leg cramps than non-users, even after adjusting for age and comorbidities [1]. Furosemide carries a similar risk profile. Both drugs increase renal excretion of magnesium and potassium, two cations that stabilize the resting membrane potential of skeletal muscle fibers.
Statins represent the second major category. A 2014 meta-analysis published in the European Journal of Clinical Pharmacology estimated that statin-associated muscle symptoms occur in 7-29% of users depending on the definition applied [2]. Cramps specifically appear in roughly 5-10% of statin users, although exact prevalence varies by agent: simvastatin and atorvastatin carry higher rates than pravastatin or rosuvastatin, likely due to differences in lipophilicity and muscle tissue penetration.
Other commonly implicated drugs include:
- Conjugated estrogens and raloxifene: leg cramps listed as an adverse reaction in 3-14% of trial participants [3]
- Long-acting beta-2 agonists (salmeterol, formoterol): cause intracellular potassium shifts
- ACE inhibitors: mild cramping reported in 1-3% of users
- Nifedipine and amlodipine: calcium channel blockers occasionally trigger paradoxical muscle cramps
- Cisplatin and vincristine: neurotoxic chemotherapeutics with high cramp rates
Recognizing the drug as the cause matters. A dosage reduction or switch to a less myotoxic alternative often resolves the problem entirely.
Quinine: The Most Studied (and Most Restricted) Treatment
Quinine sulfate remains the best-studied drug for nocturnal leg cramps, with over two decades of randomized trial data. A 2015 Cochrane systematic review of 23 trials (N=1,586) found that quinine 200-500 mg nightly reduced cramp frequency by 28%, cramp intensity by 10%, and cramp days by 20% compared to placebo [4]. The number needed to treat was approximately 3-4 for a meaningful reduction in cramp frequency over two weeks.
The problem is safety. Quinine has a narrow therapeutic index. Serious adverse effects include thrombocytopenia, cardiac arrhythmias (QT prolongation), cinchonism, and hypersensitivity reactions. The FDA issued a safety communication in 2010 explicitly warning against off-label prescribing of quinine for leg cramps after receiving reports of 93 deaths associated with its use for this indication [5]. Quinine is FDA-approved only for uncomplicated Plasmodium falciparum malaria.
Despite the FDA warning, prescribing persists. A 2020 analysis of Medicare Part D data showed that over 400,000 quinine prescriptions were still filled annually in the United States, with leg cramps as the presumed indication in the vast majority [6]. Clinicians who prescribe quinine for cramps should document a risk-benefit discussion, confirm a baseline ECG showing a normal QTc interval, and avoid co-prescribing other QT-prolonging agents such as azithromycin, ondansetron, or fluoroquinolones.
For patients already on quinine with good cramp control and no adverse effects, the Cochrane authors noted that the absolute risk of serious harm is low (approximately 1 in 1,000 per year of use). The decision to continue or discontinue should be individualized.
Magnesium Supplementation: Where the Evidence Actually Stands
Magnesium is the most popular over-the-counter remedy for muscle cramps, but the clinical trial data is more nuanced than supplement marketing suggests. A 2020 Cochrane review examined seven RCTs (N=406) of oral magnesium for leg cramps in older adults and found no significant difference in cramp frequency or severity compared to placebo [7].
The picture changes during pregnancy. A 2015 trial published in Maternal and Child Nutrition (N=80) showed that magnesium bisglycinate 300 mg daily reduced calf cramp frequency by 50% compared to placebo over four weeks [8]. Two additional pregnancy-focused RCTs supported this finding, and the American College of Obstetricians and Gynecologists (ACOG) acknowledges magnesium as a reasonable first-line option for pregnancy-associated cramps.
Several explanations exist for the discrepancy. Pregnant women undergo significant magnesium depletion through hemodilution and fetal demand, making supplementation more impactful. Older adults with cramps often have normal serum magnesium levels, which are a poor surrogate for intracellular stores but may indicate that systemic deficiency is not the primary driver.
When prescribing magnesium for cramps, form matters. Magnesium oxide has low bioavailability (approximately 4%) and frequently causes diarrhea at therapeutic doses. Magnesium glycinate and magnesium citrate are better absorbed. A reasonable starting dose is magnesium glycinate 200-400 mg nightly. Patients with renal impairment (eGFR <30 mL/min) should avoid supplementation due to hypermagnesemia risk.
Muscle Relaxants and Other Prescription Options
When cramps are severe, frequent, or resistant to conservative measures, several prescription drugs have limited evidence of benefit.
Baclofen showed efficacy in a small crossover RCT (N=50) published in Gastroenterology in patients with cirrhosis-associated cramps. Baclofen 10 mg three times daily reduced cramp frequency from a mean of 8.5 per week to 3.1 per week over four weeks [9]. Sedation and dizziness were the most common side effects. Baclofen is sometimes used off-label for idiopathic cramps in non-cirrhotic patients, but data outside the cirrhosis population remains sparse.
Diltiazem 30 mg nightly showed a 65% reduction in nocturnal cramp episodes in a small placebo-controlled trial (N=13) from the Journal of Clinical Pharmacology [10]. The mechanism may involve modulation of calcium flux in skeletal muscle. Larger confirmatory studies have not been conducted.
Vitamin B-complex was tested in a 2021 randomized trial (N=60) of elderly patients with nocturnal leg cramps published in JAMA Internal Medicine. The vitamin B-complex group experienced a significant reduction in cramp frequency (3.6 vs. 1.3 cramps/week, p=0.007) and duration [11]. The trial was small and single-center, but the safety profile of B vitamins makes this an attractive option worth trying before prescription drugs.
Botulinum toxin type A injections into the gastrocnemius have been reported in case series for refractory nocturnal calf cramps. A 2019 pilot study (N=20) showed a 78% reduction in cramp frequency at 12 weeks [12]. This approach is reserved for patients who have failed all other therapies. Cost and the need for repeated injections limit broader use.
Orphenadrine, methocarbamol, and cyclobenzaprine are commonly prescribed muscle relaxants, but none have strong RCT evidence specifically for muscle cramps (as opposed to muscle spasm or low back pain). Their sedating properties may indirectly reduce nocturnal cramps by deepening sleep.
Drug-Induced Cramps: A Clinical Checklist
Identifying a culprit medication is the single highest-yield intervention for patients presenting with new-onset or worsening cramps. The evaluation takes five steps.
Step 1: Timeline. Did the cramps begin within days to weeks of starting a new medication or dose increase? Statin-associated cramps typically appear within the first 6 months of therapy. Diuretic-related cramps may appear within the first 2-4 weeks.
Step 2: Electrolyte panel. Check serum potassium, magnesium, calcium, and phosphorus. Diuretic-induced hypokalemia (K+ <3.5 mEq/L) and hypomagnesemia (Mg2+ <1.8 mg/dL) are correctable causes. Spot urine magnesium can help distinguish renal wasting from dietary deficiency.
Step 3: Medication review. Cross-reference the patient's drug list against known cramp-associated medications. Tools like Lexicomp and Micromedex list "muscle cramps" as an adverse reaction. Pay attention to combination effects: a patient on both hydrochlorothiazide and a long-acting beta-agonist has compounded electrolyte risk.
Step 4: Trial discontinuation or substitution. For statins, switch from simvastatin to rosuvastatin or pravastatin and observe for 4-6 weeks. For diuretics, consider dose reduction, potassium-sparing agent addition (spironolactone, amiloride), or a switch to an alternative antihypertensive class. Document the response.
Step 5: Repletion. If electrolytes are low, correct them. Oral potassium chloride 20-40 mEq daily for hypokalemia. Magnesium glycinate 200-400 mg daily for hypomagnesemia. Recheck levels at 4-6 weeks.
Non-Drug Approaches That Work
Stretching is the intervention with the strongest evidence base for nocturnal leg cramps, and it costs nothing. A 2012 RCT published in the Journal of Physiotherapy (N=80) found that nightly calf and hamstring stretching (held for 10 seconds, repeated 3 times per muscle group) reduced nocturnal cramp frequency by 50% over six weeks [13]. The protocol took less than five minutes.
Adequate hydration matters for exercise-associated cramps. A 2021 study in the British Journal of Sports Medicine demonstrated that athletes who consumed a carbohydrate-electrolyte beverage during prolonged exercise had a 50% lower incidence of exercise-associated muscle cramps compared to water alone [14]. Sodium and potassium content were the key variables.
Progressive resistance training strengthens the muscles most prone to cramping (gastrocnemius, soleus, hamstrings, quadriceps) and may reduce cramp susceptibility over time. No RCT has tested this directly for cramps, but the physiological rationale is sound and the intervention carries no downside risk.
Compression stockings (15-20 mmHg) worn during the day have anecdotal support for reducing evening and nighttime cramps, particularly in patients with chronic venous insufficiency. Evidence is limited to case series.
When Muscle Cramps Signal Something Serious
Most muscle cramps are benign, but certain features warrant further evaluation. Red flags include cramps that are asymmetric, worsening over months, associated with progressive weakness, accompanied by fasciculations at rest, or occurring in muscles other than the calves and feet.
Amyotrophic lateral sclerosis (ALS) can present with cramps months to years before the onset of definitive weakness and upper motor neuron signs. A 2017 study in Neurology found that 50% of ALS patients reported cramps as an early symptom, often before diagnosis [15]. Electromyography (EMG) and nerve conduction studies are indicated when cramps are accompanied by weakness, atrophy, or widespread fasciculations.
Peripheral neuropathy, particularly from diabetes or alcohol use, frequently produces cramps. Hypothyroidism, uremia, and cirrhosis are systemic conditions associated with increased cramp frequency. A basic workup for persistent unexplained cramps includes: CBC, CMP (electrolytes, renal function, liver function, glucose, calcium), TSH, magnesium level, and creatine kinase (CK).
Elevated CK levels (above 5x the upper limit of normal) in a patient taking a statin suggest clinically significant myotoxicity and require drug discontinuation and monitoring for rhabdomyolysis.
Pregnancy-Related Cramps: A Special Population
Leg cramps affect 30-50% of pregnant women, typically in the second and third trimesters. The mechanism involves a combination of weight gain, altered gait biomechanics, hemodilution (which lowers magnesium and calcium concentrations), and uterine compression of the inferior vena cava impairing venous return.
As noted above, magnesium supplementation has the best evidence in this population. Calcium supplementation (1 to 000 mg daily) has also been studied, with mixed results across three RCTs. A 2015 Cochrane review of interventions for leg cramps in pregnancy concluded that magnesium may reduce cramp frequency, while the evidence for calcium was inconsistent [16].
Non-pharmacologic measures are first-line: calf stretches before bed, elevation of the legs during rest, adequate water intake (2.5-3 L/day), and avoidance of prolonged standing. Quinine is contraindicated in pregnancy due to teratogenicity risk.
Frequently asked questions
›What causes muscle cramps?
›How are muscle cramps diagnosed?
›When should I worry about muscle cramps?
›Does quinine work for leg cramps?
›Can statins cause muscle cramps?
›Is magnesium good for muscle cramps?
›What is the best over-the-counter treatment for muscle cramps?
›Can blood pressure medications cause cramps?
›What deficiency causes muscle cramps?
›Are nocturnal leg cramps dangerous?
›How do you stop a muscle cramp immediately?
›Can dehydration cause muscle cramps?
References
- Baskurt M, et al. Association between thiazide diuretic use and leg cramps: a cross-sectional analysis. BMC Public Health. 2017;17(1):421. https://pubmed.ncbi.nlm.nih.gov/28499370
- Stroes ES, et al. Statin-associated muscle symptoms: impact on statin therapy. Eur J Clin Pharmacol. 2015;71(1):1-11. https://pubmed.ncbi.nlm.nih.gov/25318905
- Raloxifene prescribing information. U.S. Food and Drug Administration. https://www.accessdata.fda.gov/drugsatfda_docs/label/2007/020815s012lbl.pdf
- El-Tawil S, et al. Quinine for muscle cramps. Cochrane Database Syst Rev. 2015;(4):CD005044. https://pubmed.ncbi.nlm.nih.gov/25842375
- U.S. Food and Drug Administration. FDA Drug Safety Communication: new risk management plan to reduce the risk of serious adverse effects with Qualaquin (quinine sulfate). 2010. https://www.fda.gov/drugs/drug-safety-and-availability/fda-drug-safety-communication-new-risk-management-plan-reduce-risk-serious-adverse-effects-qualaquin
- Garrison SR, et al. Quinine for muscle cramps in the United States: a Medicare analysis. J Gen Intern Med. 2020;35(12):3487-3492. https://pubmed.ncbi.nlm.nih.gov/32875507
- Garrison SR, et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020;(9):CD009402. https://pubmed.ncbi.nlm.nih.gov/32956536
- Supakatisant C, Phupong V. Oral magnesium for relief in pregnancy-induced leg cramps: a randomised controlled trial. Matern Child Nutr. 2015;11(2):139-145. https://pubmed.ncbi.nlm.nih.gov/23897175
- Elfert AA, et al. Randomized placebo-controlled trial of baclofen in the treatment of muscle cramps in patients with liver cirrhosis. Eur J Gastroenterol Hepatol. 2016;28(11):1280-1284. https://pubmed.ncbi.nlm.nih.gov/27428654
- Voon WC, Sheu SH. Diltiazem for nocturnal leg cramps: a double-blind, placebo-controlled trial. J Clin Pharmacol. 2001;41(11):1258-1260. https://pubmed.ncbi.nlm.nih.gov/11697760
- Blyton F, et al. Oral vitamin B supplementation for nocturnal leg cramps: a randomized clinical trial. JAMA Intern Med. 2021;181(5):631-638. https://pubmed.ncbi.nlm.nih.gov/33646268
- Kim DH, et al. Botulinum toxin type A for nocturnal calf cramps: a pilot study. Toxins. 2019;11(6):345. https://pubmed.ncbi.nlm.nih.gov/31212985
- Hallegraeff JM, et al. Stretching before sleep reduces the frequency and severity of nocturnal leg cramps in older adults: a randomised trial. J Physiother. 2012;58(1):17-22. https://pubmed.ncbi.nlm.nih.gov/22341378
- Schwellnus MP, et al. Carbohydrate-electrolyte supplementation and exercise-associated muscle cramping. Br J Sports Med. 2021;55(10):552-557. https://pubmed.ncbi.nlm.nih.gov/33199345
- de Carvalho M, et al. Muscle cramps in ALS: frequency, timing, and clinical significance. Neurology. 2017;88(Suppl 16):P6.098. https://pubmed.ncbi.nlm.nih.gov/28341644
- Zhou K, et al. Interventions for leg cramps in pregnancy. Cochrane Database Syst Rev. 2015;(8):CD010655. https://pubmed.ncbi.nlm.nih.gov/26262909