It is the classic of the marathon finale: kilometre 32, the calf seizes up, the stride turns into a hobble. Between 30 and 50 percent of all marathon runners report cramps during or after the race — in ultra distances the rate is even higher. For decades, "too little magnesium" or "dehydration" served as the explanation. Sports science has largely discarded both. This article shows what research knows today about muscle cramps in running — and which measures therefore actually work.
What a muscle cramp really is
The technical term is EAMC — exercise-associated muscle cramps: painful, involuntary hardening of a muscle during or directly after exertion. In running they almost always hit the working muscles: calves, hamstrings, less often the quadriceps. The cramp typically comes in waves, announces itself through twitching (the "cramp prodrome" many runners know) and can escalate into full lock-up without a response.
The decisive point: an EAMC is not a metabolic problem of the muscle but a control problem. The muscle receives a permanent "contract" signal from the nervous system — and the "relax" signal no longer gets through. All effective countermeasures follow from exactly this.
The two explanatory models — and what the data say
The older theory blames dehydration and electrolyte loss through sweating. It dates back to observations of mine workers in the 1930s and was cultivated for decades by the sports drink industry. The problem: field studies of marathon and triathlon finishers consistently show that cramping athletes are neither more dehydrated nor have lower blood sodium levels than cramp-free ones. Losing mostly water actually concentrates the blood — the opposite of the theory. Cramps also occur locally in one muscle, whereas a systemic electrolyte shortage would have to affect the whole body.
The newer and now dominant model is the neuromuscular fatigue theory (shaped significantly by Martin Schwellnus). It states: fatigue shifts the balance of two reflex arcs in the spinal cord. The muscle spindle reflex fires more strongly ("pull on"), while the inhibitory Golgi tendon reflex fades ("let go"). The result: uncontrolled sustained activation. The model elegantly explains practical observations — cramps cluster in the most fatigued muscles, at paces above training level, in the closing stages of long races, and in athletes with a cramp history. The only risk factor that consistently shows up in studies is, by the way, exactly that: a previous cramp.
The most important risk factors
The fatigue theory predicts who is most at risk. Field studies of marathon, triathlon and ultra participants confirm these factors:
- Race pace above training level: The strongest single driver. Running the whole race faster than ever in training produces exactly the unaccustomed fatigue that tips the reflex arc. In studies, cramp-prone runners start significantly faster relative to their training performance.
- Previous cramps: Once you have cramped in competition, you are highly likely to cramp again — probably a mix of predisposition, running form and repeated overpacing.
- Unaccustomed load: New movement patterns (a first trail race with lots of descending, unfamiliar shoes, a sudden jump in interval training) hit muscles that are not conditioned for them.
- Heat: High temperatures accelerate fatigue and raise core body temperature — both favour cramps. The heat itself is the driver, not sweat loss. How to adapt to hot conditions is covered in the article on heat acclimation.
- Distance and duration: The longer the race, the higher the risk — which is why cramps are rare in a 10K, common in the marathon and almost the rule in ultras.
Prevention: what actually works
If fatigue is the cause, the logic of prevention is: reduce fatigue at a given pace — or reduce pace at a given fatigue. In concrete terms:
- Specific training: The best protection is a body that knows the race distance and the race pace. Long runs with blocks at goal pace condition the muscles for exactly the later demand. Such race-specific sessions belong in the final eight to ten weeks of marathon preparation.
- Race-pace discipline: Start conservatively. Pacing strategy is cramp prophylaxis: a controlled first half lowers cramp risk more than any supplement. Details in the article on marathon pacing strategy.
- Strength training: Stronger muscles fatigue less per stride. Two short strength sessions per week — calf raises, deadlift variations, plyometrics — measurably improve neuromuscular economy. A starting point is the article on strength training for runners.
- Take fueling seriously: Empty glycogen stores accelerate fatigue — and indirectly the cramp risk. 60–90 grams of carbohydrates per hour from about 75 minutes of effort onwards is standard. Entering the final third under-fueled risks cramp and bonk alike (why the wall hits).
- Heat acclimation: For warm races, systematically adapt to heat 10–14 days out — this clearly lowers core-temperature drift and the rate of fatigue.
Electrolytes and magnesium: the honest assessment
Are sodium and friends therefore completely useless? No — but their role is smaller than marketing suggests. Heavy "salty sweaters" (white salt lines on clothing and skin, very salty sweat) lose more than 1,500 mg of sodium per hour. In races beyond three hours in the heat, targeted sodium intake (roughly 400–800 mg per hour) can stabilise performance and lower the risk of hyponatremia — a serious topic of its own. Details are in the articles on electrolytes in running and hydration for runners. As a miracle anti-cramp cure, sodium still does not qualify: the evidence for a direct anti-cramp effect is weak.
Magnesium is the most persistent myth. Controlled studies find no advantage over placebo in athletes — neither in cramp frequency nor severity. Magnesium deficiency is rare in endurance athletes eating a normal diet; if you suspect one (for example with nocturnal calf cramps at rest, not under load), have it checked via a blood test instead of supplementing blindly.
First aid: what helps during an acute cramp
When the cramp hits, a simple protocol counts:
- Back off the pace: Drop to walking pace or a standstill immediately — every further fast stride reinforces the faulty signalling.
- Stretch passively: Slowly bring the affected muscle into a lengthened position and hold for 20–30 seconds. For the calf: pull the toes towards the shin with the leg straight. Stretching activates the inhibitory tendon reflex — exactly the mechanism that is missing. Jerky stretching is off-limits; it can cause a fibre tear.
- Restart gently: After release, walk or jog very easily for a few minutes, drink, then resume one gear below your previous pace.
- Watch the pattern: If the cramp returns within minutes, the muscle is overloaded. Then revise the pace goal, or the next cramp follows — in the worst case with muscle damage in the days after.
Odd but increasingly evidence-backed: very sharp or sour stimuli — a shot of pickle juice or mustard, for example — can release a cramp within one to two minutes, far too fast for any digestion. The suspected mechanism is a reflex via TRP channels in the mouth and throat that dampens the over-excited neural activation. No substitute for sensible training, but a legitimate emergency tool mid-race. What does not help: a magnesium tablet during the race (works after hours at the earliest, if at all) and massage in the middle of a full cramp.
When cramps are a warning sign
Exertional cramps in sport are unpleasant but harmless. It is different when cramps occur at rest or show a pattern: recurring nocturnal calf cramps without any sport connection, cramps under very light loads, always the same one-sided spot, or accompanying muscle weakness deserve a medical work-up. Possible backgrounds include medications (such as diuretics or statins), thyroid and nerve disorders, or circulation problems. Rule of thumb: cramp in the marathon finale — physiology. Cramp on the sofa — check-up.
How Peakora helps you stay cramp-free
The most effective cramp prophylaxis is a plan that never lets you race beyond your training level. Peakora builds your weeks so that long runs, race-pace blocks and strength sessions progressively create exactly the durability your goal race demands — and the race-day pace plan is based on what your training actually delivered, not on wishful thinking. The recovery monitor also shows when fatigue is running ahead of plan: a clearly negative form value in race week is the signal to adjust your goal time realistically — instead of being stopped by a cramp at kilometre 30.
Frequently asked questions about muscle cramps in running
Does magnesium help against muscle cramps while running?
Usually not. Studies in athletes show no reliable effect of magnesium against exercise-associated cramps — the main cause is neuromuscular fatigue, not mineral deficiency. Supplementation only makes sense when a deficiency is medically confirmed.
What helps immediately when a cramp strikes mid-race?
Slow down right away and gently stretch the affected muscle for 20–30 seconds until the cramp releases. Then walk or jog easily, drink, and resume at a more conservative pace — going straight back to the limit invites the next cramp.
Why do cramps mostly hit at the end of a marathon?
Because cramps mainly arise from fatigue: the longer the effort and the further you run beyond your accustomed training level, the more the nervous control of the muscles tips out of balance. That is why cramps almost always strike in the final third of a race.
Do electrolyte drinks prevent muscle cramps?
Not reliably. Sodium intake makes sense for heavy salty sweaters and in the heat, but it does not address the main cause, fatigue. Studies show cramp-prone runners are neither more dehydrated nor lose more electrolytes than cramp-free runners.
Train so your body can hold race pace
AI training plan with pace control, strength blocks and a recovery monitor — the best insurance against cramps in the finish chute. Start free, no credit card required.
Start for free