Muscle Twitching and Spasms After a Workout: Why It Happens
Share
Short answer: Twitching after a workout is usually your nerves still firing after the muscle is done — fatigue plus a shortfall in magnesium, potassium or sodium from sweating. It's almost always harmless and settles within a day or two. Cramping is the more forceful version of the same underlying problem.
Whichever muscle it's happening in, the cause is generally the same. Which one it is tends to just reflect what you trained.
Twitching vs cramping — they're not the same thing
Worth separating these, because people use the words interchangeably and they point at slightly different things.
Twitching (the medical term is fasciculation) is a small, fluttery movement under the skin. It doesn't hurt, you often can't stop it by moving, and it can carry on quietly for hours. It's a few motor units misfiring rather than the whole muscle contracting. Magnesium is the usual suspect, along with plain fatigue, caffeine and poor sleep.
Cramping or spasm is the whole muscle seizing up at once. It hurts, the muscle goes visibly hard, and you'll usually stretch it out instinctively. This leans more toward sodium and potassium, and toward dehydration.
Both come from the same place — the electrical signalling between nerve and muscle going slightly wrong — and both respond to the same fixes.
Why it happens where it happens
Twitching shows up in whatever you just worked hardest, which is why the location feels random but usually isn't.
Arms and biceps. The most commonly reported, largely because arms get trained to failure more than most muscle groups. Curls and pulling movements leave the biceps firing for a while afterwards. Normally settles overnight.
Abs. Core work involves long holds and lots of small stabilising contractions, which fatigues motor units without much total load. Twitching abs after planks or leg raises is common and not a sign you've hurt anything.
Chest. Usually after pressing volume. Worth noting: chest twitching that comes with chest pain, breathlessness, or a racing heart is not a muscle question — get that checked rather than assuming it's your workout.
Calves and legs. The classic cramping location, often at night after a hard session. Calves carry a lot of load and are heavily involved in anything sustained.
Back. More often true spasm than twitch, and more likely to involve technique or strain than minerals. If back spasms come with pain shooting down a leg, or numbness, that's a doctor visit.
Eyelids. Not a workout muscle, but it shows up in the same people at the same time — and it's the single most reliable magnesium signal there is.
What's actually causing it
Electrolyte shortfall. You sweat out sodium, potassium and magnesium, and all three are directly involved in muscle contraction. Magnesium in particular handles the relaxation half of the cycle — short on it and muscles struggle to switch off cleanly, which is exactly what a twitch is.
Dehydration. Fluid is how minerals get to your muscle cells in the first place. Run low and that delivery falters, regardless of how much magnesium is in your diet.
Muscle fatigue. Training to failure leaves motor neurons hyperexcitable for a while — they keep sending small signals after you've finished. This is the main driver when you've trained a body part unusually hard, and it needs rest more than minerals.
Skipping the cool-down. Warming up and cooling down properly genuinely reduces this. Going from maximal effort to sitting in the car makes twitching more likely.
Caffeine and sleep. Both raise nerve excitability. A heavy pre-workout plus five hours' sleep is a reliable recipe for twitching, and no amount of magnesium fixes that combination.
What to do about it
In the moment, gently stretch and massage the muscle, and get some fluid in with something in it. For a cramp, stretching the muscle out is the fastest relief.
To stop it recurring:
- Replace minerals, not just water. Drinking plain water after heavy sweating dilutes what's left and can make things worse. This is the single most common mistake.
- Drink through the day, not just around training. Roughly 500ml a couple of hours before, 250ml every 15–20 minutes during a long session, and top up afterwards.
- Eat for magnesium. Leafy greens, nuts, seeds, beans. It's the mineral most people are genuinely short on.
- Salt your food if you sweat heavily. Cheapest fix on this list.
- Cool down properly and stretch what you trained.
- Sleep, and take the rest day. Persistent twitching in a muscle group you keep hammering is a signal, not a nuisance.
Where a supplement helps
If it's happening regularly and you're sweating a lot, Electrolyte Recovery Plus covers all six electrolytes including the magnesium and potassium behind most twitching — with no sugar, which matters since most sports drinks are heavy on sodium and light on everything else. The hydration capsules do the same without mixing.
Being straight about it though: if you're twitching because you trained to failure and slept five hours, minerals aren't the fix. Rest is.
Shop Electrolyte Recovery PlusWhen to get it checked
Post-workout twitching is nearly always benign. See a doctor if:
- It carries on for weeks, or spreads to muscles you haven't trained
- It comes with muscle weakness, numbness, or trouble moving the limb
- There's severe pain, swelling, redness or bruising
- Your urine turns dark brown or cola-coloured after intense exercise — that needs urgent attention, not a rest day
- Chest twitching comes with chest pain, breathlessness or palpitations
Persistent spasms can occasionally point to something else — thyroid problems, kidney issues, vitamin D deficiency, or a neurological cause — which is worth ruling out rather than guessing at.
Bottom line
- Twitching is small and painless; cramping is forceful and hurts. Same underlying cause.
- Magnesium is the usual culprit for twitching, sodium and potassium for cramping.
- Which muscle twitches just reflects what you trained hardest.
- Water alone after heavy sweating can make it worse — replace minerals too.
- Weeks of it, spreading, weakness, or dark urine means see a doctor.
If you're not sure which mineral you're short on, the symptom guide maps each symptom to the likely cause.
General information, not medical advice. Persistent or severe symptoms should be assessed by a healthcare professional.