Foot Cramps

Medically Reviewed by Carmelita Swiner, MD on November 12, 2022

What Are Foot Cramps?

Foot cramps are when a muscle in your foot suddenly squeezes and can’t relax.

They’re usually harmless. Often, you can take care of the pain yourself at home.

Though you might get a foot cramp because of exercise or other activity, it can just as easily happen when you’re sitting still or sleeping.

Foot Cramp Symptoms

The feeling you get with a foot cramp can range from a slight tic to an intense spasm that causes a lot of pain. You also might notice:

  • Your muscle feels very hard and tense.
  • You can see it twitching inside your foot.

A cramp may last only a few seconds, or it may go on for up to 15 minutes or more.

Foot Cramp Treatment

When your foot muscle tightens up, try these tips to help it relax:

  1. If you’re sitting or lying down, stand up and put weight on your cramping foot.
  2. Actively lift your foot and toes, pulling them up toward your nose. (If standing, walk on your heels.) You can also stretch the muscles by grabbing your foot with your hand or wrapping a towel, necktie, or belt around the ball of your foot and toes, pulling the foot further up toward your nose.
  3. Rub your muscle gently as you stretch it. Try putting ice on the area while you massage it.
  4. If ice is not working, put heat on the cramped muscle with a warm towel or heating pad. You can also soak it in warm water.

You can also take an over-the-counter pain reliever like ibuprofen to help any leftover aches go away.

Foot Cramp Prevention

One key to keeping cramps at bay is to keep your body limber and healthy. Here's how:

Stretch. Warm up your muscles, especially when you know you’ll be using them for a long time. Stretch before and after you exercise. If you tend to get leg cramps at night, make sure to stretch before you go to bed. Doing a few minutes of light exercise, like stationary bike riding, before you sleep can help your muscles relax better while you sleep, too.

Hydrate. Plenty of water throughout the day can help ward off cramps. Your body’s cells are happier when they have lots of fluids. Drink more when you’re more active, or when the weather is hot or dry. Keep the water coming. That'll help you and your muscles stay hydrated and relaxed.

Eat a healthy diet. Fill your plate with colorful fruits and vegetables. Be sure to get plenty of calcium, potassium, and magnesium. (Bananas are a good bet.) Cut back on alcohol, too. That can dehydrate you and make you cramp up.

Check your medications. Some come with a side effect of muscle cramps. Even if you can’t switch what you take, you’ll know where your cramps are coming from. That'll make you better prepared to step up other measures to prevent the pain.

Focus on your footwear. Do you spend a lot of time in heels or other uncomfortable shoes? Make sure your wardrobe isn’t behind your foot woes.

If your foot cramps cause a lot of pain or won’t go away, give your doctor a call. There may be another cause to treat.

Show Sources


American Orthopaedic Society for Sports Medicine: “Muscle Cramp.”

Cleveland Clinic: “Don’t Let Foot Cramps and Charley Horses Slow You Down.”

Mayo Clinic: “Muscle Cramp.”

© 2022 WebMD, LLC. All rights reserved. View privacy policy and trust info