Nighttime leg cramps

Self-Care

To help prevent leg cramps at night, try the following:

Drink plenty of fluids, but limit alcohol and caffeine.
Stretch your leg muscles or use a stationary bike for a few minutes before bed.
Loosen sheets and blankets at the foot of the bed.

To relieve leg cramps at night, try the following:

Straighten your leg and flex your foot toward your face.
Massage the muscle with ice.
Walk or shake your leg.
Take a hot shower and direct the water at the tense muscle, or take a lukewarm bath.