Leg cramps while swimming: what to do in the water

Why swimmers cramp in the calf and the sole of the foot, how to break a cramp without panicking mid-pool, and what the research says about the potassium story.

Yellow training fins resting on the tiled edge of a pool
Photo by SHVETS production on Pexels

A cramp in the middle of a lane is a specific kind of unpleasant. It is not an injury and it is not dangerous in the shallow end, but it arrives without warning, it hurts enough to stop you mid-stroke, and it happens in a place where stopping mid-stroke means you start sinking. Most swimmers handle their first one badly — grab the foot, forget to breathe, flail toward the lane rope — and then spend months wondering whether a banana would have prevented it.

This guide covers three things: why the calf and the sole of your foot are the muscles that go, exactly what to do in the water in the first ten seconds, and what the evidence actually says about the fixes you have been told about. Some of that evidence is less settled than the internet suggests, and where it runs out, this page says so.

A cramp in deep water is a water-safety problem before it is a muscle problem. If you are out of your depth, in open water, or alone, deal with staying afloat first and the muscle second — the order matters, and the rest of this page assumes it.

Why the calf and the sole of the foot, and almost never the arms

Ask a pool deck full of masters swimmers where they cramp and you will hear the same two answers. U.S. Masters Swimming's own guidance puts it plainly: cramping most commonly involves the feet or calves, with the quadriceps and hamstrings affected less often. Your arms do far more propulsive work in freestyle and they rarely cramp at all.

The reason is not that your legs are weaker. It is the position they work in. A flutter kick holds your ankle in sustained plantar flexion — toes pointed away from your shin — for the length of the set. That keeps the calf and the small muscles in the sole of the foot shortened while they keep firing. Lab work on cramping has found that this shortened-and-working state is close to a precondition. In a classic electrophysiological study, no cramps appeared during maximal voluntary contraction without muscle shortening, while seven of ten subjects cramped after maximal effort with the muscle shortened.

That is the whole explanation for why swimming produces a cramp profile unlike running or cycling. On land your heel strikes the ground and the calf gets lengthened a few hundred times a minute. In the water nothing lengthens it until you stop and stand up.

What to do in the water, in the first ten seconds

The sequence that works is short, and it is worth rehearsing before you need it.

  1. Stop kicking. Continuing to kick is continuing to contract the muscle that is already locked.
  2. Roll onto your back. You get your face out of the water, your breathing back, and both hands free. If you cannot do that calmly, that skill is worth more than anything else on this page — see our guide to floating on your back.
  3. Pull your toes toward your shin. Reach down and hook your fingers over your toes, or push the ball of your foot against the wall. Dorsiflexion is the direction that lengthens both the calf and the sole.
  4. Hold it until the muscle lets go, then get to the wall or the shore before you decide whether to keep swimming.

In a pool, raising a hand and calling the lifeguard is not an overreaction. In open water the first move changes: float first. The RNLI's Float to Live advice is five steps — tilt your head back and submerge your ears, relax and control your breathing, move your hands and legs to help you stay afloat, expect your legs to sink, and practise somewhere supervised. A cramped calf is exactly the situation that advice exists for, and it is the reason we tell every open-water beginner to make treading water boring before they make it long.

Why stretching works when almost nothing else does

Stretching into a cramp is the one intervention with a clean mechanism behind it. The same study that found cramps need a shortened muscle also found that muscle stretching caused a sudden interruption of cramps, whether the cramp came from voluntary effort or from electrical stimulation — and it kept working after a nerve block, which points to a local mechanism rather than something you talk your brain out of.

That is why the 2022 evidence-based review in the Journal of Athletic Training still lists gentle static stretching until symptoms abate as the treatment for an acute exercise-associated muscle cramp, after decades of looking for something better. The NHS adds the land version of the same idea: stretching and massaging the muscle may ease the pain, and standing up and putting your weight on the cramping leg may also help. It also notes that paracetamol or ibuprofen will not help during a cramp, because they take too long to work — useful for the soreness afterwards, useless in the moment.

Frequently asked questions

What should I do if I get a leg cramp while swimming?

Stop kicking, roll onto your back so your face is clear and both hands are free, and pull your toes toward your shin — reach down and hook your fingers over them, or press the ball of your foot against the wall. Hold until the muscle releases, then get to the wall before deciding whether to carry on.

Why do my calves and feet cramp when I swim but not when I run?

A flutter kick holds your ankle pointed for the whole set, so the calf and the muscles in the sole of your foot stay contracted in a shortened position. Lab studies show cramps are far easier to trigger in a shortened muscle. Running lengthens the calf on every step, which is the opposite situation.

Will eating bananas or taking magnesium stop swimming cramps?

Probably not on its own. A Cochrane review of 11 trials and 735 people found magnesium no better than placebo for idiopathic cramps, and reviews of exercise-associated cramps found the dehydration and electrolyte explanations rested mostly on case series. Current advice is to look for your own triggers rather than apply a generic fix.

Do swimmers get dehydrated in the pool?

You sweat more than you notice but usually less than you fear. In 17 nationally ranked swimmers, a 105-minute session produced about 548 ml of sweat, a rate of 0.31 L/h, and the average swimmer finished at 0.1% body-mass loss. Keep a bottle on the blocks, but do not expect it to be your cramp cure-all.

When should I see a doctor about leg cramps?

The NHS advises seeing a GP if leg cramps disturb your sleep, if a cramp lasts longer than ten minutes, or if you also have numbness or swelling in your legs. U.S. Masters Swimming adds that persistent cramps deserve a medical opinion because vascular and other underlying conditions can present this way.

Sources

Read next

SwimFast is an independent publication. We are not a swim school, a coaching service or a governing body, and nothing here is medical advice. Training paces and test protocols are cited from the published research or federation documents linked on each page. Never swim alone, never attempt breath-hold work without supervision, and check with a doctor before starting a new training programme.