The effect of caffeine appears to be mild at best:  http://www.mayoclinic.org/healthy-lifestyle/nutrition-and-healthy-eating/expert-answers/caffeinated-drinks/faq-20057965 In any case though: dehydration would work via an increased need to urinate. Which, as far as kidney stones are concerned, is exactly what's needed. You just want to flush water through.