This is why we get cramps at night

comfortable shoes
Eating a balanced diet
When Leg Cramps Need Medical Attention
See a healthcare professional if cramps:

Happen very often
Are getting more painful
Regularly wake you from sleep
Last unusually long
Come with muscle weakness
Are associated with numbness or tingling
Started after a medication change
A Red, Swollen, Warm Leg Is Different
A normal muscle cramp usually improves as the muscle relaxes.

A leg that remains:

Swollen
Red
Warm
Tender
Painful
needs evaluation, especially if only one leg is affected.

Seek emergency care if this happens with: