Health information to help you understand symptoms. It isn't a diagnosis.
Check symptoms

Muscle cramp or charley horse

Also called: Charley horse, leg cramp, muscle spasm, night cramps

A muscle cramp, or charley horse, is a sudden, tight, painful tightening of a muscle that won't relax. Cramps most often hit the calf, thigh, or foot and usually last seconds to a few minutes. They're common during exercise, at night, in pregnancy, and when you're dehydrated. Stretching usually stops them.

Common causesOveruse, dehydration, low minerals, pregnancy, medicines
Usually serious?Usually not
Get checked ifCramps are severe, frequent, or come with swelling or weakness
If you think it's an emergency, call 911.Thinking about suicide? Call or text 988.

Overview

During a cramp, the muscle tightens on its own and doesn't relax. It may feel hard or bulging. The calf (back of the lower leg) and the back of the thigh are the most common spots. Many people get leg cramps at night.

Most cramps come from overusing a muscle, not drinking enough, or losing minerals through sweat. They're harmless and go away in a few minutes. Cramps that are very frequent, or come with weakness, swelling, or redness, may have another cause.

When to get medical care

Call 911Not usually an emergency. Call 911 for severe muscle pain with very dark urine and weakness after intense exercise, heat, or a crush injury.
Get care todayA painful, swollen, warm, or red calf that doesn't go away (possible blood clot). Cramps with severe weakness. Cramps with confusion or a very high temperature during heat exposure.
See a doctor soonCramps that are severe or don't go away with stretching. Cramps that keep coming back or last a long time. Cramps with muscle weakness. Cramps that started after a new medicine.

Causes

Common causes include overusing a muscle during exercise, not drinking enough fluids, losing salt and minerals through heavy sweating, staying in one position for a long time, and pregnancy. Other causes include low potassium, magnesium, or calcium, medicines like water pills (diuretics) and statins, an underactive thyroid, kidney failure or dialysis, alcohol use disorder, poor blood flow to the legs, nerve problems like a pinched nerve in the back, and diabetes.

OwieClear has pages on 5 conditions that can cause muscle cramp or charley horse. Each shows how soon to get care.

Common causes

Less likely causes

What you can do at home

  • Stop what you're doing and gently stretch and massage the cramping muscle. For a calf cramp, pull your toes toward your knee.
  • Use heat to relax a tight muscle when the cramp begins, and ice once the pain has eased.
  • Drink plenty of fluids, and try a sports drink if you've been sweating a lot.
  • Eat foods with potassium, like bananas and orange juice.
  • Stretch before bed if you get cramps at night, and keep your sheets loose around your feet.
  • Exercise within your ability and build up slowly.

Medicines

Ibuprofen (Advil, Motrin) or other NSAIDs can help with soreness after a cramp. There's no proven over-the-counter medicine to prevent cramps; quinine is no longer recommended because of serious side effects. If cramps are severe, a doctor may prescribe other medicines or check your medicines and mineral levels.

At the doctor

Most cramps don't need a doctor. If they're frequent or severe, the doctor will look for a cause.

Questions you may be asked

  • When the cramps started and how long they last
  • How often they happen and which muscles
  • What you were doing, and whether they happen at night
  • How much you drink and exercise
  • Your medicines
  • Whether you could be pregnant

The exam

A physical exam of the muscles, nerves, and circulation in your legs.

Tests

  • Blood tests for potassium, calcium, magnesium, kidney function, and thyroid
  • A pregnancy test
  • Nerve and muscle tests (EMG) in some cases

Prevention

You can prevent many cramps.

  • Stretch regularly, especially before exercise and bedtime
  • Drink enough water before, during, and after exercise
  • Increase activity gradually
  • Eat a diet with plenty of potassium, calcium, and magnesium

Check your symptoms

Most symptoms have more than one possible cause. The symptom checker looks at all of your symptoms together, plus your age, and shows how soon to get care.

Start the symptom checker

Sources

Last updated 2026-11-13.

See something wrong or unclear on this page? Suggest a correction. OwieClear is for education only and isn't medical advice.