I Cramped at Mile 20 — Was It Electrolytes, Dehydration, or Something Else?
Late-race cramping has multiple causes. Here's what the science says and how to build a plan that actually prevents it.

In Summary
- Late-race cramping isn't always about electrolytes — fatigue and pacing play a bigger role than most runners think.
- Studies show 69% of athletes cramp even when fully hydrated and supplemented.
- Your personal sweat rate and sodium concentration determine what you actually need.
- Sweatr builds a hydration plan from your wearable data so you stop guessing.
The mile 20 wall nobody warns you about
You trained for months. You nailed your long runs. You tapered perfectly. And then, somewhere around mile 20, your calves seized up and you were reduced to a shuffling, grimacing mess on the side of the road.
If this sounds familiar, you're not alone. Late-race cramping is one of the most common — and most misunderstood — problems in endurance sport. Ask ten runners what causes it and you'll get ten different answers. Take more salt. Drink more water. Eat a banana. Stretch more.
The truth is more complicated, more personal, and more fixable than any of that generic advice suggests.
What the science actually says about exercise-associated muscle cramping
For decades, the dominant theory was simple: you cramp because you lose too much sodium and fluid through sweat. Replace what you lose, and you won't cramp. It's a clean story. It's also incomplete.
A landmark study published in the British Journal of Sports Medicine tracked Ironman triathletes and found that athletes with exercise-associated muscle cramping (EAMC) did not have significantly different serum electrolyte levels compared to those who didn't cramp. Even more striking: 69% of participants in a controlled study experienced cramping even when they were properly hydrated and supplemented with electrolytes.
This doesn't mean electrolytes don't matter — they absolutely do. But it means electrolyte depletion alone doesn't explain the full picture.
The three causes of late-race cramping
Current sports science points to three overlapping mechanisms. Most runners experience cramping from a combination of all three, which is why single-fix solutions rarely work.
1. Neuromuscular fatigue
This is the factor most runners underestimate. When a muscle is worked beyond what it's been trained to handle, the signals between your brain and your muscle fibres start to misfire. The muscle contracts involuntarily — and stays contracted.
This is why cramping tends to hit at mile 20, not mile 5. It's not that you suddenly ran out of sodium at that exact moment. It's that your muscles have been working for three-plus hours, and they've reached their fatigue threshold.
The implication: your pacing strategy and training volume directly affect your cramping risk. If you're running a pace that's aggressive relative to your fitness, you're much more likely to cramp — regardless of how many electrolyte tablets you took.
2. Electrolyte imbalance
Electrolytes still matter, just not the way most people think. Sodium is the primary electrolyte lost in sweat, and the amount you lose varies enormously between individuals. Some runners lose 200mg of sodium per litre of sweat. Others lose over 1,500mg per litre. That ten-fold difference means generic advice like "take a salt tablet every hour" is useless without knowing where you fall on the spectrum.
When your sodium levels drop too low relative to your fluid intake, your muscles become more excitable — meaning they're more prone to involuntary contraction. This is especially dangerous when combined with neuromuscular fatigue.
The fix isn't just "more electrolytes." It's knowing your personal sweat sodium concentration and matching your intake to your actual losses.
3. Dehydration (but not the way you think)
Mild dehydration — losing 2-3% of body weight — is normal during a marathon and doesn't necessarily cause cramping. In fact, most marathon winners finish mildly dehydrated. The problem comes when dehydration gets severe (above 4-5% body weight loss) or when you overcompensate by drinking too much plain water, which dilutes your blood sodium and creates hyponatremia — a condition that's actually more dangerous than mild dehydration.
The critical insight: your hydration strategy needs to balance fluid intake with sodium intake, calibrated to your personal sweat rate and the conditions you're racing in. A 60kg runner with a moderate sweat rate needs a completely different plan than an 85kg runner who sweats heavily.
Why generic advice fails
Here's the core problem: every sweat rate calculator, every hydration guide, and every gel-timing chart gives you a range. Drink 400-800ml per hour. Take 30-60g of carbs per hour. Consume 300-600mg of sodium per hour.
Those ranges are so wide they're almost meaningless for individual planning. 400ml per hour is a completely different race experience than 800ml per hour. If you're on the wrong end of that range for your body, you're going to have a bad day.
The reason you cramped at mile 20 probably isn't that you did something catastrophically wrong. It's that you were following a plan built for the average runner — and you're not the average runner. Nobody is.
How to actually prevent late-race cramping
Prevention starts long before race day. Here's the framework that addresses all three mechanisms.
Train at race pace
Your muscles cramp when they hit a workload they haven't been prepared for. If your marathon goal is 4:00, your long runs need to include sustained stretches at marathon pace — not just easy miles. This trains the neuromuscular system to handle the specific demand you'll place on it during the race.
Know your sweat rate
Weigh yourself before and after a training run of at least 60 minutes. Account for any fluid you consumed during the run. The difference, converted to millilitres, divided by the number of hours, gives you your hourly sweat rate. Do this in conditions similar to your race.
This number is the foundation of your hydration plan. Without it, you're guessing.
Personalise your sodium intake
If you're a salty sweater — white residue on your kit after long runs, sweat that stings your eyes — you're likely losing more sodium than average. You'll need more sodium replacement per hour than standard sports drinks provide.
Most sports drinks contain 300-500mg of sodium per litre. Heavy salt sweaters may need 1,000mg or more per litre. The gap between what you need and what a standard drink provides could be the difference between finishing strong and cramping at mile 20.
Practise your plan in training
The most important rule: never try anything new on race day. Your gut, your muscles, and your hydration system need to be trained on the exact products, quantities, and timing you plan to use during the race. Use your long runs as dress rehearsals.
Use your data
Your Apple Watch or Garmin already tracks the metrics that matter — heart rate, workout duration, training load, environmental conditions. What's missing is the connection between that data and an actionable hydration plan.
Sweatr bridges that gap. It takes your wearable data, combines it with your personal sweat profile, and generates a hydration and fueling plan that's calibrated to you — not to a generic chart. When conditions change, your plan adapts. When your fitness improves, your plan updates. No patches, no lab visits, no guesswork.
The bottom line
Late-race cramping isn't a single-cause problem, and it doesn't have a single-cause solution. It's the result of neuromuscular fatigue, electrolyte imbalance, and hydration status interacting in ways that are unique to your body.
Generic advice gives you ranges. Your body needs specifics. The runners who finish strong at mile 20 aren't the ones who took more salt — they're the ones who built a plan that matched their actual physiology.
Your watch already has the data. Sweatr turns it into the plan. Try it free and stop guessing before your next race.