The law of demand states that, all else equal, as the price of a good or service increases, the quantity demanded decreases, and as the price decreases, the quantity demanded increases. It explains consumer behavior and is usually illustrated by a downward-sloping demand curve in economics.