Merck Manual

Please confirm that you are a health care professional

honeypot link

Muscle Cramps


Michael C. Levin

, MD, College of Medicine, University of Saskatchewan

Last full review/revision Jan 2019| Content last modified Jan 2019
Click here for Patient Education
Topic Resources

A muscle cramp (charley horse) is a sudden, brief, involuntary, painful contraction of a muscle or group of muscles. Cramps commonly occur in healthy people (usually middle-aged and elderly people), sometimes during rest, but particularly during or after exercise or at night (including during sleep). Leg cramps at night usually occur in the calf and cause plantar flexion of the foot and toes.

Other disorders can simulate cramps:

  • Dystonias can cause muscle spasm, but symptoms are usually more sustained and recurrent and involve muscles other than those affected by typical leg cramps (eg, neck, hand, face, muscles throughout the body).

  • Tetany can cause muscle spasm, but spasm is usually more sustained (often with repetitive brief muscle twitches); it is usually bilateral and diffuse, but isolated carpopedal spasm may occur.

  • Muscle ischemia during exertion in patients with peripheral arterial disease (claudication) may cause calf pain, but this pain is due to inadequate blood flow to muscles, and the muscles do not contract as with a cramp.

  • Illusory cramps are the sensation of cramps in the absence of muscle contraction or ischemia.

Causes of Muscle Cramps

The most common types of leg cramps are

  • Benign idiopathic leg cramps (leg cramps in the absence of a causative disorder, typically at night)

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

Although almost everyone has muscle cramps at some time, certain factors increase the risk and severity of cramps. They include the following:

  • Tight calf muscles (eg, due to lack of stretching, inactivity, or sometimes chronic lower leg edema)

  • Dehydration

  • Electrolyte abnormalities (eg, low body levels of potassium or magnesium)

  • Neurologic or metabolic disorders

  • Drugs

Also, certain toxins can cause muscle cramps.


Some Drugs and Disorders Associated With Muscle Cramps


Suggestive Findings

Diagnosis Confirmed by


Contributory drugs: Angiotensin II receptor blockers, cisplatin, clofibrate, diuretics, donepezil, drugs with beta-adrenergic agonist effects (including bronchodilators and some beta-blockers), lovastatin, oral contraceptives, pyrazinamide, raloxifene, stimulants (eg, amphetamines, caffeine, cocaine, ephedrine, nicotine, pseudoephedrine), teriparatide, tolcapone, vincristine

Withdrawal syndromes: Alcohol, barbiturates, benzodiazepines, sedative-hypnotics

In patients taking a causative drug

Clinical evaluation, including sometimes trial of withdrawal of suspected drug


Extracellular fluid volume depletion and/or electrolyte abnormalities (eg, ionized hypocalcemia, low body potassium or magnesium)

Sometimes excessive sweating, vomiting, diarrhea, use of a diuretic, signs of dehydration

Sometimes occurring during or after hemodialysis or during late pregnancy (probably related to low body magnesium)

Sometimes serum potassium, magnesium, and/or ionized calcium

Metabolic disorders (eg, alcoholism, hypothyroidism)

Alcoholism: History of overuse; sometimes ascites, gynecomastia, spider angiomas, testicular atrophy

Hypothyroidism: Cold intolerance, constipation, fatigue, sluggish reflexes

Alcoholism: Clinical evaluation

Hypothyroidism: Thyroid function testing


Weakness, sensory loss, pain, and/or hyporeflexia in a peripheral nerve, plexus, or nerve root distribution


In motor neuron disease, weakness that begins in one hand or foot

Clinical evaluation

Sometimes EMG, nerve conduction studies, and/or spinal cord MRI

Musculoskeletal abnormalities

Tight calf muscles, a history of prolonged sitting

In patients with structural disorders (eg, flat feet, genu recurvatum)

Clinical evaluation

Exercise-associated muscle cramping

Cramping of involved muscles during exercise or in the few hours after exercise

Clinical evaluation

Benign idiopathic leg cramps

Unprovoked and unexplained cramps, typically in calf muscles and at night

Usually tight calf muscles

Clinical evaluation

EMG = electromyography.

Evaluation of Muscle Cramps

Evaluation of muscle cramps focuses on recognition of what is treatable. In many cases, a disorder contributing to cramps has already been diagnosed or causes other symptoms that are more troublesome than cramps.

Cramps must be differentiated from claudication and dystonias; clinical evaluation is usually adequate.


History of present illness should elicit a description of cramps, including their duration, frequency, location, apparent triggers, and any associated symptoms. Symptoms that may be related to neurologic or muscle disorders can include muscle stiffness, weakness, pain, and loss of sensation. Factors that can contribute to dehydration or electrolyte or body fluid imbalances (eg, vomiting, diarrhea, excessive exercise and sweating, recent dialysis, diuretic use, pregnancy) are recorded.

Review of systems should seek symptoms of possible causes, including the following:

Past medical history should include any disorders that can cause cramps. A complete drug history, including use of alcohol, is taken.

Physical examination

General examination should include the skin, looking for stigmata of alcoholism, nonpitting edema or loss of eyebrow hair (suggesting hypothyroidism), and changes in skin moisture or turgor. A neurologic examination, including deep tendon reflexes, is done.

Pulses should be palpated, and BP measured in all extremities. A weak pulse or low ankle:brachial BP ratio in an affected limb may indicate ischemia.

Red flags

The following findings are of particular concern:

  • Upper extremity or truncal involvement

  • Hyperreflexia

  • Muscle weakness

  • Fasciculations

  • Signs of alcoholism

  • Hypovolemia

  • Pain or loss of sensation in a peripheral nerve, plexus, or root distribution

Interpretation of findings

Focal cramps suggest benign idiopathic leg cramps, exercise-associated muscle cramping, musculoskeletal abnormalities, peripheral nervous system causes, or an early degenerative disorder that can be asymmetric, such as a motor neuron disorder.

Focal hyporeflexia suggests a peripheral neuropathy, plexopathy, or radiculopathy.

In patients with diffuse cramps (particularly those who are tremulous), hyperreflexia suggests a systemic cause (eg, ionized hypocalcemia; sometimes alcoholism, a motor neuron disorder, or a drug, although effects on deep tendon reflexes can vary by drug). Generalized hyporeflexia can suggest hypothyroidism and sometimes alcoholism or be a normal finding, particularly in the elderly.

A normal examination and compatible history suggests benign idiopathic leg cramps or exercise-associated muscle cramping.


Testing is done as indicated by abnormal clinical findings. No tests are routinely done.

Blood glucose, renal function tests, and electrolyte levels, including calcium and magnesium, should be measured if patients have diffuse cramps of unknown cause, particularly if hyperreflexia is present.

Ionized calcium and ABGs (to confirm respiratory alkalosis) are measured if patients have tetany.

Electromyography is done if cramped muscles are weak.

MRI of the brain and often spinal cord is done if muscle weakness or neurologic signs are focal.

Treatment of Muscle Cramps

  • Stretching

Underlying conditions are treated when identified.

If a cramp occurs, stretching the affected muscles often relieves the cramp. For example, to relieve a calf cramp, patients can use their hand to pull the toes and foot upward (dorsiflexion).

Prevention of Muscle Cramps

Measures to prevent cramps include the following:

  • Not exercising immediately after eating

  • Gently stretching the muscles before exercising or going to bed

  • Drinking plenty of fluids (particularly beverages that contain potassium) after exercise

  • Not consuming stimulants (eg, caffeine, nicotine, ephedrine, pseudoephedrine)

  • Not smoking

The runner’s stretch is most useful. A person stands with one leg forward and bent at the knee and the other leg behind and the knee straight―a lunge position. The hands can be placed on the wall for balance. Both heels remain on the floor. The knee of the front leg is bent further until a stretch is felt along the back of the other leg. The greater the distance between the two feet and the more the front knee is bent, the greater the stretch. The stretch is held for 30 sec and repeated 5 times. The set of stretches is repeated on the other side.

Most of the drugs often prescribed to prevent cramps (eg, calcium supplements, quinine, magnesium, benzodiazepines) are not recommended. Most have no demonstrated efficacy. Quinine has been effective in some trials but is no longer recommended because of occasional serious side effects (eg, arrhythmias, thrombocytopenia, thrombotic thrombocytopenic purpura [TTP] and hemolytic-uremic syndrome [HUS], severe allergic reactions). Mexiletine sometimes helps, but whether using it is worth the risk of adverse effects is unclear. These effects include nausea, vomiting, heartburn, dizziness, and tremor.

Some athletic coaches and physicians recommend pickle juice for muscle cramping, but data concerning its efficacy are insufficient.

Key Points

  • Leg cramps are common.

  • The most common causes are benign idiopathic leg cramps and exercise-associated muscle cramping.

  • Cramps must be differentiated from claudication and dystonias; clinical evaluation is usually adequate.

  • Stretching can help relieve and prevent cramps.

  • Drug therapy is usually not recommended.

Drugs Mentioned In This Article

Drug Name Select Trade
No US brand name
Click here for Patient Education
NOTE: This is the Professional Version. CONSUMERS: Click here for the Consumer Version


Professionals also read

Test your knowledge

Numbness is defined as loss of sensation, either partial or complete. Numbness can occur from dysfunction anywhere along the pathway from the sensory receptors up to the cerebral cortex. A patient with dysfunction in which of the following CNS areas is most likely to present with facial and body numbness on the same side, plus an inability to perceive multiple stimuli of the same type simultaneously?
Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID

Also of Interest

Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID