Kidney stones are typically a painful condition. Fortunately, diet can be an effective tool in managing and preventing kidney stones. Staying hydrated and avoiding certain foods that are high in salt and sugar, and pairing calcium with oxalate rich foods are important elements of a kidney stone diet.