Deficiency of certain vitamins and minerals can increase muscle spasms Lack of rest can increase muscle spasms People with uncontrolled diabetes are at risk of leg spasms