Medical conditions such as diabetes can cause foot cramps due to the lack of oxygen supplied to the feet. It is very important that you eat properly and get enough vitamins and minerals. A lack of potassium in your system can cause cramps in your feet and legs. Vitamin D is also important to healthy feet and bones.