Muscle cramps and spasms

Muscle Cramps and Spasms

What are muscle cramps?

A muscle cramp is a strong, painful contraction or tightening of a muscle that comes on suddenly and lasts from a few seconds to several minutes. It often occurs in the legs. A muscle cramp is also called a charley horse.

Nighttime leg cramps are usually sudden spasms, or tightening, of muscles in the calf. The muscle cramps can sometimes happen in the thigh or the foot. They often occur just as you are falling asleep or waking up.

How are muscle cramps treated?

If cramps keep coming back, bother you a lot, or interfere with your sleep, your doctor may prescribe medicine that relaxes your muscles.

Talk with your doctor if you have muscle cramps that keep coming back or are severe. These may be symptoms of another problem, such as restless legs syndrome.

How can you care for yourself when you have muscle cramps?

  • Drink plenty of fluids to prevent dehydration. Choose water and other clear liquids until you feel better. If you have kidney, heart, or liver disease and have to limit fluids, talk with your doctor before you increase the amount of fluids you drink.
  • Stretch your muscles every day, especially before and after exercise and at bedtime. Regular stretching can relax your muscles and may prevent cramps.
  • Do not suddenly increase the amount of exercise you get. Increase your exercise a little each week.
  • When you get a cramp, stretch and massage the muscle. You can also take a warm shower or bath to relax the muscle. A heating pad placed on the muscle can also help.
  • Ask your doctor if you can take an over-the-counter pain medicine, such as acetaminophen (Tylenol), ibuprofen (Advil, Motrin), or naproxen (Aleve). Be safe with medicines. Read and follow all instructions on the label.

Muscle cramps: When to call

Watch closely for changes in your health, and be sure to contact your doctor if:

  • You get muscle cramps often that do not go away after home treatment.
  • Your muscle cramps often wake you up at night.
  • You do not get better as expected.

©2011-2025 Healthwise, Incorporated

The content above contains general health information provided by Healthwise, Incorporated, and reviewed by its medical experts. This content should not replace the advice of your healthcare provider. Not all treatments or services described are offered as services by us. For recommended treatments, please consult your healthcare provider.

Joint replacement surgery

Request an appointment

Hand, wrist and elbow procedures

Request an appointment.

Foot and ankle treatment

Get specialized care.

Expert spine surgery

Learn more