Founded in London, UK. We respect your privacy.

Used by 1,500+ happy people

Cramps, explained

Muscle cramps when you run: why they happen and how to stop them

The science has moved on from ‘you just need more electrolytes’. Here is a calmer, more honest look at mid-run cramps and the night cramps that follow a long run.

TL;DR

  • Most running cramps look less like a missing mineral and more like a muscle being pushed past the fitness it is trained for.
  • Hydration, sodium and fuel still matter, but topping them up is not a guaranteed off switch, so do not rely on electrolytes alone.
  • In the moment, stop or slow down, gently stretch the cramping muscle, then walk before you ease back in.
  • To prevent them, build mileage gradually, train at race effort, fuel and hydrate sensibly, and add regular strength work.
  • Night cramps after a long run are common and usually settle, but see someone if they are severe, frequent or new.

2

leading explanations researchers weigh up: the old electrolyte story and the newer muscle-fatigue view

3

simple moves that calm most cramps mid-run: stop, stretch, then walk

0

guaranteed cures, which is why steady training beats any single trick

You are running well, then a calf or hamstring seizes into a hard, painful knot that stops you in your tracks. Sometimes it strikes deep in a race. Sometimes it waits until 2am, hours after a long run, and wakes you up. Running cramps are one of the most common and most frustrating things members ask us about, partly because the advice online is so confident and so contradictory. This is a calmer look at what we actually know, what we do not, and what tends to help.

What actually causes muscle cramps when you run?

For years the standard story was simple: you sweat, you lose fluid and salts, and your muscles cramp. It is an appealing idea, and it is why so many runners reach straight for an electrolyte tab. The trouble is that the evidence never fully backed it. Researchers repeatedly found runners cramping who were well hydrated, and others who were badly dehydrated yet never cramped at all.

The view many sports scientists now lean towards is that a lot of exercise cramps come from the muscle and its nerves being fatigued, worked harder than they are conditioned for. In plain terms, the fine control that tells a muscle when to contract and when to relax gets thrown off. The signals that drive contraction start to overpower the ones that let the muscle release, and it locks up. This is often called the neuromuscular fatigue explanation, and it fits what runners see in real life: cramps tend to arrive late in hard efforts, in the muscles doing the most work.

It is worth being honest here. This is still an unsettled area, and cramps are almost certainly not one single thing. Fatigue, low fuel, muscle damage, pacing, heat and, yes, fluid and salt losses can all feed in. So the useful takeaway is not ‘it is never electrolytes’, but rather ‘it is rarely just electrolytes’.

Is it really just dehydration and electrolytes?

Hydration and sodium genuinely matter, especially in hot weather or on long efforts where you lose a lot of sweat. Turning up dehydrated and under-fuelled will not help your legs, and drinking to a sensible thirst and taking in some sodium on long runs is good practice. What the research does not support is the idea that a cramp is proof you are short of a specific mineral, or that swallowing more salt will reliably switch a cramp off.

Studies that tried to link cramping to blood electrolyte levels or fluid loss have been inconsistent, and simply replacing fluids and salts does not consistently stop cramps once they start. That does not make electrolytes useless. It just means they are one piece of the puzzle rather than a guaranteed fix. If you have leaned hard on electrolyte products and still cramp, you are not doing it wrong, you are probably running into the limits of that single approach.

Why do cramps hit in the middle of a run or race?

Mid-run cramps usually show up when the demand on a muscle outstrips what it is ready for on the day. A few patterns come up again and again:

  • Going out too fast. Running the early miles quicker than your training pace is one of the more consistent risk factors, because it fatigues the muscle earlier than expected.
  • Distance beyond your conditioning. Cramp risk tends to climb on longer efforts, particularly once you push past the distance your legs are used to.
  • Running faster than you trained. If race day is much harder than your sessions, your muscles meet an effort they have not rehearsed.
  • Under-fuelling. Low carbohydrate availability late in a long run adds to muscle fatigue, which can tip you towards cramping.
  • Heat and heavy sweat. Hot conditions raise the overall load and the fluid you lose, which can bring cramps forward.

Notice how many of these come back to the same root: a muscle asked to do more than it is trained and fuelled for. That is why the most reliable fixes are about preparation and pacing, not a last-minute tablet.

Why do my legs cramp at night after a long run?

Night cramps, often in the calf or foot, are a different beast from the mid-run kind, and honestly the science is thinner here. Experts do not fully know why they happen. The best current guess is that heavily worked muscles and slightly scrambled nerve signalling make a resting muscle more likely to fire into a cramp, sometimes when you stretch or point your toes in bed. After a long or hard run, your legs have taken on plenty of both fatigue and load, which may be why a big Sunday session can visit you again on Sunday night.

If one grabs you, gently straighten the leg and draw your toes up towards your shin to lengthen the calf, then massage it and move around a little. During the day, keeping up sensible hydration, moving regularly and doing some easy calf stretching may help, though the evidence for stretching as prevention is mixed. Frequent, severe or brand new night cramps are worth getting checked, since they are not always about running.

How do you stop a cramp in the moment?

When a cramp bites mid-run, the goal is to break the contraction and take the load off, not to grit your teeth and push on. Try this order:

  • Stop or slow to a walk straight away. Continuing to hammer a cramping muscle tends to make it worse.
  • Gently stretch the muscle in the opposite direction to the cramp and hold it. For a calf, that means drawing your toes up and easing your heel down. This is the single most effective thing you can do, and it works by encouraging the muscle to release.
  • Massage the area lightly and keep it warm as the spasm eases.
  • Walk it out before you think about running again, and expect it to feel fragile for a few minutes. Cramps can return, so ease back in gradually rather than sprinting off.
  • Sip some fluid, and if it is hot or you are deep into a long effort, a little sodium and some carbohydrate will not hurt, even if they are not a magic switch.

If a muscle keeps locking up every time you try to run, that is your body telling you the day is done. Walking home beats turning a cramp into a strain.

How do you prevent running cramps for good?

Prevention is where the newer understanding actually helps, because if cramps are largely about fatigue and conditioning, then training is your best tool. None of this is a guarantee, but stacked together these habits move the odds firmly in your favour.

  • Build mileage gradually. Give your muscles time to adapt to longer efforts instead of jumping distance in big leaps. Long runs that gradually approach your target distance prepare the tissue for the load.
  • Train at race effort sometimes. If you only ever run easy, race pace will feel like new territory. Rehearsing goal effort in training teaches your legs to hold it.
  • Pace sensibly on the day. Start a touch more conservatively than feels natural, especially in the first half, so you are not banking fatigue for later.
  • Fuel and hydrate with a plan. Take on carbohydrate through long runs and races, drink to a sensible thirst, and add some sodium when it is hot or you sweat heavily. Practise your fuelling in training, not for the first time on race day.
  • Do regular strength work. Runners who strength train tend to report fewer cramps, and stronger, more resilient muscles cope better with the load of a long run.

This is exactly why we build Edge plans as one joined-up programme rather than running in isolation. Your easy miles, your race-pace sessions, your strength work and your mobility all pull in the same direction, so your legs are genuinely conditioned for the effort you are asking of them. If cramps have been a recurring problem, that kind of gradual, well-rounded build is far more useful than any single supplement, and a coach can help you spot the pacing or mileage jumps that keep tripping you up.

When should you get cramps checked out?

Occasional cramps during hard or long running are common and rarely a sign of anything sinister. It is worth speaking to a professional, though, if your cramps are frequent, very painful, happen at rest for no clear reason, come with swelling, weakness or changes in skin colour, or if they are a new pattern for you. Cramps can occasionally point to something beyond training, so it is sensible not to simply run through them.

Train with Edge

A fully personalised plan across running, strength, HIIT and mobility, ready in 15 minutes. Message a real coach anytime.

Start free on webDownload on iOSGet it on Android

This article is general guidance, not medical advice. If you are new to exercise, returning from injury, pregnant, or managing a health condition, speak to your GP before starting, and see a physio for any niggle that does not settle.

Read More Articles

Home Blog
🎬
Free Edge for posting a reel. More views, more free Edge.
🎬  Earn free Edge

Post a reel. The more views, the more free Edge you earn.

Show Edge to the world. We reward you based on how far the video travels. Simple as that.

✦ The ladder

10K+ viewsHalf price for a month
20K+ viewsOne month free
50K+ viewsThree months free
100K+ viewsLifetime free membership

✦ The rules

Post on Instagram and TikTok. Both platforms required.
Tag @findyouredgeapp and include #ad in your caption on both posts.
Account must be public so we can verify views.
Show the app in use and talk about at least one feature.
Get started →

Already a member? DM us on Instagram with your reel.

Free 7-day trial

Train your way.
Free for 7 days.

Real training that fits your week, your kit, and your real life. Start in under two minutes.

Personalised plan in under 2 minutes
Strength, running, and HIIT in one schedule
Cancel any time, no fuss
Start my free program

Joining 18,000+ members already training with Edge.