Recovery & Injuries · Beginner · 4 min read
Muscle Cramps: Causes, Prevention and What Helps
A cramp is a muscle that will not let go. They strike in the middle of sets, in bed at night, and halfway up a squat. Most are harmless and fixable — usually with the basics rather than the supplement aisle. Here is what causes them and what actually helps.

On this page
What causes muscle cramps
Cramps are sudden, involuntary contractions — the muscle's "off" switch misfiring. The common triggers for lifters and athletes:
- Fatigue and unfamiliar volume — the classic: a new exercise, a race, or a set that went past where training prepared you.
- Dehydration and electrolytes — sweating without replacing sodium, potassium and magnesium.
- Nerve excitability — which is why cramps love the night, and why tired muscles cramp at rest.
- Compression or position — a cramped calf during calf raises is often just the muscle being pinched short.
- 1–2 mintypical cramp lengthStretch and breathe through it
- 2–3 Ldaily fluid baselineMore in heat or heavy training
- 24–48hwhen post-training cramps peakUsually unfamiliar volume
What to do when a cramp hits
Stop the movement — do not try to finish the set. Then:
- Stretch the muscle gently and hold. For a calf, press the heel down; for a hamstring, extend the knee.
- Breathe slowly. The panic makes it worse; long exhales relax the muscle.
- Drink water with electrolytes — a pinch of salt and sugar in water works as well as most drinks.
- Walk it off gently before loading again. If it returns, the session is done for that muscle.
- Warm up properly before hard or heavy work
- Replace electrolytes on long, hot or sweaty sessions
- Build new volume gradually — respect unfamiliar exercises
- Eat magnesium-rich foods: leafy greens, nuts, seeds, legumes
- Pushing through a cramping set
- Chugging plain water only after heavy sweating
- Jumping straight to high-volume calf work after months off
- Ignoring cramps that hit the same muscle every night
Hydration, electrolytes and supplements
Water alone is not the whole story — sweat loses sodium, potassium and magnesium, and plain water replaces only half the equation. For most lifters, food covers the minerals: bananas, potatoes and greens for potassium; nuts, seeds and whole grains for magnesium; normal salting for sodium. Supplementing magnesium helps only if intake is actually low — see the magnesium guide.
- Only after hard sessionsFatigue and electrolytesWarm up, salt the food, build slower
- Every night in bedCheck magnesium and recoveryFood first, supplement if low
- Same muscle, same exerciseCheck the positionCompression or a pinched nerve
- Cramps with weakness or swellingSee a doctorNot a training problem
When cramps are a warning sign
Most cramps are ordinary. See a professional when they come with numbness or weakness, swelling or redness, when they happen without any trigger, or when they are so frequent they wreck sleep and training. Those patterns deserve a look — everything else is managed with food, water, warm-ups and sane progression.
- Most training cramps come from fatigue plus dehydration with lost electrolytes.
- Stretch the cramping muscle, breathe slowly and drink with electrolytes.
- Prevent them with warm-ups, gradual volume and mineral-rich food.
- Magnesium helps only if your intake is actually low — food first.
- Cramps with numbness, weakness or swelling deserve a doctor, not a stretch.
Frequently asked questions
What causes muscle cramps during exercise?
Fatigued muscles overworked past what training prepared them for, often combined with dehydration and lost electrolytes. Unfamiliar volume and heat are the classic triggers.
How do I stop a cramp fast?
Stop moving, gently stretch the muscle and hold, breathe slowly, and drink water with salt and electrolytes. Most cramps release within a minute or two.
Does dehydration cause cramps?
It contributes — sweat loses sodium, potassium and magnesium, and replacing only water leaves the balance off. Replace electrolytes on long, hot or sweaty sessions.
When should I see a doctor about cramps?
When they come with numbness, weakness, swelling or redness; when they happen without exertion; or when they are frequent enough to wreck sleep and training.
Related guides
Muscle Recovery and DOMS: What Actually Helps
Muscle recovery explained: what DOMS is, how long muscles take to recover, and the recovery methods that actually work versus the ones that are overrated.
Beginner · 3 min read
Hydration for Lifters: How Much Water Do You Need?
How much water you need for training and health, how dehydration affects performance, and simple ways to stay hydrated around your workouts.
Beginner · 3 min read
Magnesium for Lifters: Sleep, Cramps and Recovery
Magnesium for lifters: what it does, how much you need, the best food sources, which supplement to choose, and what the evidence says about sleep and cramps.
Intermediate · 3 min read
Rest Days and Overtraining: How Much Is Too Much?
Why rest days matter, the real signs of overtraining and under-recovery, and how to balance training stress with recovery for steady progress.
Beginner · 3 min read
This guide is general educational information, not medical advice. Train within your ability and consult a qualified professional before starting a new program if you have an injury or health condition.