Self-treatment
Night leg cramps, also called nocturnal leg cramps, are painful, involuntary contractions or spasms of muscles in your legs.
It usually occurs when you're in bed.
Most of the time, no apparent cause for night leg cramps can be identified. In general, night leg cramps are likely to be related to muscle fatigue and nerve problems.
Lifestyle and home remedies
Activities that might help prevent night leg cramps include:
- Drinking plenty of fluids to avoid dehydration
- Stretching your leg muscles or riding a stationary bicycle for a few minutes before you go to bed
- Untucking the bed covers at the foot of your bed
We have already told you about preventive measures, but how to act during a night cramp?
Activities that might help relieve night leg cramps include:
- Flexing your foot up toward your head
- Massaging the cramped muscle with your hands or with ice
- Walking or jiggling the leg
- Taking a hot shower or warm bath
Source:
https://www.mayoclinic.org/symptoms/night-leg-cramps/basics/when-to-see-
doctor/sym-20050813