Muscle cramp
A muscle cramp is a sudden, painful tightening of a muscle that you cannot relax on purpose, most often in the calf or foot, and usually harmless.

Overview
A muscle cramp is a sudden, strong tightening of a muscle that you did not choose to make and cannot easily stop. The muscle goes hard, often forms a visible knot, and can hurt a lot. Most cramps last from a few seconds to a few minutes, then ease on their own. Doctors call this a muscle cramp; many people call a calf cramp a "charley horse."
Cramps are very common. Almost everyone has one at some point. They happen most often in the calf, the foot and the thigh, but they can affect any muscle you control, including the hands, the belly and the muscles between the ribs.
Night-time leg cramps are especially common in older adults and during pregnancy. In most people cramps are not a sign of anything serious. Sometimes, though, frequent or unusual cramps can point to another health problem or to a side effect of a medicine, so it is worth knowing when to get them checked.
Symptoms
A cramp usually comes on suddenly. You may notice:
- Sharp pain in a muscle, often strong enough to wake you from sleep
- A hard, tight lump you can feel or see under the skin
- Toes or fingers pulled into an odd position, such as the toes pointing down or curling
- Soreness or tenderness in the muscle for hours, sometimes a day, after the cramp ends
Cramps can happen during exercise, right after it, while resting, or at night in bed. Night cramps most often affect the calf or the small muscles of the foot.
What a cramp is not
Some other problems can feel similar. Restless legs syndrome causes an uncomfortable urge to move the legs, but the muscle does not lock tight. Pain in the calf that comes on with walking and goes away with rest may be caused by narrowed arteries, called claudication. A swollen, warm, painful calf that does not ease can be a blood clot. These need a different kind of care, so tell your clinician exactly what you feel.
Causes
A cramp happens when the nerve that controls a muscle fires over and over, so the muscle keeps contracting instead of relaxing. In many people no single cause is found. These are called idiopathic cramps, which means "without a known cause."
Common triggers
- Tired muscles. Hard or unusual exercise, especially in heat, is a frequent trigger.
- Muscles held short for a long time. Lying with your toes pointed down, for example under heavy bedcovers, can set off a calf cramp.
- Loss of fluid and salts. Heavy sweating, vomiting or diarrhea can upset the balance of minerals in your blood.
- Pregnancy, especially in the later months.
- Ageing. Muscles and nerves change with age, and night cramps become more common.
Health conditions linked to cramps
- Low levels of minerals such as potassium, magnesium, calcium or sodium
- Kidney disease, especially in people on dialysis
- Liver disease, such as cirrhosis
- An underactive thyroid gland (hypothyroidism)
- Diabetes and nerve damage (neuropathy)
- Narrowed arteries in the legs
- Nerve and muscle diseases, such as motor neuron disease (ALS), though these are rare causes
Medicines
Some medicines can make cramps more likely. Examples include water pills (diuretics), some cholesterol medicines (statins), some asthma inhalers, and some medicines used for bone thinning or high blood pressure. If you think a medicine is causing cramps, talk to your clinician. Do not stop a prescribed medicine on your own.
Risk factors
You may be more likely to have cramps if you:
- Are over 50
- Are pregnant
- Do intense exercise, or exercise in hot weather
- Stand for long periods at work, or sit for long periods with your legs bent
- Have kidney, liver, thyroid or nerve problems, or diabetes
- Take a medicine known to cause cramps
- Drink a lot of alcohol
Diagnosis
Most of the time, a cramp is easy to recognise from how it feels, and no tests are needed. If cramps are frequent, severe or unusual, your clinician will ask about:
- When the cramps happen, how long they last and which muscles they affect
- Your exercise, work and sleep habits
- All the medicines and supplements you take
- Other symptoms, such as weakness, numbness, muscle twitching or weight change
They will examine your muscles, nerves and the blood flow in your legs. Depending on what they find, they may order:
- Blood tests to check minerals (potassium, calcium, magnesium, sodium), kidney and liver function, blood sugar, and thyroid hormone
- A test of a muscle enzyme called creatine kinase if muscle damage is a concern
- Nerve tests, such as nerve conduction studies or electromyography (EMG), if there are signs of a nerve or muscle disease
Treatment
During a cramp
Stretching the tight muscle is the quickest way to make most cramps stop.
- Calf cramp: straighten your leg and pull your toes up toward your shin. You can also stand and lean forward against a wall with the sore leg straight behind you and the heel on the floor.
- Thigh cramp: for the back of the thigh, sit with the leg straight and reach toward your toes. For the front of the thigh, hold onto something steady and gently pull your foot toward your buttock.
- Foot cramp: pull your toes back toward you, or stand and put weight on the foot.
Gently rubbing the muscle, walking around, and using warmth afterward can ease leftover soreness. Some people find a cool pack helps instead. Simple pain relievers such as acetaminophen or ibuprofen may help with soreness after a cramp, though they will not stop the cramp itself.
Treating the cause
If an underlying problem is found, treating it is the most useful step. This might mean correcting low mineral levels, treating a thyroid problem, or changing a medicine. Any change to a prescribed medicine should be made with your clinician.
Medicines for cramps
There is no medicine that works well and safely for everyone with ordinary cramps.
- Quinine was once used for night leg cramps. Health agencies now advise against using it for this purpose because it can cause rare but serious side effects, including dangerous drops in blood cells, abnormal heart rhythms and severe allergic reactions. In a few countries a doctor may very occasionally consider it for severe, frequent cramps that disrupt sleep when nothing else has worked, with close review.
- Magnesium supplements are popular, but research suggests they are unlikely to help ordinary night cramps in older adults. Ask your clinician before taking supplements, especially if you have kidney disease or are pregnant.
- Muscle relaxants such as cyclobenzaprine and methocarbamol are sometimes prescribed for muscle spasm after an injury. There is little proof that they help everyday cramps, and they can cause drowsiness and dizziness.
For cramps caused by a nerve or muscle disease, a specialist may suggest other options.
Self-care and prevention
You cannot always prevent cramps, but these steps help many people:
- Stretch regularly. A few minutes of calf and thigh stretches before bed, and before and after exercise, may cut down on cramps.
- Drink enough fluids, especially when it is hot or you are exercising and sweating.
- Build up exercise slowly. Increase how hard or how long you train a little at a time.
- Watch your sleeping position. Keep bedcovers loose around your feet so your toes are not pushed down. Some people find a pillow under the knees or lying on their side helps.
- Wear supportive shoes that fit well, particularly if you stand a lot.
- Limit alcohol.
- Keep moving. If you sit for long periods, get up and walk around now and then.
Cramps in pregnancy
Leg cramps are common in the second half of pregnancy. Gentle stretching, staying active and drinking fluids may help. Talk to your pregnancy care provider before taking any supplement or medicine.
Complications
Most cramps cause no lasting harm. However, frequent night cramps can break up your sleep and leave you tired during the day. After a strong cramp, the muscle can stay sore for a day or so. Rarely, a very severe cramp can strain the muscle.
Cramps that come with muscle weakness, wasting (muscles getting thinner) or twitching may be a sign of a nerve or muscle disease that needs to be checked.
Outlook
The outlook is very good for most people. Cramps often come and go over time. Regular stretching and simple changes to daily habits make them less frequent for many people. When a cause such as a medicine or a mineral imbalance is found and treated, the cramps often improve.
In Canada
Health Canada has advised that quinine should not be used to treat or prevent night-time leg cramps because of the risk of serious side effects.
When to get medical help
See your doctor or nurse practitioner if:
- Cramps happen often, are getting worse, or keep waking you up
- Cramps do not get better with stretching and self-care
- Cramps started after you began a new medicine
- You also have muscle weakness, muscle wasting, twitching, numbness or tingling
- You get calf pain every time you walk a certain distance that goes away when you rest
- You have kidney, liver or thyroid disease, or diabetes, and your cramps are new or worse
Get urgent medical help or call emergency services if:
- One leg is swollen, red, warm and painful, especially after a long trip, surgery or time in bed, as this could be a blood clot
- You have cramps with sudden weakness, trouble breathing, confusion, chest pain or a fast or irregular heartbeat
- You have severe muscle pain with dark brown or cola-coloured urine, especially after very hard exercise or heat exposure
- You have cramps with severe vomiting or diarrhea and signs of dehydration, such as dizziness, fainting or passing very little urine
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Muscle Cramp. meshb.nlm.nih.gov
- MedlinePlus: Muscle Cramps. medlineplus.gov/musclecramps.html
- NHS: Leg cramps. nhs.uk/conditions/leg-cramps/
- NICE CKS: Leg cramps. cks.nice.org.uk/topics/leg-cramps/