Leg cramps can be overcome with hydration, application of warmth (especially via a shower or bath), application of an ice pack, or medicines. A warm shower or massage is the quickest way to get rid of a cramp, states WebMD.
Cramps are caused by over-exercise or injury of muscles, pregnancy, exposure to cold while exercising, certain medical conditions, loss of bloodflow while a muscle is in a certain position, or lack of certain minerals in the bloodstream, according to WebMD. It is imperative to avoid stretching out a cramped muscle if possible, as it is possible to tear a muscle in this manner. The affected person should quickly seek hydration, either from sports drinks or water.