Skip to main content

Emergency? Call 911

The Health InitiativeTelehealth in Puerto Rico
Book from $35 (Doctor visit, $79)

Telehealth menu

The Health Initiative
Book a visit

$79Doctor visitCharged when you request

Symptoms

Muscle cramps: why they happen and how to relieve them

Is this an emergency?

This is not an emergency service. Call 911 or go to the nearest emergency room if you have:

  • Calf pain with a swollen, red or warm leg
  • Severe muscle pain with dark (red or cola-colored) urine or passing little urine
  • Cramps with confusion, very hot skin or fainting in the heat
  • Severe muscle weakness that keeps you from walking

Warning signs: when to go to the ER

Muscle cramps are muscle contractions that don’t let go on their own, most often in the calf or thigh. They usually come from overusing a muscle, dehydration or heat, and they ease with stretching and massage. If they keep coming back, the doctor reviews your medicines and, if needed, gives you a lab order for blood tests.

Other names: Leg cramps, Charley horse, Muscle spasm

Can we help by telehealth?YesWe can help by telehealth.
$79Doctor visit

Pay now, then choose your time right away. Full refund if you cancel 24 hours or more ahead.

See the cancellation policy

You can cancel for a full refund or change the time up to 24 hours before your visit. Within 24 hours you can't cancel and there's no refund. If you don't join in the first 10 minutes, there's no refund.

If you choose a time less than 24 hours away, it can't be cancelled or changed.

If the clinic can't see you, for example because of a technical problem on our side, we refund you in full.

Possible causes

What are muscle cramps?

A cramp is when a muscle tightens without you trying to tighten it, and it doesn’t relax. The muscle feels hard or bulging and it hurts. According to MedlinePlus, the most common places are the back of the lower leg (the calf) and the back and front of the thigh; cramps also happen in the feet, hands, arms, belly and along the ribs.

They are very common and can usually be stopped by stretching the muscle.

Your doctor

Dr. Diana Nieves Castro, MD

General practice physician

Several years of emergency-department experience.

Founding Executive Director of The Health Initiative.

Meet the doctor

Causes of muscle cramps

According to MedlinePlus, cramps can come from:

  • Overusing or injuring a muscle, for example during exercise
  • Dehydration and low minerals such as sodium, potassium or calcium. In Puerto Rico’s heat, heavy sweating makes them more likely: see heat cramps and heat stroke and dehydration
  • Medicines: diuretics (water pills) can lower potassium; cholesterol statins are among the medicines that rarely cause serious muscle damage
  • An underactive thyroid: see hypothyroidism
  • Kidney problems: see high creatinine
  • Pregnancy and menstruation
  • Heavy drinking

How to stop a cramp

MedlinePlus recommends:

  • Stopping the activity and stretching the muscle: for the calf, straighten your leg and pull your toes toward you
  • Massaging the muscle
  • Using heat when the cramp starts, and ice once the pain has improved
  • If the muscle is still sore, an over-the-counter anti-inflammatory may help
  • Drinking water; if you sweated a lot, a sports drink helps replace minerals

Leg cramps at night

Many leg cramps strike at night and wake you with a hard, knotted calf. The causes are the same as above: a day of hard work or long hours on your feet, too little water, heavy sweating in the heat, or a medicine such as a diuretic.

When one hits, sit or stand, straighten your leg and pull your toes toward you until the muscle lets go, then massage it. To have fewer, drink enough water during the day and make calf stretches part of your routine. If cramps wake you several nights a week, an evaluation and a blood test are worth it.

How to prevent leg cramps

To have fewer cramps, MedlinePlus advises exercising within your ability, drinking plenty of fluids while you exercise, eating foods with potassium (such as orange juice and bananas) and stretching to improve flexibility.

How we help by video

You see Dr. Diana Nieves Castro, a Puerto Rico-licensed general practice physician with several years of emergency-department experience, in English or Spanish. She asks when the cramps started, how long they last, how often they happen, which muscles, whether you have had vomiting, diarrhea or heavy sweating, whether you are pregnant, which medicines you take and whether you exercise hard or drink alcohol.

We evaluate, diagnose and treat. If the cramps are severe or keep coming back, we give you a lab order for a lab near you: electrolytes (potassium, calcium, magnesium), kidney function, thyroid and glucose. We check whether any of your medicines could be causing them. If appropriate, the doctor prescribes and we send your prescription to your pharmacy.

Quinine is not for cramps: according to MedlinePlus, it should not be used to treat or prevent nighttime leg cramps, because it has not been shown to work and can cause serious side effects.

Doctor online 24/7: if cramps wake you at night, video visits are available around the clock on your phone or computer. An online doctor visit has the same price for every age.

When a cramp is an emergency

Go to the ER if you have:

  • Calf pain that won’t go away, with a swollen, red or warm leg: it may be a blood clot, not a cramp. See swollen legs
  • Severe muscle pain with dark urine (red or cola-colored) or passing little urine, especially after hard exercise, heat or a fall: it may be rhabdomyolysis, a muscle injury that damages the kidneys
  • Cramps with confusion, very hot skin or fainting in the heat: it may be heat stroke, call 911

Frequently asked questions

Why do I get leg cramps at night?

They can come from overusing the muscle during the day, dehydration, low minerals or a medicine such as a diuretic. Stretch the muscle when it happens and drink enough water during the day. If they happen often, the doctor gives you a lab order for testing.

What helps muscle cramps fast?

Stop, stretch the muscle (for the calf, pull your toes toward you) and massage it; use heat at first and ice once the pain eases. To prevent them: fluids, foods with potassium and regular stretching. Quinine is not recommended for cramps.

Why do I get foot cramps?

According to MedlinePlus, cramps also happen in the feet, and the causes are the same as in the legs: overusing the muscle or long hours on your feet, dehydration, low minerals such as sodium, potassium or calcium, or a medicine such as a diuretic. Stretch your foot by pulling your toes toward you and massage it. If they keep coming back, the doctor gives you a lab order for blood tests.

What vitamin or mineral am I missing if I get cramps?

MedlinePlus mentions sodium, potassium and calcium, and blood tests can also check magnesium. Don’t take supplements blindly: a blood test shows what is low.

When should I worry about muscle cramps?

See a doctor if they are severe, don’t go away with stretching, keep coming back or last a long time. Go to the ER if your calf is swollen and warm, or your urine is dark after hard exercise.

Can cholesterol medicines cause cramps?

Statins are among the medicines that, rarely, cause a serious muscle injury. If you take one and have new muscle pain, don’t stop it on your own: the doctor evaluates you and reviews your treatment.

Related topics

About this page

Author: The Health Initiative

Medical care provided by Dr. Diana Nieves Castro, MD (PR license 24027)

Disclosure: Founding Executive Director of The Health Initiative

Published: 2026-10-02 · Updated: 2026-10-11