A: Muscle cramping occurs when a muscle continues to contract, and cannot seem to "let go". The painful sensation one feels is caused by muscle fatigue, and waste products like lactic acid that build up in the muscle. Although the cause of muscle cramps is not entirely understood, a number of factors seem to be involved, including hydration level, electrolyte balance, training history, and chronically tight muscles.
1. Training history seems to be the most important factor. Exercise beyond an accustomed limit (longer duration, or intensity) will often bring on muscle cramps. However, through regular training, one tends to experience muscle cramps less frequently.
2. Make sure that you are drinking enough water – 10 glasses of water daily (at least 10 oz. each), or if you care to be more precise, 0.6oz/water/lb. of bodyweight. Increase this amount if you consume caffeine. For each cup of coffee, tea, or soda you take in, please be sure to add an additional 10 oz glass of water for each.
3. Through sweating (especially in a hot environment), one tends to lose electrolytes like sodium, potassium, and magnesium. Normally these are replaced in the diet. However, prolonged exercise (longer than 1 hour) in hot environments may create a need for mineral replenishment. Try adding a bit of salt to your foods, and take a multivitamin/mineral supplement and see if this makes a difference.
4. Lastly, tight muscles are best addressed by stretching before and after every workout. Stretching allows more nutrients, blood, etc. into the muscle, and allows you to dispose of waste materials more easily due to increased blood flow.