Leg Cramps
Overview
A leg cramp is a sudden, hard tightening of a muscle in your leg. The muscle feels tight and knotted, and it can hurt a lot for a few seconds or a few minutes before it slowly lets go. The calf is the most common place, but cramps can also happen in your foot or thigh. Night-time leg cramps are the most common kind. They can wake you from sleep and leave the muscle feeling tender the next day.
Key facts
- A cramp is a muscle that tightens on its own and will not relax straight away. It is not a sign that you are weak or that something is badly wrong.
- Most leg cramps are harmless and have no clear cause. Doctors call these ordinary or age-related cramps.
- Simple things like stretching your calf before bed, drinking enough water and warming the muscle often help a lot.
Yes, very. Night-time leg cramps are one of the most common muscle problems doctors see, and they become more likely as people get older.
Anyone can get leg cramps. They are more common in adults over 50, in pregnant women (especially in the last three months), and in people who do a lot of exercise or heavy physical work. They can also happen in children, usually after a very active day or in hot weather. Some health conditions and some prescription medicines make cramps more likely.
Symptoms
- Sudden swelling, pain or tenderness in one leg together with chest pain, difficulty breathing, coughing up blood or feeling faint — this can be a sign of a blood clot that has travelled to the lungs
- A leg that suddenly turns pale, cold, blue or blotchy, with severe pain, numbness or weakness — this can mean the blood supply is blocked and needs treating straight away
- A leg that is severely painful and deformed after a fall or injury
- ⚠New swelling, warmth, redness or tenderness in one calf or thigh, especially if it is on one side only
- ⚠Cramps with numbness, tingling or weakness in the leg or foot
- ⚠Leg pain that is getting worse, not easing with rest, or coming with fever
- ⚠Cramps with unexplained weight loss, night sweats or a general feeling of being unwell
Common symptoms
- A sudden, sharp pain in the calf, foot or thigh that comes on without warning
- The muscle feels hard, tight or knotted, and you can sometimes see or feel it bulging
- The pain builds quickly and usually eases within a few seconds to a few minutes
- The muscle may ache or feel sore for up to a day afterwards
- Cramps often happen at night, waking you from sleep
- Rubbing, stretching or standing on the leg usually helps it settle
Symptoms in children
- Cramps in the calf or foot, often after a very active day of running and playing
- Cramps in hot weather or after sweating a lot and not drinking enough
- Crying out at night with a tight, painful leg that eases with rubbing and stretching
- Usually harmless, but a child with a hot, swollen, tender leg, a limp that will not go away, or cramps with fever should be checked by a doctor
Symptoms in older adults
- Cramps that regularly wake you at night and leave you tired the next day
- Cramps that feel worse if you take certain prescription medicines
- Cramps that come on when you walk a certain distance and ease when you rest (this can be a sign of narrowed arteries in the legs and is worth mentioning to your doctor)
- A higher risk of falls if you get up quickly in the dark with a cramping leg, so keep a night light and a clear path to the bathroom
Causes
Main causes
- No clear cause — this is the most common situation, especially with night-time cramps in older adults
- Muscle tiredness from exercise, sport or heavy physical work
- Not drinking enough fluid, especially in hot weather or after sweating a lot
- Low levels of salts in the blood, such as magnesium, potassium or calcium — often linked to diet, illness or some medicines
- Pregnancy, particularly in the last three months
- Some prescription medicines can cause cramps as a side effect — your doctor or pharmacist can check whether any of yours could be involved
- Nerve damage, for example from diabetes, which can make muscles twitch and cramp
- Narrowed arteries in the legs, which cause cramping pain in the calf or thigh when you walk and relief when you stop and rest
- Other health conditions such as kidney, liver or thyroid problems
- Long periods of sitting or standing still, or wearing shoes that do not fit well
Risk factors
- Being over 50
- Being pregnant
- Doing lots of exercise, especially in heat or without enough fluids
- Taking certain prescription medicines, particularly water tablets (diuretics)
- Having diabetes, kidney disease, liver disease or a thyroid problem
- Smoking and having high blood pressure or high cholesterol, which raise the risk of narrowed leg arteries
- Sitting for long periods, for example on a long flight or at a desk
- Being less physically active overall
When to see a doctor
See a doctor urgently if:
- One leg becomes swollen, hot, red or tender, particularly if it happened quickly
- A leg turns pale, cold or blue, or feels numb or weak
- Cramping leg pain comes with chest pain or breathlessness
- You have a leg cramp with fever, unexplained weight loss or feeling generally unwell
- The pain is severe and not easing at all
Book a routine appointment if:
- Cramps happen most nights and disturb your sleep
- Cramps are frequent or severe enough to affect your daily life
- Simple self-care such as stretching and drinking enough fluid has not helped after a few weeks
- You get cramping pain in your legs when you walk that eases when you rest
- You have started a new medicine and cramps began soon afterwards — do not stop the medicine yourself, but ask your doctor or pharmacist to review it
- You have other health conditions such as diabetes, kidney disease or thyroid problems and your cramps are getting worse
Diagnosis
There is no single test for leg cramps. Your doctor will usually start by asking about your cramps — when they happen, where they are, how long they last, what makes them better or worse — and by examining your legs, checking pulses, feeling the muscles and looking for swelling. They will also review your medical history and any medicines you take. Most people are diagnosed from this conversation and examination alone, and tests are only needed if something else is suspected.
Tests that may be done
- A blood test to check salt levels such as magnesium, potassium and calcium, and to look at kidney, liver and thyroid function
- A blood test for diabetes or to check how well your blood sugar is controlled
- A review of your medicines with your doctor or pharmacist
- An ultrasound scan of the leg arteries or veins if narrowed arteries or a blood clot is suspected
- Nerve tests in rare cases where a nerve problem is thought to be the cause
What to expect at your appointment
Your appointment is usually a short conversation and a gentle examination — nothing painful. It helps to keep a simple diary for a week or two before you go: note when cramps happen, how long they last, what you were doing beforehand, and whether anything helped. Bring a list of your medicines, including anything you buy over the counter or take as a supplement. If your tests are normal, that is common and reassuring — it usually means the cramps are the ordinary type and can be managed with self-care.
Treatment
For most people, leg cramps are managed with simple self-care rather than medicine. The aim is to relax and stretch the muscle, keep your muscles and nerves healthy, and remove anything that is triggering the cramps — such as a medicine that does not suit you or a low salt level that can be corrected. If an underlying condition is found, treating that often improves the cramps.
Self-care at home
- When a cramp strikes, pull your toes up towards you and push your heel down, or stand and put weight on the leg — this stretches the calf and usually eases the cramp within seconds
- Rub and gently massage the muscle, and apply a warm towel or heat pack
- Stretch your calf muscles for about 30 seconds, two or three times, before you go to bed
- Drink enough fluid through the day — more in hot weather or after exercise
- Warm up before exercise and stretch afterwards, and build up new activity gradually
- Avoid sitting still for long periods; get up and move around every hour or so
- Wear comfortable, well-fitting shoes with good support
- Keep a light near your bed and a clear path to the bathroom so you do not have to rush in the dark
- Ask your doctor or pharmacist before starting any supplement — the evidence for supplements is mixed and they are not right for everyone
Medical treatments
Doctors generally avoid routine medicine for ordinary leg cramps, because the treatments that have been tried help only a little and can cause side effects. If cramps are frequent and troublesome, your doctor may first look for and correct a cause, such as a low salt level or a medicine that could be switched. A small number of prescription options exist for selected people, and your doctor will explain the benefits and risks and decide with you whether they are worth trying. Never stop or change a medicine on your own — always talk to your doctor or pharmacist first.
When is surgery considered?
Surgery is not used to treat ordinary leg cramps. Very rarely, if cramps are caused by narrowed arteries in the legs, a vascular specialist may discuss procedures to improve blood flow. This is decided case by case and only after specialist assessment.
Living with this condition
Leg cramps are annoying and can be tiring, but they are manageable. Many people find a routine that works: a calf stretch before bed, enough water through the day, and knowing exactly what to do when a cramp starts. Keep a note of what triggers yours — some people notice a link with a long day on their feet, a hot night, or a new exercise class. Over time you will learn your own pattern and be able to head cramps off.
Lifestyle tips
- Build regular gentle activity into your week — walking, swimming or cycling are all good for leg muscles
- Stretch your calves daily, and always after exercise
- Keep hydrated, and take extra care in hot weather or during illness
- Limit long stretches of sitting; set a reminder to stand and move
- Wear supportive shoes rather than very flat or very high ones for long periods
- If you smoke, getting support to stop is one of the best things you can do for your leg circulation
- Eat a balanced diet with plenty of vegetables, fruit, nuts, beans and dairy to support healthy salt levels
Diet and exercise
A balanced diet helps keep the salts your muscles need in the right range — you do not usually need special foods or supplements unless a blood test shows a shortage. Regular, moderate exercise keeps muscles and circulation healthy. If you are starting something new, build up slowly over a few weeks and warm up first. If cramps come on during exercise, stop, stretch the muscle gently, and take a break before carrying on.
Mental health and emotional wellbeing
Cramps that wake you several nights a week can wear you down. Poor sleep affects mood, concentration and energy, and ongoing pain can make you feel anxious or low. This is a common and understandable reaction, and it is worth mentioning to your doctor rather than putting up with it. Good sleep habits help — a regular bedtime, a dark quiet room, and a wind-down routine. If low mood or worry is lasting more than a couple of weeks or affecting your daily life, please reach out to your doctor or a local mental health service. If you ever feel you cannot cope or have thoughts of harming yourself, contact your local emergency number or a crisis line in your country straight away — you deserve support.
Prevention
You cannot always prevent leg cramps, especially the ordinary night-time kind, but you can reduce how often they happen. Regular calf stretching, staying hydrated, keeping active, warming up before exercise and reviewing your medicines with your doctor all help. If a low salt level or another health condition is found and treated, cramps often improve.
Screening programmes
There is no national screening programme for leg cramps. A routine blood test to check salts, kidney, liver and thyroid function and blood sugar is sometimes arranged if cramps are frequent, if you take certain medicines, or if your doctor suspects another condition. Ask your doctor whether a check is worthwhile for you.
Complications
If left untreated
- Sleep disruption, which can leave you tired, irritable and less able to concentrate
- Sore, tender muscles and a reduced wish to exercise, which over time can lower fitness
- A higher risk of falls if a cramp wakes you at night and you get up quickly
- An underlying cause going unnoticed — such as a low salt level, a side effect of a medicine, diabetes or narrowed leg arteries
Long-term outlook
The outlook is good. For most people, leg cramps are occasional, harmless and settle with simple changes like stretching and drinking enough fluid. Even when cramps are frequent, they can usually be reduced, and any underlying cause that is found can often be treated. If cramps are affecting your sleep or your daily life, talk to your doctor — there is real help available and no need to simply put up with it.
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.