Merck Manual

Please confirm that you are not located inside the Russian Federation

honeypot link
Quick Facts

Muscle Cramps


The Manual's Editorial Staff

Last full review/revision Oct 2019| Content last modified Oct 2019
Click here for the Professional Version
Get the full details
Topic Resources

What are muscle cramps?

Muscle cramps are pain in your muscles when they suddenly tighten. Muscle cramps last from a few seconds to several minutes.

  • Muscle cramps usually come on without warning

  • Muscle cramps are common in healthy people, especially middle-aged and older people

  • Cramps can happen during or right after hard exercise, or while you're in bed at night

  • Muscle cramps very rarely are a symptom of a nerve problem

What causes muscle cramps?

Common causes of muscle cramps:

  • Harmless cramps that happen for no reason

  • Exercise (either during exercise or right after)

You're more likely to get cramps if:

  • Your calf muscles are tight from not stretching

  • You sit for long periods of time

  • You don't have enough minerals (electrolytes) in your blood, which can happen if you take diuretics (water pills), are in your last months of pregnancy, or have problems such as low vitamin D or alcoholism

  • You're on dialysis for kidney problems

  • Your thyroid doesn’t make enough hormone (hypothyroidism)

  • You take certain medicines

When should I see a doctor for muscle cramps?

See a doctor right away if you have muscle cramps and any of these warning signs:

  • Cramps in your chest, arms, or belly

  • Weakness or losing feeling in parts of your body

  • Muscle twitches

  • Cramps started after you lost a lot of body fluids from throwing up, sweating a lot, having diarrhea, or taking diuretics (medicine that makes you urinate [pee] more)

Call your doctor in 1 to 2 days if:

  • You frequently have leg cramps that come while walking and go away as soon as you stop

  • Your cramps started after you began taking a new medicine

  • You have alcoholism

What will happen at my doctor visit?

Your doctor will ask about your symptoms and do a physical exam.

Sometimes, doctors will do blood tests to check for other problems that can be causing your symptoms.

How do doctors treat muscle cramps?

If your cramps are caused by another health problem, doctors will treat that problem.

If your cramps are the harmless but painful kind, you can relieve them by:

  • Stretching the muscle

For example, if the cramp is in your calf, stretch your calf by pulling your toes up toward your head (the runner's stretch).


Runner's Stretch

If you get a muscle cramp in your calf you can stretch the muscle by using your hand to pull your foot upward or by doing a runner’s stretch:

  • Stand with one leg in front of the other with both heels touching the ground

  • Place your hands on a wall for balance

  • Gently bend the knee of your front leg until you feel a stretch in the back of your other leg

  • Hold this stretch while you count to 30, then relax and straighten the knee of your front leg

  • Repeat the knee bend and stretch for a total of 5 times (for each leg)

  • Switch so that your other leg is now in front, then repeat the knee bend and stretch again

How can I prevent muscle cramps?

  • Gently stretch your muscles before you exercise or go to bed

  • After you exercise, drink water and other fluids (especially sports drinks, which have electrolytes)

  • Don’t do a lot of hard exercise right after you eat

NOTE: This is the Consumer Version. DOCTORS: Click here for the Professional Version
Click here for the Professional Version


Symptoms of Brain, Spinal Cord, and Nerve Disorders
Others also read

Test your knowledge

Non-Hodgkin Lymphomas
Non-Hodgkin lymphomas are a group of cancers that develop in white blood cells known as lymphocytes. Although there are more than 50 different disorders that can be called non-Hodgkin lymphoma, doctors sometimes group them into two broad categories: indolent lymphomas and aggressive lymphomas. Which of the following is characteristic of aggressive non-Hodgkin lymphomas? 
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