Some people have leg cramps at night while sleeping, Cramps may be caused by inadequate blood flow to the muscles; Low levels of certain minerals known as electrolytes-magnesium,potassium,calcium,and sodium- have been long linked to leg cramps.Certain drugs, such as diuretics (water pills) for the heart and for high blood pressure,have also been cited as a cause of leg cramps.;
Dehydration is a common cause of muscle cramps,to much caffeine,Two very common causes of night cramps in leg muscles are tobacco and inactivity.