There are many factors that contribute to the formation of kidney stones. Some of these factors include diet, dehydration, and certain medical conditions. Although there is no sure way to prevent kidney stones from forming, there are some steps that may help reduce your risk.