Are they real bad cramps at night? I get charley horses that are so bad and leave my legs sore during the day. Try eating a banana or two a day and drink a glass of water before bed. If it still happens lift your foot up so knee is in the air and foot is on the bed. That stops it from hurting and it won't be sore later on