➡ If cramping is caused due to deficiency, having a diet rich in minerals can help. If it is caused due to calcium deficiency, include foods like nuts, tofu, dairy products, etc., in your daily diet. Potassium is found in almost all the vegetables and fruits.