The most common cause in your young age group is less toned up muscle which may contract suddenly and go into spasm on certain movements or function.
There are some risk factors that are thought to contribute to this condition:
1) Muscle fatigue,
2) Heavy exercising,
4) Over weight
5) Electrolyte imbalances,
6) Vitamin deficiency,
The medical causes related to the disease process are;
1) Calcium and phosphorus imbalances can cause charlie horse / cramping.
2) Low potassium or sodium (salt) levels.
3) Deficiencies of a nutrient called hesperidin, an antioxidant flavonoid found in oranges and other citrus fruits, have also been linked to nocturnal leg cramps.
4) Overexertion, standing on concrete for long periods, or prolonged sitting may contribute.
5) Having structural disorders in the spine may increase the risk for cramps.
6) Among the many medical causes of muscle cramping include hypothyroidism, Addison's disease, uremia, hypoglycemia, anemia, and certain medications.
Electrolyte imbalances is generally considered the most common main cause. A blood electrolyte level can help you in ruling in or ruling out this. Some researchers believe inadequate stretching and muscle fatigue leads to abnormalities in mechanisms that control muscle contraction. Other factors may also be involved, including exercising or working in intense heat and dehydration.
Prevention of the cramps is the best cure; for that following measures should be employed:
1) Drink water at regular intervals, even when you are not thirsty.
2) Drink more than what you require.
3) Drink fruit juice or a sports beverage if the working conditions are hot and one sweats a lot.
4) If cramps occur frequently, stretching exercises help. Muscle relaxant like chlorzoxazone can also help.
Please feel free for your follow up questions.
I would be happy to assist you further, if you need any more information.
Thanks for using Just Answer.