Side Effects

Leg Cramps

Cancer and cancer treatment may cause leg cramps and other types of muscle cramps. Understanding the cause of leg cramps and learning how to manage them can help you feel better.

What are leg cramps?

Leg cramps or spasms are painful tightening of the muscles in the leg, ankle, or foot. They can happen at night or during the day. Cramps can affect your sleep, comfort, and ability to do daily activities.

What causes leg cramps?

Leg cramps in people who have cancer can be caused by cancer, cancer treatments, or other health problems.

Common causes of leg cramps

  • Some medicines used to treat bone loss
  • Being in bed or being inactive for longer than usual
  • Overusing certain muscles
  • Sudden changes in the temperature
  • Peripheral neuropathy or other nerve damage
  • Dehydration
  • Changes in blood chemistry, especially low or high levels of phosphorus, calcium, glucose (sugar), or potassium

Leg problems can also be caused by other health problems.

 Cancer-related causes of leg cramps

  • Tumors that start in a muscle or press on a muscle
  • Too many white blood cells (leukocytosis)
  • Treatment for low white blood cell count (neutropenia)

Chemo and hormone therapies that can cause leg cramps

Other cancer treatments that can cause leg cramps

Finding the cause of leg cramps

Your cancer care team may order lab tests to check for electrolyte imbalances or other health problems. Treating the underlying cause can help prevent leg cramps.

Symptoms of leg cramps

  • Sudden pain or discomfort your leg or foot
  • A tight or stiff muscle
  • Trouble moving your foot, or pain when moving your foot or leg
  • Soreness after the cramp that lasts for a few hours
  • Changes in your quality of sleep if leg cramps happen at night.

When to call 911 or get emergency care

Call 911 or your local emergency number or have someone take you to the nearest emergency room if you have:

  • Symptoms of a blood clot, including a cramped leg that becomes red, swollen, hard tender, or warm
  • Pain in the chest, arm, back, shoulder, or jaw, sudden coughing, increased heart rate, or feeling light-headed

What are ways I can manage leg cramps?

These tips can help you manage leg cramps. Not every tip will work for everyone so try the ones that fit your needs. Talking to your care team about your leg cramps, when they happen, and what daily activities they affect can help them suggest tips to try.

|

  • Drink fluids throughout the day to prevent dehydration.
  • Avoid alcohol and caffeine.

Stretching the affected muscle helps to provide rapid relief. To do this, straighten the affected leg and pull your toes toward your shin. Or you can stand with one foot flat on the floor and lean forward.

Daily stretching may help prevent leg cramps.

  • Apply heat or cold to the area when legs cramp. Or take a hot shower or warm bath. Check the temperature of the water or heat or cold pack before to prevent burns or injury, especially if you have nerve damage (peripheral neuropathy).
  • Massage your leg if your care team says this is OK.

  • Try to be physically active.
  • Prop bed covers up or use a bed cradle to protect the legs and feet from the weight of the blankets when in bed.  A bed cradle is a support at the end of the bed that holds the sheets and blankets up off the legs and feet.
  • Bend and straighten your legs several times each day. A caregiver can help move your legs if you can’t.
  • Gently stretch your leg muscles before lying down. Ask your care team if there are specific stretches you should do.
  • Keep your legs warm and change your position often.

A caregiver can help with the following.

  • Help to move and exercise your loved one’s legs throughout the day if they are not able to do this on their own.
  • Gently stretch your loved one’s tight muscle when the cramp happens or throughout the day to prevent them. Ask the cancer care team what stretches would be helpful.
  • Apply a heat or cold pack to the cramped muscle. Ask the cancer care team which they think would be most helpful.  
  • Make sure medicines are taken as directed if they are prescribed by the care team. Watch your loved one in case they become dizzy or unsteady.
  • Contact the cancer care team if your loved one has cramping that’s not relieved by cold, heat, massage, or by stretching the cramped muscle.

How are leg cramps treated?

If methods to manage leg cramps do not work, you may need help from your care team. The main goal of treating leg cramps is to quickly relieve the cramp and the pain it causes.

Medicines

Medicines may be used when other methods are not helpful.

  • Mineral and vitamin supplements, such as potassium and vitamin B complex, might be recommended to balance electrolytes.
  • Medicines might be used to treat leg cramps caused by another health condition, such as diabetes.
  • Your provider may stop certain medicines or change the dose if they may cause leg cramps. Do not stop any medicines before talking to your care team.
  • Your provider may prescribe other medicines, such as gabapentin, diltiazem, baclofen when other medicines or treatments have not worked.  

When to call your care team about leg cramps

Call your care team if you have:

  • Cramps that affect your sleep at night
  • Frequent, painful cramps

side by side logos for American Cancer Society and American Society of Clinical Oncology

Developed by the American Cancer Society medical and editorial content team with medical review and contribution by the American Society of Clinical Oncology (ASCO).

 

National Comprehensive Cancer Network (NCCN). NCCN Clinical Practice Guidelines in Oncology (NCCN Guidelines). Palliative care. v3.2026. Accessed at https://www.nccn.org on October 13, 2026.

National Comprehensive Cancer Network (NCCN). NCCN Clinical Practice Guidelines in Oncology (NCCN Guidelines). Survivorship. V3.2026. Accessed at  https://www.nccn.org on October 14, 2026.

Patient education: Nocturnal (nighttime) leg cramps (the basics). UpToDate. Accessed at https://www.uptodate.com/contents/nocturnal-nighttime-leg-cramps-the-basics on October 14, 2026.

Winkelman J. Nocturnal muscle cramps. UpToDate. Updated October 16, 2025. Accessed at https://www.uptodate.com/contents/nocturnal-muscle-cramps on October 14, 2026. 

Last Revised: November 24, 2026

American Cancer Society Emails

Sign up to stay up-to-date with news, valuable information, and ways to get involved with the American Cancer Society.