Cookies on the Bupa website

We use cookies to help us understand ease of use and relevance of content. This ensures that we can give you the best experience on our website. If you continue, we'll assume that you are happy to receive cookies for this purpose. Find out more about cookies



Exercise-induced cramp

Have you ever felt the painful spasm of a muscle cramp while exercising or shortly afterwards?

Here we’ll look at what a muscle cramp is, how to treat it, and if there are ways to prevent it happening in the first place.

Cyclists stretching


  • What is cramp? What is cramp?

    A muscle cramp is when your muscle goes into a hard, tense, painful state and you can’t relax it.

    Although any muscle can go into spasm, muscle cramps mostly affect the muscles in your:

    • calf (gastrocnemius)
    • foot
    • front of your thigh (quadriceps)
    • back of your thigh (hamstrings)

    The pain usually dies down after a few minutes but sometimes it can last for up to 10 minutes. And your muscle can feel tender for up to 24 hours after. A muscle cramp can come back a few times before eventually getting better. 

  • What causes muscle cramps? What causes muscle cramps?

    Sometimes you can get a muscle cramp for no apparent reason, often at night. But exercise is frequently a factor – you may get muscle cramps during or immediately after exercise. Although almost everyone will experience a muscle cramp at some time in their life, some things can increase your risk of getting one and how bad it is. These include:

    • tight calf muscles – for example, from not stretching or from being very active
    • dehydration – when you haven’t taken in enough fluids
    • an imbalance of electrolytes in your body – for example, having low levels of potassium or magnesium
    • a health condition that affects your nerves or a metabolic disorder (a problem that disrupts how your body converts food to energy)

    Strenuous exercise can bring on a muscle cramp and some types of medicine can make you more likely to get one too. These include things like beta blockers, statins and water tablets (diuretics).

  • How do I stop muscle cramps? How do I stop muscle cramps?

    Gently and slowly stretch the affected muscle and hold it for several seconds until it relaxes. You might need to do this several times until the cramp goes away.

    Muscle Stretch
    Calf (gastrocnemius) Stand in a lunge position with your affected leg stretched out behind you and push your heel towards the ground. 
    Front of your thigh (quadriceps) Stand upright and lift your ankle towards your buttocks while holding the top of your foot. Pull your heel gently in towards your buttocks to stretch. Hold for 30 seconds. 
    Back of your thigh (hamstrings) Sit up straight on the ground with both legs extended straight in front of you. Put your palms on the ground and slide your hands toward your ankles. Hold for 30 seconds. 
    Small muscles of your foot  Hold your toes and pull them upwards to stretch your foot. You could also try walking around. 

    It might help if you:

    • gently rub and massage your muscle
    • try to have a walk around to get your blood flowing
    • drink some water 
  • How can I prevent muscle cramps? How can I prevent muscle cramps?

    Warm up and stretch

    Have a gentle warm-up before you get into any intensive exercise. It’s thought that warming up and stretching your muscles reduces your likelihood of developing cramp. Although studies haven’t found this to be definitely true, it’s probably worth giving it a go – you might find it helps.

    Keep hydrated

    Drink enough water while you exercise and afterwards, particularly in hot conditions. It’s always important to stay properly hydrated when you’re exercising.

    How much you need to drink varies hugely from person to person so it simply isn’t possible to give exact amounts. Instead, keep an eye on the colour of your urine because this is a really useful indicator of how hydrated you are. 

    Image showing hydration level by urine colour 

    Get your electrolytes in balance

    If you’re sweating a lot when you’re exercising, you can lose electrolytes such as sodium (salt). It’s not known for certain but this may cause cramp, so you could try replacing the electrolytes you lose with sports drinks. If you’re doing moderate amounts of exercise, you probably won’t need them. It’s only if you’re doing a lot of strenuous training that they may be useful. If you’d like more information on this, take a look at our topic Keeping hydrated for exercise.

  • Other helpful websites Other helpful websites


    • Muscle cramps. The MSD Manuals., last full review/revision July 2016
    • Muscle cramps. BMJ Best Practice., last updated 10 November 2017
    • Muscle cramps. PatientPlus., last checked 28 January 2016
    • Muscle cramps. American Academy of Orthopaedic Surgeons., last reviewed June 2017
    • Personal communication, Dr Leon Creaney, Sports & Exercise Medicine Consultant, 15 February 2018
    • Sports nutrition. American Academy of Orthopaedic Surgeons., last reviewed December 2014
  • Has our information helped you? Tell us what you think about this page

    We’d love to know what you think about what you’ve just been reading and looking at – we’ll use it to improve our information. If you’d like to give us some feedback, our short form below will take just a few minutes to complete. And if there's a question you want to ask that hasn't been answered here, please submit it to us. Although we can't respond to specific questions directly, we’ll aim to include the answer to it when we next review this topic.

    Let us know what you think using our short feedback form
  • Related information Related information

  • Tools and calculators Tools and calculators

  • Author information Author information

    Reviewed by Rachael Mayfield-Blake, Freelance Health Editor, March 2018
    Expert reviewer, Dr Leon Creaney, Sports & Exercise Medicine Consultant
    Next review due March 2021

About our health information

At Bupa we produce a wealth of free health information for you and your family. We believe that trustworthy information is essential in helping you make better decisions about your health and care. Here are just a few of the ways in which our core editorial principles have been recognised.

  • Information Standard

    We are certified by the Information Standard. This quality mark identifies reliable, trustworthy producers and sources of health information.

    Information standard logo
  • HONcode

    This site complies with the HONcode standard for trustworthy health information:
    verify here.

    This website is certified by Health On the Net Foundation. Click to verify.

What our readers say about us

But don't just take our word for it; here's some feedback from our readers.

Simple and easy to use website - not alarming, just helpful.

It’s informative but not too detailed. I like that it’s factual and realistic about the conditions and the procedures involved. It’s also easy to navigate to areas that you specifically want without having to read all the information.

Good information, easy to find, trustworthy.

Meet the team

Nick Ridgman

Nick Ridgman
Head of Health Content

  • Dylan Merkett – Lead Editor
  • Graham Pembrey - Lead Editor
  • Laura Blanks – Specialist Editor, Quality
  • Michelle Harrison – Specialist Editor, Insights
  • Natalie Heaton – Specialist Editor, User Experience
  • Fay Jeffery – Web Editor
  • Marcella McEvoy – Specialist Editor, Content Portfolio
  • Alice Rossiter – Specialist Editor (on Maternity Leave)

Our core principles

All our health content is produced in line with our core editorial principles – readable, reliable, relevant – which are represented by our diagram.

An image showing or editorial principals

                  Click to open full-size image

The ‘3Rs’ encompass everything we believe good health information should be. From tweets to in-depth reports, videos to quizzes, every piece of content we produce has these as its foundation.


In a nutshell, our information is jargon-free, concise and accessible. We know our audience and we meet their health information needs, helping them to take the next step in their health and wellbeing journey.


We use the best quality and most up-to-date evidence to produce our information. Our process is transparent and validated by experts – both our users and medical specialists.


We know that our users want the right information at the right time, in the way that suits them. So we review our content at least every three years to keep it fresh. And we’re embracing new technology and social media so they can get it whenever and wherever they choose.

Our accreditation

Here are just a few of the ways in which the quality of our information has been recognised.

  • The Information Standard certification scheme

    You will see the Information Standard quality mark on our content. This is a certification programme, supported by NHS England, that was developed to ensure that public-facing health and care information is created to a set of best practice principles.

    It uses only recognised evidence sources and presents the information in a clear and balanced way. The Information Standard quality mark is a quick and easy way for you to identify reliable and trustworthy producers and sources of information.

    Certified by the Information Standard as a quality provider of health and social care information. Bupa shall hold responsibility for the accuracy of the information they publish and neither the Scheme Operator nor the Scheme Owner shall have any responsibility whatsoever for costs, losses or direct or indirect damages or costs arising from inaccuracy of information or omissions in information published on the website on behalf of Bupa.

  • British Medical Association (BMA) patient information awards

    We have received a number of BMA awards for different assets over the years. Most recently, in 2013, we received a 'commended' award for our online shared decision making hub.

Contact us

If you have any feedback on our health information, we would love to hear from you. Please contact us via email: Or you can write to us:

Health Content Team
Battle Bridge House
300 Grays Inn Road

Find out more Close

Legal disclaimer

This information was published by Bupa's Health Content Team and is based on reputable sources of medical evidence. It has been reviewed by appropriate medical or clinical professionals. Photos are only for illustrative purposes and do not reflect every presentation of a condition.

The information contained on this page and in any third party websites referred to on this page is not intended nor implied to be a substitute for professional medical advice nor is it intended to be for medical diagnosis or treatment. Third party websites are not owned or controlled by Bupa and any individual may be able to access and post messages on them. Bupa is not responsible for the content or availability of these third party websites. We do not accept advertising on this page.

For more details on how we produce our content and its sources, visit the 'About our health information' section.

ˆ We may record or monitor our calls.