Dismiss Modal

Types

Muscle Spasm

Choose a preferred language

A muscle spasm (also called a cramp) is an involuntary muscle contraction. The muscle or muscle group tightens quickly and strongly. A hard lump may form in the muscle. Muscle spasms can be very painful. Here's how to treat and prevent muscle spasms.

Outline of right lower leg showing calf muscles contracting in a spasm.


What causes muscles to spasm?

Often, the cause of a muscle spasm is not known. Muscle spasm is caused by irritation of muscle fibers. Some things can make a muscle spasm more likely. These include:

  • Injury

  • Heavy exercise

  • Overtired muscles

  • A muscle held in 1 position for a long time

  • Dehydration

  • Low levels of certain minerals in the body

  • Certain medicines, such as water pills (diuretics)

  • Certain health conditions, such as kidney failure or diabetes

  • Pregnancy


Stopping a muscle spasm

Muscle spasms often come and go quickly. When a muscle goes into spasm, very gently stretch and massage the muscle. This may help calm the muscle fibers. Then rest the muscle.


Preventing muscle spasms

There is little or no evidence that staying hydrated, taking certain vitamins or minerals, or stretching works to prevent cramps. But these measures may still help and have other benefits. Talk to your healthcare provider about steps to take to prevent muscle spasms. Try to:

  • Drink enough fluids to prevent dehydration, especially when you exercise.

  • Take vitamin or mineral supplements.

  • Get regular exercise.

  • Stretch regularly, especially before exercise.

  • Limit caffeine and smoking.

  • Take a prescription muscle relaxant if prescribed by your provider.


When to call your healthcare provider

Call your healthcare provider if you have any of the following:

  • Severe cramping

  • Cramping that lasts a long time, does not go away with stretching, or keeps coming back

  • Pain, tingling, or weakness in the arms or legs

  • Pain that wakes you up at night

© 2000-2025 The StayWell Company, LLC. All rights reserved. This information is not intended as a substitute for professional medical care. Always follow your healthcare professional's instructions.

Make an Appointment

Make an Appointment

Find a Doctor

Find a Doctor

Find a Location

Find a Location

Related Services

Orthopedics Center

Related Articles
Read article
Orthopedics
Hand Bruise

A bruise causes swelling and some bleeding under the skin. Learn how to care for it at home and when to call for help.

Read article
Orthopedics
Leg or Arm Fracture

Any fracture to the leg or arm should be considered a medical emergency. Here's what you need to know about getting the correct treatment.

Read article
Orthopedics
Elbow Fracture

A break or fracture of the elbow means you have a crack or break in one or more of the bones of the elbow joint. Here's how to care for the fracture as it heals.

Read article
Orthopedics
Understanding Bone Bruise (Bone Contusion)

A bone bruise is an injury to a bone that is less severe than a bone fracture. Bone bruises are fairly common. They can happen to people of all ages. Any type of bone in your body can get a bone bruise.