Home > Knowledge > Nutrition and Health > Why Cyclists Cramp (It’s Probably Not What You Were Told)

Why Cyclists Cramp (It’s Probably Not What You Were Told)

Published:

BikePush is supported by our readers, we may receive a commission, at no extra cost to you - read more here
As an Amazon Associate, I earn from qualifying purchases.
Receive cycling tips and updates straight to your inbox, completely free!
Subscribe here.
Cyclist stopped on a road shoulder doing a standing quad stretch beside a road bikePin

Every rider with a story has a cure. Salt tablets, sports drinks, bananas, the powder a club friend swears by.

One confident answer you’ll hear is magnesium, not sodium, and some riders credit it with stopping their cramps.

Why cyclists cramp turns out to be messier than those stories.

We checked the magnesium claim against the published research. What’s left behind it is more useful than any silver bullet.

This is general information, not medical advice.

Where And When Cramps Really Hit

The calf tends to get the blame for ride cramps. A big cycling survey says that’s the second place to look.

A 2026 survey questioned 21,460 entrants of the 2016 Cape Town Cycle Tour, a 68-mile (109 km) one-day race in South Africa.

3 in 10 riders had cramped at some point. Among those riders, quads were the top site at 47.7%, calves followed at 27.8%, hamstrings at 20.4%.

Timing matters even more. Over 6 in 10 said their cramps came on in the final quarter of the race, and 12.6% said after the finish. Only 0.7% said the first quarter.

Don’t try this at home, because he stretches while cycling!

That timing is a clue, and we’ll come back to it. First, the magnesium claim.

The Magnesium Test

Riders who swear by it credit magnesium with fixing their cramps.

The claim deserves a fair look. A Cochrane review covered 11 controlled trials (a treatment tested against a comparison group) and 735 people. None of those trials tested magnesium for exercise cramps.

The closest result comes from older adults with night cramps, not ride cramps. Magnesium’s difference there came to 0.18 fewer cramps per week, a gap indistinguishable from zero. On high-certainty evidence, the chance of a 25% or better drop was about the same with or without it.

Blood tests don’t rescue the story. In one ultra-running comparison of 43 runners, the crampers had higher post-race magnesium than runners who stayed loose. Blood is a poor mirror of muscle stores, so that doesn’t settle things either, but it doesn’t support the deficiency argument.

The sweat math is just as unkind. In a heat test where ten men pedaled to a 3% body mass loss in 106°F (41°C) conditions, sweat carried away roughly 3,330 mg of sodium and only about 80 mg of magnesium. That works out to about 40 times more sodium than magnesium.

So magnesium isn’t supported as a general fix for cramps on the bike. A genuine deficiency is different, but that’s a doctor’s question, not a bike-shop shelf question.

If you still want to try it, keep supplement magnesium at 350 mg a day or less, the adult upper limit. Kidney trouble raises the risk of toxicity, so ask your doctor first. Diarrhea was the main side effect in the trials.

Which raises the obvious thought: maybe salt was right all along. Not exactly.

Salt And Dehydration Get Their Turn

Salt and dehydration are the old obvious answers for cramping riders. The research takes a scalpel to them.

Older cyclist in a helmet drinking from a blue water bottle on a summer ridePin

Researchers followed 210 Ironman triathletes through a full race. Forty-three cramped. Electrolytes are the salts, like sodium and potassium, that muscles and nerves rely on, and the crampers’ blood levels and weight change showed no difference from athletes who stayed loose.

What did predict cramping was racing faster and having cramped in the last ten races.

Even dehydration struggled in the lab. In that same heat test, the ten men pedaled one-legged until they’d lost 3% of their body mass, and the cramp threshold didn’t change significantly. That threshold is how fast an electrical signal has to pulse to set off a cramp in a toe muscle, so this was an induced lab cramp, not a real ride cramp.

But the story isn’t settled.

Records from the Ironman World Championship medical tent between 1989 and 2019 include 2,863 cramp cases. Those crampers had lost more weight, and dehydration was linked to cramping. One big dataset disagrees with the “hydration is innocent” line.

Then there’s the salt-drink nuance. A small lab study put 13 cramp-prone college-aged men through a calf-fatiguing test in heat, with a carbohydrate-electrolyte drink with added salt and with no fluids.

In the 7 who cramped both ways, the drink delayed onset from 14.6 to 36.8 minutes. Yet 9 of the 13 still cramped while drinking it. The drink bought time, and that’s all it showed. The test can’t separate the salt from the fluid.

Salt keeps a toehold with the heavy sweater. Football and tennis reports, not cycling data, suggest a possible salty-sweat subgroup with widespread cramps.

Anyone on blood-pressure treatment should ask their doctor before adding salt.

If dehydration is your concern, here’s how much water to drink. Heat illness signs are separate, and hot-weather cycling covers those.

So drinks with salt have more evidence behind them than magnesium, yet neither is proven in riders. Something else does better at predicting a cramp.

What The Evidence Points To

The best-supported predictor of cramps is having cramped before.

tired road cyclist taking a restPin

A 2026 meta-analysis reviewed 9 studies and 11,274 athletes, mostly triathletes and distance runners. In the studies that measured it, cramp history carried about 4.4 times the odds. That tells you who, not why, and the authors say confounding wasn’t fully controlled.

The why that fits best is fatigue: a tired muscle whose nerve signals misfire. Remember the Cape Town survey, with over 6 in 10 saying their cramps came on in the last quarter. One marathon study also found more muscle-damage markers in crampers’ blood after the race, though the meta-analysis found no clear link.

Fatigue is the leading explanation, still unproven, and it matches the timing. Our own practical suspect is going harder or longer than you’ve trained for, though the meta-analysis found no consistent link with training.

Strength work shows up too. In a 2026 study of 58 ultra-trail finishers, 87.5% of non-crampers did regular leg strength training, against 55.6% of crampers. Runners, small sample, association only.

Age is less clear than it looks. The Cape Town survey found riders over 50 had a higher lifetime cramp rate: 37.5%, against 20.8% for riders 30 or younger.

Yet the meta-analysis, whose athletes were mostly younger, found age doesn’t predict cramps. One possible reason: older riders have had more years to cramp, and carry more conditions and medications.

If rides keep ending with you over-reaching, read the signs you’re riding too hard. For the muscle part, see lifting for cyclists over 50.

Which leaves one puzzle: why every fix feels like it worked.

Why Your Fix Feels Like It Worked

Cramps come and go, so a new fix can easily arrive just as things would have improved anyway.

A calf-cramp study shows the trap. Nineteen people with regular cramps, not ride cramps, had one leg treated with electrical muscle stimulation.

Cramps in the treated leg dropped 78%. The untreated leg dropped 63%, with no treatment of its own.

The authors credited the stimulation, but the untreated leg’s drop shows why a before-and-after story can mislead.

The rider who swears magnesium stopped the cramps is telling the truth about their experience. What one person’s story can’t show is cause. Time, training changes and expectation can all play a part.

💡 I don’t get cramps. I drink electrolytes on every ride, even short ones. I use SiS tablets in water because they help me feel good, help my recovery and taste good. Maybe that’s why I don’t cramp, but I can’t prove it. I also take magnesium at night, but that’s to help me sleep, not for cycling, and I’m not telling you to take it for cramps.

Right then. Back to that quad, three miles from home.

When A Cramp Hits On The Bike

Enough theory.

Ease off and signal the riders around you. Your first job is keeping the bike upright. If you need to stop, unclip with the leg that isn’t cramping. Twisting out with a locked muscle can tip you over.

Then stretch gently until the muscle lets go. That’s the top-graded treatment in a 2022 review, though nobody has tested which type of stretch works best.

This video walks through stretching a cramp mid-ride, including unclipping for a quad stretch.

There’s one surprising lab result too. In a test on electrically induced toe cramps in dehydrated men, 2.5 oz (74 mL) of pickle juice cut the cramp by 49 seconds compared with water.

Blood barely changed, which suggests the effect starts in the mouth, not the bloodstream. That’s a lab result, not a ride result.

Skip quinine and tonic water as a cramp remedy. That same review says no.

Once you’re home, the useful question is what to change.

What To Change Before The Next Long Ride

None of this has been proven in cyclists. But a sensible order still emerges.

Five things worth trying, one at a time:

  • Pace the first half easier. Fatigue is the leading explanation, so don’t burn your legs early.
  • Build up longer rides gradually.
  • Add regular leg strength work. The link is an association, not proof.
  • Drink normally, and use electrolytes on long hot rides. More so if you’re a heavy sweater.
  • Change one thing at a time and keep notes. Otherwise you’ll never see past the trap above.

For the strength work, this coach demonstrates a set of exercises for cyclists.

For the long-ride build-up, see long rides without feeling drained. And if what hit you was the bonk, not a cramp, start by checking what bonking is.

When To Call Your Doctor

Some cramps need more than a stretch.

Talk to a doctor if cramps are severe, won’t ease with stretching, keep coming back, or last a long time. Those are the flags in MedlinePlus guidance. Cramps that come with confusion, vomiting, collapse, dark urine or heat-illness signs are a medical problem, so get help rather than stretching and carrying on.

Medication is worth raising too. A 2012 study using pharmacy data from adults 50 and over found that starting certain inhalers or diuretics was linked to more quinine prescriptions later, a proxy for treating night cramps.

Statins showed only a small bump. Ask the prescriber, and never stop a drug on your own.

The next practical step is the boring one. Pick one thing from the list above before the next long ride. If you can’t choose, pace easier for the first half. Ride it, note what happens, and change nothing else.

Cramps rarely hand you the answer in one ride. But one variable at a time gives you a better record than a story about the last thing you tried.

Know a riding buddy who swears by their cramp cure? Share this with them👇

Mark BikePush
Article By:
Mark is the founder of BikePush, a cycling website. When he's not working on BikePush, you can find him out riding.

Leave a Comment