SANOOBFITYOUR PERSONAL FITNESS COACH

Muscle Cramps During and After Exercise

Published: 4 October 2026Evidence reviewed: 4 October 2026Last updated: 4 October 2026Next review: 4 October 2027

The problem: a muscle that suddenly locks

You are near the end of a long run, the last rounds of a hard session or the final sets of a leg day, and a calf, hamstring or foot muscle suddenly tightens into a hard, painful knot. You stop, it eases, and you wonder whether you did something wrong. Was it water? Salt? Bananas? Should you buy magnesium?

Cramps are common, unpleasant and usually harmless, but they collect more myths than almost any other training experience. This article answers one question: why do muscles cramp during and after exercise, and what should you actually change so it happens less?

The simple answer

Exercise-associated muscle cramps are sudden, involuntary, painful contractions of a working muscle during or shortly after exercise. The traditional explanation is dehydration and lost electrolytes. Current evidence suggests that, for many people, cramps are more closely linked to muscle fatigue and changed nerve control in a muscle working harder or longer than it is used to, though fluids and salt may still play a part for some people in some conditions.[1]

So the practical answer is mostly a training answer: notice when cramps happen, find the demand that was new, bigger or longer than usual, and build that specific demand gradually. Fluids, food and sleep support this, but they rarely replace it.

What a cramp is, and what it is not

Knowing what you are dealing with prevents both panic and complacency.

If you are unsure which one you have, treat it as the more serious possibility and get it checked.

What the evidence says

APEX keeps four layers apart: what research supports, how coaches apply it, how APEX organises it, and how it applies to you. Cramps are a good example of why that matters.

Research evidence

Coaching principle

Because the strongest pattern is a fatigued muscle doing more than it is prepared for, the coaching response is to prepare the muscle for the demand: gradual progression, sensible pacing, enough recovery and normal fuelling. It is the same progressive overload you learned in article 37, applied to the muscle that keeps cramping.

APEX framework

APEX treats a cramp as feedback, not as a mystery or a failure. It enters the feedback loop: is it working, and if not, what should we investigate? Adherence, progression, volume, intensity, exercise selection, recovery, nutrition and environment are all on that list.

Individual decision

Your own pattern decides what you change. Someone who cramps only in long races in the heat, after sweating heavily, may reasonably pay closer attention to fluids and salt with sensible guidance. Someone who cramps in the hamstrings on the first week of a new leg program almost certainly needs a gentler start, not a sports drink.

What to do when a cramp starts

  1. Stop or slow the activity. Continuing to load a cramping muscle usually prolongs it.
  2. Gently stretch the cramping muscle and hold until it releases. For a calf, straighten the knee and pull the toes up towards you or lean into a wall. For a hamstring, straighten the leg and hinge gently forward. For the foot, pull the toes back.
  3. Breathe and wait. Most cramps pass within a minute or two.
  4. Decide whether to continue. If it releases fully and you feel normal, you may finish at a clearly easier effort or with exercises that do not use that muscle. If it keeps returning, end that part of the session. It is a signal that the muscle is done for today.
  5. Write it down afterwards (more on this below).

Why cramps usually point back to the program

Look at when cramps commonly appear and a training pattern emerges:

Each of these is a specificity and progression question (articles 36 and 37). The body adapts to the demands it is given. If your calves have never run fifteen kilometres, the fifteenth kilometre is a demand they have not been prepared for, and fatigue arrives there first. The fix is the same as for any capacity: expose the muscle to that demand in small, repeatable steps until it is no longer new.

Common mistakes

When a cramp is not a training question

APEX is fitness education, not diagnosis or treatment. Talk to a qualified healthcare professional if:

Seek urgent medical care if, after very hard or unaccustomed exercise, you have severe muscle pain and swelling that is far beyond normal soreness, marked weakness, or dark, cola-coloured urine, or if a cramp comes with chest pain, confusion, fainting or difficulty breathing. These are not cramp problems to manage at home.

Where this fits in APEX

This extra sits alongside the support articles of editorial phase 8, next to sleep and recovery (article 80) and the lifestyle foundation (article 82). It is not a separate system. It is the feedback loop applied to one specific signal.

Within a training season, cramps that cluster during Overload or Amplify, when demand is highest, suggest the steps are too large or that a Deload is due. A cramp that appears in the Learn phase of a new block usually means the new exercises need a gentler start.

What not to copy

You will see athletes cramp in finals and endurance races and you will see their sponsors sell drinks, gels and supplements as the answer. Elite competitors cramp partly because they push beyond their usual pace on the biggest day, in heat, after long seasons. Their situation is not yours, and a product in their hand is not evidence. Copy the principle instead: prepare the specific demand and pace yourself within it.

Your next best step

Next time you cramp, log it, then build that one demand gradually. Write down:

  1. which muscle cramped;
  2. what you were doing and how far into the session (minutes, sets, kilometres or rounds);
  3. whether that demand was new, longer, heavier or faster than usual;
  4. how you slept, the temperature and how much you had eaten and drunk that day.

After two or three entries, the pattern usually shows itself. If cramps cluster around one demand, keep the rest of your program as it is and progress that demand in small steps, for example a few extra minutes of running per week, one extra set every week or two, or more practice of the exercise that keeps cramping at a lighter effort. Only if your log points at heat and heavy sweating does fluid and salt planning become the main lever, and only if it points at rest, medication or health does it become a conversation with a healthcare professional.

Practical application

The sample program attached to this article shows how to build tolerance in the muscles that most often cramp, calves, hamstrings and feet, inside an ordinary full-body week. It does not cure cramps. It is an example of preparing specific muscles for the demands they meet late in sessions, progressed by competency. Use it as a model for your own cramp-prone muscle, and keep the cramp log going so you can see whether the change is working.

A sample, by level

Sample: Building Tolerance in Cramp-Prone Muscles

This is a sample, not a personal program and not a cramp treatment. It shows how calves, hamstrings and feet can be prepared gradually for the late-session demands where cramps often appear, while still covering the main movement families. Keep a simple cramp log alongside it. If cramps happen at rest, at night, with weakness or swelling, or after a medication change, see a qualified healthcare professional rather than adjusting training.

Beginner

APEX stage: Foundation · 2 days a week

Full Body A
ExerciseSetsRepsRestNote
Leg press or goblet squat210-1290 sSupported squat pattern; moderate effort.
Glute bridge210-1260 sGentle hamstring and glute work; stop if the hamstring tightens into a cramp.
Seated cable row210-1290 sPull pattern.
Incline push-up28-1290 sPush pattern.
Standing calf raise holding support210-1560 sFull range, two-second lowering; builds calf tolerance.
Brisk walk115-20 min-Easy pace you can talk at.
Full Body B
ExerciseSetsRepsRestNote
Box squat to a bench28-1090 sSquat skill practice.
Dumbbell Romanian deadlift28-1090 sLight hinge; hamstrings work in a lengthened position.
Lat pulldown210-1290 sVertical pull.
Machine chest press210-1290 sSupported push.
Seated calf raise212-1560 sControlled, full range.
Towel toe scrunches215-2030 sEasy foot muscle practice.

How to progress: Keep every set 3 or more reps short of failure. When all sets reach the top of the rep range with control and no cramping for two sessions, add reps or a small load to one exercise only. Add 5 minutes to the walk each week or two only if no cramps appeared and you recovered well.

Intermediate

APEX stage: Transformation or Development · 3 days a week

Lower and Push
ExerciseSetsRepsRestNote
Goblet or front squat36-102 minMain lower lift early while fresh.
Romanian deadlift38-102 minHamstring capacity in the lengthened range.
Dumbbell bench press38-122 minPush pattern.
Seated or lying hamstring curl210-1590 sA common cramp exercise; start light and add load slowly.
Single-leg calf raise310-15 each60 sPause at the bottom; equal reps each side.
Upper and Pull
ExerciseSetsRepsRestNote
Chest-supported row38-1290 sHorizontal pull.
Assisted pull-up or pulldown36-102 minVertical pull.
Seated dumbbell overhead press38-102 minOverhead push.
Farmer carry330 m90 sGrip and trunk; steady walking pace.
Side plank220-30 s each45 sAnti-lateral flexion.
Conditioning
ExerciseSetsRepsRestNote
Easy run, cycle or brisk incline walk130-45 min-Talk-test pace; add time gradually, since late-session fatigue is where cramps often appear.
Walking lunge28-10 each90 sAfter the aerobic work, practise leg control while slightly fatigued at low load.

How to progress: Use double progression: reach the top of the rep range on all sets at 1 to 3 reps in reserve, then add load. Increase one weekly conditioning session by about 5 to 10 percent only when the cramp log shows no late-session cramps. If cramps cluster in the hardest weeks, hold the dose or take a deload week before progressing.

Advanced

APEX stage: Performance · 4 days a week

Strength A
ExerciseSetsRepsRestNote
Back or front squat44-63 minHeavy for you, 2 reps in reserve.
Romanian deadlift36-82-3 minHamstring strength in the lengthened range.
Bench press35-82-3 minPush strength.
Weighted single-leg calf raise38-12 each90 sCalf strength supports late-run tolerance.
Strength B
ExerciseSetsRepsRestNote
Trap bar deadlift34-63 minHinge strength.
Nordic hamstring lowering, assisted as needed34-62 minSlow lowering; progress assistance only when controlled and no cramping.
Weighted pull-up or pulldown35-82-3 minPull strength.
Bulgarian split squat36-8 each2 minSingle-leg strength.
Event-Specific Long Session
ExerciseSetsRepsRestNote
Long run, ride or round-based sport practice160-120 min or planned roundsAs plannedMostly easy; extend by small steps each week or two; rehearse fuelling and fluids.
Event-pace segment in the final third2-35-10 min3-5 min easyPractises the late, fatigued demand where cramps tend to appear.
Intervals
ExerciseSetsRepsRestNote
Intervals on your event mode5-63 min hard2 min easyHard but repeatable; stop the session if a cramp keeps returning.
Easy cool-down110 min-Gradual return to easy effort.

How to progress: Build the specific late-session demand of your event: extend the long session or the number of hard rounds by small steps, rehearse event pace and normal fuelling and fluids in training, never on event day for the first time. Keep strength sessions stable while endurance volume rises, and reduce volume before intensity if cramps or poor recovery appear.

Fitness education only, not medical advice. Stop a set if a cramp starts, stretch the muscle gently and continue only at an easier effort if it fully releases. Seek urgent medical care for severe muscle pain and swelling far beyond normal soreness, marked weakness or dark urine after hard exercise, or for chest pain, fainting or breathing difficulty. If you are pregnant, after birth, live with a health condition or follow fluid or salt restrictions, follow your healthcare professional's guidance first.

This is a sample for this lesson, not your personal program.

Sources

  1. Exercise-Associated Muscle Cramps, Sports Health: A Multidisciplinary Approach (2010) https://doi.org/10.1177/1941738109357299
  2. Magnesium for skeletal muscle cramps, Cochrane Database of Systematic Reviews (2020) https://doi.org/10.1002/14651858.CD009402.pub3

Your next step

Next time you cramp, log the muscle, what you were doing and how far into the session, whether the demand was new or bigger than usual, and your sleep, heat, food and fluids, then progress that one demand in small steps.

Related APEX lessons

Download the SanoobFit app for your free training program.

Download on the App Store
PreviousE9. Training for Combat Sports: Boxing, Kickboxing and MMANextE11. HRV and Readiness: Should It Change Your Training?

Muhammed Sanoob

Personal Trainer and Strength Coach. CSCS strength and conditioning coach, REPS Level 3, Precision Nutrition Level 1 and 2. Two time National MMA Champion (2016, 2017). 15+ years in personal training and former corporate personal trainer at Goldman Sachs. About the coach

Stay in the loop

Join the SanoobFit newsletter

Training tips, nutrition truths, and behind the scenes from Coach Sanoob, straight to your inbox. No fluff, no spam.

Weekly · Free forever · Unsubscribe anytime
Something went wrong. Please WhatsApp us directly.
✓

You're in

Thank you for subscribing. You'll receive SanoobFit updates soon.

Link copied