This NHS content is written for people in England. Services, contact routes and treatment arrangements may differ in other countries.
Symptoms of leg cramps
Leg cramps happen when a muscle in the leg tightens 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.
Things you can do about leg cramps yourself
During a cramp
Stretching and massaging the muscle may ease the pain during a cramp, although most cramps go away without you doing anything.
Standing up and putting your weight on the leg with the cramp may also help.
Paracetamol or ibuprofen can help to ease muscle soreness after a cramp, but they will not help when it's happening as they take too long to work.
Preventing cramps
Regular calf-stretching exercises may help to reduce cramps but may not completely stop them from happening.
How to stretch your calf muscles
- Stand facing a wall and stretch out your arms until your hands can just touch it.
- Make sure you're able to stand up straight and that your feet are flat on the floor.
- Lean forward, pressing your hands against the wall until you feel your calf muscles stretch. Hold for 2 or 3 seconds.
- Stand up straight again.
- 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.
See a GP if:
- leg cramps are disturbing your sleep
- you also have numbness or swelling in your legs
- cramps last longer than 10 minutes
Treatment for leg cramps from a GP
A GP will examine you to 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. The GP will discuss potential risks and side effects with you.
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 because of drinking too much alcohol
The reason for some cramps is unknown.
Leg cramps
Leg cramps
Leg cramps
Leg cramps
The main symptom of leg cramps is a sudden pain in a leg muscle that lasts a short time before going away.
Stretching and massaging your leg muscles can help with leg cramps. Paracetamol or ibuprofen can help ease the pain after the cramps have stopped.
A GP may be able to suggest stretches and massages to help ease your leg cramps. They may prescribe a medicine called quinine if these do not help.
Leg cramps can sometimes be caused by ageing, doing lots of exercise, dehydration or pregnancy.
Content supplied by the NHS website, refreshed 19 August 2026. View the original NHS article ↗
Licensed under the Open Government Licence v3.0 ↗. MyPHU is independent and is not endorsed by the NHS.