brand logo

Am Fam Physician. 2012;86(4):350-355

Patient information: See related handout on leg cramps, written by the authors of this article.

Author disclosure: No relevant financial affiliations to disclose.

Up to 60 percent of adults report that they have had nocturnal leg cramps. The recurrent, painful tightening usually occurs in the calf muscles and can cause severe insomnia. The exact mechanism is unknown, but the cramps are probably caused by muscle fatigue and nerve dysfunction rather than electrolyte or other abnormalities. Nocturnal leg cramps are associated with vascular disease, lumbar canal stenosis, cirrhosis, hemodialysis, pregnancy, and other medical conditions. Medications that are strongly associated with leg cramps include intravenous iron sucrose, conjugated estrogens, raloxifene, naproxen, and teriparatide. A history and physical examination are usually sufficient to differentiate nocturnal leg cramps from other conditions, such as restless legs syndrome, claudication, myositis, and peripheral neuropathy. Laboratory evaluation and specialized testing usually are unnecessary to confirm the diagnosis. Limited evidence supports treating nocturnal leg cramps with exercise and stretching, or with medications such as magnesium, calcium channel blockers, carisoprodol, or vitamin B12. Quinine is no longer recommended to treat leg cramps.

Leg cramps (charley horses) are a common nocturnal symptom that can be difficult to manage because of uncertainties about etiology, appropriate diagnostic evaluation, and optimal treatment. Nocturnal leg cramps are reported by 50 to 60 percent of adults and by approximately 7 percent of children. They are slightly more common in women, and the prevalence increases with age. Up to 20 percent of patients who experience leg cramps have daily symptoms that are bothersome enough for the patient to seek medical attention.13

Clinical recommendationEvidence ratingReferences
Patient history should be used to diagnose nocturnal leg cramps; routine laboratory tests, such as electrolyte levels, are unnecessary.C7
Passive stretching and deep tissue massage may be suggested as a therapeutic trial for nocturnal leg cramps.C19, 20
Quinine should not be used to treat nocturnal leg cramps.C11, 21
Carisoprodol (Soma), diltiazem, gabapentin (Neurontin), magnesium, orphenadrine (Norflex), verapamil, and vitamin B12 complex may be useful in some patients with nocturnal leg cramps.C2226

Clinical Features

Leg cramps are painful and incapacitating, lasting an average of nine minutes per episode. The acute episode may be followed by hours of recurrent episodes and residual pain. Leg cramps are usually nocturnal and are associated with secondary insomnia. The posterior calf muscles usually are involved, but cramps of the foot and thigh also are common. Leg cramps may be described as a spasm, tightening, twinge, strain, tetany, swelling, or muscle seizure. Cramps may be isometric or may cause limb movement, such as extreme plantar flexion of the foot.

Pathophysiology and Etiology

The precise mechanism of leg cramps is unknown, but several myopathic, neurologic, and metabolic causes have been suggested. Most cases of leg cramps are idiopathic.

Electromyographic studies suggest that leg cramps originate in the lower motor neurons with hyperactive, high-frequency, involuntary nerve discharge.4 Some scientists hypothesize that our “civilized” lifestyle no longer requires repetitive squatting that stretches the leg tendons and muscles.5 Others have suggested that in the nocturnal recumbent position, the foot is passively in plantar flexion and the calf muscle fibers are already maximally shortened, so uninhibited nerve stimulation leads to cramping.6

Exercise research suggests that muscle fatigue is a primary cause of leg cramps. Studies of endurance athletes show that a higher-than-normal intensity of exercise is associated with leg cramps.7,8 The mechanism of this association remains unclear. Nerve dysfunction or damage has been suggested as a cause of leg cramps because of the high prevalence in patients with neurologic conditions such as parkinsonism. Metabolic causes are suggested by the high prevalence in patients undergoing hemodialysis that is associated with hyperphosphatemia, but not with hyper- or hypocalcemia. Patients with low parathyroid hormone levels who are undergoing hemodialysis have a lower-than-expected incidence of leg cramps.9

Neither exercise-related cramps nor nocturnal cramps have been associated with hypovolemia (caused by dehydration) or disturbances of electrolytes such as potassium, sodium, and magnesium.7,8 One study of patients with nonalcoholic cirrhosis demonstrated that leg cramps are not related to changes in the levels of creatinine, calcium, magnesium, sodium, potassium, zinc, glucose, alanine transaminase, total bilirubin, or albumin.10

Muscle cramps are reported as an adverse effect for hundreds of medications, but only a few are specific to the legs. Medication-related leg cramps are most commonly associated with intravenous iron sucrose, conjugated estrogens, raloxifene (Evista), naproxen (Naprosyn), and teriparatide (Forteo), although the overall incidence is very low (Table 1).11 Leg cramps also have been reported in studies of medications such as clonazepam (Klonopin), citalopram (Celexa), celecoxib (Celebrex), gabapentin (Neurontin), and zolpidem (Ambien), which, ironically, are used to treat leg cramps. A recent study found an association between leg cramps and the use of quinine in the year following new prescriptions for diuretics, statins, and inhaled long-acting beta2 agonists. However, the study was complicated by worsening disease states (such as vascular disease) and by increased patient-physician contact.12 Diuretics, such as hydrochlorothiazide, are commonly believed to cause leg cramps secondary to electrolyte abnormalities, but they have not been implicated in evidence-based reviews.

DrugPercentage of patients reporting leg cramps
Intravenous iron sucrose23
Raloxifene (Evista)5.9 to 12.1
Conjugated estrogens3.5 to 14
Naproxen (Naprosyn)3
Teriparatide (Forteo)2.6
Daclizumab (not available in the United States)2
Levalbuterol (Xopenex)2
Albuterol/ipratropium (Combivent)1.4
Pregabalin (Lyrica)> 1
Bromocriptine (Parlodel), bupropion (Wellbutrin), celecoxib (Celebrex), cetirizine (Zyrtec), chromium, cinacalcet (Sensipar), ciprofloxacin (Cipro), citalopram (Celexa), clonazepam (Klonopin), donepezil (Aricept), eszopiclone (Lunesta), fluoxetine (Prozac), gabapentin (Neurontin), lansoprazole (Prevacid), rivastigmine (Exelon), sertraline (Zoloft), telmisartan (Micardis), zolpidem (Ambien)< 1

Several medical conditions are associated with leg cramps (Table 2). A study of outpatient veterans reported leg cramps in 75 percent of those with peripheral vascular disease, 63 percent of those with hypokalemia, and 62 percent of those with coronary artery disease.2 About 60 percent of patients with cirrhosis reportedly have leg cramps, most of whom are older patients with advanced disease.10 Leg cramps have been linked to neurologic diseases such as parkinsonism and peripheral neuropathy. Lumbar canal stenosis also is associated with leg cramps.13 Nerve damage from cancer treatment may be a cause of legs cramps, with a small study demonstrating that leg cramps were present in 82 percent of patients with cancer.14 Hemodialysis is linked to cramps, but chronic kidney disease is not. Venous insufficiency is also linked to leg cramps, but research has not demonstrated that cramps are caused by tissue hypoxia or toxic metabolites, and treatment of venous insufficiency has not been shown to relieve cramps.15 Pregnancy historically has been associated with leg cramps, although it is difficult to differentiate pregnancy itself as the primary cause as opposed to venous insufficiency.16

Cancer treatment
Cardiovascular disease
End-stage renal disease and hemodialysis
Lumbar canal stenosis
Neurologic deficit
Peripheral neuropathy
Peripheral vascular disease
Venous insufficiency

Diagnostic Evaluation

The patient history is the key to identifying the possible cause of leg cramps. Nocturnal occurrence, visible muscle tightening, and sudden, intense pain are typical manifestations. The description of symptoms should differentiate leg cramps from other common conditions (Table 3).

ConditionClinical featuresDiagnosisTreatment
  • Aching, sometimes cramping, deep pain brought on by exercise; relieved with rest

  • History

    Atherosclerotic risk factors

    Ankle-brachial index

    Radiographic studies

  • Risk factor modification

    Graded exercise

    Invasive interventions

Exercise-associated muscle cramping
  • Painful cramps during or immediately after exercise

  • Palpable muscle tightening

  • History

  • Graded exercise and stretching

Hypnic myoclonus
  • Sudden involuntary jerking at the onset of sleep

  • May awaken the patient

  • History (from bed partner)

  • Reassurance

Myositis, myalgias
  • Deep, aching pain unrelated to exertion

  • Weakness and poor exercise tolerance

  • Often occurs in legs, but can affect any muscle

  • History

    Elevated creatinine kinase levels (myositis)

    Statin use

    Evaluation for polymyositis and dermatomyositis

  • Treat underlying cause

    Discontinue statin

Periodic limb movement disorder
  • Nonpainful, repetitive, rhythmic, slow dorsiflexion of toes, knees, and hips during sleep

  • Daytime fatigue

  • Patient is unaware

  • History (from bed partner)


  • Sleep modification, including medications

Peripheral neuropathy
  • Numbness, tingling, and “electrical” pain with possible secondary cramps

  • Unrelated to exercise, time of day, or sleep

  • History

    Diabetes mellitus, low vitamin B12 level, alcoholism, human immunodeficiency virus infection


    Nerve biopsy

  • Treat underlying condition

    Pain medications, anticonvulsants, tricyclic antidepressants

Restless legs syndrome
  • Irresistible urge to move or shake the legs, usually in the evening; relieved by movement

  • Uncomfortable, but not painful

  • No visible muscle cramping

  • History

  • Dopaminergic drugs

Restless legs syndrome is marked by an irresistible urge to move or shake the legs and does not cause pain or tight muscles. Despite these marked differences, studies have shown difficulty in distinguishing restless legs syndrome from leg cramps.17 Claudication is an aching, sometimes cramping, muscle symptom brought on by exercise and relieved with rest. Hypnic myoclonus is a sudden jerk that often occurs at the onset of sleep. Periodic limb movement disorder is a nonpainful, repetitive, rhythmic, slow dorsiflexion of the toes, knees, and hips during sleep. The movements last for seconds and recur at intervals of seconds to about one minute. Peripheral neuropathy is described primarily as numbness, tingling, and “electrical” pain, with possible secondary cramps. Myalgias and myositis, which sometimes occur with statin therapy, can manifest in any muscle group and lead to deep, aching pain, weakness, and poor exercise tolerance.18 Exercise-associated muscle cramping occurs during or immediately after exercise. Localized muscle fatigue is known to cause cramps, and may arise in a sedentary person with straining or exercise. Conversely, patients in good physical condition may experience leg cramps with a change in the intensity of their exercise routine.

The history must include a review of medications (Table 111 ) and existing medical conditions. Although associated medical conditions are important to identify and discuss, no data suggest that treatment of these conditions improves symptoms of leg cramps.

Physical examination rarely demonstrates leg cramps because they are involuntary, unpredictable, and usually nocturnal. Examination findings may indicate a potential underlying medical cause, such as peripheral vascular disease. Appropriate examination includes inspection of the legs and feet, palpation of pulses, and evaluation of touch and pinprick sensation, strength, and deep tendon reflexes. Blood pressure should be measured to assess cardiac and vascular risk factors. Neurologic disease may also manifest as tremor, gait disturbance, or asymmetry.

Routine blood tests are not helpful in the diagnosis because leg cramps have no proven association with electrolyte abnormalities, anemia, glucose levels, thyroid function, or kidney disease.7 In specific patients, selected blood tests may be indicated to identify underlying medical conditions, such as liver enzyme levels for cirrhosis, cholesterol levels for cardiovascular disease, and vitamin B12 levels for related neuropathy. Similarly, other diagnostic studies such as nerve conduction studies, ultrasonography, and angiography are not necessary unless indicated to confirm specific medical conditions.


No current treatments for leg cramps have been proven both safe and effective. Passive stretching and deep tissue massage are harmless, patient-controlled maneuvers that may be suggested as a therapeutic trial despite limited proof of effectiveness. One randomized study of patients discontinuing quinine showed no effect from stretching; however, gastrocnemius stretching has long been recommended to prevent leg cramps.19,20 Forceful stretching also is thought to inhibit and relieve an acute cramp, and the mechanism of dorsiflexing the foot may be helpful. Anecdotal evidence suggests that mild exercise, such as a few minutes on a stationary bicycle or treadmill before bedtime, can relieve nocturnal leg cramps. If muscle fatigue is a cause, graded exercise and/or physical therapy might be of benefit for some patients.19,20

Quinine has shown some effectiveness for nocturnal leg cramps but is no longer recommended. In 2010, the U.S. Food and Drug Administration issued a warning about multiple drug interactions with quinine, and stated that the potential for serious adverse effects outweighs the modest benefit of the drug.21 Fatal hypersensitivity reactions and thrombocytopenia affect a small percentage of patients taking quinine, but can occur unpredictably after a single dose. Cardiac arrhythmias, cinchonism (causing headache, tinnitus, and dizziness), and hemolytic uremic syndrome can occur from toxic levels of quinine.21,22

Small studies have shown some benefit from other medications. Because of the low quality of evidence, no medication can be recommended for routine treatment of leg cramps; however, carisoprodol (Soma), diltiazem, gabapentin, orphenadrine (Norflex), verapamil, and vitamin B12 complex may be considered in some patients.2225 Magnesium has shown mixed benefit in nonpregnant adults, and some positive results for treatment of leg cramps in pregnancy.25,26 Multivitamins and sodium supplementation also have shown benefit in pregnant women, although the potential risk of hypertension with sodium supplementation should be recognized.16 No evidence supports the routine use of nonsteroidal anti-inflammatory drugs, potassium, or calcium.

There is no research on how treating underlying medical conditions impacts the symptom of leg cramps. Nevertheless, the occurrence of “leg cramps” is an important opportunity for family physicians to diagnose and treat conditions such as venous insufficiency, peripheral vascular disease, and peripheral neuropathy. Differentiating leg cramps from restless legs syndrome may be challenging,17 and a trial of dopaminergic drugs is a reasonable approach for a patient with mixed symptoms. Figure 1 is an algorithm for the evaluation and treatment of nocturnal leg cramps.

Data Sources: We searched PubMed using the search term leg cramps. We examined clinical trials, randomized clinical trials, meta-analyses, and review articles, as well as the bibliographies of selected articles. Cochrane and Essential Evidence Plus were also searched. Search dates: September and October 2011.

Continue Reading

More in AFP

More in PubMed

Copyright © 2012 by the American Academy of Family Physicians.

This content is owned by the AAFP. A person viewing it online may make one printout of the material and may use that printout only for his or her personal, non-commercial reference. This material may not otherwise be downloaded, copied, printed, stored, transmitted or reproduced in any medium, whether now known or later invented, except as authorized in writing by the AAFP.  See permissions for copyright questions and/or permission requests.