These spasms, usually accompanied by pain varying in intensity from mild to severe, can be very uncomfortable and annoying as they can restrict the movements of the legs. Read on to know more about the causes of muscle spasms, in either or both the legs, and the various methods to treat these involuntary and painful contractions of the muscles.