Skip to main content
General practice·General practice

Muscle Cramp

Overview

A muscle cramp is a sudden, tight tightening of a muscle that you cannot control. The muscle feels hard and locked, and it hurts. It usually lasts from a few seconds to a few minutes, then slowly eases. Cramps most often happen in the calf, foot or thigh, but they can affect the hands, arms and belly too. Most cramps are harmless, even though they can be very painful at the time.

Key facts

  • A cramp is a muscle that suddenly tightens and will not relax. It is not a sign of weakness.
  • Most cramps settle on their own within minutes and can be helped by gentle stretching and massage.
  • Night cramps in the legs are very common, especially in older adults and during pregnancy.
  • Cramps are sometimes a clue to another problem, such as dehydration, nerve pressure, or a side effect of a medicine. Your doctor can help you check.

Yes, very common. Most people get a muscle cramp at some point in their life, and leg cramps at night affect a large number of adults, especially as they get older.

Anyone can get muscle cramps. They are more likely in people who exercise hard or sweat a lot, people who sit or stand in one position for a long time, pregnant women, older adults, and people with certain long-term health conditions or who take certain medicines.

Symptoms

Call emergency services immediately if you notice:
  • A cramp or severe muscle pain with chest pain, shortness of breath, sweating or feeling faint
  • Sudden face drooping, arm weakness or slurred speech, even if it seems to start with a 'cramp'
  • Severe muscle pain, weakness and dark brown or cola-coloured urine after heavy exercise or heat exposure
  • Muscle cramps with a high fever, stiff neck, confusion or a rash that does not fade when pressed
  • Cramping with severe dehydration, confusion, very little urine, or collapse
  • Severe pain and swelling after an injury, with a limb that looks bent or cannot be moved
See a doctor urgently (same day) if you notice:
  • ⚠A hot, red, swollen or tender leg, especially if one leg is bigger than the other
  • ⚠Cramps with numbness, tingling, weakness or loss of feeling in the limb
  • ⚠Cramps that keep returning many times a day or are getting worse over days or weeks
  • ⚠Cramps with unexplained weight loss, night sweats or feeling generally unwell
  • ⚠Cramps that cause falls or make it hard to walk safely
  • ⚠Leg pain that comes on with walking and stops when you rest

Common symptoms

  • A sudden, sharp pain in a muscle, often the calf, foot or thigh
  • The muscle feels hard, tight and knotted, and you can see or feel a lump
  • The muscle will not relax when you try to stretch it
  • The pain eases over seconds to minutes, but the area may stay sore for hours or a day
  • Cramps often come at night, during or just after exercise, or when you are resting
  • Small twitches or a 'jumping' feeling in the muscle just before or after a cramp

Symptoms in children

  • Children often get cramps in the legs after running, playing sport or growth spurts
  • Young children may cry, hold their leg, or say their leg 'hurts' rather than describe a cramp
  • Cramps in children are usually short and harmless, but see a doctor if they are frequent or affect daily life
  • Leg pain with fever, limping, swelling or refusal to walk needs to be checked the same day

Symptoms in older adults

  • Night cramps in the calves and feet are especially common
  • Cramps may last longer and leave the muscle sore for a day or more
  • Cramps can be linked to some medicines, poor circulation, dehydration or nerve problems
  • Cramps can disturb sleep and increase the risk of tripping or falling if they happen while standing
  • A cramp that comes on with walking and eases with rest can be a sign of narrowed leg arteries and should be checked

Causes

Main causes

  • Muscle tiredness or overuse, especially during or after exercise
  • Dehydration and losing salts through sweat, heat or illness
  • Holding one position for a long time, such as sitting at a desk or standing still
  • Night cramps, where the muscle tightens during sleep for no clear reason
  • Pregnancy, especially in the later months
  • Nerve pressure or nerve damage, for example from a back problem or diabetes
  • Narrowed arteries in the legs, which can cause cramping pain when walking
  • An imbalance of salts or minerals in the blood, or a thyroid or kidney problem
  • Side effects of some medicines, including some used for blood pressure, heart problems or high cholesterol. Never stop a medicine on your own — ask your doctor or pharmacist first.

Risk factors

  • Being pregnant
  • Being over 60 years old
  • Doing lots of intense exercise, particularly in hot weather
  • Not drinking enough fluid or not eating a balanced diet
  • Sitting or standing for long periods, or having a job that involves repetitive movement
  • Having diabetes, thyroid problems, kidney disease or liver disease
  • Having conditions that affect the nerves or blood flow in the legs
  • Taking certain prescription medicines such as water tablets (diuretics) or cholesterol-lowering tablets
  • Drinking a lot of alcohol

When to see a doctor

See a doctor urgently if:

  • You have a hot, red, swollen leg or calf
  • You have cramps with numbness, weakness or tingling
  • You have cramps with chest pain or breathlessness — call your local emergency number first
  • You have severe pain with dark urine after exercise or in hot weather
  • You have cramps with a high fever or feel very unwell
  • A cramp has not eased after 10 to 15 minutes of stretching and massage

Book a routine appointment if:

  • Cramps happen often and disturb your sleep or daily life
  • Cramps started around the time you began a new medicine
  • You get cramps in several parts of your body
  • You have leg pain when walking that eases with rest
  • Cramps are getting worse over weeks or months
  • Self-care steps are not helping
Most muscle cramps last only a few minutes, settle with gentle stretching, and are not a sign of anything serious. It is still worth mentioning them at your next routine appointment if they keep coming back.

Diagnosis

A doctor can usually tell what is causing cramps just by talking to you and examining you. They will ask when and where the cramps happen, how long they last, what you were doing at the time, your other health conditions and all the medicines you take, including anything you buy without a prescription. The physical exam checks your muscles, nerves, pulses and blood flow. Often no tests are needed at all.

Tests that may be done

  • Blood tests to check your salt and mineral levels, blood sugar, kidney function and thyroid
  • A urine test to check for infection or dehydration
  • A blood test to check for muscle damage if the pain is severe or came on after very hard exercise
  • A check of the pulses and blood flow in your legs, and sometimes an ultrasound scan of the leg arteries
  • Nerve tests if the doctor suspects a nerve problem
  • A review of your medicines to see if one of them could be the cause

What to expect at your appointment

You will usually have a short appointment with a doctor or nurse. Keep a simple diary for a week or two before you go — note the time of day, which muscle, what you were doing, how long it lasted and what helped. This makes it much easier to spot a pattern. If you need tests, results are often back within a few days to a couple of weeks.

Treatment

Most muscle cramps are treated with simple self-care. The main steps are to stretch the muscle when a cramp starts, keep well hydrated, and look for anything that might be triggering the cramps. If a cause is found — such as a medicine side effect, dehydration, or a thyroid or circulation problem — treating that cause usually helps the cramps too.

Self-care at home

  • Stretch the muscle gently as soon as the cramp starts. For a calf cramp, straighten your leg and pull your toes gently towards you
  • Massage the muscle firmly but gently until it loosens
  • Apply a warm compress or take a warm bath to relax the muscle
  • Stand up and walk slowly, or gently move the joint, once the worst pain has passed
  • Drink water regularly through the day, and more in hot weather or during exercise
  • Eat regular balanced meals that include fruit, vegetables, dairy or dairy alternatives, beans and nuts
  • Do gentle stretches of the calf and foot muscles before bed if you get night cramps
  • Warm up before exercise and cool down afterwards
  • Wear comfortable, well-fitting shoes and avoid standing still for long periods
  • Keep a diary of when cramps happen so you can spot triggers

Medical treatments

Treatment depends on the cause. Your doctor may review your medicines and suggest a different option if one you take could be causing cramps. They may arrange tests and treat any underlying condition, such as a thyroid problem, diabetes or poor circulation. Physiotherapy can help with stretching and muscle strength. For some people with frequent night cramps, a doctor may discuss a medicine, but this is only after checking for other causes, and they will explain the possible benefits and side effects first. Never start, stop or change a medicine without talking to your doctor or pharmacist.

When is surgery considered?

Surgery is almost never used for muscle cramps. In rare cases, surgery or a procedure may be offered if a specific cause is found — for example, a narrowed leg artery — and this would be discussed with a specialist.

Living with this condition

Most people manage cramps with a few easy habits: staying hydrated, stretching the calves before bed, and warming up before exercise. If a cramp strikes at night, gently stretching the muscle usually eases it within seconds. Keeping a small diary can help you learn your own patterns, so you can avoid the things that set them off.

Lifestyle tips

  • Build a daily routine of gentle calf and foot stretches, especially in the evening
  • Take regular activity such as walking or swimming, and build up slowly if you are new to exercise
  • Avoid sitting or standing still for long stretches — get up and move every 30 to 60 minutes
  • Cut down on alcohol if you drink a lot
  • Keep your bedroom warm and avoid heavy bedding that pulls your toes down at night
  • Choose supportive, comfortable shoes
  • Add a few gentle stretches or movements to your day if your work is repetitive

Diet and exercise

A balanced diet helps your muscles work well. Try to include fruit, vegetables, beans, nuts, dairy or dairy alternatives, and whole grains each day. Drink water regularly, and more when it is hot or you are exercising. If you sweat a lot, plain water plus normal meals is usually enough. Only consider sports drinks or salt supplements if your doctor or pharmacist advises them, because extra salt is not good for everyone. Regular, moderate exercise keeps muscles and blood vessels healthy, and gentle strength and stretching work can reduce cramps.

Mental health and emotional wellbeing

It is normal to feel frustrated or worried when cramps keep waking you up at night or disrupt your exercise. Poor sleep can then make you feel tired and low during the day. If cramps are affecting your mood, sleep or daily life, tell your doctor — there is often something that can be done. If you are feeling persistently low, anxious or hopeless, please reach out for crisis support or speak to your doctor, local health service or a trusted person. You do not have to cope alone.

Prevention

Many cramps can be prevented or at least reduced. Regular gentle stretching, good hydration, a balanced diet, avoiding long periods in one position, and reviewing medicines with your doctor can all help. Not every cramp can be avoided, especially those linked to pregnancy or to a long-term condition, but the changes above often make them less frequent.

Screening programmes

There is no routine screening programme for muscle cramps. If cramps are frequent, your doctor may suggest blood tests to check for hidden causes such as low salt levels, thyroid problems or diabetes.

Complications

If left untreated

  • Poor sleep, tiredness and low mood if night cramps keep waking you
  • Cramps that keep coming back may be the first sign of an underlying condition, such as a thyroid problem, diabetes or poor circulation, which is better found early
  • A greater risk of falls or injury if a cramp happens while you are standing or walking
  • Rarely, cramping with dark urine after hard exercise can be a sign of serious muscle damage, which needs urgent care
  • Reduced willingness to exercise, which can make muscles weaker over time

Long-term outlook

The outlook is good. Most muscle cramps are short-lived and settle with simple self-care, and they do not damage the muscle. If a cause is found, treating it often makes a real difference. If cramps are bothering you, a chat with your doctor, nurse or pharmacist is a helpful next step.

Find support

External links open third-party websites. Ruqelo Health is not responsible for external content. Listing an organisation does not imply endorsement.

Always verify with your doctor

Health guidance differs by country and region. This page is general education and may not match the guidelines, medicines, or practice where you live. Discuss your concerns with your own doctor or healthcare provider, and follow local guidance where it exists.

Important notice This information is for educational purposes only. It does not replace professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider about your specific situation. If you are experiencing a medical emergency, call your local emergency services immediately.

Related conditions

Sources and guidance

No guideline names this topic

No health guideline or clinical chapter that names this exact topic is cited here. This page is for general education and information only. It is not a diagnosis, a treatment plan, or personal medical advice. Check with your own doctor and follow their advice. If symptoms are severe, sudden, or worrying, get medical care promptly, and call your local emergency number in an emergency. Ruqelo LLC is not responsible for medical or legal outcomes from decisions based on this information.

Last updated: October 24, 2026

Educational note: This information is for education only and is not a diagnosis.

Use it to support, not replace, advice from a licensed clinician.

If symptoms are severe, worsening, or urgent, call your local emergency number or seek emergency care.

Guidance may differ by country or region. Confirm local recommendations with a qualified healthcare provider.

Questions about this article