The National Institutes of Health advises people who have restless legs syndrome to get adequate sleep in predictable patterns, have a relaxing sleep space and focus on activities such as massage and warm baths to soothe their muscles. Prescription medications can also help, but they can cause drowsiness in the daytime. Healthline adds that some prescription medications for restless legs syndrome can also be addictive.
Healthline also recommends moving often and avoiding staying in one position too long. Bypassing caffeine, tobacco and alcohol is advised as they worsen the symptoms of restless legs syndrome. Vitamin supplements can also help but only after consulting with a doctor because of possible consequences from mixing them with other medications and the danger of vitamin overdose. Over-the-counter medicine, such as acetaminophen and ibuprofen, can help with moderate pain, but taking them for too long may cause severe side effects, such as ulcers.
Switching back and forth between warm and cool packs for muscles is also effective for some people, notes Healthline. Massaging muscles right before bedtime can also be helpful. A regular bedtime and sleep schedule--for example, a bath at the same time every night, a leg massage, getting into bed, reading for 30 minutes and waking at the same time--can also help counteract restless legs syndrome.