India
General Medicine · 6 min read

Muscle cramps: causes, relief, prevention and which doctor to see

Why muscles cramp, how to ease a cramp quickly, how to prevent night leg cramps, the warning signs of something more serious, and which doctor to see.

Also known as: Charley Horse; Cramps; Leg Cramps

Written by The Doctor Index
Original article for readers in India · updated 08 Oct 2026
08 Oct 2026
Clinically reviewed
Nalina Shanthi, Registered Nurse · Karnataka State Nursing Council KNC144008
12 Oct 2026
This is not medical advice. If symptoms are severe, sudden or getting worse, call 112 (or 108 for an ambulance) or go to the nearest emergency department.

What a muscle cramp is

A muscle cramp is a sudden, painful tightening of a muscle that you cannot relax at will. The muscle may feel rock-hard and you may see or feel a knot under the skin. Most cramps last from a few seconds to several minutes and then ease on their own, sometimes leaving the muscle sore for a day.

Cramps are extremely common and are usually harmless. They most often affect the calf, the back of the thigh and the feet, but can occur in the front of the thigh, hands, arms, abdomen and the muscles along the ribs. Many people know a calf cramp at night simply as a leg cramp or, in older English, a charley horse.

Symptoms

  • Sudden muscle pain, often sharp and severe
  • A hard knot in the muscle that you can feel or see
  • Toes or foot pulled into an odd position during a foot or calf cramp
  • Night leg cramps that wake you from sleep
  • Muscle soreness or tenderness for hours or a day afterwards

A cramp is different from the slow, aching pain of an overworked muscle, from the crawling urge to move the legs at night seen in restless legs, and from the pain in the calf on walking that eases with rest, which can be a sign of poor circulation in peripheral arterial disease. A calf that stays painful, swollen, warm and red is not a cramp and may be a blood clot, known as deep vein thrombosis.

Causes and who is at risk

Often no single cause is found, especially for night cramps in older adults. Common causes and contributors include:

  • Overusing or straining a muscle, or exercising hard when unfit — the most common cause
  • Dehydration and loss of salts through sweat, for example working outdoors in summer heat, long sport sessions, or after vomiting and diarrhoea
  • Low levels of salts such as potassium, calcium or magnesium in the blood
  • Sitting or standing in one position for long periods, or sleeping with the feet pointed down
  • Pregnancy, especially in the later months
  • Older age
  • Certain medicines, including some water tablets (diuretics), some cholesterol medicines and some asthma medicines; check with your doctor rather than stopping them
  • Medical conditions such as diabetes with nerve damage, thyroid problems, kidney disease and dialysis, liver disease and nerve compression from a slipped disc
  • Poor blood supply to the leg muscles

In India, long hours of standing at work, outdoor labour in hot weather and inadequate fluid intake are common real-life triggers. People with diabetes should mention cramps to their doctor, as they can be part of diabetic nerve problems.

How to ease a cramp

Most cramps can be relieved at home within minutes:

  • Stretching the muscle gently is the most effective step. For a calf cramp, straighten the knee and pull the toes up towards you, or stand and lean forward against a wall with the cramped leg straight behind you and the heel on the floor.
  • For a cramp in the back of the thigh, sit with the leg straight and lean forward from the hips. For the front of the thigh, hold a chair for balance and gently pull the foot up behind you.
  • Massage the muscle firmly with your hands while it relaxes.
  • Apply heat or ice: a warm towel or bath helps a tight muscle; an ice pack wrapped in cloth helps soreness afterwards.
  • Take fluids if you have been sweating heavily or are unwell with diarrhoea; oral rehydration solution, coconut water or buttermilk with a pinch of salt replace both water and salts.
  • Walk around on the leg once the cramp starts to ease.

Preventing cramps

  • Stretch the calves and thighs before and after exercise, and gently before bed if you get night leg cramps
  • Build up exercise gradually rather than suddenly doing much more than usual
  • Drink enough water through the day, more in hot weather and when exercising or doing physical work
  • Avoid sitting with legs crossed or standing still for long stretches; move and flex the ankles regularly
  • Keep bedding loose over the feet so the toes are not pushed into a pointed position
  • Wear comfortable, supportive footwear
  • Limit alcohol, which can contribute to dehydration

Do not start magnesium, calcium or other supplements for cramps on your own. The evidence that they help most people is weak, and some are unsafe with kidney disease or certain medicines. A doctor may check your levels first.

How a doctor assesses cramps

For occasional cramps after exercise, no tests are usually needed. If cramps are frequent, severe or unexplained, a doctor will ask about your medicines, work, exercise, fluids and other illnesses, examine the muscles, nerves and pulses in the legs, and may arrange:

  • Blood tests for salts such as potassium, calcium and magnesium, kidney and liver function, blood sugar and muscle enzymes
  • Thyroid tests, as an underactive thyroid (hypothyroidism) can cause cramps and muscle aches
  • Nerve conduction studies if weakness, numbness or muscle twitching suggests a nerve problem

Treatment

Most people need nothing beyond stretching and fluids. When cramps have a cause, treating it usually helps: correcting low salts, treating thyroid disease, better control of diabetes, or a medicine review to change a drug that may be responsible. A physiotherapist can teach a regular stretching programme. Medicines to prevent cramps are sometimes prescribed for severe, frequent cramps, but they do not always work and can have side effects, so discuss the risks and benefits with your doctor. Quinine, once commonly used, is no longer recommended for routine leg cramps because of serious side effects.

When to see a doctor or get urgent help

See a doctor if cramps:

  • Are severe, happen often, or disturb your sleep night after night
  • Do not improve with stretching and drinking enough fluids
  • Come with muscle weakness, wasting, twitching or numbness
  • Began after starting a new medicine

Call 112 or 108, or go to the nearest emergency department, if you have a painful, swollen, red or warm calf with sudden breathlessness or chest pain, which can mean a blood clot has travelled to the lungs; or severe muscle pain and weakness with very dark, cola-coloured urine after extreme exertion, heat or a crush injury.

Which doctor to see

A general physician is the right first doctor for frequent or unexplained cramps, because the usual causes involve fluids, salts, medicines, diabetes, thyroid or kidney function. Depending on the findings, you may be referred to a neurologist for nerve problems, an orthopaedic surgeon for spine or joint problems, or a physiotherapist.

You can find general physicians in Bengaluru or physiotherapists in Bengaluru on The Doctor Index, each with a registration you can check.

Common questions

Questions people ask

Why do I get leg cramps at night?
Night leg cramps are common, especially with age and in pregnancy. Often no cause is found, but tired muscles, dehydration, sitting for long periods and some medicines play a part. Stretching the calves before bed and drinking enough fluids during the day often help.
Are muscle cramps a sign of calcium or vitamin deficiency?
Sometimes low calcium, potassium or magnesium cause cramps, but most cramps are not due to a deficiency. Instead of guessing with supplements, ask a doctor to check your blood levels if cramps are frequent or unexplained.
Are cramps in pregnancy normal?
Leg cramps are common in pregnancy, particularly in the later months and at night. Gentle stretching, staying active and drinking enough usually help. Tell your doctor if a calf is swollen, red or painful between cramps, as that needs checking.
Should I see an orthopaedic doctor for cramps?
Usually a general physician is the better first stop, because most cramps relate to fluids, salts, medicines or conditions like diabetes and thyroid disease. An orthopaedic surgeon is useful if a spine, joint or muscle injury is suspected.
Find a doctor for Muscle Cramps

This condition is usually assessed by a general physician. Every profile shows the doctor’s registration and what has been checked.

General physicians in Bangalore

A few general physicians listed on The Doctor Index. They are shown because of their speciality, not a stated interest in Muscle Cramps; ask the clinic whether the doctor sees it.

Dr Dayanashre N
General physician
3 yrs since practice start · English, Hindi, Telugu, Kannada
PRESTIGE SHANTHINIKETAN - SOCIETY CLINIC, Bengaluru · ₹500 · In person / Online
Registration verifiedQualification verifiedPractice not yet confirmedUnclaimed
Dr Gowtham B R
General physician
7 yrs since practice start · English, Hindi, Kannada
Apollo Clinic, Indiranagar, Old Airport Road · ₹600 · In person / Online
Registration verifiedQualification verifiedPractice not yet confirmedUnclaimed
Dr Lavanya A K
General physician
18 yrs since practice start · English, Hindi, Telugu, Tamil, Kannada, Marathi
Dr. Lavanya's Clinic, Harlur Road · ₹400 · In person / Online
Registration verifiedQualification verifiedPractice not yet confirmedUnclaimed
Dr Mahalaxmi Bhat
General physician
5 yrs since practice start · English, Hindi, Kannada
Apollo Clinic, Indiranagar, Old Airport Road · ₹800 · In person / Online
Registration verifiedQualification verifiedPractice not yet confirmedUnclaimed

All general medicine conditions →

Practical reading

All posts

Sources

Muscle cramps: causes, relief, prevention and which doctor to see is original text by The Doctor Index; the compiled source draft was used for research. Source: MedlinePlus, National Library of Medicine. Orphadata Science: Free access data from Orphanet. © INSERM 1999; July 2026 data, CC BY 4.0. This product uses the Human Phenotype Ontology (hp/releases/2026-09-01). Only sources listed for this article apply. Source material has been selected and arranged; HPO definitions are reproduced without alteration. No source organisation endorses this compilation. Köhler S et al. The Human Phenotype Ontology project: linking molecular biology and disease through phenotype data. Nucleic Acids Research 2014;42(D1):D966–D974. doi:10.1093/nar/gkt1026.

General information, not advice about your situation. Errors can be reported through the corrections process. Reference TDI-C-1632.