I never had cramps and did nothing other than hydrate when I ran 10Ks. For cycling I have had some cramping so in addition to hydration stretching legs and lower back before and after a ride helped greatly. Now in my 70s I also fiddle a little with my original bike fit.