According to the law of demand, when the price of pizza goes up, consumers will buy less pizza. This inverse relationship means that as the price increases, the quantity demanded decreases, assuming all other factors remain constant. The law of demand reflects consumers' tendency to buy more of a good when its price falls and less when its price rises due to factors like diminishing marginal utility and substitution effects.