Leg cramps are very disturbing and painful, especially when you are sleeping and suddenly you get this terrible pain. You can avoid leg cramps by staying hydrated throughout the day, before sleeping stretch a little bit, choose the best shoes, and make sure not to sleep in a bad position. These basic remedies will give you relief from leg cramps.