Skip to main content

Warning notification:Warning

Unfortunately, you are using an outdated browser. Please, upgrade your browser to improve your experience with HSE. The list of supported browsers:

  1. Chrome
  2. Edge
  3. FireFox
  4. Opera
  5. Safari

Leg cramps

Leg cramps are common, usually harmless and only last a short time. They can happen at any time, but most people have them at night or when resting.

Check if it's leg cramps

Leg cramps happen when a muscle in the leg shortens and causes a sudden pain that can make it hard to move.

The cramps can last from a few seconds to 10 minutes.

They can affect the:

  • calf muscle, below the knee at the back of the leg
  • muscles in the feet or the thighs (less often)

After the cramp has stopped, the muscle might feel sore for up to 24 hours.

Causes of leg cramps

Leg cramps can sometimes be caused by:

  • ageing
  • putting too much strain on muscles during exercise, which can be worse in hot or humid weather
  • pregnancy (usually in the later stage)
  • certain medicines, for example medicine for lowering cholesterol (statins) or high blood pressure (diuretics)
  • not drinking enough fluids (dehydration)
  • liver disease caused by drinking too much alcohol

The reason for some cramps is unknown.

Things you can do yourself

There are things you can do to help ease and prevent leg cramps.

During a cramp

Stretching and massaging the muscle may ease the pain during a cramp. Most cramps go away without you doing anything.

Paracetamol or ibuprofen can help to ease muscle soreness after a cramp. They will not help when it's happening because they take too long to work.

Preventing cramps

Regularly stretching your calf muscles may help to reduce leg cramps. But it may not completely stop them from happening.

How to stretch your calf muscles
  1. Stand up straight facing a wall with your feet flat on the floor and legs apart.
  2. Keep one leg back with your knee straight.
  3. Stretch out your arms until your hands touch the wall.
  4. Lean forward and press your hands against the wall until you feel your calf muscles stretch - hold for 2 or 3 seconds.
  5. Stand up straight again.
  6. Switch leg positions and repeat with your other leg.
  7. Repeat a few times for 5 minutes, 3 times a day (the last time just before bed).

If the number of cramps reduces, you might only need to do the exercise once or twice a day.

A man standing facing a wall with his legs apart and one foot in front of the other. One leg is bent forward at the knee with the foot touching the wall. The other leg is stretched out straight behind his body. He is pushing against the wall with his hands.
Calf muscle stretch

Non-urgent advice: Contact your GP if:

  • leg cramps are disturbing your sleep
  • you also have numbness or swelling in your legs
  • leg cramps last longer than 10 minutes
  • you have any other symptoms or concerns

Treatment for leg cramps

Your GP will try to find out the reason for your leg cramps.

They will suggest a treatment depending on the cause.

This might be:

  • stretching exercises
  • quinine tablets if exercise has not helped

Quinine is not suitable for everyone. Your GP will discuss potential risks and side effects with you.


Content supplied by the NHS and adapted for Ireland by the HSE

Page last reviewed: 1 July 2024
Next review due: 1 July 2027

This project has received funding from the Government of Ireland’s Sláintecare Integration Fund 2019 under Grant Agreement Number 123.