The rate at which bacteria in the mouth produce acid depends on the amount of plaque on the teeth, the composition of the microbial flora, and whether the bacteria of the plaque have been "primed" by frequent exposure to sugar.