This article is free to read. Creating a lesson uses your daily or stored credits; review the language and settings before starting.
How do muscle cramps happen?
Quick answer
A muscle cramp is a sudden, involuntary contraction that won't relax. It happens when motor neurons fire too fast, flooding muscle fibres with calcium and keeping myosin bound to actin. Muscle fatigue is the best-supported trigger; dehydration and low sodium, potassium, or magnesium may add to it, though the exact cause is still debated.
A muscle cramp happens when motor neurons fire too rapidly, making muscle fibres contract together and stay locked. It is most strongly linked to muscle fatigue, and sometimes to dehydration or low electrolytes like sodium, potassium, and magnesium, though the exact cause is debated.
Step by step
- A motor neuron fires and releases acetylcholine at the neuromuscular junction, exciting the muscle fibre.
- An action potential spreads along the fibre and triggers release of calcium ions inside the cell.
- Calcium lets myosin heads attach to actin, and the fibres slide together, shortening the muscle.
- Normally the nerve falls silent, calcium is pumped back into storage and the fibre relaxes.
- Fatigue, and possibly dehydration or electrolyte loss, can make motor neurons keep firing repeatedly.
- The muscle stays locked in contraction until the nerve firing stops, which stretching often helps.
Key things to understand
- Muscle contraction begins when a motor neuron releases acetylcholine at the neuromuscular junction, triggering an action potential in the muscle fibre.
- The action potential causes calcium ions to flood the fibre's interior, letting myosin heads bind to actin and shorten the muscle.
- Relaxation requires the nerve to stop firing so calcium can be pumped back into storage; in a cramp, the nerve keeps firing.
- Dehydration and loss of sodium, potassium, or magnesium through sweat can make nerves hyperexcitable and disturb this calcium balance.
- Fatigue, intense exercise, or holding a muscle shortened too long can unbalance spinal reflexes so motor neurons keep firing, producing a sustained cramp.
Labelled diagram
- Nerve signal
A motor neuron releases acetylcholine, exciting the muscle fibre.
- Calcium release
Action potential triggers calcium ions to flood the fibre interior.
- Contraction
Calcium lets myosin bind actin, and the muscle shortens.
- Relaxation block
Motor neurons keep firing, so calcium stays high and the muscle cannot relax.
Real-world examples
- A runner finishing a marathon on a hot day may cramp in the calves after heavy sweating and sodium loss.
- Swimmers who point their toes for long periods sometimes get foot cramps from holding the muscle short.
- Night-time leg cramps are common in older adults, often waking them with a sudden, painful calf tightening.
- Writers or gamers who grip a pen or controller tightly for hours can cramp the small muscles of the hand.
Common mistake
✗ Myth: Cramps are always caused by not drinking enough water.
✓ Fact: Dehydration is only one trigger; fatigue, electrolyte loss, and nerve overactivity also cause cramps. Drinking plain water without replacing sodium can even worsen the imbalance in some cases.
People also ask
What causes muscle cramps?
Why do muscles cramp during exercise?
How to stop a muscle cramp quickly?
Why do cramps often happen at night?
Are cramps caused by low salt?
Do stretching and fluids help?
When should I see a doctor about cramps?
Part of the guide: How Your Body Works →

