Skip to main content

Leg cramps

Leg cramps are common and most common in the calf muscles. They can occur in any muscle group. The cause is not known in most cases. However, some medications and diseases can cause leg cramps. Regular calf stretching exercises may prevent leg cramps. Quinine tablets may be advised as a last resort if the cramps occur regularly.

Continue reading below

What are leg cramps?

A leg cramp is a pain that comes from a leg muscle. It is a muscle spasm, which occurs when a muscle contracts too hard. This is an involuntary contraction, meaning that the affected person has no control over how and when it occurs. It usually occurs in a calf muscle, below and behind a knee. The small muscles of the feet, or muscles elsewhere in the leg, are sometimes affected.

Charley horse is another term used for leg cramps. This name tends to be used more in the US.

How long do leg cramps last?

A cramp pain typically lasts a few minutes. In some cases it lasts just seconds but in some can last up to 10 minutes. The severity of the pain varies. The muscle may remain tender for up to 24 hours after a leg cramp. Leg cramps usually occur at rest, most commonly at night in bed. They are often called night cramps. It can become a distressing condition if the cramp pain causes waking at night and sleep is regularly disturbed.

Continue reading below

Who gets leg cramps?

Many people have an occasional leg cramp. However, they occur more frequently in some people, even daily. They are more common in older people. About 1 in 3 people over the age of 60 and about half of people over the age of 80 have regular leg cramps. About 4 in 10 people who have leg cramps have at least three per week.

What causes leg cramps?

Unknown cause (idiopathic leg cramps)

In most cases the cause is not known. One theory is that cramps occur when a muscle that is already in a shortened position is stimulated to contract. As the muscle is already shortened, to contract further may cause the muscle to go into spasm.

Secondary causes

In some cases, the cramps may be a symptom of another problem. For example:

With the above conditions the cramps would just be one of various other symptoms. Therefore, if a person with leg cramps is otherwise well and has no other unexplained symptoms, they are likely to be of unknown cause (idiopathic) and not due to a secondary cause.

Note: leg cramps are different to a condition called restless legs syndrome. In this condition the legs can be uncomfortable, creeping sensations are felt in the legs and it is relieved by walking about.

What causes leg cramps at night?

Leg cramps commonly occur at night in bed, as the natural position we lie in is with the knees slightly bent (flexed) and with feet pointing slightly downwards. In this position the calf muscle is relatively shortened and may be prone to cramps. This theory explains why stretching the muscles may cure the problem.

Continue reading below

How to get rid of leg cramps

Stretching and massaging the affected muscle can usually relieve an attack of cramp. Most cramps soon ease off. Painkillers are not usually helpful as they do not act quickly enough. However, a painkiller such as paracetamol may help to ease muscle discomfort and tenderness that sometimes persist for up to 24 hours after a cramp has gone.

General measures will help with cramp in any muscle, but the stretches mentioned will only benefit calf muscle cramp.

Preventing leg cramps

If cramps do not occur often then no particular treatment is usually needed. However, if the leg cramps are frequent, ways to prevent them may be considered.

Consider medication (where appropriate) or other conditions

Discuss with a doctor if you take any of the medicines listed above. They may be causing the leg cramps, or making them recur more often. Alternatives may be available. Also, if other symptoms occur apart from cramps, see a doctor. He or she may suggest an examination or do some checks to rule out a secondary cause for the cramps.

Stretching exercises

Diagram of a Stretching Exercise

Diagram of a Stretching Exercise

Stretching exercises are commonly advised. However, there is a lack of good research evidence to prove that they work. One research study concluded that stretching exercises did reduce the number and severity of cramps; however, another study did not confirm this. Nevertheless, many doctors and those who experience regular leg cramps feel that regular calf stretching does help. If it works, no tablets will be needed to prevent the cramps.

At first, do stretching exercises of affected muscles for about five minutes, three times a day. Do the last exercise shortly before bedtime. If the cramps ease off, the exercise may then only be needed once or twice a day to keep the cramps away.

To stretch calf muscles, stand about 60-90 cm from a wall. Then, keeping the soles of the feet flat on the floor, bend forwards and lean on the wall. The calf muscles will be felt to stretch. Do this several times, each time for as long as possible. It may take a week or so of exercises before an improvement is seen. So, it is worth attempting a 2- to 4-week trial of regular calf stretching exercises to see if the cramps ease off. They may not go completely, but their frequency and/or severity may reduce.

Posture of the legs when resting in bed

Positions which prevent the calf muscle from shortening whilst sleeping may help. The following are not proven treatments (from research); however, some experts believe that they help to prevent cramps:

  • Using a pillow to prop the feet up in bed while sleeping on the back.

  • Hanging the feet over the end of the bed while sleeping on the front.

  • Keeping blankets loose at the foot of the bed to prevent toes and feet from pointing downwards during sleep.

Quinine is used as a last resort

Quinine may reduce the number and/or severity of leg cramps although it might not stop them altogether. One tablet at bedtime is the normal dose.

However, there are a number of serious side-effects associated with quinine, including heart rhythm problems (arrythmias). Therefore, quinine is only used as a last resort when other treatments have not worked and the leg cramps are frequent and are affecting quality of life.

Other treatments

Other medicines have been suggested as possible treatments for leg cramps. These include magnesium, diltiazem, vitamin B complex, vitamin E, naftidrofuryl, orphenadrine and verapamil.

In general, these are not currently recommended, as most studies involving them found that they do not work very well in most people. Quinine remains the main treatment. However, a trial of one of these medicines may be suggested by a doctor if quinine has not worked or it caused troublesome side-effects.

Further reading and references

Article history

The information on this page is written and peer reviewed by qualified clinicians.

  • Next review due: 19 Sept 2028
  • 21 Sept 2023 | Latest version

    Last updated by

    Dr Surangi Mendis

    Peer reviewed by

    Dr Pippa Vincent, MRCGP
symptom checker

Feeling unwell?

Assess your symptoms online for free